.login-div {
	height: 80%;
	width: 60%;
	margin: 10% auto 0 auto;
}

.loan-application-admin-card .alert {
  border-radius: 12px;
  margin-bottom: 18px;
}

.loan-application-table td,
.loan-application-table th {
  vertical-align: middle;
}

.loan-application-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.loan-inline-form {
  display: inline-flex;
  margin: 0;
}

.loan-application-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.loan-application-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(8, 29, 57, 0.05);
}

.loan-application-detail__header h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  color: #081D39;
}

.loan-application-detail__header p {
  margin: 8px 0 0;
  font-size: 15px;
  color: #64748B;
}

.loan-application-section-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  color: #081D39;
}

.loan-application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.loan-application-field {
  padding: 18px 20px;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  background: #FBFCFE;
}

.loan-application-field--full {
  grid-column: 1 / -1;
}

.loan-application-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748B;
}

.loan-application-field strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #081D39;
  line-height: 1.7;
}

.loan-application-note,
.loan-application-history {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
}

.loan-application-history {
  display: grid;
  gap: 10px;
}

.loan-application-actions-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #E2E8F0;
}

@media (max-width: 991px) {
  .loan-application-grid {
    grid-template-columns: 1fr;
  }
}

.forgot-password {
	font-size: 12px;
}

@media screen and (max-width: 1150px) {
	.remember-me {
		margin-left: 7%;
	}
}
@media screen and (max-width: 860px) {
	.login-div {
		height: 100%;
		width: 40%;
		margin: 15% auto;
	}
}
@media screen and (max-width: 630px) {
	.login-div {
		height: 100%;
		width: 50%;
		margin: 20% auto;
	}
}
@media screen and (max-width: 455px) {
	.login-div {
		height: 100%;
		width: 100%;
		margin: 10% auto;
	}
}

/*========= Input textbox for Birthdate modified =============*/
input[type="date"]:required:invalid::-webkit-datetime-edit {
	color: transparent;
}
input[type="date"]:focus:invalid::-webkit-datetime-edit {
	color: black !important;
}
/*  ===Remove DataTable scrollbar */
div#new_client_table_wrapper.dataTables_wrapper.dt-bootstrap4.no-footer,
div#loan_clients_table_wrapper.dataTables_wrapper.dt-bootstrap4.no-footer,
div#approved_clients_table_wrapper.dataTables_wrapper.dt-bootstrap4.no-footer,
div#rejected_clients_table_wrapper.dataTables_wrapper.dt-bootstrap4.no-footer,
div#clients_table_wrapper.dataTables_wrapper.dt-bootstrap4.no-footer {
	overflow-y: hidden;
	overflow-x: hidden;
}


/*  ==========Loading Screen============  */
#loading-container{
	position: absolute;
	display: flex;
	height: 100vh;
	width: 100vw;
	background-color: white;
	z-index: 9999;
}
#loading-screen{
	position: absolute;
	left: 47%;
	top: 45%;
	z-index: 9999;
	text-align: center;
	
}

.loader {
	border: 16px solid #f3f3f3; /* Light grey */
	border-top: 16px solid #0090FF; /* DEM MONEY blue */
	border-radius: 50%;
	width: 120px;
	height: 120px;
	animation: spin 2s linear infinite;
}

/* ═══════════════════════════════════════════════════════════
   DEM MONEY — GLOBAL RESPONSIVE + ALIGNMENT FIXES
   Applied across all pages (landing, auth, admin, borrower)
   ═══════════════════════════════════════════════════════════ */

/* ── Box Sizing Reset ── */
html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

/* ── Global Text Colors (fix low contrast) ── */
body,
h1, h2, h3, h4, h5, h6,
.card-title,
.card-category {
  color: #1E293B;
}

.text-muted,
small,
.small,
.card .card-category,
.card-stats .card-footer .stats {
  color: #475569 !important;
}

label,
.form-label,
.dem-field label,
.dem-form-group label {
  color: #334155;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  display: block;
}

/* ── Global Input/Select/Textarea Fix ── */
input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.form-control {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid #D9E2EC;
  border-radius: 12px;
  padding: 11px 14px;
  color: #081D39;
  background: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input::placeholder,
select::placeholder,
textarea::placeholder,
.form-control::placeholder {
  color: #94A3B8;
  opacity: 1 !important;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
  border-color: #0090FF !important;
  box-shadow: 0 0 0 4px rgba(0, 144, 255, 0.12) !important;
  outline: none !important;
}

/* ── Global Button Fix ── */
.btn,
button,
input[type="submit"],
input[type="button"],
.button,
.login-btn,
.google-btn,
.apply-btn,
.submit-btn,
.dem-btn-primary,
.dem-btn-google,
.dem-auth-btn,
.dem-action-btn,
.empty-state__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.btn:disabled,
button:disabled,
input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Primary Button */
.btn-primary,
.btn.btn-primary,
.dem-btn-primary,
.dem-action-btn--primary,
.empty-state__btn {
  background: #0090FF !important;
  color: #FFFFFF !important;
  border: none !important;
}

.btn-primary:hover,
.btn.btn-primary:hover,
.dem-btn-primary:hover,
.dem-action-btn--primary:hover {
  background: #0077D6 !important;
  color: #FFFFFF !important;
}

/* Success Button */
.btn-success,
.btn.btn-success,
.dem-action-btn--success {
  background: #38B24A !important;
  color: #FFFFFF !important;
  border: none !important;
}

.btn-success:hover,
.btn.btn-success:hover {
  background: #2E9A3E !important;
  color: #FFFFFF !important;
}

/* Danger Button */
.btn-danger,
.btn.btn-danger {
  background: #DC2626 !important;
  color: #FFFFFF !important;
  border: none !important;
}

.btn-danger:hover,
.btn.btn-danger:hover {
  background: #B91C1C !important;
  color: #FFFFFF !important;
}

/* Info Button */
.btn-info,
.btn.btn-info {
  background: #0090FF !important;
  color: #FFFFFF !important;
}

/* Warning Button */
.btn-warning,
.btn.btn-warning {
  background: #F59E0B !important;
  color: #FFFFFF !important;
}

/* Default / Outline */
.btn-default,
.btn.btn-default,
.btn-outline-primary,
.btn.btn-outline-primary {
  background: transparent !important;
  color: #081D39 !important;
  border: 1.5px solid #D9E2EC !important;
}

.btn-default:hover,
.btn.btn-default:hover {
  background: #F2F4F7 !important;
  border-color: #0090FF !important;
  color: #0090FF !important;
}

/* Link-style Buttons */
.btn.btn-link,
.btn-link {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #0090FF !important;
  min-height: auto;
  padding: 6px 12px;
}

.btn.btn-link:hover {
  background: rgba(0, 144, 255, 0.08) !important;
  text-decoration: none;
}

/* ── Round Button Fix ── */
.btn-round,
.btn.btn-round {
  border-radius: 999px !important;
}

/* ── Just-icon Button Fix ── */
.btn-just-icon,
.btn.btn-just-icon {
  width: 46px;
  height: 46px;
  padding: 0;
  min-width: 46px;
}

/* ── Auth Page Alignment ── */
.dem-login-body {
  padding: 24px 16px !important;
}

.dem-login-body .dem-login-wrapper {
  width: min(100%, 460px);
  margin: 0 auto;
}

.dem-login-body .dem-login-card {
  width: 100%;
}

.dem-login-body .dem-form-group {
  width: 100%;
  margin-bottom: 16px;
}

.dem-login-body .dem-input-wrap {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.dem-login-body .dem-input-wrap .form-control {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px 14px 48px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #F2F4F7;
  font-size: 15px;
  font-weight: 500;
  color: #081D39;
  outline: none;
  background-image: none !important;
}

.dem-login-body .dem-input-wrap .dem-password-input {
  padding-right: 56px;
}

.dem-login-body .dem-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 999px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  min-height: auto;
  padding: 0;
}

.dem-login-body .dem-password-toggle:hover {
  background: rgba(0, 144, 255, 0.08);
  color: #0090FF;
}

.dem-login-body .dem-password-toggle i {
  font-size: 20px;
}

.dem-login-body .dem-btn-primary {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
}

.dem-login-body .dem-btn-google {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
}

.dem-login-body .dem-btn-google:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #081D39;
}

