﻿/*   PNB Digital Gold Loan - Main Stylesheet*/


:root {
    /* Primary Brand Colors */
    --pnb-maroon: #800020;
    --pnb-maroon-dark: #600018;
    --pnb-maroon-light: #a8002a;
    --pnb-gold: #d4a528;
    --pnb-gold-dark: #b8922d;
    --pnb-gold-light: #f5d76e;
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    /* Status Colors */
    --success: #198754;
    --success-light: #d1e7dd;
    --danger: #dc3545;
    --danger-light: #f8d7da;
    --warning: #ffc107;
    --warning-light: #fff3cd;
    --info: #0dcaf0;
    --info-light: #cff4fc;
    /* Typography */
    --font-primary: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.5;
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    /* Borders & Shadows */
    --border-radius-sm: 0.25rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    /* Branch Layout */
    --sidebar-width: 260px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Page Layout - Sticky Footer Pattern
   -------------------------------------------------------------------------- */
html,
body {
    height: 100%;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto;
    padding: var(--spacing-lg) 0;
}

/* --------------------------------------------------------------------------
   Footer Styles
   -------------------------------------------------------------------------- */
.footer-pnb {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .footer-pnb .footer-row-1 {
        flex-direction: column;
        gap: 2px;
    }
    .footer-pnb .footer-row-1 .footer-sep {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.navbar-pnb {
    background: linear-gradient(135deg, var(--pnb-maroon) 0%, var(--pnb-maroon-dark) 100%);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-sm) 0;
}

.navbar-pnb .navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--white);
    font-weight: 600;
    font-size: 1.25rem;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.navbar-pnb .navbar-brand:hover {
    opacity: 0.9;
    color: var(--white);
}

.navbar-pnb .navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-pnb .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-pnb .brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pnb-gold);
}

.navbar-pnb .brand-subtitle {
    font-size: 0.75rem;
    color: var(--gray-300);
    font-weight: 400;
}

.header-gold-rate {
    background: var(--pnb-gold);
    color: var(--pnb-maroon-dark);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.header-gold-rate i {
    color: var(--pnb-maroon);
}

.header-rate-separator {
    opacity: 0.5;
    margin: 0 2px;
}

/* --------------------------------------------------------------------------
   Card Components
   -------------------------------------------------------------------------- */
.card-dgl {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: none;
}

.card-dgl-header {
    background: linear-gradient(135deg, var(--pnb-gold) 0%, var(--pnb-gold-dark) 100%);
    color: var(--pnb-maroon-dark);
    padding: var(--spacing-md) var(--spacing-lg);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.card-dgl-header i {
    font-size: 1.25rem;
}

.card-dgl-body {
    padding: var(--spacing-xl);
}

.card-dgl-footer {
    background: var(--gray-50);
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
}

/* --------------------------------------------------------------------------
   Form Styles
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gray-800);
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    color: var(--gray-800);
    background-color: var(--white);
    border-color: var(--pnb-maroon-light);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.15);
}

.form-control::placeholder {
    color: var(--gray-500);
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--gray-100);
    opacity: 1;
}

.form-control.is-invalid {
    border-color: var(--danger);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
    padding-right: 2.5rem;
}

.form-control.is-valid {
    border-color: var(--success);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
    padding-right: 2.5rem;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--danger);
}

.form-control.is-invalid~.invalid-feedback {
    display: block;
}

.form-text {
    margin-top: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Input Group */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group>.form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-700);
    text-align: center;
    white-space: nowrap;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
}

.input-group:not(.has-validation)> :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group> :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Select */
.form-select {
    display: block;
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gray-800);
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    appearance: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-select:focus {
    border-color: var(--pnb-maroon-light);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.15);
}

/* --------------------------------------------------------------------------
   Button Styles
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.25);
}

.btn:disabled,
.btn.disabled {
    pointer-events: none;
    opacity: 0.65;
}

/* Primary Button (Maroon) */
.btn-primary,
.btn-dgl-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--white);
    background: linear-gradient(135deg, var(--pnb-maroon) 0%, var(--pnb-maroon-dark) 100%);
    border-color: var(--pnb-maroon);
}

.btn-dgl-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--pnb-maroon) 0%, var(--pnb-maroon-dark) 100%);
    border-color: var(--pnb-maroon);
}

.btn-primary:hover,
.btn-dgl-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--pnb-maroon-light) 0%, var(--pnb-maroon) 100%);
    border-color: var(--pnb-maroon-light);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button (Gold) */
.btn-secondary {
    color: var(--pnb-maroon-dark);
    background: linear-gradient(135deg, var(--pnb-gold) 0%, var(--pnb-gold-dark) 100%);
    border-color: var(--pnb-gold);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--pnb-gold-light) 0%, var(--pnb-gold) 100%);
    border-color: var(--pnb-gold-light);
    color: var(--pnb-maroon-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Outline Buttons */
.btn-outline-primary {
    color: var(--pnb-maroon);
    border-color: var(--pnb-maroon);
    background: transparent;
}

.btn-outline-primary:hover {
    color: var(--white);
    background-color: var(--pnb-maroon);
    border-color: var(--pnb-maroon);
}

.btn-outline-secondary {
    color: var(--gray-700);
    border-color: var(--gray-400);
    background: transparent;
}

.btn-outline-secondary:hover {
    color: var(--gray-800);
    background-color: var(--gray-100);
    border-color: var(--gray-500);
}

/* Button Sizes */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius-sm);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* --------------------------------------------------------------------------
   CAPTCHA Styles
   -------------------------------------------------------------------------- */
.captcha-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.captcha-image-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--gray-100);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
}

.captcha-image {
    height: 50px;
    width: auto;
    border-radius: var(--border-radius-sm);
}

.captcha-refresh {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    color: var(--pnb-maroon);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.captcha-refresh:hover {
    background: var(--pnb-maroon);
    color: var(--white);
    border-color: var(--pnb-maroon);
}

.captcha-refresh.refreshing i {
    animation: spin 0.5s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.captcha-input {
    flex: 1;
    min-width: 150px;
}

/* --------------------------------------------------------------------------
   OTP Input Styles
   -------------------------------------------------------------------------- */
.otp-container {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.otp-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.otp-input:focus {
    border-color: var(--pnb-maroon);
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.15);
    outline: none;
}

.otp-input.filled {
    border-color: var(--pnb-gold);
    background: var(--pnb-gold-light);
}

.otp-timer {
    text-align: center;
    margin-top: var(--spacing-md);
    color: var(--gray-600);
    font-size: 0.9rem;
}

.otp-timer .timer-value {
    font-weight: 600;
    color: var(--pnb-maroon);
}

.resend-link {
    color: var(--pnb-maroon);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.resend-link:hover {
    color: var(--pnb-maroon-dark);
}

.resend-link.disabled {
    color: var(--gray-500);
    pointer-events: none;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Loading Overlay
   -------------------------------------------------------------------------- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.page-loader.active {
    opacity: 1;
    visibility: visible;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    position: relative;
}

.loader-spinner::before,
.loader-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.loader-spinner::before {
    width: 100%;
    height: 100%;
    border: 4px solid var(--gray-200);
}

.loader-spinner::after {
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--pnb-maroon);
    animation: loader-spin 1s linear infinite;
}

@keyframes loader-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    margin-top: var(--spacing-lg);
    color: var(--gray-700);
    font-weight: 500;
    font-size: 1rem;
}

.loader-subtext {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-top: var(--spacing-xs);
}

/* Button Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: loader-spin 0.6s linear infinite;
}

/* --------------------------------------------------------------------------
   Alert Styles
   -------------------------------------------------------------------------- */
.alert {
    position: relative;
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.alert-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.alert-dismiss {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: var(--spacing-xs);
    background: none;
    border: none;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.alert-dismiss:hover {
    opacity: 1;
}

.alert-success {
    color: #0f5132;
    background-color: var(--success-light);
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: var(--danger-light);
    border-color: #f5c2c7;
}

.alert-warning {
    color: #664d03;
    background-color: var(--warning-light);
    border-color: #ffecb5;
}

.alert-info {
    color: #055160;
    background-color: var(--info-light);
    border-color: #b6effb;
}

.loader-box {
    display: flex;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 2000;
    height: 100vh;
    justify-content: space-evenly;
    align-items: center;
    background-color: #00000059;
    transition: 0.3s ease;
    flex-direction: column;
}

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite
}

.swal-loader {
    width: 48px;
    height: 48px;
    margin: 20px auto 0;
    border: 4px solid rgba(0, 0, 0, 0.15);
    border-top-color: #7a1f2b;
    border-radius: 50%;
    animation: swal-spin 1s linear infinite;
}

@keyframes swal-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --------------------------------------------------------------------------
   Customer Type Toggle
   -------------------------------------------------------------------------- */
.customer-type-toggle {
    display: flex;
    background: var(--gray-100);
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-lg);
    gap: var(--spacing-xs);
}

.customer-type-btn {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    background: transparent;
    border-radius: var(--border-radius);
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.customer-type-btn i {
    font-size: 1.5rem;
}

.customer-type-btn span {
    font-size: 0.9rem;
}

.customer-type-btn:hover {
    color: var(--gray-800);
    background: var(--white);
}

.customer-type-btn.active {
    background: var(--pnb-maroon);
    color: var(--white);
    box-shadow: var(--shadow);
}

.customer-type-btn.active i {
    color: var(--pnb-gold);
}

/* --------------------------------------------------------------------------
   Steps Indicator
   -------------------------------------------------------------------------- */
.steps-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-md);
    padding-bottom: 28px;
}

.step-item {
    display: flex;
    align-items: center;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    width: 60px;
    height: 2px;
    background: var(--gray-300);
    margin: 0 var(--spacing-sm);
}

.step-item.completed:not(:last-child)::after {
    background: var(--pnb-maroon);
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.step-item.active .step-circle {
    background: var(--pnb-maroon);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(128, 0, 32, 0.2);
}

.step-item.completed .step-circle {
    background: var(--pnb-gold);
    color: var(--pnb-maroon-dark);
}

.step-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: var(--spacing-xs);
    font-size: 0.75rem;
    color: var(--gray-500);
    white-space: nowrap;
}

.step-item.active .step-label {
    color: var(--pnb-maroon);
    font-weight: 600;
}

.step-item.completed .step-label {
    color: var(--gray-700);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-pnb {
    background: linear-gradient(135deg, var(--pnb-maroon) 0%, var(--pnb-maroon-dark) 100%);
    color: var(--white);
    padding: 5px 0;
    margin-top: auto;
}

.footer-pnb .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 8px;
    text-align: center;
    line-height: 1.4;
}

.footer-pnb .grievance-info {
    font-size: 0.78rem;
    white-space: nowrap;
}

.footer-pnb .grievance-info strong {
    color: var(--pnb-gold);
}

.footer-pnb .grievance-info a {
    color: var(--pnb-gold-light);
    text-decoration: underline;
}

.footer-pnb .grievance-info::after {
    content: " |";
    color: rgba(255, 255, 255, 0.4);
}

.footer-pnb .footer-links {
    display: inline-flex;
    gap: 10px;
    font-size: 0.78rem;
}

.footer-pnb .footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.footer-pnb .footer-links a:hover {
    color: var(--pnb-gold);
}

.footer-pnb .copyright {
    width: 100%;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Gold Rate Display
   -------------------------------------------------------------------------- */
.gold-rate-display {
    background: linear-gradient(135deg, var(--pnb-gold-light) 0%, var(--pnb-gold) 100%);
    border-radius: var(--border-radius);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.gold-rate-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pnb-gold-dark);
    font-size: 1.25rem;
}

.gold-rate-info {
    flex: 1;
}

.gold-rate-label {
    font-size: 0.8rem;
    color: var(--pnb-maroon-dark);
    opacity: 0.8;
}

.gold-rate-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pnb-maroon-dark);
}

.gold-rate-carat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pnb-maroon-dark);
    opacity: 0.7;
    margin-right: 4px;
}

.gold-rate-separator {
    color: var(--pnb-maroon-dark);
    opacity: 0.4;
    font-weight: 300;
    align-self: center;
}

/* --------------------------------------------------------------------------
   Masked Display
   -------------------------------------------------------------------------- */
.masked-value {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--gray-700);
}

.info-display {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.info-display-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: var(--spacing-xs);
}

.info-display-value {
    font-weight: 600;
    color: var(--gray-800);
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .card-dgl-body {
        padding: var(--spacing-lg);
    }

    .customer-type-toggle {
        flex-direction: column;
    }

    .customer-type-btn {
        flex-direction: row;
        justify-content: center;
    }

    .otp-input {
        width: 42px;
        height: 48px;
        font-size: 1.25rem;
    }

    .steps-indicator {
        transform: scale(0.85);
        transform-origin: center;
    }

    .step-item:not(:last-child)::after {
        width: 30px;
    }

    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-image-wrapper {
        justify-content: center;
    }

}