.dem-login-body .dem-divider {
  width: 100%;
}

.dem-login-body .dem-forgot-row {
  width: 100%;
  text-align: right;
  margin: -8px 0 6px;
}

.dem-login-body .dem-forgot-link {
  font-size: 13px;
  font-weight: 600;
  color: #0090FF;
}

.dem-login-body .dem-register-link {
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
  color: #475569;
}

.dem-login-body .dem-auth-error {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  margin-bottom: 16px;
  font-size: 14px;
}

.dem-login-body .dem-form-inner {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* ── Signup Page Alignment ── */
.dem-auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dem-auth-split__form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: #ffffff;
}

.dem-auth-stage {
  width: min(100%, 520px);
}

.dem-auth-brand {
  text-align: center;
  margin-bottom: 32px;
}

.dem-auth-brand img {
  width: auto;
  max-width: 170px;
  height: auto;
  margin: 0 auto 24px;
}

.dem-auth-brand h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
  color: #081D39;
}

.dem-auth-brand p {
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
}

.dem-auth-card {
  background: #ffffff;
  border: 1px solid rgba(8, 29, 57, 0.08);
  border-radius: 24px;
  padding: 36px 28px 28px;
  box-shadow: 0 18px 48px rgba(8, 29, 57, 0.08);
}

.dem-auth-card__body {
  width: 100%;
}

.dem-auth-form {
  display: grid;
  gap: 18px;
}

.dem-auth-form .dem-field {
  margin: 0;
}

.dem-auth-form .form-control {
  width: 100%;
  min-height: 50px;
}

.dem-auth-btn {
  width: 100%;
  min-height: 50px;
}

.dem-auth-btn--primary {
  background: #0090FF !important;
  color: #ffffff !important;
  border: none !important;
  margin-top: 4px;
}

.dem-auth-btn--primary:hover {
  background: #0077D6 !important;
}

.dem-auth-btn--google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}

.dem-auth-btn--google:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.dem-auth-divider {
  display: flex;
  align-items: center;
  margin: 22px 0 12px;
  color: #94a3b8;
  font-size: 0.82rem;
}

.dem-auth-divider::before,
.dem-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.dem-auth-divider span {
  padding: 0 16px;
}

.dem-auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  font-size: 14px;
  color: #475569;
}

.dem-auth-footer a {
  color: #0090FF;
  font-weight: 700;
}

.dem-auth-slogan {
  text-align: center;
  margin-top: 16px;
  font-size: 0.78rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.dem-auth-split__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background:
    radial-gradient(ellipse at 20% 18%, rgba(255,255,255,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(56,178,74,0.08) 0%, transparent 40%),
    linear-gradient(160deg, #0a5bb5 0%, #0090FF 30%, #1ab5c5 55%, #38B24A 100%);
}

.dem-auth-visual-content {
  max-width: 480px;
  text-align: center;
  color: #ffffff;
}

.dem-auth-visual-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 16px;
  color: #ffffff;
}

.dem-auth-visual-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ── Borrower Dashboard Fix ── */
.dem-dash {
  display: flex;
  min-height: 100vh;
}

.dem-dash__sidebar {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0d2951 0%, #081D39 100%);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.dem-dash__sidebar-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.dem-dash__sidebar-header img {
  width: auto;
  max-width: 150px;
  height: auto;
  margin: 0 auto 8px;
}

.dem-dash__sidebar-header h5 {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.dem-dash__sidebar-nav {
  flex: 1;
  padding: 12px 0;
}

.dem-dash__sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.dem-dash__sidebar-nav a i {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.dem-dash__sidebar-nav a:hover,
.dem-dash__sidebar-nav a.active {
  background: rgba(0, 144, 255, 0.16);
  color: #ffffff;
}

.dem-dash__sidebar-nav a:hover i,
.dem-dash__sidebar-nav a.active i {
  color: #ffffff;
}

.dem-dash__sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dem-dash__sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 0;
}

.dem-dash__sidebar-footer a:hover {
  color: #ffffff;
}

.dem-dash__main {
  flex: 1;
  margin-left: 260px;
  background: linear-gradient(180deg, #f8fbff 0%, #F2F4F7 100%);
  min-height: 100vh;
}

.dem-dash__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: #ffffff;
  border-bottom: 1px solid rgba(8, 29, 57, 0.06);
}

.dem-dash__topbar h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #081D39;
}

.dem-dash__topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-weight: 500;
}

.dem-dash__content {
  padding: 28px;
}

.dem-dash__welcome {
  margin-bottom: 28px;
}

.dem-dash__welcome h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #081D39;
}

.dem-dash__welcome p {
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
}

.dem-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.dem-stat-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 20px;
  border: 1px solid rgba(8, 29, 57, 0.06);
  box-shadow: 0 8px 24px rgba(8, 29, 57, 0.06);
}

.dem-stat-card__label {
  font-size: 0.82rem;
  color: #475569;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dem-stat-card__value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #081D39;
  line-height: 1.2;
}

.dem-table-wrap {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(8, 29, 57, 0.06);
  box-shadow: 0 8px 24px rgba(8, 29, 57, 0.06);
  margin-bottom: 24px;
  overflow: hidden;
}

.dem-table-wrap h5 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #081D39;
}

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

.dem-table th,
.dem-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #eef2f6;
  font-size: 0.92rem;
  color: #1E293B;
}

.dem-table th {
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  background: #F8FAFC;
}

.dem-table tr:last-child td {
  border-bottom: none;
}

.dem-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.dem-badge--pending {
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
}

.dem-badge--approved,
.dem-badge--active {
  background: rgba(56, 178, 74, 0.12);
  color: #15803D;
}

.dem-badge--rejected {
  background: rgba(220, 38, 38, 0.12);
  color: #B91C1C;
}

.dem-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  border: none;
  min-height: 38px;
}

.dem-action-btn--primary {
  background: #0090FF;
  color: #ffffff;
}

.dem-action-btn--primary:hover {
  background: #0077D6;
  color: #ffffff;
  transform: translateY(-1px);
}

.dem-action-btn--outline {
  background: transparent;
  color: #081D39;
  border: 1.5px solid #D9E2EC;
}

.dem-action-btn--outline:hover {
  border-color: #0090FF;
  color: #0090FF;
  background: rgba(0, 144, 255, 0.06);
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
}

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

.empty-state p {
  font-size: 1rem;
  color: #64748B;
  margin: 0 0 20px;
}

/* ── Admin Sidebar Responsive Fix ── */
.sidebar {
  z-index: 100;
}