@media (max-width: 576px) {
    .navbar-pnb .brand-text {
        display: none;
    }

    .header-gold-rate {
        font-size: 0.75rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .btn {
        padding: 0.625rem 1.25rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--gray-600);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-primary {
    color: var(--pnb-maroon);
}

.text-secondary {
    color: var(--pnb-gold-dark);
}

.fw-normal {
    font-weight: 400;
}

.fw-medium {
    font-weight: 500;
}

.fw-semibold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mt-5 {
    margin-top: var(--spacing-xl);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

.mb-5 {
    margin-bottom: var(--spacing-xl);
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-inline-flex {
    display: inline-flex;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.gap-1 {
    gap: var(--spacing-xs);
}

.gap-2 {
    gap: var(--spacing-sm);
}

.gap-3 {
    gap: var(--spacing-md);
}

.gap-4 {
    gap: var(--spacing-lg);
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

/* Animation Helpers */
.fade-in {
    animation: fadeIn var(--transition-base) ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp var(--transition-base) ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Visually Hidden (Accessibility) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Visible (Accessibility) */
:focus-visible {
    outline: 2px solid var(--pnb-maroon);
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    .page-loader,
    .navbar-pnb,
    .footer-pnb {
        display: none;
    }

    body {
        background: white;
    }

    .card-dgl {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}

/* ==========================================================================
   Merged from site.css - Font Definitions & Legacy Support
   ========================================================================== */

/* Custom Font Definitions */
@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: normal;
    font-display: block;
    src: url("../fonts/Roboto-Regular.ttf") format('truetype');
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 600;
    font-display: block;
    src: url("../fonts/Roboto-Medium.ttf") format('truetype');
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("../fonts/Roboto-Bold.ttf") format('truetype');
}

/* Legacy Variable Aliases (for backward compatibility) */
:root {
    --pnb-red: var(--pnb-maroon);
    --pnb-yellow: var(--pnb-gold);
    --btn-green: #166f15;
    --bg-white-op: #ffffff;
    --div-pill-bg: #287cd1;
    --body-bg: #fff7e5;
    --btn-red: #dc3545;
    --btn-info: #178298;
    --btn-black: #000;
    --split-left-bg: #fae9de;
}

/* Font Awesome SVG Fixes */
svg:not(:host).svg-inline--fa,
svg:not(:root).svg-inline--fa {
    overflow: visible;
    box-sizing: content-box;
}

.svg-inline--fa {
    display: var(--fa-display, inline-block);
    height: 1em;
    overflow: visible;
    vertical-align: -.125em;
}

/* Hide Number Input Spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Legacy Text Color Class */
.text-color-pnb {
    color: var(--pnb-maroon);
}

/* ==========================================================================
   Journey Split Layout (Progress Indicator)
   ========================================================================== */

.split-container {
    display: flex;
    flex: 1;
}

.split-left {
    width: 15%;
    background-color: var(--split-left-bg);
    padding: var(--spacing-md);
    display: flex;
    position: relative;
}

.progress-holder {
    display: flex;
    flex-direction: column;
    height: 40vh;
    justify-content: space-between;
    width: auto;
    margin: 0 auto;
    font-size: 0.85rem;
    gap: 5px;
    position: sticky;
    top: 12rem;
}

.progress-holder>div {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.separator {
    flex: 1;
    border-left: 3px dashed var(--pnb-maroon);
    margin-left: 0.4rem;
}

.p-indicator {
    display: inline-block;
    width: 15px;
    height: 15px;
    outline: 3px solid var(--pnb-maroon);
    outline-offset: 2px;
    border-radius: 1rem;
}

.p-indicator.active {
    background-color: var(--pnb-gold);
}

.p-indicator.completed {
    background-color: var(--pnb-maroon);
}

.split-right {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding: var(--spacing-lg);
}

.split-right p {
    text-align: justify;
}

/* Required Field Label */
.required-label::after {
    content: '*';
    color: var(--danger);
    vertical-align: super;
    font-size: 0.8rem;
}

/* ==========================================================================
   Login Page Styles
   ========================================================================== */

.login-container {
    display: flex;
    flex: 1;
    flex-wrap: wrap-reverse;
}

.login-container>div {
    flex: 1;
}

.login-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-form-container {
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.heading-color {
    color: var(--pnb-maroon);
    font-weight: bold;
    margin-bottom: var(--spacing-xl);
}

/* Custom Input (Underline Style) */
.custom-input {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--gray-400);
    border-radius: 0;
}

.custom-input:focus {
    outline: none !important;
    box-shadow: none;
    background-color: transparent;
    border-color: var(--pnb-maroon);
    border-width: 2px;
}

/* Legacy Button Styles */
.btn-custom {
    background: var(--pnb-maroon);
    color: white;
    padding: 0.6rem 0.2rem;
    border-width: 2px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
}

.btn-custom-rev {
    background: transparent;
    color: var(--pnb-maroon);
    padding: 0.6rem 0.2rem;
    border-width: 2px;
    border-radius: var(--border-radius);
    border-color: var(--pnb-maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
}

.btn.btn-custom:hover,
.btn.btn-custom:focus-visible,
.btn.btn-custom:active {
    color: var(--pnb-maroon);
    border-color: var(--pnb-maroon);
    background-color: transparent;
}

.btn.btn-custom-rev:hover,
.btn.btn-custom-rev:focus-visible,
.btn.btn-custom-rev:active {
    color: var(--pnb-maroon);
    border-color: var(--pnb-maroon);
    background-color: transparent;
    text-decoration: underline;
}

/* ==========================================================================
   OTP Input (Legacy)
   ========================================================================== */

.otp-holder {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.otp-holder>input {
    border: 1px solid var(--gray-800);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-xs);
    width: 3rem;
    text-align: center;
}

/* Disabled Input Styling */
.input-disabled {
    background: #f2ebda;
}

.input-disabled input[type=text],
.input-disabled input[type=password],
.input-disabled textarea {
    pointer-events: none;
    background: transparent;
}

/* Validation Error Styles */
.input-holder:has(>.input-validation-error) {
    border-color: var(--danger);
}

.field-validation-error {
    color: var(--danger);
    font-size: small;
    font-weight: bold;
    padding-left: var(--spacing-md);
}

/* ==========================================================================
   OTP Modal
   ========================================================================== */

.otp-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.42);
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.OTP-cover {
    background: var(--white);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: var(--border-radius-lg);
    gap: 0.7rem;
    position: relative;
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Carousel Overrides
   ========================================================================== */

.carousel {
    display: flex;
    flex-direction: column-reverse;
}

.carousel-indicators {
    position: relative;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--pnb-maroon);
}

.carousel-control-next,
.carousel-control-prev {
    position: relative;
    width: 10%;
}

.carousel-control-prev {
    justify-content: flex-start;
}

.carousel-control-next {
    justify-content: flex-end;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23800020'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23800020'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ==========================================================================
   KYC Detail Styles
   ========================================================================== */

.floating-label p {
    font-weight: bold;
    margin-top: -5px;
}

.floating-label span {
    font-size: 0.9rem;
    color: var(--gray-700);
    opacity: 0.65;
}

.addr-block {
    border: 1px solid #c9b3b3;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    background-color: rgba(0, 0, 0, 0.06);
}

/* Switch Toggle */
.switch-holder {
    position: relative;
}

.switch-holder input {
    width: 6rem !important;
    height: 2rem !important;
    margin: 0 !important;
    overflow: hidden;
}

.switch-holder input:checked {
    background-color: var(--pnb-gold);
    border-color: var(--pnb-gold);
}

.switch-holder>input::after {
    content: 'No';
    position: absolute;
    transform: translate(38px, 0);
    left: 0;
    vertical-align: middle;
    margin: 3px;
    transition: transform var(--transition-fast);
}

.switch-holder>input:checked::after {
    content: 'Yes' !important;
    transform: translate(20px, 0);
}

/* ==========================================================================
   Success/Reject Status Icons
   ========================================================================== */

.check-success {
    background: var(--success);
    color: white;
    font-size: 2rem;
    padding: 6px 14px;
    border-radius: 6rem;
    outline: 1px solid var(--success);
    outline-offset: 5px;
}

.check-success svg {
    filter: drop-shadow(2px 7px 0px rgba(0, 0, 0, 0.5));
}

.check-reject {
    background: var(--danger);
    color: white;
    font-size: 2rem;
    padding: 6px 20px;
    border-radius: 6rem;
    outline: 1px solid var(--danger);
    outline-offset: 5px;
}

.check-reject svg {
    filter: drop-shadow(2px 7px 0px rgba(0, 0, 0, 0.5));
}

/* ==========================================================================
   Terms & Conditions / MITC Styles
   ========================================================================== */

.terms-container {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-800);
    text-align: justify;
}

.terms-container p {
    margin-bottom: 15px;
    text-align: justify;
}

.terms-container ol {
    padding-left: 22px;
    margin-bottom: 15px;
}

.terms-container ol>li {
    margin-bottom: 12px;
    text-align: justify;
}

.terms-container ol[type="a"] {
    padding-left: 28px;
    margin-top: 10px;
}

.terms-container ol[type="a"]>li {
    margin-bottom: 10px;
    text-align: justify;
}

#termsBox {
    overflow-y: auto;
    padding: 15px;
    max-height: calc(80vh - 60px);
}

.terms-note {
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--pnb-maroon);
}

/* MITC Content */
.mitc-content {
    text-align: justify;
    line-height: 1.6;
    font-size: 0.95rem;
}

.mitc-content ol>li {
    margin-bottom: 12px;
}

.mitc-content ol[type="a"]>li,
.mitc-content ol[type="I"]>li {
    margin-bottom: 8px;
}

.mitc-content button {
    margin-top: 20px;
}

/* Modal Header */
.modal-header {
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--gray-300);
    padding: 15px 20px;
    text-align: center;
}

.modal-header .modal-title {
    font-size: 1.5em;
    color: var(--pnb-maroon);
    font-weight: bold;
    margin: 0;
}

/* ==========================================================================
   Navbar (Legacy/Alternate Styles)
   ========================================================================== */

.body-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.body-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.body-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--body-bg);
}

.nav-Logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-Logo img {
    width: 25%;
}

.Trac-bar {
    background-color: var(--pnb-maroon);
    color: var(--white);
}

.Trac-bar-below::after {
    content: ' ';
    display: block;
    width: 100%;
    height: 0.7rem;
    background-color: var(--pnb-gold);
}

.logout-sec {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--spacing-xl);
    min-width: fit-content;
}

.logout-sec a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}

.sess-elements {
    padding: 0 var(--spacing-md);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--white);
}