.sidebar .logo .simple-text {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* ── Table Responsive Wrapper ── */
.table-responsive,
.dataTables_wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Admin Dashboard Card Fixes ── */
.card-stats .card-header {
  float: none !important;
}

.card-stats .card-header .card-icon {
  float: none !important;
  margin: 0 auto 12px;
}

.card [class*="card-header-"]:not(.card-header-icon):not(.card-header-text):not(.card-header-image) {
  border-radius: 18px 18px 0 0 !important;
}

/* ── Agreement Form Responsive Fixes ── */
.dem-agreement-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dem-agreement-toolbar .btn {
  flex: 0 1 auto;
}

@media print {
  .sidebar,
  .navbar,
  .dem-agreement-meta,
  .dem-agreement-toolbar,
  .main-panel > .content {
    display: none !important;
  }
  .wrapper,
  .main-panel {
    margin-left: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
  }
  .dem-agreement-doc {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px 30px !important;
    border: none !important;
    box-shadow: none !important;
  }
}

/* ── Promissory Note Fixes ── */
.text-p {
  font-size: 12px;
  border: 1px solid black;
  border-top: none;
  border-left: none;
  border-right: none;
  background: transparent;
  outline: none;
}

/* ── DataTable Override Fix ── */
.dataTables_wrapper .dataTables_filter input {
  min-height: 38px;
  border-radius: 8px;
  border: 1.5px solid #D9E2EC;
}

/* ── Select2 Override ── */
.select2-container--default .select2-selection--single {
  height: 46px;
  border: 1.5px solid #D9E2EC;
  border-radius: 12px;
  padding: 8px 14px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 28px;
  color: #081D39;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px;
  right: 10px;
}

/* ── Global Navbar Text Fix ── */
.navbar.navbar-transparent .navbar-brand {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* ── Responsive Breakpoints ── */
@media screen and (max-width: 1200px) {
  .dem-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 1024px) {
  .dem-auth-split {
    grid-template-columns: 1fr;
  }
  .dem-auth-split__visual {
    display: none;
  }
  .dem-dash__sidebar {
    width: 240px;
  }
  .dem-dash__main {
    margin-left: 240px;
  }
}

@media screen and (max-width: 991px) {
  .sidebar {
    transform: translateX(-260px);
    transition: transform 0.3s ease;
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-panel {
    width: 100%;
  }
  .navbar .navbar-toggler .navbar-toggler-icon {
    background: #38B24A;
  }
  .navbar-toggler .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: #38B24A;
    margin: 5px 0;
  }

  /* Borrower dashboard: sidebar becomes overlay on mobile/tablet */
  .dem-dash__sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .dem-dash__sidebar.open {
    transform: translateX(0);
  }
  .dem-dash__main {
    margin-left: 0;
  }

  .dem-dash__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(56, 178, 74, 0.25);
    border-radius: 12px;
    background: rgba(56, 178, 74, 0.12);
    color: #38B24A;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
  }
  .dem-dash__toggle i {
    font-size: 22px;
    color: #38B24A !important;
  }
  .dem-dash__toggle:hover {
    background: #38B24A;
    color: #FFFFFF;
    transform: scale(1.03);
  }
  .dem-dash__toggle:hover i {
    color: #FFFFFF !important;
  }

  .dem-dash__toggle.active {
    background: rgba(56, 178, 74, 0.18);
    border-color: rgba(56, 178, 74, 0.30);
  }

  .dem-dash__toggle.active i {
    color: #38B24A !important;
  }
  .dem-dash__topbar {
    padding: 16px 20px;
  }
}

@media screen and (max-width: 768px) {
  .dem-login-body {
    padding: 32px 20px !important;
  }
  .dem-login-body .dem-login-card {
    padding: 32px 24px 24px;
  }
  .dem-login-body .dem-login-header h1 {
    font-size: 1.5rem;
  }
  .dem-stats {
    grid-template-columns: 1fr;
  }
  .dem-dash__content {
    padding: 20px 16px;
  }
  .dem-dash__topbar h4 {
    font-size: 1.1rem;
  }
  .dem-table-wrap {
    padding: 16px;
    overflow-x: auto;
  }
  .dem-table {
    min-width: 600px;
  }
  .dem-auth-card {
    padding: 28px 20px 24px;
  }
  .dem-card-stats .card-header .card-icon {
    float: none !important;
  }
}

@media screen and (max-width: 576px) {
  .dem-login-body {
    padding: 20px 12px !important;
  }
  .dem-login-body .dem-login-card {
    padding: 28px 18px 20px;
    border-radius: 18px;
  }
  .dem-login-body .dem-login-header h1 {
    font-size: 1.35rem;
  }
  .dem-login-body .dem-input-wrap .form-control {
    height: 50px;
    font-size: 14px;
    padding: 12px 14px 12px 44px;
  }
  .dem-login-body .dem-input-icon {
    left: 14px;
    font-size: 1.1rem;
  }
  .dem-login-body .dem-btn-primary {
    height: 50px;
    font-size: 14px;
  }
  .dem-auth-brand h1 {
    font-size: 1.5rem;
  }
  .dem-auth-stage {
    width: 100%;
  }
  .dem-dash__sidebar {
    width: 100%;
  }
  .dem-dash__topbar {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .dem-dash__content {
    padding: 16px 12px;
  }
  .dem-stats {
    gap: 12px;
  }
  .dem-stat-card {
    padding: 18px 16px;
  }
  .dem-stat-card__value {
    font-size: 1.5rem;
  }
  .dem-table-wrap {
    padding: 14px;
    border-radius: 16px;
  }
  .dem-table th,
  .dem-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .dem-dash__welcome h2 {
    font-size: 1.25rem;
  }
  input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .form-control {
    min-height: 44px;
    font-size: 0.9rem;
    padding: 10px 12px;
  }
  .btn,
  button,
  input[type="submit"],
  input[type="button"] {
    min-height: 44px;
    font-size: 0.9rem;
    padding: 10px 20px;
  }
  .dem-auth-card {
    padding: 24px 16px 20px;
  }
}

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


.fa-toggle-off{
	font-size: 25px;
	cursor: pointer;
	user-select: none;
	color: grey;
	transition: 1s all;
}

.fa-toggle-on{
  	font-size: 25px;
  	cursor: pointer;
  	user-select: none;
  	color: #0090FF;
  	transition: 1s all;
}

.calendar{
border: 1px solid #0090FF;
border-collapse:collapse;
text-align: center;
margin-left: 50px;
}
td.cal-td{
width: 50px;
height: 50px;
text-align: center;
border: 1px solid #e2e0e0;
font-size: 18px;
font-weight: bold;
}
th.cal-th{
height: 50px;
padding-bottom: 8px;
background:#0090FF;
font-size: 20px;
}
.prev_sign a, .next_sign a{
color:white;
text-decoration: none;
}
tr.week_name{
font-size: 16px;
font-weight:400;
color:red;
width: 10px;
background-color: #efe8e8;
}
.highlight{
background-color:#0090FF;
color:white;
height: 45px;
padding-top: 13px;
padding-bottom: 7px;
}


input.text-p{
    font-size: 12px; 
    border: 1px solid black; 
    border-top: none; 
    border-left: none;
    border-right: none;
}
.l-font{
	font-size: 12px;
}

:root {
	--dem-blue: #0090FF;
	--dem-green: #38B24A;
	--dem-navy: #081D39;
	--dem-light: #F2F4F7;
	--dem-gray: #8C96A0;
	--dem-white: #FFFFFF;
}

body {
	background: linear-gradient(180deg, #f8fbff 0%, var(--dem-light) 100%);
	color: var(--dem-navy);
}

a,
.text-primary,
.navbar .navbar-brand,
.sidebar .nav li.active > a p,
.sidebar .nav li.active > a i {
	color: var(--dem-blue) !important;
}

.btn.btn-primary,
.btn.btn-info,
.card .card-header-primary .card-icon,
.card .card-header-primary .card-text,
.card .card-header-primary:not(.card-header-icon):not(.card-header-text),
.card .card-header-info .card-icon,
.card .card-header-info .card-text,
.card .card-header-info:not(.card-header-icon):not(.card-header-text),
.badge.badge-primary,
.bg-primary {
	background: var(--dem-blue) !important;
	background-color: var(--dem-blue) !important;
	box-shadow: 0 12px 24px rgba(0, 144, 255, 0.22) !important;
}

.btn.btn-primary,
.btn.btn-info {
	border-color: var(--dem-blue) !important;
	color: var(--dem-white) !important;
}

.btn.btn-outline-primary,
.btn-outline-primary {
	color: var(--dem-blue) !important;
	border-color: var(--dem-blue) !important;
	background: transparent !important;
}

.btn.btn-outline-primary:hover,
.btn-outline-primary:hover,
.btn.btn-outline-primary:focus,
.btn-outline-primary:focus {
	background: var(--dem-blue) !important;
	color: var(--dem-white) !important;
}

.btn.btn-primary:hover,
.btn.btn-info:hover,
.btn.btn-primary:focus,
.btn.btn-info:focus {
	background-color: #067ad6 !important;
	border-color: #067ad6 !important;
}

.btn.btn-success,
.card .card-header-success .card-icon,
.card .card-header-success .card-text,
.card .card-header-success:not(.card-header-icon):not(.card-header-text),
.badge.badge-success,
.bg-success {
	background: var(--dem-green) !important;
	background-color: var(--dem-green) !important;
	box-shadow: 0 12px 24px rgba(56, 178, 74, 0.2) !important;
}

.btn.btn-success {
	border-color: var(--dem-green) !important;
	color: var(--dem-white) !important;
}

.form-control,
.is-focused .form-control {
	background-image:
		linear-gradient(to top, var(--dem-blue) 2px, rgba(0, 144, 255, 0) 2px),
		linear-gradient(to top, #d2d2d2 1px, rgba(210, 210, 210, 0) 1px) !important;
}

.form-group.is-focused label,
.bmd-form-group.is-focused label,
.bmd-form-group.is-filled label,
.form-group.is-focused .bmd-label-floating,
.bmd-form-group.is-focused .bmd-label-floating {
	color: var(--dem-blue) !important;
}

.form-control:focus {
	border-color: var(--dem-blue) !important;
	box-shadow: inset 0 -2px 0 var(--dem-blue) !important;
}

.nav-pills .nav-item .nav-link.active,
.nav-pills .show > .nav-link,
.nav-tabs .nav-item .nav-link.active,
.nav-tabs .nav-item .nav-link:hover,
.page-item.active .page-link,
.pagination.pagination-primary .page-item.active .page-link,
.show > .btn-primary.dropdown-toggle {
	background: var(--dem-blue) !important;
	background-color: var(--dem-blue) !important;
	border-color: var(--dem-blue) !important;
	color: var(--dem-white) !important;
	box-shadow: 0 10px 20px rgba(0, 144, 255, 0.22) !important;
}

.nav-pills .nav-item .nav-link,
.nav-tabs .nav-item .nav-link,
.page-link,
.pagination .page-item .page-link {
	color: var(--dem-blue) !important;
}

.dropdown-menu .dropdown-item {
	border-radius: 10px !important;
	transition: all 0.25s ease !important;
	text-align: center;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
	background: var(--dem-green) !important;
	background-color: var(--dem-green) !important;
	border-color: var(--dem-green) !important;
	color: var(--dem-white) !important;
	box-shadow: none !important;
}

.dropdown-menu .dropdown-item:hover i,
.dropdown-menu .dropdown-item:focus i,
.dropdown-menu .dropdown-item.active i,
.dropdown-menu .dropdown-item:active i {
	color: var(--dem-white) !important;
}

.custom-control-input:checked ~ .custom-control-label::before,
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before,
.custom-radio .custom-control-input:checked ~ .custom-control-label::before,
input[type="checkbox"]:checked + .checkbox-material .check,
input[type="radio"]:checked + .circle {
	background-color: var(--dem-blue) !important;
	border-color: var(--dem-blue) !important;
}

.checkbox input[type=checkbox]:checked + .checkbox-material .check:before,
label.checkbox-inline input[type=checkbox]:checked + .checkbox-material .check:before {
	color: var(--dem-white) !important;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover,
.datepicker table tr td.active.active,
.datepicker table tr td.active:hover.active {
	background: var(--dem-blue) !important;
	background-color: var(--dem-blue) !important;
}

.slider .tooltip-inner,
.tooltip-inner,
.popover-header {
	background: var(--dem-navy) !important;
	color: var(--dem-white) !important;
}

.card .card-header-warning .card-icon,
.card .card-header-warning .card-text,
.card .card-header-warning:not(.card-header-icon):not(.card-header-text) {
	background: linear-gradient(135deg, var(--dem-blue), #42b2ff) !important;
	box-shadow: 0 12px 24px rgba(0, 144, 255, 0.2) !important;
}

.card .card-header-danger .card-icon,
.card .card-header-danger .card-text,
.card .card-header-danger:not(.card-header-icon):not(.card-header-text),
.dem-dropbox-btn {
	background: var(--dem-navy) !important;
	background-color: var(--dem-navy) !important;
	color: var(--dem-white) !important;
	box-shadow: 0 14px 26px rgba(8, 29, 57, 0.2) !important;
}

.sidebar,
.sidebar::before,
.off-canvas-sidebar nav .navbar-collapse::before {
	background: linear-gradient(180deg, #0d2951 0%, var(--dem-navy) 100%) !important;
}

.sidebar .logo,
.sidebar .sidebar-wrapper,
.sidebar .nav li > a {
	position: relative;
	z-index: 2;
}

.sidebar .logo::after {
	content: "";
	display: block;
	height: 1px;
	margin-top: 10px;
	background: rgba(255, 255, 255, 0.12);
}

.sidebar .nav li > a,
.sidebar .logo .simple-text,
.sidebar .nav i,
.sidebar .nav p,
.navbar.navbar-transparent .navbar-brand,
.navbar.navbar-transparent .nav-link,
.navbar.navbar-transparent .material-icons {
	color: rgba(255, 255, 255, 0.95) !important;
}

.sidebar .nav li > a p,
.sidebar .nav li > a i {
	font-weight: 400;
}

.sidebar .nav li.active > a,
.sidebar .nav li > a:hover {
	background: rgba(0, 144, 255, 0.16) !important;
	box-shadow: none !important;
}

.navbar.navbar-transparent {
	background: linear-gradient(90deg, rgba(8, 29, 57, 0.98), rgba(13, 41, 81, 0.92)) !important;
	box-shadow: 0 12px 30px rgba(8, 29, 57, 0.12);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.main-panel > .content {
	padding-top: 88px;
}

.card,
.dem-login-card {
	border: 1px solid rgba(8, 29, 57, 0.06);
	border-radius: 18px;
	box-shadow: 0 20px 45px rgba(8, 29, 57, 0.08);
}

.table thead th {
	color: #1E293B !important;
	font-weight: 600 !important;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.card-category {
	color: #475569 !important;
	font-weight: 500 !important;
}

.text-muted {
	color: #64748B !important;
}

.dem-brand-mark {
	display: flex !important;
	align-items: center;
	gap: 10px;
}

.dem-brand-mark span {
	font-size: 1rem;
	letter-spacing: 0.08em;
}

.dem-sidebar-slogan {
	margin: 8px 0 0;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.92);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   DEM MONEY — LOGIN PAGE (PROFESSIONAL REDESIGN)
   Premium · Corporate · Fintech · Balanced
   ═══════════════════════════════════════════════════════════ */

/* ── Page Reset ── */
.dem-login-page {
	background: #ffffff;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

.dem-login-shell {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
}

/* ── Layout: 45/55 Split ── */
.dem-login-layout {
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	grid-template-columns: 45fr 55fr;
}

.dem-login-pane {
	position: relative;
	min-width: 0;
}

/* ═══════════════════════════════════════════════════════════
   LEFT — LOGIN FORM (45%)
   ═══════════════════════════════════════════════════════════ */

.dem-login-pane--form {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 40px;
	background: #ffffff;
}

.dem-login-stage {
	width: min(100%, 480px);
}

.dem-login-card {
	background: #ffffff;
	border: none;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	position: relative;
	z-index: 2;
}

/* ── Header (Logo + Title + Subtitle) ── */
.dem-login-card__header {
	padding: 0 0 16px;
	text-align: center;
	background: transparent;
}

.dem-login-logo {
	display: block;
	width: auto;
	max-width: 170px;
	height: auto;
	margin: 0 auto 36px;
}

.dem-login-title {
	margin: 0 0 12px;
	font-size: clamp(1.75rem, 3.2vw, 2.2rem);
	line-height: 1.2;
	color: #081D39;
	font-weight: 800;
	letter-spacing: -0.025em;
}

.dem-login-subtitle {
	margin: 0 auto;
	max-width: 380px;
	font-size: 0.95rem;
	line-height: 1.7;
	color: #6b7a8f;
	font-weight: 400;
}

/* ── Body / Form ── */
.dem-login-card__body {
	padding: 36px 0 0 !important;
}

.dem-login-form {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

/* ── Input Fields ── */
.dem-login-field {
	margin: 0;
}

.dem-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.dem-input-icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.2rem;
	color: #94a3b8;
	pointer-events: none;
	z-index: 2;
	transition: color 0.25s ease;
}

.dem-input-wrap .form-control {
	width: 100%;
	height: 54px;
	padding: 14px 18px 14px 50px;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	background: #F2F4F7;
	font-size: 0.95rem;
	font-weight: 500;
	color: #081D39;
	box-shadow: 0 1px 2px rgba(8, 29, 57, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	outline: none;
	background-image: none !important;
}

.dem-input-wrap .form-control:focus {
	border-color: #0090FF;
	box-shadow: 0 0 0 3px rgba(0, 144, 255, 0.15);
	background: #ffffff;
}

.dem-input-wrap .form-control:focus ~ .dem-input-icon,
.dem-input-wrap .form-control:focus + .dem-input-icon {
	color: #0090FF;
}

.dem-input-wrap .form-control::placeholder {
	color: #94a3b8;
	font-weight: 400;
	font-size: 0.92rem;
}

.dem-input-wrap .form-control:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #F2F4F7 inset !important;
	-webkit-text-fill-color: #081D39 !important;
}

/* ── Login Button ── */
.dem-login-actions {
	margin: 0;
}

.dem-login-actions .btn {
	width: 100%;
	height: 54px;
	margin: 0 !important;
	padding: 0 32px;
	border-radius: 12px;
	font-size: 1rem;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0.02em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

body.dem-login-page .btn.btn-primary {
	background: linear-gradient(135deg, #0066cc 0%, #0090FF 50%, #3aaaff 100%) !important;
	background-color: #0090FF !important;
	border: none !important;
	box-shadow: 0 6px 20px rgba(0, 144, 255, 0.30) !important;
	color: #ffffff !important;
}

body.dem-login-page .btn.btn-primary::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.08) 60%, transparent 80%);
	pointer-events: none;
}

body.dem-login-page .btn.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(0, 144, 255, 0.35) !important;
	background: linear-gradient(135deg, #0055aa 0%, #0080e6 50%, #2a9aff 100%) !important;
}

body.dem-login-page .btn.btn-primary:active {
	transform: translateY(0);
	box-shadow: 0 4px 12px rgba(0, 144, 255, 0.20) !important;
}

/* ── Caption ── */
.dem-login-caption {
	margin: 8px 0 0;
	text-align: center;
	font-size: 0.78rem;
	line-height: 1.6;
	color: #64748b;
	font-weight: 500;
	letter-spacing: 0.04em;
}

/* ── Divider ── */
.dem-login-divider {
	display: flex;
	align-items: center;
	margin: 22px 0;
	color: #94a3b8;
	font-size: 0.82rem;
	font-weight: 500;
}

.dem-login-divider::before,
.dem-login-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e2e8f0;
}

.dem-login-divider span {
	padding: 0 16px;
}

/* ── Google Button ── */
.dem-login-google {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 50px;
	border-radius: 12px;
	border: 1.5px solid #e2e8f0;
	background: #ffffff;
	font-size: 0.95rem;
	font-weight: 600;
	color: #1e293b;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	margin: 0;
}

.dem-login-google:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
	box-shadow: 0 1px 4px rgba(8, 29, 57, 0.06);
	color: #081D39;
}

.dem-login-google__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   RIGHT — BRAND PANEL (55%)
   ═══════════════════════════════════════════════════════════ */

.dem-login-pane--visual {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px;
	overflow: hidden;
	position: relative;
	background:
		radial-gradient(ellipse at 20% 18%, rgba(255,255,255,0.10) 0%, transparent 55%),
		radial-gradient(ellipse at 80% 80%, rgba(56,178,74,0.08) 0%, transparent 40%),
		linear-gradient(160deg, #0a5bb5 0%, #0090FF 30%, #1ab5c5 55%, #38B24A 100%);
}

.dem-login-visual {
	position: relative;
	width: min(100%, 540px);
	min-height: 480px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
}

/* ── Content Stack ── */
.dem-visual-content {
	position: relative;
	width: 100%;
	max-width: 500px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	padding: 20px 0;
}

/* ── Decorative Rings ── */
.dem-visual-content::before,
.dem-visual-content::after {
	content: '';
	position: absolute;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,0.07);
	pointer-events: none;
}

.dem-visual-content::before {
	width: 460px;
	height: 460px;
	top: -120px;
	right: -160px;
}

.dem-visual-content::after {
	width: 340px;
	height: 340px;
	bottom: -80px;
	left: -140px;
}

/* ── Decorative Orbs ── */
.dem-visual-orb {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.dem-visual-orb--tl {
	width: 200px;
	height: 200px;
	top: -30px;
	right: -10px;
	background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%);
}

.dem-visual-orb--bl {
	width: 130px;
	height: 130px;
	bottom: 50px;
	left: 10px;
	background: radial-gradient(circle, rgba(56,178,74,0.28) 0%, rgba(56,178,74,0) 70%);
}

.dem-visual-orb--br {
	width: 90px;
	height: 90px;
	bottom: 20px;
	right: 100px;
	background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%);
}

/* ── Text Block ── */
.dem-visual-text {
	position: relative;
	z-index: 2;
	max-width: 460px;
	text-align: center;
}

.dem-visual-eyebrow {
	margin: 0 0 16px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.65);
}

.dem-visual-headline {
	margin: 0 0 18px;
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
	line-height: 1.15;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: -0.02em;
}

.dem-visual-body {
	margin: 0 auto;
	font-size: 0.93rem;
	line-height: 1.8;
	color: rgba(255,255,255,0.78);
	max-width: 420px;
}

/* ── Glass Card ── */
.dem-visual-card {
	position: relative;
	z-index: 2;
	width: min(100%, 400px);
}

.dem-glass-panel {
	position: relative;
	border-radius: 22px;
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.18);
	box-shadow: 0 16px 44px rgba(8,29,57,0.16);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	overflow: hidden;
}

.dem-glass-stats {
	display: flex;
	align-items: stretch;
	background: rgba(8,29,57,0.10);
	border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dem-glass-stat {
	flex: 1;
	padding: 16px 20px;
	text-align: center;
}

.dem-glass-stat + .dem-glass-stat {
	border-left: 1px solid rgba(255,255,255,0.08);
}

.dem-glass-stat__label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.55);
}

.dem-glass-stat__value {
	font-size: 0.95rem;
	color: #ffffff;
	font-weight: 700;
}

.dem-glass-image {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
	line-height: 0;
}

.dem-glass-image img {
	display: block;
	width: min(100%, 280px);
	height: auto;
	filter: drop-shadow(0 10px 18px rgba(8,29,57,0.10));
}

/* ── Badges ── */
.dem-visual-badges {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.dem-vbadge {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: rgba(255,255,255,0.94);
	box-shadow: 0 6px 18px rgba(8,29,57,0.10);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	pointer-events: auto;
}

.dem-vbadge:hover {
	transform: scale(1.10) translateY(-2px);
	box-shadow: 0 10px 24px rgba(8,29,57,0.16);
}

.dem-vbadge .material-icons {
	font-size: 1.3rem;
}

.dem-vbadge--payments {
	top: 28px;
	left: 12px;
	color: #0090FF;
}

.dem-vbadge--verified {
	top: 12px;
	right: 12px;
	color: #38B24A;
}

.dem-vbadge--tasks {
	bottom: 34%;
	right: 8px;
	color: #6f42c1;
}

.dem-vbadge--growth {
	bottom: 24px;
	left: 12px;
	color: #081D39;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
body.dem-login-page .dem-footer {
	margin-top: 0;
	padding: 14px 16px 16px;
	background: #081D39;
}

body.dem-login-page .dem-footer__inner--minimal {
	max-width: 1120px;
	margin: 0 auto;
	justify-content: center;
	text-align: center;
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	color: #ffffff;
}

body.dem-login-page .dem-footer__minimal-copy,
body.dem-login-page .dem-footer__contacts,
body.dem-login-page .dem-footer__contacts a {
	color: rgba(255,255,255,0.9) !important;
}

body.dem-login-page .dem-footer__minimal-copy {
	font-size: 0.88rem;
}

body.dem-login-page .dem-footer__contacts {
	font-weight: 500;
}

.dem-login-footer-copy {
	color: #081D39;
	margin-bottom: 20px;
}

/* ═══════════════════════════════════════════
   DASHBOARD WELCOME
   ═══════════════════════════════════════════ */
.dem-welcome-card {
	background: linear-gradient(135deg, rgba(0, 144, 255, 0.12), rgba(56, 178, 74, 0.08));
	border: 1px solid rgba(0, 144, 255, 0.12);
}

.dem-welcome-card .card-title {
	font-weight: 700;
	color: var(--dem-navy);
	font-size: 1.25rem;
	line-height: 1.4;
}

.dem-welcome-card .card-category {
	color: #1E293B !important;
	font-weight: 500 !important;
	font-size: 0.95rem;
}

.dem-welcome-copy {
	display: flex;
	align-items: center;
	gap: 18px;
}

.dem-welcome-logo {
	width: 72px;
	max-width: 100%;
}

.card-stats .card-title {
	font-weight: 700;
	color: var(--dem-navy);
}

.card-stats .card-footer .stats {
	color: #475569 !important;
	font-weight: 500;
	font-size: 0.85rem;
}

.card .card-body {
	color: #1E293B;
	line-height: 1.6;
}

.dem-link {
	color: var(--dem-blue) !important;
	font-weight: 600;
}

.dem-footer {
	margin-top: 24px;
	padding: 18px 0 26px;
}

.dem-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.84);
	border: 1px solid rgba(8, 29, 57, 0.06);
	box-shadow: 0 10px 30px rgba(8, 29, 57, 0.05);
}

.dem-footer__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--dem-navy);
}

.dem-footer__logo {
	width: 42px;
	height: auto;
}

.dem-footer__contacts {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.dem-footer__contacts a {
	color: var(--dem-navy) !important;
	font-weight: 600;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
   ═══════════════════════════════════════════ */
@media screen and (max-width: 1024px) {
	.dem-login-layout {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.dem-login-pane--form {
		order: 1;
		padding: 36px 28px 20px;
	}

	.dem-login-pane--visual {
		order: 2;
		padding: 24px 28px 36px;
	}

	.dem-login-visual {
		min-height: auto;
		width: min(100%, 520px);
	}

	.dem-visual-content {
		gap: 32px;
		padding: 8px 0;
	}

	.dem-visual-content::before {
		width: 360px;
		height: 360px;
		top: -40px;
		right: -100px;
	}

	.dem-visual-content::after {
		width: 280px;
		height: 280px;
		left: -100px;
		bottom: -30px;
	}

	.dem-vbadge--payments {
		left: 12px;
	}

	.dem-vbadge--verified {
		right: 12px;
	}

	.dem-vbadge--tasks {
		right: 8px;
	}

	.dem-vbadge--growth {
		left: 12px;
	}
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤767px)
   ═══════════════════════════════════════════ */
@media screen and (max-width: 767px) {
	.dem-welcome-copy,
	.dem-footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.dem-footer__contacts {
		flex-direction: column;
		gap: 6px;
	}

	.dem-login-stage {
		width: 100%;
	}

	.dem-login-logo {
		max-width: 140px;
		margin-bottom: 24px;
	}

	.dem-login-title {
		font-size: 1.65rem;
	}

	.dem-login-subtitle {
		font-size: 0.9rem;
	}

	body.dem-login-page .dem-footer__contacts {
		display: block;
	}

	.dem-login-divider {
		margin: 20px 0;
	}

	.dem-login-google {
		height: 48px;
		font-size: 0.92rem;
	}

	.dem-login-pane--form {
		padding: 28px 20px 16px;
	}

	.dem-login-pane--visual {
		padding: 20px 20px 28px;
	}

	.dem-login-visual {
	}

	.dem-visual-text {
		margin-bottom: 0;
	}

	.dem-visual-headline {
		font-size: 1.7rem;
	}

	.dem-visual-card {
		max-width: 360px;
	}

	.dem-glass-panel {
		padding: 0;
		border-radius: 20px;
	}

	.dem-glass-stats {
		flex-direction: column;
	}

	.dem-glass-stat + .dem-glass-stat {
		border-left: none;
		border-top: 1px solid rgba(255,255,255,0.06);
	}

	.dem-glass-stat {
		padding: 10px 12px;
	}

	.dem-vbadge {
		width: 46px;
		height: 46px;
		border-radius: 14px;
	}

	.dem-vbadge .material-icons {
		font-size: 1.25rem;
	}

	.dem-vbadge--payments {
		left: 4px;
		top: 60px;
	}

	.dem-vbadge--verified {
		right: 4px;
		top: 12px;
	}

	.dem-vbadge--tasks {
		right: 4px;
		bottom: 34%;
	}

	.dem-vbadge--growth {
		left: 4px;
		bottom: 16px;
	}
}

/* ═══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤480px)
   ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   LOAN AGREEMENT DOCUMENT
   ═══════════════════════════════════════════ */
.dem-agreement-meta {
	border-radius: 14px !important;
	margin-bottom: 20px;
	border: 1px solid rgba(8, 29, 57, 0.08) !important;
	box-shadow: 0 8px 24px rgba(8, 29, 57, 0.06) !important;
}

.dem-agreement-meta .card-body {
	padding: 16px 20px !important;
}

.dem-agreement-meta .form-control {
	font-size: 0.85rem;
	height: 40px;
	padding: 8px 12px;
}

.borrower-fill {
	background: #f8fafc;
	border-radius: 8px;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
}

.borrower-fill .form-control {
	font-size: 0.82rem;
	height: 36px;
	background: #ffffff;
}

.dem-agreement-meta select.form-control {
	padding: 8px 12px;
}

.dem-agreement-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
	padding: 14px 20px;
	background: #ffffff;
	border-radius: 14px;
	border: 1px solid rgba(8, 29, 57, 0.06);
	box-shadow: 0 8px 24px rgba(8, 29, 57, 0.06);
}

.dem-agreement-toolbar .btn {
	margin: 0 !important;
}

.dem-agreement-doc {
	max-width: 900px;
	margin: 0 auto 30px;
	background: #ffffff;
	border-radius: 4px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 20px 60px rgba(8, 29, 57, 0.1);
	padding: 50px 60px 40px;
	font-family: "Roboto", "Helvetica", "Arial", sans-serif;
}

.dem-agreement-title-block {
	text-align: center;
	padding: 24px 0 20px;
	margin-bottom: 24px;
	border-bottom: 2px solid #0090FF;
}

.dem-agreement-title {
	font-size: 1.85rem;
	font-weight: 800;
	color: #081D39;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 6px;
	padding: 0;
	line-height: 1.2;
}

.dem-agreement-subtitle {
	font-size: 0.85rem;
	color: #64748B;
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0;
	padding: 0;
	line-height: 1.5;
}

.dem-agreement-intro {
	margin-bottom: 30px;
	font-size: 0.95rem;
	line-height: 1.8;
	color: #1E293B;
}

.dem-agreement-intro p {
	margin-bottom: 16px;
}

.dem-agreement-parties {
	padding-left: 20px;
	border-left: 3px solid #0090FF;
	margin: 16px 0;
}

.dem-agreement-parties strong {
	color: #081D39;
}

.dem-agreement-section {
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eef2f6;
}

.dem-section-static {
	border-bottom: 1px solid #eef2f6;
}

.dem-section-title {
	font-size: 1rem;
	font-weight: 700;
	color: #0090FF;
	margin: 0 0 12px;
	padding: 0;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.dem-section-body {
	font-size: 0.92rem;
	line-height: 1.8;
	color: #1E293B;
}

.dem-section-body p {
	margin-bottom: 10px;
}

.dem-section-field-row {
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.dem-field-label {
	font-weight: 500;
	color: #1E293B;
	white-space: normal;
}

.dem-agreement-field {
	border: none;
	border-bottom: 1.5px dashed #94a3b8;
	background: transparent;
	padding: 2px 6px;
	font-size: 0.92rem;
	font-family: "Roboto", "Helvetica", "Arial", sans-serif;
	color: #081D39;
	font-weight: 500;
	transition: border-color 0.2s ease;
	outline: none;
	border-radius: 0;
}

.dem-agreement-field:focus {
	border-bottom-color: #0090FF;
	border-bottom-style: solid;
}

.dem-agreement-field::placeholder {
	color: #b0b8c4;
	font-weight: 400;
	font-size: 0.88rem;
}

.dem-field-inline {
	display: inline;
	width: auto;
	min-width: 80px;
	max-width: 200px;
}

.dem-field-day {
	width: 60px;
	text-align: center;
}

.dem-field-month {
	width: 130px;
}

.dem-field-year {
	width: 90px;
	text-align: center;
}

.dem-field-nationality {
	width: 130px;
}

.dem-field-employment {
	width: 180px;
}

.dem-field-license {
	width: 150px;
}

.dem-field-passport {
	width: 150px;
}

.dem-currency-prefix {
	font-size: 1rem;
	font-weight: 600;
	color: #081D39;
}

.dem-field-amount {
	font-size: 1.1rem;
	font-weight: 600;
	min-width: 120px;
	width: 160px;
	color: #081D39;
}

.dem-field-date {
	min-width: 150px;
	width: 180px;
	font-size: 0.92rem;
	color: #081D39;
}

.dem-agreement-field-borrower {
	min-width: 200px;
	width: 300px;
}

.dem-agreement-field-address {
	min-width: 250px;
	width: 100%;
	max-width: 400px;
}

.dem-field-textarea {
	width: 100%;
	min-height: 54px;
	padding: 8px 10px;
	border: 1.5px dashed #94a3b8;
	border-radius: 6px;
	resize: vertical;
	font-size: 0.92rem;
	font-family: "Roboto", "Helvetica", "Arial", sans-serif;
	color: #081D39;
	font-weight: 400;
	background: #fafcff;
	line-height: 1.6;
}

.dem-field-textarea:focus {
	border-color: #0090FF;
	border-style: solid;
	background: #ffffff;
}

.dem-field-collateral-type {
	min-width: 200px;
	width: 300px;
}

.dem-field-repayment-duration {
	min-width: 250px;
	width: 100%;
	max-width: 400px;
}

.dem-field-repayment-method {
	min-width: 250px;
	width: 100%;
	max-width: 400px;
}

.dem-field-governing {
	min-width: 150px;
	width: 200px;
}

.dem-field-court {
	min-width: 150px;
	width: 200px;
}

.dem-interest-options {
	display: flex;
	gap: 28px;
	margin: 10px 0 14px;
	padding-left: 20px;
}

.dem-radio-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-weight: 500;
	color: #1E293B;
	font-size: 0.92rem;
	position: relative;
}

.dem-radio-field {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.dem-radio-custom {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #94a3b8;
	display: inline-block;
	position: relative;
	transition: border-color 0.2s ease;
	flex-shrink: 0;
}

.dem-radio-field:checked + .dem-radio-custom {
	border-color: #0090FF;
}

.dem-radio-field:checked + .dem-radio-custom::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #0090FF;
}

.signature-block {
	margin-top: 20px;
}

.dem-signature-heading {
	font-size: 0.95rem;
	font-weight: 700;
	color: #081D39;
	margin: 0 0 14px;
	padding-bottom: 6px;
	border-bottom: 2px solid #0090FF;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.dem-signature-block {
	margin-bottom: 28px;
}

.dem-signature-block:last-child {
	margin-bottom: 0;
}

.dem-signature-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.dem-signature-row .dem-field-label {
	min-width: 170px;
	font-weight: 500;
	color: #1E293B;
	font-size: 0.9rem;
}

.dem-field-sig {
	flex: 1;
	min-width: 200px;
	max-width: 350px;
}

.dem-field-sig-date {
	min-width: 150px;
	width: 180px;
}

.dem-sig-prefilled {
	font-weight: 500;
	color: #081D39;
	font-size: 0.92rem;
	padding: 2px 6px;
}

.dem-agreement-footer {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 2px solid #0090FF;
	text-align: center;
}

.dem-agreement-footer-contact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.82rem;
	color: #475569;
	line-height: 1.6;
}

.dem-agreement-doc select.dem-agreement-field {
	border-bottom: 1.5px dashed #94a3b8;
	padding: 2px 6px;
	font-size: 0.92rem;
	font-family: "Roboto", "Helvetica", "Arial", sans-serif;
	color: #081D39;
	font-weight: 500;
	background: transparent;
	cursor: pointer;
	outline: none;
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
}

.dem-agreement-doc select.dem-agreement-field:focus {
	border-bottom-color: #0090FF;
	border-bottom-style: solid;
}

/* ── Header & Footer Images ── */
.dem-agreement-header-img {
	line-height: 0;
	margin-bottom: 0;
	overflow: hidden;
}

.dem-header-image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.dem-agreement-footer-img {
	line-height: 0;
	margin-top: 0;
	padding-top: 0;
	overflow: hidden;
}

.dem-footer-image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* ── Print Styles ── */
@media print {
	html, body {
		background: #ffffff !important;
		height: auto !important;
		overflow: visible !important;
	}

	.sidebar,
	.navbar,
	.dem-agreement-meta,
	.dem-agreement-toolbar,
	.main-panel > .content {
		display: none !important;
	}

	.wrapper,
	.main-panel {
		margin-left: 0 !important;
		margin-top: 0 !important;
		padding-top: 0 !important;
		width: 100% !important;
		background: #ffffff !important;
	}

	.main-panel > .content {
		padding-top: 0 !important;
		margin-top: 0 !important;
	}

	.dem-agreement-doc {
		max-width: 100% !important;
		margin: 0 !important;
		padding: 20px 30px !important;
		border: none !important;
		box-shadow: none !important;
		background: #ffffff !important;
	}

	.dem-agreement-field {
		border-bottom-color: #666 !important;
	}

	.dem-field-textarea {
		border-color: #666 !important;
	}

	@page {
		size: A4;
		margin: 8mm 15mm;
	}

	.dem-agreement-header-img {
		margin-bottom: 6px;
	}

	.dem-header-image {
		max-height: 55px;
		width: 100%;
		object-fit: contain;
	}

	.dem-agreement-title-block {
		padding: 14px 0 12px;
		margin-bottom: 16px;
	}

	.dem-agreement-title {
		font-size: 1.5rem;
		letter-spacing: 0.06em;
	}

	.dem-agreement-subtitle {
		font-size: 0.75rem;
		letter-spacing: 0.1em;
	}

	.dem-agreement-footer-img {
		margin-top: 6px;
	}

	.dem-footer-image {
		max-height: 55px;
		width: 100%;
		object-fit: contain;
	}

	.dem-agreement-footer {
		break-inside: avoid;
	}

	.dem-agreement-section {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.dem-agreement-doc form {
		page-break-before: auto;
	}
}

@media screen and (max-width: 767px) {
	.dem-agreement-doc {
		padding: 24px 20px !important;
	}

	.dem-agreement-title-block {
		padding: 16px 0 14px;
		margin-bottom: 16px;
	}

	.dem-agreement-title {
		font-size: 1.4rem;
		letter-spacing: 0.06em;
	}

	.dem-agreement-subtitle {
		font-size: 0.75rem;
		letter-spacing: 0.08em;
	}

	.dem-agreement-intro {
		font-size: 0.9rem;
	}

	.dem-section-title {
		font-size: 0.9rem;
	}

	.dem-section-body {
		font-size: 0.88rem;
	}

	.dem-field-inline {
		min-width: 60px;
	}

	.dem-agreement-field-borrower {
		min-width: 150px;
		width: 100%;
	}

	.dem-agreement-field-address {
		width: 100%;
	}

	.dem-signature-row .dem-field-label {
		min-width: 130px;
		font-size: 0.85rem;
	}

	.dem-field-sig {
		min-width: 150px;
		width: 100%;
	}

	.dem-interest-options {
		flex-direction: column;
		gap: 10px;
	}
}

@media screen and (max-width: 480px) {
	.dem-login-card__header {
		padding: 0 0 4px;
	}

	.dem-login-card__body {
		padding: 24px 0 0 !important;
	}

	.dem-login-stage {
		max-width: 100%;
	}

	.dem-login-logo {
		max-width: 120px;
		margin-bottom: 20px;
	}

	.dem-login-title {
		font-size: 1.45rem;
	}

	.dem-login-subtitle {
		font-size: 0.85rem;
		max-width: 100%;
	}

	.dem-input-wrap .form-control {
		height: 50px;
		padding: 12px 16px 12px 44px;
		font-size: 0.9rem;
		border-radius: 12px;
	}

	.dem-input-icon {
		left: 14px;
		font-size: 1.1rem;
	}

	.dem-login-actions {
	}

	.dem-login-actions .btn {
		height: 50px;
		font-size: 0.95rem;
		border-radius: 12px;
	}

	.dem-login-caption {
		font-size: 0.76rem;
		margin-top: 18px;
	}

	.dem-login-divider {
		margin: 18px 0;
		font-size: 0.78rem;
	}

	.dem-login-google {
		height: 46px;
		font-size: 0.9rem;
		border-radius: 12px;
	}

	.dem-login-pane--form {
		padding: 20px 16px 8px;
	}

	.dem-login-pane--visual {
		padding: 12px 16px 20px;
	}

	.dem-visual-headline {
		font-size: 1.45rem;
	}

	.dem-visual-body {
		font-size: 0.88rem;
	}

	.dem-glass-image img {
		width: min(100%, 200px);
	}

	.dem-visual-content::before,
	.dem-visual-content::after,
	.dem-visual-orb,
	.dem-vbadge {
		display: none;
	}

	.dem-visual-text {
		margin-bottom: 0;
	}

	.dem-glass-panel {
		border-radius: 18px;
	}

	.dem-glass-stat {
		padding: 8px 10px;
	}

	.dem-glass-value {
		font-size: 0.88rem;
	}
}

/* ===== DEM MONEY responsive hardening ===== */
html,
body {
  overflow-x: hidden;
}

.wrapper,
.main-panel,
.content,
.container-fluid,
.card,
.card-body,
.card-header,
.row,
[class*="col-"] {
  min-width: 0;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive > table,
.table-responsive > .table,
.dataTables_wrapper table {
  min-width: 720px;
}

.loan-application-actions,
.loan-application-actions-block,
.loan-inline-form,
.dt-buttons,
.card .card-footer,
.card .card-body form {
  flex-wrap: wrap;
}

.loan-inline-form .btn,
.loan-application-actions .btn,
.dt-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar {
  z-index: 1035;
}

.navbar.navbar-transparent {
  z-index: 1030;
}

@media screen and (max-width: 991px) {
  .sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 280px !important;
    max-width: 86vw;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
  }

  .sidebar.show,
  .nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 0 20px 40px rgba(8, 29, 57, 0.24);
  }

  .main-panel {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .main-panel > .content {
    padding: 22px 16px 18px !important;
  }

  .navbar.navbar-transparent {
    background: #081D39 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 0;
  }

  .navbar .container-fluid {
    align-items: center;
  }

  .navbar .navbar-wrapper {
    min-width: 0;
    flex: 1 1 auto;
  }

  .navbar .navbar-brand {
    max-width: calc(100vw - 110px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .navbar .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(56, 178, 74, 0.25);
    background: rgba(56, 178, 74, 0.12);
    margin-left: 12px;
    transition: all 0.3s ease;
  }

  .navbar .navbar-toggler .icon-bar {
    background: #38B24A;
  }

  .navbar .navbar-toggler:hover {
    background: #38B24A;
  }

  .navbar .navbar-toggler:hover .icon-bar {
    background: #FFFFFF;
  }

  .navbar .navbar-toggler[aria-expanded="true"],
  .navbar-toggler.active {
    background: rgba(56, 178, 74, 0.18);
    border-color: rgba(56, 178, 74, 0.30);
  }

  .navbar .navbar-toggler[aria-expanded="true"] .icon-bar,
  .navbar-toggler.active .icon-bar {
    background: #38B24A;
  }

  .content .row > [class*="col-"] {
    margin-bottom: 16px;
  }

  .card .card-body,
  .card .card-header {
    overflow-wrap: anywhere;
  }

  .card .table-responsive,
  .dataTables_wrapper {
    overflow-x: auto;
  }
}

@media screen and (max-width: 768px) {
  .btn,
  button,
  input[type="submit"],
  input[type="button"],
  .loan-application-actions .btn,
  .loan-inline-form .btn,
  .dt-buttons .btn {
    white-space: normal;
  }

  .card .card-body {
    padding: 18px 16px;
  }

  .card .card-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dt-buttons,
  .loan-application-actions,
  .loan-application-actions-block {
    gap: 10px;
  }

  .loan-inline-form,
  .loan-application-actions .btn,
  .loan-inline-form .btn,
  .dt-buttons .btn,
  .card .card-body form .btn {
    width: 100%;
  }

  .dataTables_wrapper .dataTables_filter input,
  .dataTables_wrapper .dataTables_length select {
    width: 100%;
  }
}

@media screen and (max-width: 576px) {
  .main-panel > .content {
    padding: 18px 12px 14px !important;
  }

  .navbar .navbar-brand {
    font-size: 0.96rem;
  }

  .table-responsive > table,
  .table-responsive > .table,
  .dataTables_wrapper table {
    min-width: 640px;
  }
}