/* Footer (Legacy) */
footer#footer {
    padding: var(--spacing-md);
    font-size: smaller;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==========================================================================
   Legacy Loader Animation (PNB Branded)
   ========================================================================== */

.loader::before,
.loader::after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 5px solid #FFF;
    animation: prixClipFix 2s linear infinite;
}

.loader::before {
    border-color: var(--pnb-maroon);
}

.loader::after {
    inset: 8px;
    transform: rotate3d(90, 90, 0, 180deg);
    border-color: var(--pnb-gold);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
    }

    50% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
    }

    75%,
    100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
    }
}

/* ==========================================================================
   Mobile Responsive (Legacy Breakpoints)
   ========================================================================== */

@media all and (max-width: 780px) {
    .navbar-pnb {
        width: 100%;
    }

    .navbar-pnb .journey-name {
        font-size: 1.2rem;
    }

    .nav-Logo {
        flex-wrap: wrap;
    }

    .nav-Logo img {
        width: 20%;
    }

    .navbar-pnb>* {
        width: 100%;
    }

    .login-container {
        width: 100%;
    }

    .login-container>div {
        flex: auto;
    }

    .otp-holder>input {
        width: 2.4rem;
    }

    .split-container {
        flex-direction: column;
    }

    .split-left {
        width: auto;
        display: none;
    }

    .progress-holder {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        height: auto;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .separator {
        border-left: none;
        border-top: 3px dashed var(--pnb-maroon);
        height: 0;
    }

    .p-indicator {
        width: 8px;
        height: 8px;
    }
}

/* ==========================================================================
   Branch/Admin Dashboard Tables
   ========================================================================== */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.primary {
    background: rgba(128, 0, 32, 0.1);
    color: var(--pnb-maroon);
}

.stat-icon.success {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success);
}

.stat-icon.warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.stat-icon.danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Application Table */
.table-applications {
    width: 100%;
    border-collapse: collapse;
}

.table-applications th,
.table-applications td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table-applications th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-applications tbody tr:hover {
    background: var(--gray-50);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: var(--warning-light);
    color: #664d03;
}

.status-badge.approved {
    background: var(--success-light);
    color: #0f5132;
}

.status-badge.rejected {
    background: var(--danger-light);
    color: #842029;
}

.status-badge.disbursed {
    background: rgba(128, 0, 32, 0.1);
    color: var(--pnb-maroon);
}

.status-badge.in-progress {
    background: var(--info-light);
    color: #055160;
}

/* Action Buttons */
.action-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.action-btn.view {
    background: var(--pnb-maroon);
    color: var(--white);
}

.action-btn.view:hover {
    background: var(--pnb-maroon-dark);
}

.action-btn.approve {
    background: var(--success);
    color: var(--white);
}

.action-btn.reject {
    background: var(--danger);
    color: var(--white);
}

/* ==========================================================================
   Jewellery Details Grid
   ========================================================================== */

.jewellery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.jewellery-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    transition: box-shadow var(--transition-fast);
}

.jewellery-card:hover {
    box-shadow: var(--shadow-md);
}

.jewellery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--gray-200);
}

.jewellery-type {
    font-weight: 600;
    color: var(--pnb-maroon);
}

.jewellery-item-number {
    background: var(--gray-100);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    color: var(--gray-600);
}

.jewellery-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.jewellery-detail-label {
    color: var(--gray-600);
    font-size: 0.85rem;
}

.jewellery-detail-value {
    font-weight: 500;
    color: var(--gray-800);
}

.jewellery-value {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-200);
    text-align: right;
}

.jewellery-value-label {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.jewellery-value-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pnb-gold-dark);
}

/* =============================================
   VIEW-SPECIFIC STYLES (Extracted from CSHTML)
   ============================================= */

/* -----------------------------------------
   Branch Login Page
   ----------------------------------------- */
.branch-login-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    min-height: 100vh;
}

.branch-login-container .logo-img {
    max-width: 120px;
    height: auto;
}

.role-info {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.role-badge {
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    flex: 1;
}

.role-badge i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.role-badge small {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.25rem;
    color: #666;
}

.role-badge.maker {
    background: #e3f2fd;
    color: #1565c0;
}

.role-badge.checker {
    background: #e8f5e9;
    color: #2e7d32;
}

#togglePassword {
    border-left: none;
}

#togglePassword:hover {
    background: transparent;
}

/* -----------------------------------------
   Admin Login Page
   ----------------------------------------- */
.admin-login-page {
    --admin-primary: #6a1b9a;
    --admin-secondary: #8e24aa;
    --admin-dark: #4a148c;
}

.admin-login-page body,
.admin-login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--admin-primary, #6a1b9a) 0%, var(--admin-dark, #4a148c) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.admin-login-container {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.admin-login-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.admin-login-header {
    background: linear-gradient(135deg, var(--admin-secondary, #8e24aa), var(--admin-dark, #4a148c));
    padding: 2rem;
    text-align: center;
    color: white;
}

.admin-login-header img {
    height: 50px;
    margin-bottom: 1rem;
}

.admin-login-header h4 {
    margin: 0;
    font-weight: 700;
}

.admin-login-header p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.admin-login-form-body {
    padding: 2rem;
}

.admin-login-card .form-floating label {
    color: #666;
}

.admin-login-card .form-control:focus {
    border-color: var(--admin-primary, #6a1b9a);
    box-shadow: 0 0 0 0.2rem rgba(106, 27, 154, 0.15);
}

.btn-admin {
    background: linear-gradient(135deg, var(--admin-primary, #6a1b9a), var(--admin-secondary, #8e24aa));
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.btn-admin:hover {
    background: linear-gradient(135deg, var(--admin-dark, #4a148c), var(--admin-primary, #6a1b9a));
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(106, 27, 154, 0.4);
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
}

.security-note {
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    margin-top: 1.5rem;
}

/* -----------------------------------------
   Maker/Checker Dashboard
   ----------------------------------------- */
.dashboard-container {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-card.pending {
    border-color: #ffc107;
}

.stat-card.in-progress {
    border-color: #17a2b8;
}

.stat-card.approved {
    border-color: #28a745;
}

.stat-card.disbursed {
    border-color: #007bff;
}

.stat-card.rejected {
    border-color: #dc3545;
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card.pending .stat-icon {
    background: #fff3cd;
    color: #856404;
}

.stat-card.in-progress .stat-icon {
    background: #d1ecf1;
    color: #0c5460;
}

.stat-card.approved .stat-icon {
    background: #d4edda;
    color: #155724;
}

.stat-card.disbursed .stat-icon {
    background: #cce5ff;
    color: #004085;
}

.stat-card.rejected .stat-icon {
    background: #f8d7da;
    color: #721c24;
}

.stat-card .stat-info h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.stat-card .stat-info span {
    color: #666;
    font-size: 0.85rem;
}

.dashboard-tabs {
    background: white;
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 0.5rem 0.5rem 0;
}

.dashboard-tabs .nav-link {
    color: #666;
    border: none;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 0.75rem 1.5rem;
}

.dashboard-tabs .nav-link.active {
    background: #f8f9fa;
    color: var(--pnb-maroon);
    font-weight: 600;
}

.dashboard-tabs .nav-link .badge {
    margin-left: 0.5rem;
    font-size: 0.7rem;
}

.tab-content {
    background: white;
    border-radius: 0 0 0.75rem 0.75rem;
    padding: 1.5rem;
    min-height: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
}

.application-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #666;
}

.application-table td {
    vertical-align: middle;
}

.application-table code {
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}

/* -----------------------------------------
   Admin Dashboard Stats
   ----------------------------------------- */
.stats-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.activity-item:hover {
    background: #f8f9fa;
}

.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: 0.9rem;
}

/* -----------------------------------------
   Health Status Indicators
   ----------------------------------------- */
.health-item {
    margin-bottom: 1rem;
}

.health-item:last-child {
    margin-bottom: 0;
}

/* -----------------------------------------
   Form Elements - Uppercase PAN
   ----------------------------------------- */
input[data-validate="pan"],
input.pan-input {
    text-transform: uppercase;
}

/* -----------------------------------------
   Reports & Audit Logs
   ----------------------------------------- */
.report-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.audit-log-entry {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.audit-log-entry:hover {
    background: #f8f9fa;
}

.audit-log-entry:last-child {
    border-bottom: none;
}

.audit-log-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -----------------------------------------
   Application Details Page
   ----------------------------------------- */
.application-detail-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.application-detail-card .card-header {
    background: linear-gradient(135deg, var(--pnb-maroon), var(--pnb-maroon-dark));
    color: white;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    padding: 1rem 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #666;
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 500;
    color: #333;
}

/* -----------------------------------------
   Verification Checklist
   ----------------------------------------- */
.verification-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.verification-checklist li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.verification-checklist li:last-child {
    border-bottom: none;
}

.verification-checklist .check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.verification-checklist .check-icon.completed {
    background: #d4edda;
    color: #155724;
}

.verification-checklist .check-icon.pending {
    background: #fff3cd;
    color: #856404;
}

.verification-checklist .check-icon.failed {
    background: #f8d7da;
    color: #721c24;
}

/* -----------------------------------------
   Timeline Component
   ----------------------------------------- */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pnb-maroon);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--pnb-maroon);
}

.timeline-item.completed::before {
    background: #28a745;
    box-shadow: 0 0 0 2px #28a745;
}

.timeline-item.pending::before {
    background: #ffc107;
    box-shadow: 0 0 0 2px #ffc107;
}

.timeline-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
}

.timeline-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.timeline-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* -----------------------------------------
   Print Styles for Reports
   ----------------------------------------- */
@media print {

    .no-print,
    .dashboard-header button,
    .btn-group,
    nav,
    footer {
        display: none !important;
    }

    .stats-card,
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    body {
        background: white !important;
    }
}

/* -----------------------------------------
   Loan Calculation Page
   ----------------------------------------- */
.summary-card {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.summary-title {
    color: var(--pnb-maroon);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #dee2e6;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.highlight {
    background: #fff3cd;
    margin: 0.5rem -1.25rem;
    padding: 0.75rem 1.25rem;
}

.summary-item.large strong {
    font-size: 1.25rem;
}

.loan-type-info {
    background: linear-gradient(135deg, var(--pnb-maroon), #d4a84b);
    color: white;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
}

.loan-type-info .info-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.loan-type-info .info-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.loan-type-info .info-rate {
    font-size: 0.9rem;
    opacity: 0.9;
}

.calculation-section {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.section-title {
    color: var(--pnb-maroon);
    margin-bottom: 1rem;
    font-weight: 600;
}

.calculation-results {
    background: #e8f5e9;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.result-item {
    display: flex;
    flex-direction: column;
}

.result-item .label {
    font-size: 0.8rem;
    color: #666;
}

.result-item .value {
    font-size: 1.1rem;
    font-weight: 600;
}

.result-item.highlight {
    grid-column: span 2;
    background: #28a745;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.result-item.highlight .value {
    font-size: 1.5rem;
}

.emi-section,
.bullet-section {
    text-align: center;
}

.emi-amount .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pnb-maroon);
}

.emi-details,
.bullet-section {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
}

.emi-details .detail,
.bullet-section .detail {
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.action-buttons .btn {
    flex: 1;
    max-width: 200px;
}

/* -----------------------------------------
   Customer Journey Common Styles
   ----------------------------------------- */
.compact-form .form-label {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.compact-form .form-control,
.compact-form .form-select {
    padding: 0.5rem 0.75rem;
}

.info-card {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.info-card-title {
    font-weight: 600;
    color: var(--pnb-maroon);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-size: 0.9rem;
}

.info-value {
    font-weight: 500;
}

/* Time Slot Selection */
.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.time-slot-btn {
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.time-slot-btn:hover {
    border-color: var(--pnb-maroon);
}

.time-slot-btn.active {
    background: var(--pnb-maroon);
    color: white;
    border-color: var(--pnb-maroon);
}

.time-slot-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Date Selection */
.date-selection {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.date-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.date-btn:hover {
    border-color: var(--pnb-maroon);
}

.date-btn.active {
    background: var(--pnb-maroon);
    color: white;
    border-color: var(--pnb-maroon);
}

/* Branch Selection Card */
.branch-card {
    border: 2px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.branch-card:hover {
    border-color: var(--pnb-maroon);
}

.branch-card.selected {
    border-color: var(--pnb-maroon);
    background: rgba(128, 0, 32, 0.05);
}

.branch-name {
    font-weight: 600;
    color: #333;
}

.branch-address {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.branch-distance {
    font-size: 0.8rem;
    color: var(--pnb-maroon);
    margin-top: 0.5rem;
}

/* Confirmation Page */
.confirmation-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #d4edda;
    color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.confirmation-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    text-align: center;
    margin-bottom: 0.5rem;
}

.confirmation-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.application-id-display {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.application-id-label {
    font-size: 0.85rem;
    color: #666;
}

.application-id-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pnb-maroon);
    font-family: monospace;
}

/* Legal Heir Form */
.heir-form-section {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.heir-section-title {
    font-weight: 600;
    color: var(--pnb-maroon);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pnb-maroon);
}

/* Search Results */
.search-result-item {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.search-result-item:hover {
    border-color: var(--pnb-maroon);
    background: rgba(128, 0, 32, 0.02);
}

.search-result-item.selected {
    border-color: var(--pnb-maroon);
    background: rgba(128, 0, 32, 0.05);
}

/* Verification Status */
.verification-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.85rem;
}

.verification-status.verified {
    background: #d4edda;
    color: #155724;
}

.verification-status.pending {
    background: #fff3cd;
    color: #856404;
}

.verification-status.failed {
    background: #f8d7da;
    color: #721c24;
}

/* =============================================
   ADMIN LAYOUT STYLES
   ============================================= */

/* Admin CSS Variables */
.admin-layout {
    --admin-primary: #6a1b9a;
    --admin-secondary: #8e24aa;
    --admin-dark: #4a148c;
    --admin-light: #f3e5f5;
    --sidebar-width: 260px;
}

.admin-layout body,
body.admin-layout {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

/* Admin Sidebar */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width, 260px);
    height: 100vh;
    background: linear-gradient(180deg, var(--admin-dark, #4a148c), var(--admin-primary, #6a1b9a));
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand img {
    height: 45px;
    margin-bottom: 0.5rem;
}

.sidebar-brand h5 {
    color: white;
    margin: 0;
    font-weight: 700;
}

.sidebar-brand small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-section {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem 0.5rem;
    margin-top: 0.5rem;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: white;
}

.sidebar-nav .nav-link i {
    font-size: 1.1rem;
    width: 24px;
}

/* Admin Main Content */
.admin-main {
    margin-left: var(--sidebar-width, 260px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Admin Top Navbar */
.admin-navbar {
    background: white;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-search {
    position: relative;
    width: 300px;
}

.navbar-search input {
    padding-left: 2.5rem;
    border-radius: 2rem;
    border: 1px solid #e0e0e0;
}

.navbar-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.user-dropdown img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* Admin Cards */
.admin-layout .card {
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-layout .card-header {
    background: transparent;
    border-bottom: 1px solid #eee;
    padding: 1rem 1.25rem;
}

/* Admin Buttons */
.admin-layout .btn-primary {
    background: var(--admin-primary, #6a1b9a);
    border-color: var(--admin-primary, #6a1b9a);
}

.admin-layout .btn-primary:hover {
    background: var(--admin-dark, #4a148c);
    border-color: var(--admin-dark, #4a148c);
}

.admin-layout .btn-outline-primary {
    color: var(--admin-primary, #6a1b9a);
    border-color: var(--admin-primary, #6a1b9a);
}

.admin-layout .btn-outline-primary:hover {
    background: var(--admin-primary, #6a1b9a);
    border-color: var(--admin-primary, #6a1b9a);
}

/* Admin Footer */
.admin-footer {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: auto;
}

/* Admin Mobile Responsive */
.sidebar-toggle {
    display: none;
}

@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }
}

/* =============================================
   BRANCH LAYOUT STYLES
   ============================================= */

/* Branch CSS Variables */
.branch-layout {
    --branch-primary: #1a237e;
    --branch-secondary: #283593;
    --branch-accent: #ff6f00;
}

.branch-layout body,
body.branch-layout {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

/* Branch Navbar */
.branch-navbar {
    background: linear-gradient(135deg, var(--branch-primary, #1a237e), var(--branch-secondary, #283593));
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.branch-navbar .navbar-brand {
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.branch-navbar .navbar-brand img {
    height: 40px;
}

.branch-navbar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
}

.branch-navbar .nav-link:hover {
    color: white;
}

.branch-navbar .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

/* Branch Buttons */
.branch-layout .btn-primary {
    background: var(--branch-primary, #1a237e);
    border-color: var(--branch-primary, #1a237e);
}

.branch-layout .btn-primary:hover {
    background: var(--branch-secondary, #283593);
    border-color: var(--branch-secondary, #283593);
}

/* Branch Footer */
.branch-footer {
    flex-shrink: 0;
    background: #f8f9fa;
    padding: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: auto;
    border-top: 1px solid #e9ecef;
}

/* Branch Page Wrapper Override */
.branch-layout .page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.branch-layout .main-content {
    flex: 1 0 auto;
}

.gold-rate-icon i {
    color: #b8860b; /* gold color */
    font-size: 22px;
}



.gold-rate-icon {
    width: 44px;
    height: 44px;
    background: #fff6d5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .gold-rate-icon svg {
        width: 28px;
        height: 28px;
    }


/* =====================================================
   CONSOLIDATED INLINE STYLES
   Extracted from .cshtml view files
   ===================================================== */

/* -----------------------------------------------------
   Branch Portal Layout (_LayoutBranch.cshtml)
   ----------------------------------------------------- */
body.branch-portal {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f5f6fa;
    min-height: 100vh;
}

/* Header */
.bp-header {
    background: linear-gradient(135deg, var(--pnb-maroon) 0%, var(--pnb-maroon-dark) 100%);
    color: white;
    padding: 0.75rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.bp-header .brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.bp-header .brand small {
    font-weight: 400;
    opacity: 0.8;
}

.bp-header .user-info {
    font-size: 0.875rem;
}

.bp-header .user-info .employee-name {
    font-weight: 600;
}

/* Sidebar */
.bp-sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - 56px);
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    z-index: 1020;
    transition: transform 0.3s ease;
}

.bp-sidebar .user-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.bp-sidebar .user-panel .role-badge {
    background: var(--pnb-maroon);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.bp-sidebar .menu-section {
    padding: 0.5rem 0;
}

.bp-sidebar .menu-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #6c757d;
    padding: 0.75rem 1rem 0.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bp-sidebar .nav-link {
    padding: 0.75rem 1rem;
    color: #333;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.bp-sidebar .nav-link:hover {
    background: #f8f9fa;
    border-left-color: var(--pnb-gold);
}

.bp-sidebar .nav-link.active {
    background: rgba(128, 0, 32, 0.08);
    border-left-color: var(--pnb-maroon);
    color: var(--pnb-maroon);
    font-weight: 600;
}

.bp-sidebar .nav-link i {
    width: 24px;
    margin-right: 0.5rem;
}

/* Main Content */
.bp-main {
    margin-left: var(--sidebar-width);
    margin-top: 56px;
    padding: 1.5rem;
    min-height: calc(100vh - 56px);
}

.bp-main.no-sidebar {
    margin-left: 0;
}

/* Cards */
.bp-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.bp-card-header {
    background: #f8f9fa;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
}

.bp-card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.bp-card-body {
    padding: 1.25rem;
}

/* Buttons */
.btn-pnb {
    background: var(--pnb-maroon);
    border-color: var(--pnb-maroon);
    color: white;
}

.btn-pnb:hover {
    background: var(--pnb-maroon-dark);
    border-color: var(--pnb-maroon-dark);
    color: white;
}

.btn-outline-pnb {
    color: var(--pnb-maroon);
    border-color: var(--pnb-maroon);
}

.btn-outline-pnb:hover {
    background: var(--pnb-maroon);
    color: white;
}

/* Footer */
.bp-footer {
    background: #333;
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 0.8rem;
    margin-left: var(--sidebar-width);
}

.bp-footer.no-sidebar {
    margin-left: 0;
}

/* Mobile responsiveness */
@media (max-width: 991.98px) {
    .bp-sidebar {
        transform: translateX(-100%);
    }

    .bp-sidebar.show {
        transform: translateX(0);
    }

    .bp-main,
    .bp-footer {
        margin-left: 0;
    }
}

/* Page loader */
#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    z-index: 9999;
    display: none;
}

#pageLoader.show {
    display: flex !important;
}

/* -----------------------------------------------------
   Customer Portal Layout (_LayoutCustomerPortal.cshtml)
   ----------------------------------------------------- */
.cp-header {
    background: linear-gradient(135deg, #800020 0%, #4a0012 100%);
    padding: 0.75rem 0;
    color: white;
}

.cp-header .brand-text {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.75rem;
}

.cp-header .brand-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cp-header .brand-subtitle {
    display: block;
    font-size: 0.75rem;
    opacity: 0.85;
}

.cp-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cp-user-info .user-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.cp-user-info .btn-logout {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.cp-user-info .btn-logout:hover {
    background: rgba(255,255,255,0.25);
}

.cp-main {
    min-height: calc(100vh - 160px);
    padding: 1.5rem 0;
    background: #f5f6fa;
}

/* -----------------------------------------------------
   Maker Step Progress (_MakerStepProgress.cshtml)
   ----------------------------------------------------- */
.maker-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    gap: 0;
}
.maker-step {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
}
.maker-step.disabled {
    pointer-events: none;
    opacity: 0.5;
}
.maker-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 2px solid #dee2e6;
    background: #fff;
    transition: all 0.2s;
    flex-shrink: 0;
}
.maker-step.completed .maker-step-circle {
    background: #800020;
    border-color: #800020;
    color: #fff;
}
.maker-step.active .maker-step-circle {
    background: #fff;
    border-color: #800020;
    color: #800020;
    box-shadow: 0 0 0 3px rgba(128,0,32,0.15);
}
.maker-step-label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.4rem;
    white-space: nowrap;
}
.maker-step.active .maker-step-label { color: #800020; }
.maker-step.completed .maker-step-label { color: #800020; }
.maker-step-connector {
    width: 50px;
    height: 2px;
    background: #dee2e6;
    margin: 0 0.35rem;
    flex-shrink: 0;
}
.maker-step-connector.done {
    background: #800020;
}
@media (max-width: 768px) {
    .maker-step-label { display: none; }
    .maker-step-connector { width: 30px; }
}

/* -----------------------------------------------------
   Common DataTable & Form Styles
   ----------------------------------------------------- */
#applicationsTable th,
#usersTable th,
#shroffTable th,
#datewiseTable th {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

#applicationsTable td,
#usersTable td,
#shroffTable td,
#datewiseTable td {
    font-size: 0.875rem;
    vertical-align: middle;
}

.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.dataTables_filter input {
    border-radius: 6px;
}

.dataTables_length select {
    border-radius: 6px;
}

/* Form readonly/disabled states */
#addBranchForm .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

#addBranchForm .form-control:read-only,
#addBranchForm .form-control:disabled,
#addBranchForm .form-select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

#formSection .form-label {
    font-size: 0.875rem;
}

#formSection .form-control,
#formSection .form-select {
    font-size: 0.875rem;
}

#formSection .form-control[readonly] {
    background-color: #e9ecef;
}

#formSection .form-control:disabled,
#formSection .form-select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Form switch PNB branding */
.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
}

.form-switch .form-check-input:checked {
    background-color: var(--pnb-maroon);
    border-color: var(--pnb-maroon);
}

/* Summary card values */
.summary-card .value {
    font-size: 2rem;
    font-weight: 700;
}

/* View Application list group */
.page-view-application .list-group-item {
    border-left: 3px solid #0d6efd;
}

/* -----------------------------------------------------
   Branch Login (Branch/Login.cshtml)
   Scoped under body.admin-login
   ----------------------------------------------------- */
body.admin-login {
    background-color: #faf5f0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Illustrations */
.bg-illustrations {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-illustrations svg {
    position: absolute;
    opacity: 0.12;
}

.illust-chart { left: 2%; bottom: 8%; width: 280px; }
.illust-person { left: 50%; bottom: 0; transform: translateX(-50%); width: 220px; }
.illust-browser { right: 3%; bottom: 18%; width: 240px; }
.illust-search-left { left: -1%; bottom: 35%; width: 160px; }
.illust-search-right { right: 5%; top: 35%; width: 130px; }
.illust-gauge { right: 12%; bottom: 8%; width: 120px; }
.illust-stars-left { left: 8%; bottom: 48%; width: 80px; }
.illust-stars-center { left: 48%; bottom: 28%; width: 60px; }
.illust-gear { right: 3%; bottom: 2%; width: 100px; }
.illust-chat { left: 0; bottom: 50%; width: 80px; }
.illust-sliders { right: 1%; top: 50%; width: 100px; }

@media (max-width: 768px) {
    .bg-illustrations svg { opacity: 0.06; }
}

/* Login Card */
.login-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.branch-login .login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(128, 0, 32, 0.08);
    max-width: 440px;
    width: 100%;
    padding: 3rem 2.5rem;
    text-align: center;
}

.branch-login .login-card .logo-wrap {
    margin-bottom: 1.5rem;
}

.branch-login .login-card .logo-wrap img {
    height: 60px;
}

.branch-login .login-card h2 {
    color: #800020;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.branch-login .login-card .subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Form inputs */
.bp-input-group {
    position: relative;
    margin-bottom: 1.25rem;
    text-align: left;
}

.bp-input-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid #c4a07a;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bp-input-group input::placeholder {
    color: #999;
}

.bp-input-group input:focus {
    border-color: #800020;
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #800020;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
}

.toggle-password:hover {
    color: #5c0017;
}

/* Sign in / Login button */
.btn-signin {
    width: 100%;
    padding: 0.85rem;
    background: #800020;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: 0.5rem;
}

.btn-signin:hover {
    background: #600018;
}

.btn-signin:active {
    transform: scale(0.99);
}

.btn-signin:disabled {
    background: #b3808e;
    cursor: not-allowed;
}

.btn-signin .spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 2px;
}

/* OTP Section (shared) */
.otp-section {
    display: none;
}

.otp-section.show {
    display: block;
}

/* Branch Login OTP */
.branch-login .otp-input-field {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    font-weight: 600;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid #c4a07a;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.branch-login .otp-input-field:focus {
    border-color: #800020;
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

.branch-login .otp-timer {
    font-size: 0.9rem;
    color: #666;
}

.branch-login .otp-timer.expired {
    color: #dc3545;
}

.branch-login .masked-mobile {
    background: #f8f4ef;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-block;
    border: 1px solid #e8ddd0;
}

.branch-login .resend-btn {
    color: #800020;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}

.branch-login .resend-btn.disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

.branch-login .btn-back {
    width: 100%;
    padding: 0.7rem;
    background: transparent;
    color: #800020;
    border: 1.5px solid #c4a07a;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.branch-login .btn-back:hover {
    background: #faf5f0;
    border-color: #800020;
}

.branch-login .otp-phone-icon {
    font-size: 3rem;
    color: #800020;
}

.branch-login .divider {
    border: none;
    border-top: 1px solid #e8ddd0;
    margin: 1.25rem 0;
}

/* -----------------------------------------------------
   Branch Dashboard (Branch/Dashboard.cshtml)
   ----------------------------------------------------- */
.page-branch-dashboard .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* -----------------------------------------------------
   Branch Selection (Branch/Selection.cshtml)
   ----------------------------------------------------- */
.search-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
}
.search-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}
.search-tab:hover {
    color: var(--primary-color);
}
.search-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-type-toggle {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.type-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.type-btn:hover {
    border-color: #800020;
}
.type-btn.active {
    background: #800020;
    color: white;
    border-color: #800020;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    gap: 12px;
}
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}
.search-input {
    flex: 1;
    padding-left: 48px !important;
}
.btn-search {
    padding: 12px 24px;
    background: #800020;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    min-width: 100px;
    transition: all 0.3s ease;
}
.btn-search:hover {
    background: #5c0017;
}
.search-hint {
    font-size: 0.85rem;
    color: #666;
}

.dropdown-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px !important;
}
.dropdown-select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.search-results {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
}
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #e9ecef;
}
.results-count {
    font-weight: 500;
    color: #666;
}
.btn-clear-results {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
}
.results-list {
    max-height: 300px;
    overflow-y: auto;
}
.result-item {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.result-item:hover {
    background: #e8f5e9;
    border-left-color: #28a745;
}
.result-item.selected {
    background: #d4edda;
    border-left: 3px solid #28a745;
}
.result-item.selected .result-branch-name::after {
    content: ' \2713';
    color: #28a745;
    font-weight: 700;
}
.result-item:last-child {
    border-bottom: none;
}
.result-branch-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.result-branch-address {
    font-size: 0.85rem;
    color: #666;
}
.result-branch-info {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #999;
}

.selected-branch-card {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
}
.selected-header {
    background: #28a745;
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.selected-body {
    padding: 16px;
}
.selected-body .branch-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}
.selected-body .branch-info {
    display: grid;
    gap: 8px;
}
.selected-body .info-row {
    display: flex;
    gap: 8px;
}
.selected-body .info-label {
    font-weight: 500;
    color: #666;
    min-width: 80px;
}
.selected-body .info-value {
    color: #333;
}
.btn-change-branch {
    margin-top: 16px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #28a745;
    color: #28a745;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}
.btn-change-branch:hover {
    background: #28a745;
    color: white;
}

.land-district-card {
    background: #fff3cd;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
}
.land-district-header {
    background: #ffc107;
    color: #333;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.land-district-body {
    padding: 16px;
}
.district-name {
    margin: 12px 0;
    font-size: 1.1rem;
}
.confirmation-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.confirm-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.confirm-option:hover {
    background: #ffeaa8;
}
.confirm-option input {
    width: 18px;
    height: 18px;
}

.page-branch-selection .info-card {
    background: #e3f2fd;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
}
.page-branch-selection .info-icon {
    color: #1976d2;
    flex-shrink: 0;
}
.page-branch-selection .info-content {
    font-size: 0.9rem;
    color: #333;
}
.page-branch-selection .info-content ul {
    padding-left: 20px;
}
.page-branch-selection .info-content li {
    margin-bottom: 4px;
}

.no-results {
    padding: 32px;
    text-align: center;
    color: #666;
}
.no-results svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

/* -----------------------------------------------------
   Maker Customer Details (Maker/CustomerDetails.cshtml)
   ----------------------------------------------------- */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-maker-details .form-control:disabled,
.page-maker-details .form-control[readonly] {
    background-color: #f8f9fa;
}

.page-maker-details .badge.bg-warning {
    font-size: 0.65rem;
    font-weight: normal;
}

#districtSuggestions .list-group-item {
    cursor: pointer;
    padding: 0.5rem 1rem;
}

#districtSuggestions .list-group-item:hover {
    background-color: #f8f9fa;
}

.district-match-score {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* -----------------------------------------------------
   Maker Final Review (Maker/FinalReview.cshtml)
   ----------------------------------------------------- */
.undertaking-checkbox {
    width: 1.5em;
    height: 1.5em;
    margin-top: 0.1em;
}

.page-maker-final-review .form-check-label {
    padding-left: 0.5rem;
    line-height: 1.8;
}

.page-maker-final-review .card {
    border: 2px solid #dee2e6;
    transition: border-color 0.2s;
}

.page-maker-final-review .card:has(.undertaking-checkbox:checked) {
    border-color: #28a745;
    background-color: #f8fff8;
}

/* -----------------------------------------------------
   CustomerESign Login (CustomerESign/Login.cshtml)
   ----------------------------------------------------- */
body.ce-login {
    background: linear-gradient(135deg, #800020 0%, #4a0012 100%);
    min-height: 100vh;
}

body.ce-login .cp-main {
    background: transparent !important;
}

.ce-login .login-container {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.ce-login .login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 440px;
    width: 100%;
    overflow: hidden;
}

.ce-login .login-header {
    background: linear-gradient(135deg, #800020 0%, #600018 100%);
    padding: 2rem;
    text-align: center;
    color: white;
}

.ce-login .login-header h4 { margin: 0; font-weight: 600; }
.ce-login .login-header p { margin: 0.5rem 0 0; opacity: 0.8; font-size: 0.9rem; }

.ce-login .login-body { padding: 2rem; }

.ce-login .form-control:focus {
    border-color: #800020;
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 32, 0.15);
}

.btn-login {
    background: #800020;
    border-color: #800020;
    color: white;
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

.btn-login:hover { background: #600018; border-color: #600018; color: white; }

.ce-login .otp-input-box {
    width: 45px;
    height: 50px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.ce-login .otp-input-box:focus {
    border-color: #800020;
    box-shadow: 0 0 0 0.15rem rgba(128, 0, 32, 0.2);
}

.ce-login .masked-mobile {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.ce-login .resend-btn { color: #800020; cursor: pointer; text-decoration: underline; }
.ce-login .resend-btn.disabled { color: #999; cursor: not-allowed; text-decoration: none; }

.captcha-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.captcha-container img {
    height: 40px;
    border-radius: 4px;
}

.input-hint {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* -----------------------------------------------------
   CustomerESign Dashboard (CustomerESign/Dashboard.cshtml)
   ----------------------------------------------------- */
.page-ce-dashboard .dashboard-header {
    background: white;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-ce-dashboard .dashboard-header h5 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.page-ce-dashboard .dashboard-header .app-id {
    font-size: 0.85rem;
    color: #800020;
    font-weight: 600;
}

.page-ce-dashboard .nav-tabs .nav-link {
    color: #555;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.page-ce-dashboard .nav-tabs .nav-link:hover {
    color: #800020;
    border-bottom-color: rgba(128, 0, 32, 0.3);
}

.page-ce-dashboard .nav-tabs .nav-link.active {
    color: #800020;
    font-weight: 600;
    border-bottom-color: #800020;
    background: transparent;
}

.page-ce-dashboard .tab-content {
    background: white;
    border-radius: 0 0 10px 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.page-ce-dashboard .info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.page-ce-dashboard .info-card .label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.page-ce-dashboard .info-card .value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-initiated { background: #cce5ff; color: #004085; }
.status-completed { background: #d4edda; color: #155724; }
.status-failed { background: #f8d7da; color: #721c24; }
.status-unsigned { background: #e2e3e5; color: #383d41; }
.status-signed { background: #d4edda; color: #155724; }

.doc-preview-card {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    background: #fafbfc;
}

.doc-preview-card svg { opacity: 0.4; margin-bottom: 1rem; }

.btn-esign {
    background: #800020;
    border-color: #800020;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-esign:hover { background: #600018; border-color: #600018; color: white; transform: translateY(-1px); }

.btn-preview {
    background: white;
    border: 2px solid #800020;
    color: #800020;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
}

.btn-preview:hover { background: #800020; color: white; }

.esign-success {
    text-align: center;
    padding: 2rem;
}

.esign-success svg { margin-bottom: 1rem; }

.esign-success h4 {
    color: #155724;
    font-weight: 600;
}

.doc-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.doc-info-row:last-child { border-bottom: none; }
.doc-info-row .doc-label { color: #6c757d; font-size: 0.9rem; }
.doc-info-row .doc-value { font-weight: 600; color: #333; }

/* -----------------------------------------------------
   CKYCR Verification (CustomerJourney/CKYCRVerification.cshtml)
   ----------------------------------------------------- */
.success-banner, .warning-banner, .info-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
}
.success-banner {
    background: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.2);
}
.warning-banner {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
}
.info-banner {
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.2);
}
.ckyc-details-card {
    border: 1px solid var(--dgl-border);
    border-radius: 8px;
    overflow: hidden;
}
.ckyc-header {
    background: var(--dgl-primary);
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ckyc-body {
    padding: 16px;
    background: white;
}