/* ============================================
   Partner Portal V2 - Modern UI Styles
   Based on reference design
   ============================================ */

/* Prevent horizontal scrolling on mobile */
html {
    /*overflow-x: hidden;*/
    max-width: 100vw;
}

body {
    /*overflow-x: hidden;*/
    max-width: 100vw;
    width: 100%;
}

/* Position all modals slightly above center */
.modal-dialog,
.modal-dialog-centered {
    margin-top: 80px !important;
    margin-bottom: auto !important;
    display: block !important;
    align-items: unset !important;
    min-height: unset !important;
}
.submitWidth{
    width:100px;
}
@media (min-width: 576px) {
    .modal-dialog,
    .modal-dialog-centered {
        margin-top: 100px !important;
    }
}

a{text-decoration: none;}
button{
    padding: 3px 12px !important;
    height: 32px;
    border-radius: 6px!important;
    font-size: 14px !important;
}
.btn{
       border-radius: 4px!important;
    font-size: 14px !important;
}
.link-primary {
    color: #0d6efd;
    cursor: pointer;
}
.digitalContent{
    padding: 0 20px;
}
.forgotBtnwidth {
    width: 93px;
    text-align:center;
    }
.cancelBtn .btn-outline-secondary {
    padding: 8px 24px;
    width: 93px;
    border-radius: 8px !important;
    font-weight: 600;
}
.bannerDots{
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10;
}
table button{
        padding: 0px 6px !important;
    height: 20px;
    font-size: 11px !important;
}
.header-right .dropdown-toggle::after {display: none;}
/* Message Modal Styles */
.message-modal-dialog {
    max-width: 400px;
}

.message-modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.message-modal-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}
.form-control[type=file]:not(:disabled):not([readonly]) {
        height: 32px;
    padding: 5px 12px;
}
.message-modal-icon svg {
    width: 40px;
    height: 40px;
}

.message-modal-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.message-modal-text {
    font-size: 14px;
    color: #64748B;
    margin: 0;
    word-wrap: break-word;
}

.btn-success-modal {
    background-color: #10B981 !important;
    border: none !important;
    color: #FFFFFF !important;
    padding: 8px 32px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    cursor: pointer;
}

.btn-success-modal:hover {
    background-color: #059669 !important;
    color: #FFFFFF !important;
}

.btn-error-modal {
    background-color: #EF4444 !important;
    border: none !important;
    color: #FFFFFF !important;
    padding: 8px 32px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    cursor: pointer;
}

.btn-error-modal:hover {
    background-color: #DC2626 !important;
    color: #FFFFFF !important;
}

.btn-warning-modal {
    background-color: #F59E0B !important;
    border: none !important;
    color: #FFFFFF !important;
    padding: 8px 32px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    cursor: pointer;
}

.btn-warning-modal:hover {
    background-color: #D97706 !important;
    color: #FFFFFF !important;
}

.btn-info-modal {
    background-color: #3B82F6 !important;
    border: none !important;
    color: #FFFFFF !important;
    padding: 8px 32px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    cursor: pointer;
}

.btn-info-modal:hover {
    background-color: #2563EB !important;
    color: #FFFFFF !important;
}

/* Cheque Image Container */
.cheque-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.cheque-image-container img {
    width: 100% !important;
    height: auto !important;
    max-height: 450px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Heading color */
.text-orange {
    color: #1E293B !important;
}

.spinner-border.text-orange {
    color: #ff8a4c !important;
}

/* CSS Variables for easy theming */
:root {
    --primary-orange: #ff8a4c;
    --primary-orange-hover: #ffa94d;
    --primary-orange-light: #FFF8F1;
    --primary-purple: #7C3AED;
    --primary-purple-light: #F5F3FF;
    --bg-light: #F8FAFC;
    --bg-sidebar: #FFFFFF;
    --text-dark: #1E293B;
    --text-body: #374151;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --border-color: #E2E8F0;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --card-shadow-hover: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --sidebar-width: 240px;
    --sidebar--width:0px;
    --header-height: 50px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset and Base */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    background: var(--bg-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* White background for login page only */
body.login-page {
    background: white;
}

/* Footer on login page should have same background */
body.login-page .footer-v2 {
    background: white;
    border-top-color: transparent;
}

html, body.v2 {
    height: 100%;
}

/* ============================================
   Header V2
   ============================================ */
.header-v2 {
    background: #FFFFFF;
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed !important;
    justify-content: space-between;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 1050;
}

.header-v2 .header-left {
    display: flex;
    align-items: center;
}

.header-v2 .header-logo {
    display: flex;
    align-items: center;
}

.header-v2 .header-center {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    margin-left: 10px;
}

.header-v2 .menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.header-v2 .menu-toggle:hover {
    background: var(--bg-light);
}

.header-v2 .menu-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-dark);
}

.header-v2 .logo-img {
    height: 40px;
    width: auto;
}

.header-v2 .header-logo {
    display: flex;
    align-items: center;
}

.header-v2 .portal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.header-v2 .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-v2 .header-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.header-v2 .header-link:hover {
    color: var(--primary-orange);
}

/* ============================================
   Sidebar Navigation V2
   ============================================ */
.sidebar-v2 {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    position: fixed !important;
    top: var(--header-height) !important;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
    z-index: 1040;
    transition: transform 0.3s ease;
}

.sidebar-v2.collapsed {
    transform: translateX(-100%);
}

.sidebar-v2 .welcome-section {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-v2 .welcome-text {
    font-size: 13px;
    color: var(--text-muted);
}

.sidebar-v2 .partner-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 2px;
    text-transform: uppercase;
        white-space: nowrap;
    text-overflow: ellipsis;
    width: 100px;
    display: inline-block;
    overflow: hidden
}

/* Navigation Tree */
.nav-tree {
    padding: 10px 0;
}

.nav-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item-v2 {
    margin: 2px 0;
}

.nav-link-v2 {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--text-body);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.nav-link-v2:hover {
        background: #fffaf8;
    color: #ff8a4c;
}

.nav-link-v2.active {
    background: var(--bg-light);
    color: var(--text-dark);
    border-left-color: var(--primary-orange);
}

.nav-link-v2 .nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    color: var(--text-dark);
    flex-shrink: 0;
}

.nav-link-v2 .nav-text {
    flex: 1;
}

.nav-link-v2 .nav-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
    color: var(--text-muted);
}

.nav-link-v2.expanded .nav-arrow {
    transform: rotate(180deg);
}

/* Submenu */
.nav-submenu {
    display: none;
    padding-left: 0;
}

.nav-submenu.show {
    display: block;
}

.nav-submenu .nav-link-v2 {
    padding-left: 48px;
    font-size: 13px;
}

/*.nav-submenu .nav-link-v2:before {
    content: '';
    position: absolute;
    left: 28px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-color);
    transform: translateY(-50%);
}*/

.nav-submenu .nav-link-v2.active:before {
    background: var(--primary-orange);
}

/* Category Headers */
.nav-category {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

/* ============================================
   Main Content Area V2
   ============================================ */
.main-content-v2 {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 10px 24px;
    min-height: calc(100vh - var(--header-height));
    transition: margin-left 0.3s ease;
    flex: 1;
/*    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));*/
    box-sizing: border-box;
    overflow-x: hidden;
}

.main-content-v2.expanded {
    margin-left: 0;
}

/* Page Header */
.page-header-v2 {
    display: flex;
    justify-content: space-between;
   align-items: anchor-center;
    margin-bottom: 10px;
}

.page-title-v2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.page-subtitle-v2 {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Action Buttons */
.btn-v2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-v2-primary {
    background: var(--primary-orange);
    color: #FFFFFF;
}

.btn-v2-primary:hover {
    background: var(--primary-orange-hover);
    color: #FFFFFF;
}

.btn-v2-outline {
    background: #FFFFFF;
    color: var(--primary-orange);
    border: 1px solid var(--primary-orange);
}

.btn-v2-outline:hover {
    background: var(--primary-orange-light);
}

.btn-v2 svg {
    width: 18px;
    height: 18px;
}

/* Cards */
.card-v2 {
        padding: 10px;
    background: #FFFFFF;
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.card-v2-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-v2-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.card-v2-body {
    padding: 24px;
}

.card-v2-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* ============================================
   Data Table V2
   ============================================ */
.table-v2 {
    width: 100%;
    border-collapse: collapse;
}

.table-v2 th {
    background: var(--bg-light);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-body);
    border-bottom: 1px solid var(--border-color);
}

.table-v2 td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-body);
}

.table-v2 tbody tr:hover {
    background: var(--bg-light);
}

.table-v2 tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.badge-v2 {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-v2-success {
    background: #DCFCE7;
    color: #166534;
}

.badge-v2-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-v2-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-v2-info {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-v2-pending {
    background: #F3F4F6;
    color: #4B5563;
}

/* ============================================
   Search & Filters V2
   ============================================ */
.filters-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 8px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
}

.filter-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
    transition: border-color 0.2s;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.filter-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: #FFFFFF url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") right 8px center no-repeat;
    background-size: 20px;
    appearance: none;
    cursor: pointer;
}

/* ============================================
   Footer V2
   ============================================ */
.footer-v2 {
    margin-left: var(--sidebar-width);
        padding: 10px 24px;
    font-size: 14px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: #FFFFFF;
    transition: margin-left 0.3s ease;
}
.partnerFooter{
   margin-left: var(--sidebar--width); 
}
.footer-v2.expanded {
    margin-left: 0;
}

.footer-v2 .cca-text {
    color: var(--text-dark);
    font-size: 13px;
    margin-bottom: 4px;
    text-align: center;
}

.footer-v2 .cca-text a {
    color: var(--text-dark);
    text-decoration: underline;
}

.footer-v2 .copyright {
    color: var(--text-muted);
    font-size: 12px;
}

/* ============================================
   Form Controls V2
   ============================================ */
.form-group-v2 {
    margin-bottom: 16px;
}

.form-label-v2 {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-control-v2 {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-control-v2:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* ============================================
   Radio Buttons V2 (Orange)
   ============================================ */
.radio-group-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.radio-v2,
.radio-label-v2 {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-body);
}

.radio-v2 input[type="radio"],
.radio-label-v2 input[type="radio"],
.radio-group-v2 input[type="radio"],
input[type="radio"].radio-v2-input {
    width: 18px;
    height: 18px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #D1D5DB;
    border-radius: 50%;
    background: #FFFFFF;
    position: relative;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.radio-v2 input[type="radio"]:checked,
.radio-label-v2 input[type="radio"]:checked,
.radio-group-v2 input[type="radio"]:checked,
input[type="radio"].radio-v2-input:checked {
    border-color: var(--primary-orange);
}

.radio-v2 input[type="radio"]:checked::after,
.radio-label-v2 input[type="radio"]:checked::after,
.radio-group-v2 input[type="radio"]:checked::after,
input[type="radio"].radio-v2-input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary-orange);
    border-radius: 50%;
}

.radio-v2 input[type="radio"]:focus,
.radio-label-v2 input[type="radio"]:focus,
.radio-group-v2 input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* ============================================
   Checkboxes V2 (Orange)
   ============================================ */
.checkbox-v2,
.checkbox-label-v2 {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-body);
}

.checkbox-v2 input[type="checkbox"],
.checkbox-label-v2 input[type="checkbox"],
input[type="checkbox"].checkbox-v2-input {
    width: 18px;
    height: 18px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    background: #FFFFFF;
    position: relative;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.checkbox-v2 input[type="checkbox"]:checked,
.checkbox-label-v2 input[type="checkbox"]:checked,
input[type="checkbox"].checkbox-v2-input:checked {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.checkbox-v2 input[type="checkbox"]:checked::after,
.checkbox-label-v2 input[type="checkbox"]:checked::after,
input[type="checkbox"].checkbox-v2-input:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-v2 input[type="checkbox"]:focus,
.checkbox-label-v2 input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Checkbox with background container */
.checkbox-container-v2 {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #F8FAFC;
    padding: 12px;
    border-radius: 6px;
}

.checkbox-container-v2 label {
    font-size: 13px;
    color: #475569;
    margin: 0;
    cursor: pointer;
}

/* Select V2 */
.form-select-v2 {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.form-select-v2:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Price Summary V2 */
.price-summary-v2 {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.price-summary-v2 .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.price-summary-v2 .price-row:last-child {
    border-bottom: none;
}

.price-summary-v2 .price-total {
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-orange);
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid var(--primary-orange);
}

.price-summary-v2 .price-value {
    font-weight: 500;
}

/* Address Display */
.address-display {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: var(--text-dark);
    min-height: 60px;
}

/* Alert Styles V2 */
.alert-info-v2 {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    padding: 12px 16px;
    color: #1E40AF;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-info-v2 svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-warning-v2 {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    padding: 12px 16px;
    color: #92400E;
}

/* Search Box V2 */
.search-box-v2 {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 12px;
    gap: 8px;
}

.search-box-v2 svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input-v2 {
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 14px;
    outline: none;
    width: 200px;
}

.search-input-v2::placeholder {
    color: var(--text-light);
}

/* Textarea V2 */
textarea.form-control-v2 {
    resize: none;
    min-height: 80px;
}

/* ============================================
   Utilities
   ============================================ */
.text-orange {
    color: var(--primary-orange) !important;
}

.bg-orange-light {
    background: white !important;
}


.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mt-md-0{margin-top: 0 !important; }
.p-0 { padding: 0 !important; }
.p-1 { padding: 8px !important; }
.p-2 { padding: 16px !important; }
.p-3 { padding: 24px !important; }

.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.gap-1 { gap: 8px !important; }
.gap-2 { gap: 16px !important; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
    .sidebar-v2 {
        transform: translateX(-100%);
        z-index: 1000;
        transition: transform 0.3s ease;
    }

    .sidebar-v2.show {
        transform: translateX(0);
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    }

    /* Sidebar overlay for mobile */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-content-v2,
    .footer-v2 {
        margin-left: 0;
        width: 100%;
        max-width: 100vw;
    }

    .main-content-v2 {
        padding: 16px;
    }

    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100%;
    }

    /* Ensure all containers fit within viewport */
    .card-v2,
    .table-container,
    #grid {
        max-width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
       .form-grid {
    gap: 0px!important;
    margin-top: 0px!important;
}
.pagination-controls {
    gap: 5px!important;
}
.applicationSec .card-section-body, .table-card {
    padding: 10px 12px 0px 12px!important;
}
.card-title {
    font-size: 14px!important;
}
    .profile-grid {
    gap: 8px;
}
    .page-header-v2 {
        flex-direction: column;
        margin-bottom: 15px;
        gap: 16px;
    }

    .filters-v2 {
        flex-direction: column;
    }

    .filter-input,
    .filter-select {
        width: 100%;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Loading Spinner */
.spinner-v2 {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   jQuery UI Datepicker Overrides
   ============================================ */
.ui-datepicker {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow-hover);
    padding: 10px;
    z-index: 1100 !important;
}

.ui-datepicker-header {
    background: var(--primary-orange);
    color: #fff;
    border: none;
    border-radius: 6px 6px 0 0;
    padding: 8px;
}
.ui-datepicker .ui-datepicker-prev:hover {
    color: var(--primary-orange);
        background-color: var(--primary-orange);
    border: var(--primary-orange);
}
.ui-datepicker-title {
    color: #fff;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
    top: 0px !important;
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
    background-image: none !important;
}

.ui-datepicker-prev:before {
    content: '\2039';
    font-size: 20px;
    color: #fff;
}

.ui-datepicker-next:before {
    content: '\203A';
    font-size: 20px;
    color: #fff;
}

.ui-datepicker td a {
    text-align: center;
    padding: 5px;
    border-radius: 4px;
}

.ui-datepicker td a:hover {
    background: var(--primary-orange-light);
    color: var(--primary-orange);
}

.ui-datepicker td a.ui-state-active {
    background: var(--primary-orange);
    color: #fff;
}

.ui-datepicker-trigger {
    cursor: pointer;
    margin-left: 5px;
    vertical-align: middle;
    display: none !important; /* Hide the default image trigger */
}

/* Custom date input with calendar icon */
.filter-input[type="text"][id*="Date"],
input.filter-input.hasDatepicker,
.filter-input.date-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23F97316' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px;
    cursor: pointer;
        font-size: 13px;
}

/* Hide jQuery UI datepicker button image */
img.ui-datepicker-trigger {
    display: none !important;
}

/* ============================================
   Filter Card Improvements
   ============================================ */
.filters-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
}

.filter-input {
    padding: 6px 7px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    min-width: 130px;
    height: 32px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.filter-input::placeholder {
    color: var(--text-light);
}

.filter-select {
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    height: 42px;
    min-width: 120px;
    background: #FFFFFF url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") right 10px center no-repeat;
    background-size: 20px;
    appearance: none;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Filter buttons alignment */
.filter-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Card body padding adjustment */
.card-v2-body {
    padding: 20px 24px;
}

/* Buttons in filter area */
.filters-v2 .btn-v2 {
    height: 42px;
    white-space: nowrap;
}

.filters-v2 .btn-v2-primary {
    min-width: 100px;
}

/* Export button alignment */
.filter-export {
    margin-left: auto;
}

/* ============================================
   WhatsApp Overlay
   ============================================ */
.whatsapp-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1050;
}

.whatsapp-overlay img {
    width: 40px;
    height: 40px;
}

.whatsapp-overlay:hover {
    background-color: #128c7e;
}

/* ============================================
   Table V2 Custom (for Java generated tables)
   ============================================ */
.table-v2-custom {
    width: 100% !important;
    border-collapse: collapse;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
}

.table-v2-custom thead tr {
    background: #F8FAFC;
}

.table-v2-custom th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-body);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.table-v2-custom td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-body);
    vertical-align: middle;
}

.table-v2-custom tbody tr:hover {
    background: #F8FAFC;
}

.table-v2-custom tbody tr:last-child td {
    border-bottom: none;
}

.table-v2-custom th:last-child,
.table-v2-custom td:last-child {
    width: auto;
    text-align: center;
}

/* ============================================
   Action Buttons V2
   ============================================ */
/*.btn-view {
    background: #ff8a4c !important;
    color: white !important;
    border: none !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.2s;
}*/

.btn-view:hover {
    background: #ff8a4c !important;
    transform: translateY(-1px);
    color: white !important;
}

.btn-view:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-action {
    background: white;
    color: var(--primary-orange);
    border: 1px solid var(--primary-orange);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-action:hover {
    background: var(--primary-orange-light);
}

.btn-secondary-v2 {
    background: white;
    color: var(--text-body);
    border: 1px solid #D1D5DB;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    /*transition: all 0.2s;*/
}

.btn-secondary-v2:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

.btn-primary-v2 {
    background: #ff8a4c;
    color: white;
    border: none;
    padding:8px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    /*transition: all 0.2s;*/
}

.btn-primary-v2:hover {
    background: #e07a42;
}

/* Sign In Button for Login Page */
.btn-signin {
    width: 100%;
    padding: 14px 24px;
    background: #ff8a4c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    /*transition: all 0.2s;*/
}

.btn-signin:hover {
    background: #e07a42;
}

.btn-signin:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Get OTP Button for Login Page */
.btn-get-otp {
    padding: 10px 16px;
    min-width: 110px;
    background: #ff8a4c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-get-otp:hover {
    background: #e07a42;
}

.btn-get-otp:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #ff8a4c;
}

/* ============================================
   Info Boxes V2
   ============================================ */
.info-box-v2 {
    background: #FEFCFB;
    border: 1px solid #fdb77a;
    border-radius: 6px;
    padding: 4px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box-v2 .label {
    color: #9A3412;
    font-size: 14px;
}

.info-box-v2 .value {
    color: #c75a0a;
    font-size: 18px;
    font-weight: 700;
}

.important-box-v2 {
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    border-radius: 6px;
    padding: 14px;
}

.important-box-v2 h6 {
    color: #92400E;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.important-box-v2 ul {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    color: #78350F;
    line-height: 1.4;
}

/* ============================================
   Bank Details Section V2
   ============================================ */
.bank-section-v2 {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    border-radius: 6px;
  padding: 5px 14px 10px;
}

.bank-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bank-header-v2 h6 {
    color: #166534;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.bank-header-v2 a {
    color: var(--primary-orange);
    font-size: 13px;
    text-decoration: none;
}

.bank-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.bank-item-v2 {
    background: white;
        padding: 4px 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    border-radius: 6px;
}

.bank-item-v2 .label {
    font-size: 11px;
    color: #64748B;
    margin-bottom: 0px;
}

.bank-item-v2 .value {
    font-size: 13px;
    color: #1E293B;
    font-weight: 500;
}

@media (max-width: 992px) {
    .bank-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Commission Box V2
   ============================================ */
.commission-box-v2 {
    background: #FEFCFB;
    border: 1px solid #fdb77a;
    border-radius: 8px;
    padding: 16px;
    display: none;
}

.commission-box-v2.show {
    display: block;
}

.commission-box-v2 h6 {
    color: #9A3412;
    font-weight: 600;
    margin: 0 0 12px 0;
    font-size: 14px;
}

.commission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.commission-item {
    text-align: center;
}

.commission-item .label {
    font-size: 12px;
    color: #78350F;
    margin-bottom: 4px;
}

.commission-item .value {
    font-size: 16px;
    font-weight: 700;
    color: #c75a0a;
}

/* ============================================
   Form Row Inline V2
   ============================================ */
.form-row-v2 {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}
.card-v2 .form-row-v2 {
        align-items: flex-start;
}
.form-row-v2 > label {
    width: 140px;
    color: var(--text-body);
    font-size: 14px;
    margin: 0;
    flex-shrink: 0;
}

.form-row-v2 .form-control {
    max-width: 220px;
    border-radius: 6px;
    border: 1px solid #D1D5DB;
    padding: 8px 12px;
    font-size: 14px;
}

.form-row-v2 .form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    outline: none;
}

/* ============================================
   Info Display Row V2
   ============================================ */
.info-row-v2 {
    display: flex;
    margin-bottom: 2px;
}

.info-row-v2 label {
    width: 120px;
    color: #64748B;
    font-size: 14px;
    margin: 0;
}

.info-row-v2 span {
    color: #1E293B;
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   Sample Invoice Box V2
   ============================================ */
.sample-invoice-v2 {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 14px;
    /*text-align: center;*/
}

.sample-invoice-v2 h6 {
    color: #475569;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.sample-invoice-v2 img {
      max-width: 100%;
    width: 100%;
    max-height: unset;
    border-radius: 0px;
    margin-bottom: 10px;
}

.sample-invoice-v2 a {
    color: var(--primary-orange);
    font-size: 13px;
    text-decoration: none;
}

/* ============================================
   Page Title Variants
   ============================================ */
.page-title-dark {
    color: #1E293B;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/*.page-title-orange {
    color: var(--primary-orange);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}*/

/* ============================================
   Dividers V2
   ============================================ */
.divider-v2 {
    width: 1px;
    background: #E2E8F0;
    align-self: stretch;
    margin: 0 16px;
}

.divider-horizontal-v2 {
    height: 1px;
    background: #E2E8F0;
    margin: 16px 0;
}

/* ============================================
   Modal V2 Styles
   ============================================ */
.modal-content-v2 {
    border-radius: 12px;
    border: none;
}

.modal-header-v2 {
    border-bottom: 1px solid #E2E8F0;
    padding: 16px 20px;
}

.modal-body-v2 {
    padding: 20px;
}

.modal-footer-v2 {
    border-top: 1px solid #E2E8F0;
    padding: 16px 20px;
}

/* ============================================
   Empty State V2
   ============================================ */
.empty-state-v2 {
    text-align: center;
    padding: 40px 20px;
    color: #64748B;
}

.empty-state-v2 svg {
    width: 48px;
    height: 48px;
    color: #D1D5DB;
    margin-bottom: 12px;
}

.empty-state-v2 p {
    margin: 0;
    font-size: 14px;
}

/* ============================================
   Layout Wrapper V2
   ============================================ */
.layout-wrapper-v2 {
    display: flex;
    min-height: 100vh;
}

.content-wrapper {
    padding: 0;
}

/* Hide reCAPTCHA badge - it causes layout issues */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    position: fixed !important;
    right: -300px !important;
}

/* User Dropdown Menu */
.header-v2 .dropdown-menu {
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #E2E8F0;
}

.header-v2 .dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
}

.header-v2 .dropdown-item:hover {
    background: #FEFCFB;
    color: #ff8a4c;
}

/* ============================================
   Dashboard Page Styles
   ============================================ */
.page-title-orange {
    font-size: 26px;
    font-weight: 700;
    /*color: #ff8a4c;*/
    margin: 0;
}

.page-subtitle {
    font-size: 14px;
    color: #64748B;
    margin-top: 4px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.8fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    min-height: 135px;
    display: flex;
    flex-direction: column;
}

.stat-card-icon {
    position: absolute;
    top: 10px;
    right: 5px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.stat-card-icon.orange {
    background: #fff0e6;
    color: #ff8a4c;
}

.stat-card-icon.purple {
    background: #F3E8FF;
    color: #9333EA;
}

.stat-card-icon.green {
    background: #DCFCE7;
    color: #16A34A;
}

.stat-card-label {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 4px;
}

.ytd-badge {
    display: inline-block;
    color: #8f67d0;
    font-size: 10px;
    font-weight: 500;
    margin-left: 4px;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.stat-card-value {
    font-size: 26px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 4px;
}

.stat-card-change {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-card-change.positive {
    color: #16A34A;
}

.stat-card-change.negative {
    color: #DC2626;
}

/* Commission Breakdown Styles */
.stat-card-breakdown {
    margin-top: 0px;
    margin-bottom: 8px;
    flex-grow: 1;
}

.commission-row-triple {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 8px 0;
}

.commission-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    align-items: flex-start;
}

.commission-label {
    font-size: 13px;
    color: #64748B;
    font-weight: 500;
    text-align: left;
}

.commission-value {
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.commission-badge {
    font-size: 11px;
    font-weight: 500;
    color: #64748B;
}

.stat-card-subtitle {
       margin-top: 10px;
    padding-top: 0px;
        line-height: 16px;
}

/* Card Section */
.card-section {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 20px;
}

.card-section-compact {
    padding: 8px 16px;
}

.card-section-header {
    color: #000;
    font-size: 18px;
    font-weight: 600;
    padding: 20px 24px 0 24px;
}

.two-column-grid .card-section-body {
    padding: 5px 24px 4px 24px;
    overflow-x: auto;
}

.card-section-body {
    padding: 0px 24px 10px 24px;
    overflow-x: auto;
}

/* Two Column Layout */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Recent Activity */
.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #E2E8F0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    margin: 0 0 4px 0;
}

.activity-info span {
   font-size: 10px;
    color: #94A3B8;
    font-weight: 400;
    margin-left: 8px;
}

.activity-time {
    font-size: 12px;
    color: #64748B;
    font-weight: 400;
    margin-left: 8px;
}

/*.activity-time::before {
    content: "•";
    margin-right: 8px;
    color: #CBD5E1;
}*/

/* Skeleton Loading States */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton-text {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    color: transparent !important;
    border-radius: 4px;
    display: inline-block;
    min-width: 60px;
    min-height: 1em;
}

.skeleton-item {
    opacity: 0.7;
}

.skeleton-line-lg {
    width: 180px;
    height: 18px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-badge {
    width: 80px;
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 20px;
}

.skeleton-bar {
    opacity: 0.5;
}

/* Stat Change Indicators */
.stat-increase {
    color: #10B981;
    font-weight: 600;
    font-size: 12px;
}

.stat-decrease {
    color: #EF4444;
    font-weight: 600;
    font-size: 12px;
}

.stat-neutral {
    color: #6B7280;
    font-weight: 600;
    font-size: 12px;
}

.activity-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.activity-badge.pending {
    background: #FEF3C7;
    color: #92400E;
}

.activity-badge.completed {
    background: #D1FAE5;
    color: #065F46;
}

.activity-badge.in-progress {
    background: #DBEAFE;
    color: #1E40AF;
}

/* Quick Stats */
.quick-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}
.quick-stats-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.quick-stats-tabs {
    display: flex;
    gap: 4px;
    background: #F1F5F9;
    padding: 4px;
    border-radius: 8px;
}

.quick-stats-tab {
    padding: 6px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-stats-tab.active {
    background: #FFFFFF;
    color: #1E293B;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #E2E8F0;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row-label {
    font-size: 14px;
    color: #1E293B;
}

.stat-row-value {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
}

.stat-row-bar {
    flex: 1;
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    margin: 0 16px;
    overflow: hidden;
}

.stat-row-bar-fill {
    height: 100%;
    border-radius: 3px;
}

.stat-row-bar-fill.orange {
    background: #ff8a4c;
}

.stat-row-bar-fill.blue {
    background: #3B82F6;
}

.stat-row-bar-fill.green {
    background: #16A34A;
}

.stat-row-bar-fill.purple {
    background: #9333EA;
}

/* Sales Table */
.sales-table {
    width: 100%;
    border-collapse: collapse;
}

.sales-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: #64748B;
    border-bottom: 1px solid #E2E8F0;
}

.sales-table tbody td {
    padding: 6px 16px;
    font-size: 13px;
    color: #1E293B;
    border-bottom: 1px solid #E2E8F0;
}

.sales-table tbody tr:last-child td {
    border-bottom: none;
}

.sales-table tbody td:first-child {
    font-weight: 500;
}

.sales-table tbody tr.total-row td {
    font-weight: 600;
    color: #ff8a4c;
    
}

/* ============================================
   Commission Report / Filter Page Styles
   ============================================ */
.page-title-dark {
    font-size: 18px;
     font-weight: 600;
    color: #000;
    margin: 0;
}

.filter-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 8px 20px;
    margin-bottom: 10px;
    overflow-x: auto;
}

.filter-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    align-items: center;
    min-width: max-content;
}

.filter-row .filter-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/*.filter-row .filter-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748B;
    white-space: nowrap;
}*/

.filter-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.input-field {
    padding: 8px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    color: #1E293B;
    background: #FFFFFF;
}

.input-field:focus {
    outline: none;
    border-color: #ff8a4c;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.select-field {
    padding: 8px 30px 8px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    background: #FFFFFF url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") right 8px center no-repeat;
    background-size: 16px;
    appearance: none;
    cursor: pointer;
}

.btn-search {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: #ff8a4c;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-search:hover {
    background: #e57a3c;
}

.btn-reset {
    padding: 10px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1E293B;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-reset:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.btn-export {
    padding: 10px 16px;
    border: 1px solid #ff8a4c;
    border-radius: 8px;
    background: #FFFFFF;
    color: #ff8a4c;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-export:hover {
    background: #FEFCFB;
}

.btn-claim {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #ff8a4c;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-claim:hover {
    background: #e57a3c;
    transform: translateY(-1px);
}

.table-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
}

.grid-controls {
    padding: 16px 20px;
    border-top: 1px solid #E2E8F0;
    background: #F8FAFC;
}

.grid-info {
    font-size: 13px;
    color: #64748B;
}

.grid-show {
    font-size: 13px;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.grid-show select {
    padding: 6px 10px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 13px;
}

.empty-state {
    color: #64748B;
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: #CBD5E1;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 15px;
    margin: 0;
}

.empty-state h3 {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 8px;
}

.badge-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-pending {
    background: #FEF3C7;
    color: #92400E;
}

.badge-approved {
    background: #D1FAE5;
    color: #065F46;
}

.badge-rejected {
    background: #FEE2E2;
    color: #991B1B;
}

/* ============================================
   Manage Partner Page Styles
   ============================================ */
.grid-controls-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.grid-info-v2 {
    font-size: 0.875rem;
    color: #64748b;
}

.grid-show-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #64748b;
}

.grid-show-v2 select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.875rem;
}

.pagination-v2 {
    display: flex;
    gap: 4px;
}

/* ============================================
   Pagination JS Plugin Override (Orange Theme)
   ============================================ */
.paginationjs {
    margin-top: 10px;
}

.paginationjs .paginationjs-pages li {
    border-color: #E2E8F0;
}

.paginationjs .paginationjs-pages li > a {
    color: #374151;
    border-radius: 0;
}

.paginationjs .paginationjs-pages li > a:hover {
    background: #FEFCFB;
    color: #ff8a4c;
}

.paginationjs .paginationjs-pages li.active > a {
    background: #ff8a4c;
    color: #FFFFFF;
}

.paginationjs .paginationjs-pages li:first-child,
.paginationjs .paginationjs-pages li:first-child > a {
    border-radius: 6px 0 0 6px;
}

.paginationjs .paginationjs-pages li:last-child {
    border-color: #E2E8F0;
    border-radius: 0 6px 6px 0;
}

.paginationjs .paginationjs-pages li:last-child > a {
    border-radius: 0 6px 6px 0;
}

.paginationjs .paginationjs-go-input > input[type=text] {
    border-color: #E2E8F0;
    border-radius: 6px;
}

.paginationjs .paginationjs-go-input > input[type=text]:focus {
    border-color: #ff8a4c;
    outline: none;
}

.paginationjs .paginationjs-go-button > input[type=button] {
    background: #ff8a4c;
    border-color: #ff8a4c;
    color: #FFFFFF;
    border-radius: 6px;
}

.paginationjs .paginationjs-go-button > input[type=button]:hover {
    background: #e57a3c;
}

.grid-pagination {
    display: flex;
    align-items: center;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    font-size: 14px;
    color: #64748B;
}

.add-partner-form {
    background: #FEFCFB;
    border: 1px solid #fed8a8;
    border-radius: 12px;
    padding: 10px 20px;
    margin-bottom: 20px;
    display: none;
}

.add-partner-form.show {
    display: block;
}
.add-partner-form .btn-primary-v2 {
    width: 70px;
        padding: 6px 12px !important;
    height: 32px;
    border-radius: 4px !important;
    font-size: 14px !important;
}


.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.active {
    background: #DCFCE7;
    color: #166534;
}

.status-badge.pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.inactive {
    background: #FEE2E2;
    color: #991B1B;
}

/* ============================================
   Price List Page Styles
   ============================================ */
.price-value {
    font-weight: 600;
    color: #059669;
}

.product-name {
    font-weight: 500;
    color: #1E293B;
}

.pricing-policy {
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: 8px;
    padding: 8px 20px;
    margin-top: 20px;
}

.pricing-policy-title {
    font-weight: 600;
    color: #92400E;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-policy-text {
    font-size: 0.8125rem;
    color: #78350F;
    line-height: 1.6;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #fed8a8;
    border-top-color: #ff8a4c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

/* ============================================
   My Profile Page Styles
   ============================================ */
.profile-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
        padding: 0px 15px 10px;
    width: 100%;
}
.partnerVerificationSec .profile-card {
        padding: 10px 15px;
    border-radius: 6px;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}
.partnerVerificationSec .profile-card-title {
   margin-bottom: 10px;
    gap: 4px;
}
.partnerVerificationSec .profile-card-header, .partnerVerificationSec .profile-card-body {
    padding: 0px;
}
.profile-card-header {
    /*padding: 0px 24px;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.profile-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #ff8a4c;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.profile-card-title svg {
    width: 20px;
    height: 20px;
    color: #ff8a4c;
}

.profile-card-body {
    /*padding: 0 24px 14px 24px;*/
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.profile-grid-3 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.profile-label {
    font-size: 13px;
    color: #1E293B;
    font-weight: 600;
}

.profile-value {
    font-size: 14px;
    color: #64748B;
    font-weight: 400;
}

.edit-icon-btn {
    background: transparent;
    border: none;
    color: #ff8a4c;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-icon-btn:hover {
    color: #ffa94d;
}

.edit-icon-btn svg {
    width: 18px;
    height: 18px;
}

.view-link {
    color: #ff8a4c;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.view-link:hover {
    text-decoration: underline;
}

.password-hint {
    font-size: 12px;
    color: #ff8a4c;
    margin-top: 0px;
}

.security-form-group {
    margin-bottom: 10px;
}

/* ============================================
   Form Section Divider
   ============================================ */
.form-section {
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid #E2E8F0;
}

/* ============================================
   Responsive Adjustments for Page Styles
   ============================================ */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .profile-grid, .profile-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
 
    .btn-refer-customer {
        margin-bottom: 10px;
    }
    .page-header-v2 {
    display: block;
    }
    .page-title-v2 {
    font-size: 22px;
    }
    .card-section-header {padding:0;}
    .quick-stats-header {
    display: block;
    }
    .stat-card-value {
    font-size: 22px;
    }
    .activity-item {
    display: block;
    }
    .card-section-header {
    padding: 10px;
}
.activity-info span {
    display: block;
        margin-left: 0px;
}
.page-subtitle {
    font-size: 14px;
    margin: 0 0 10px 0;
}
    .header-v2 .portal-title, .header-v2 .header-right  {
        display:none;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .two-column-grid {
        grid-template-columns: 1fr;
    }
    .profile-grid, .profile-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-title-orange {
        font-size: 21px!important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .profile-grid, .profile-grid-3 {
        grid-template-columns: 1fr;
            gap: 10px;
    }
}

/* ============================================
   Grid Container - Scrollable Tables
   ============================================ */
#grid {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-height:310px; 
    overflow:auto;
}
.tableScroll{
      max-height:300px; 
    overflow:auto;
}
#grid table,
#grid .table-v2-custom,
.table-v2-custom {
    width: max-content !important;
    min-width: 100%;
    table-layout: auto !important;
    border-collapse: collapse;
}

#grid table th,
#grid table td,
#grid .table-v2-custom th,
#grid .table-v2-custom td,
.table-v2-custom th,
.table-v2-custom td {
    white-space: nowrap !important;
    padding: 6px 16px !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

#grid table th,
#grid .table-v2-custom th,
.table-v2-custom th {
    background: #F8FAFC !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #374151 !important;
}

#grid table td,
#grid .table-v2-custom td,
.table-v2-custom td {
    font-size: 13px !important;
    color: #374151 !important;
    vertical-align: middle !important;
}

/* ============================================
   Logout Page Styles
   ============================================ */
.logout-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 0px 20px;
}

.logout-card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px 48px;
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.logout-icon {
    width: 64px;
    height: 64px;
    background: #FEFCFB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.logout-icon svg {
    width: 32px;
    height: 32px;
    color: #ff8a4c;
}

.logout-title {
    font-size: 24px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logout-message {
    font-size: 16px;
    color: #64748B;
    margin-bottom: 32px;
}

.logout-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-logout {
    background: #ff8a4c;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
}

.btn-logout:hover {
    background: #e57a3c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-cancel {
    background: #FFFFFF;
    color: #374151;
    border: 1px solid #D1D5DB;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    /*min-width: 140px;*/
}

.btn-cancel:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

@media (max-width: 480px) {
    .commission-item {
    display: flex;
    gap: 5px;
   flex-direction: row;
    align-items: center;
}
.commission-row-triple {
    display: block;
}
    .logout-card {
        padding: 32px 24px;
    }
    .logout-actions {
        flex-direction: column;
    }
    .btn-logout {
        width: 100%;
    }

    /* Dashboard mobile improvements - only for very small screens */
    .page-header.page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-grid.stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Refer Customer / DSC Application Page Styles
   ============================================ */
.page-title-orange {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.card-section {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    margin-bottom: 10px;
}
.card-section .p-2 {
    padding: 8px !important;
}
.card-section-header {
    color: #1E293B;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 24px 0 24px;
}

.card-section-body {
    padding: 0px 24px 24px 24px;
}

.input-field {
    width: 100%;
    height:32px;
       padding: 5px 8px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 14px;
    color: #64748B;
    background: #FFFFFF;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.inputWidth {
    width: 90px;
}

.input-field:focus {
    outline: none;
    border-color: #ff8a4c;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.input-field::placeholder {
    color: #94A3B8;
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 5px;
}

.radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    font-size: 14px;
    color: #1E293B;
}

.radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #D1D5DB;
    border-radius: 50%;
    background: #FFFFFF;
    position: relative;
}

.radio-option input[type="radio"]:checked {
    border-color: #ff8a4c;
    background: #FFFFFF;
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #ff8a4c;
    border-radius: 50%;
}

.radio-options.radio-vertical {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
}

.three-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

.three-column-grid > div {
    padding: 0 24px;
    border-right: 1px solid #E2E8F0;
}

.three-column-grid > div:first-child {
    padding-left: 0;
}

.three-column-grid > div:last-child {
    border-right: none;
    padding-right: 0;
    margin-left: 20px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin:5px 0px;
}

.price-label {
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
}

.price-value {
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
}

.support-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.support-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1E293B;
}

.support-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    background: #FFFFFF;
    position: relative;
}

.support-checkbox input[type="checkbox"]:checked {
    border-color: #ff8a4c;
    background: #ff8a4c;
}

.support-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.info-icon {
    width: 18px;
    height: 18px;
    color: #94A3B8;
    cursor: pointer;
}

.select-dropdown {
    padding: 5px 36px 5px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    min-width: 150px;
    background: #FFFFFF url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") right 10px center no-repeat;
    background-size: 20px;
    appearance: none;
    cursor: pointer;
}

.select-dropdown:disabled {
    background-color: #F3F4F6;
    cursor: not-allowed;
    opacity: 0.7;
}

/*.total-row {
    display: flex;
    align-items: center;
    gap: 20px;
}*/

.total-label {
    font-size: 15px;
    font-weight: 700;
    color: #1E293B;
}

.total-value {
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
}

.btn-view-commission {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid #ff8a4c;
    border-radius: 8px;
    background: #FFFFFF;
    color: #ff8a4c;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view-commission:hover {
    background: #FEFCFB;
}

.commission-box {
    display: block;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    padding: 4px 12px;
    margin-left: auto;
    max-width: 320px;
}

.commission-box-title {
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 0px;
}

.commission-box-row {
    display: flex;
    gap: 24px;
    margin-bottom: 2px;
}

.commission-box-item {
    font-size: 14px;
    color: #1E293B;
}

.commission-box-note {
    font-size: 12px;
    color: #ff8a4c;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.btn-cancel {
    padding: 8px 40px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1E293B;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.btn-proceed {
    padding: 8px 40px;
    border: none;
    border-radius: 8px;
    background: #ff8a4c;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-proceed:hover {
    background: #e57a3c;
}

.btn-proceed:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Pay Later Section Styling */
#payLater {
    margin: 0px 0 10px;
}

#payLater .col-sm-6 {
    background: #FFF7ED;
    line-height: 25px;
    border: 1px solid #FDBA74;
    border-radius: 8px;
    padding: 5px 16px;
}

#payLater input[type="radio"],
#payLater input[type="checkbox"] {
    accent-color: #ff8a4c;
    margin-right: 8px;
    vertical-align: middle;
}

#payLater label {
    vertical-align: middle;
    color: #1E293B;
    font-weight: 500;
}

.btn-back {
    padding: 4px 24px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1E293B;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

@media (max-width: 768px) {
  
.activity-time {     margin-left: 0px;   }
.activity-item {
    padding: 6px 0!important;
    }
    .stat-card {
            min-height: 110px;
    }
    .three-column-grid {
        grid-template-columns: 1fr;
    }
    .radio-options {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================================
   Login / Auth Pages Common Styles
   (index.jsp, ForgotPassword.jsp, PartnerVerification.jsp, RegisterPartner.jsp)
   ============================================ */
.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 85px 20px 20px 20px;
    min-height: 0;
}

.login-wrapper {
    display: flex;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    max-height: 100%;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-section img {
    height: 32px;
}
.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #1E293B;
}

.login-panel {
    padding: 24px 32px;
    width: 55%;
}

.login-title {
    font-size: 20px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 2px;
}

.login-subtitle {
   font-size: 11px;
    color: #64748B;
    margin-bottom: 15px;
}

.benefits-panel {
    background: linear-gradient(180deg, #FEECDC 0%, #FFF8F1 100%);
    color: #1E293B;
    padding: 24px 24px;
    width: 45%;
    display: flex;
    flex-direction: column;
}

.benefits-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1E293B;
}

.benefits-list {
    list-style: none;
    flex: 1;
}

.benefits-list li {
    margin-bottom: 5px;
    list-style: none;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.benefits-list li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    stroke: #1E293B;
}

.benefit-item {
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.benefit-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #F97316;
}

.benefit-item span {
    font-size: 15px;
    color: #1E293B;
    line-height: 1.5;
}

.benefits-list li strong {
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
    display: block;
    margin-bottom: 4px;
}

.benefits-list li p {
    font-size: 14px;
    color: #374151;
    line-height: 1.2;
    margin-bottom: 4px;
}

.benefits-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #FEECDC;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #64748B;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-info svg {
    stroke: #1E293B;
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
}

.login-tab {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #64748B;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.login-tab:hover {
    color: #ff8a4c;
}

.login-tab.active {
    color: #ff8a4c;
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff8a4c;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1E293B;
    margin-bottom: 2px;
}

.form-control {
    width: 100%;
    padding: 4px 16px;
        height: 32px;
    border: 1px solid #E2E8F0;
    border-radius: 08px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #ff8a4c;
    box-shadow: 0 0 0 3px rgba(255,138,76,0.1);
}

.form-control-v2 {
    width: 100%;
    height:32px;
    padding: 14px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    color: #1E293B;
    transition: all 0.2s;
}

.form-control-v2:focus {
    outline: none;
    border-color: #ff8a4c;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-control-v2::placeholder {
    color: #94A3B8;
}

.input-with-btn {
    display: flex;
}

.input-with-btn .form-control-v2 {
    flex: 1;
    border-radius: 8px 0 0 8px;
}

.btn-get-otp {
    padding: 14px 20px;
    background: #ff8a4c;
    border: 1px solid #ff8a4c;
    color: #FFFFFF;
    border-radius: 0 8px 8px 0!important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-get-otp:hover {
    background: #ff8a4c;
    border-color: #ff8a4c;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    background: #FFFFFF;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked {
    background: #ff8a4c;
    border-color: #ff8a4c;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-group label {
    font-size: 13px;
    color: #64748B;
    line-height: 1.5;
}

.checkbox-group a {
    color: #ff8a4c;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.signin-btn-wrapper {
    display: block;
    margin-bottom: 16px;
}

.btn-signin {
    width: 100%;
    padding: 2px 24px;
    background: #ff8a4c;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
        height: 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    /*transition: all 0.2s;*/
}

.btn-signin:hover {
    background: #ff8a4c;
}

.btn-otp-wrapper {
    display: inline-flex;
}

.btn-otp-wrapper .btn-get-otp,
.btn-otp-wrapper .btn {
    padding: 7px 16px;
    background: #ff8a4c;
    color: #FFFFFF;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    height: 32px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.btn-otp-wrapper .btn-get-otp:hover,
.btn-otp-wrapper .btn:hover {
    background: #ff8a4c;
}
/*button:focus-visible{
    outline: none!important;
}*/
.form-links {
    text-align: right;
    margin-bottom: -19px;
    margin-top: -10px;
}

.form-links a {
    color: #ff8a4c;
    text-decoration: none;
    font-size: 14px;
}

.form-links a:hover {
    text-decoration: underline;
}

.register-cta {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E2E8F0;
    text-align: center;
}

.register-cta p {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 12px;
}

.btn-register {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    border: 2px solid #ff8a4c;
    color: #ff8a4c;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    /*transition: all 0.2s;*/
}

.btn-register:hover {
    background: #ff8a4c;
    color: #FFFFFF;
}

.register-cta-left {
    margin-bottom: 12px;
    text-align: center;
}

.register-cta-left p {
    color: #64748B;
    font-size: 13px;
    margin-bottom: 8px;
}

.btn-register-left {
    display: inline-block;
    padding: 8px 24px;
    background: #ff8a4c;
    color: #FFFFFF;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-register-left:hover {
    background: #ff8a4c;
    color: #FFFFFF;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #64748B;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    color: #ff8a4c;
}

.icon-lock {
    width: 60px;
    height: 60px;
    background: #FFF5EE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-lock svg {
    width: 30px;
    height: 30px;
    color: #ff8a4c;
}

#turnstile-widget {
    position: absolute;
    visibility: hidden;
}

/* Login/Auth Responsive */
@media (max-width: 768px) {
    
    .page-title-dark {
    font-size: 22px;
    }
    .form-row-v2 {
    display: block;
    }
    .three-column-grid > div {
    padding: 0px
    }
    .support-row {
    display: block;
    }
    .btn-view-commission {
    margin-bottom: 10px;
    }
    .login-wrapper {
        flex-direction: column;
        max-height: none;
        overflow: visible;
    }
    .radio-options.radio-vertical {
    display: block;
    }
    .three-column-grid > div:last-child {
    margin-left: 0px;
}
    .benefits-panel {
        width: 100%;
        padding: 32px 24px;
    }
    .login-panel {
        width: 100%;
        padding: 32px 24px;
    }
    .header-v2 {
        padding: 12px 20px;
    }
    .login-container {
        padding: 10px;
                margin-top: 70px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .bannerDots{
    position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10;
}
    .content-card .card-header {
    display: block;
    }
    .card-section-body {
    padding: 10px 12px 24px 12px !important;
    }
    .card-section-header {
    padding: 10px 12px 0 12px !important;
    }
    .two-column-grid .card-section-body {
    padding: 5px 10px 4px 10px;
    }
    .card-section-header {
    padding: 12px 12px 0 12px;
    }
    .login-wrapper {
        border-radius: 12px;
    }
    .benefits-panel,
    .login-panel {
        padding: 24px 16px;
    }
    .login-title {
        font-size: 18px;
    }
}

/* ============================================
   Dashboard Pages Styles
   (emsigner/dashboard.jsp, other/dashboard.jsp)
   ============================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: anchor-center;
    margin-bottom: 8px;
    padding-bottom: 0px;
}

.page-title-section h1 {
    font-size: 18px;
    font-weight: 600;
    color: #1E293B;
    margin: 0 0 0px 0;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 14px;
    color: #64748B;
    margin: 0;
}

.stats-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 10px;
}

.stat-card {
    background: white;
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #E2E8F0;
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stat-card-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-icon.revenue {
    background: #FFF0E6;
    color: #FD7E14;
}

.stat-card-icon.sales {
    background: #FFE5E5;
    color: #EF4444;
}

.stat-card-icon.earned {
    background: #E6F4EA;
    color: #10B981;
}

.stat-card-icon.claimed {
    background: #E6F0FF;
    color: #3B82F6;
}

.stat-card-icon.queries {
    background: #F3E5F5;
    color: #9C27B0;
}

.stat-card-label {
    font-size: 13px;
    color: #64748B;
/*        display: flex;
    align-items: anchor-center;*/
           width: 82%;
           height:20%;
    line-height: 16px;
    /*display: inline;*/
    font-weight: 500;
}

.stat-card-value {
    font-size: 26px;
    font-weight: 700;
    color: #1E293B;
        padding: 5px 0px 0px;
    margin-bottom: 0px;
}

.stat-change {
    font-size: 13px;
    font-weight: 500;
}

.stat-change.positive {
    color: #10B981;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 10px;
}

.content-card {
    background: white;
    border-radius: 12px;
    padding: 14px 24px;
    border: 1px solid #E2E8F0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding-bottom: 0px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
    margin: 0 0 2px 0;
}

.card-title svg {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
}

.activity-item {
    padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    margin: 0 0 4px 0;
}

.activity-time {
    font-size: 13px;
    color: #64748B;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    height: 28px;
}

.status-badge.completed {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.progress {
    background: #DBEAFE;
    color: #1E40AF;
}

.plan-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.plan-item:last-child {
    margin-bottom: 0;
}

.plan-info {
    flex: 1;
    margin-right: 16px;
}

.plan-name {
    font-size: 14px;
    font-weight: 500;
    color: #1E293B;
    margin-bottom: 8px;
}

.plan-bar {
    height: 8px;
    background: #F1F5F9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.plan-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

.plan-bar-fill.enterprise {
    background: #3B82F6;
}

.plan-bar-fill.professional {
    background: #10B981;
}

.plan-bar-fill.basic {
    background: #06B6D4;
}

.plan-count {
    font-size: 16px;
    font-weight: 600;
    color: #1E293B;
    min-width: 30px;
    text-align: right;
}

.table-card {
    background: white;
    border-radius: 6px;
    padding: 14px 24px;
    border: 1px solid #E2E8F0;
}

.sales-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.sales-table thead th {
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    text-align: left;
    padding: 6px 16px;
    border-bottom: 1px solid #E2E8F0;
    background: #F8FAFC;
}

.sales-table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.sales-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.sales-table tbody td {
      padding: 6px 16px;
    font-size: 13px;
    color: #1E293B;
    border-bottom: 1px solid #F1F5F9;
}

.sales-table tbody tr:last-child td {
    border-bottom: none;
}

.sales-table tbody tr:hover {
    background: #F8FAFC;
}

/* Dashboard Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .btn-commission-info {
    width: 100%;
    margin-bottom: 8px;
    }
    .card-v2 {
    margin-bottom: 15px;
    }
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .page-header {
        flex-direction: column !important;
        gap: 16px !important;
    }
    .btn-primary-v2 {
        width: 100%;
    }
    .add-partner-form .btn-primary-v2 {
        width: 100%;
    }
    .add-partner-form button {
    width: 100%;
}
      .modal .btn-primary-v2 {
        width: auto;
    }
    .content-card {
        padding: 10px 12px !important;
    }
    .table-card {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .digitalContent{
    padding: 0;
}
    .bank-grid-v2 {
    display: block;
    }
    .bank-item-v2 {
    margin-bottom: 10px;
    }
      .stat-card-value {
    font-size: 26px;
    }
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    .stat-value {
        font-size: 24px !important;
    }
    .page-title-section h1 {
        font-size: 18px !important;
    }
}

/* ============================================
   Application Pages Styles
   (dsc/application.jsp, emsigner/application.jsp, purchase-token.jsp)
   ============================================ */

/* Application page card section overrides */
.card-section-header {
    color: #1E293B;
    font-size: 15px;
        margin-bottom: 2px;
    font-weight: 600;
    padding: 10px 24px 0 24px;
}

.card-section-body {
    padding: 0px 24px 14px 24px;
    overflow-x: auto;
}
.card-section-body .form-group {
    margin-bottom: 4px;
}
.select-field {
    width: 100%;
padding:5px 18px 5px 5px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 13px;
    height: 32px;
    background: #FFFFFF url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") right 2px center no-repeat;
    background-size: 16px;
    appearance: none;
    cursor: pointer;
}

.select-field:focus {
    outline: none;
    border-color: #ff8a4c;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-shrink: 1;
    min-width: 0;
    max-width: fit-content;
}

.filter-group input.filter-input {
    width: 150px;
    flex-shrink: 1;
}

/* Ensure buttons in filter-row can wrap */
.filter-row > button,
.filter-row > .btn-primary-v2,
.filter-row > .btn-secondary-v2 {
    flex-shrink: 0;
    white-space: nowrap;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.filter-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
    align-items: center;
}

.btn-search {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: #ff8a4c;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    /*transition: all 0.2s;*/
    white-space: nowrap;
}

.btn-search:hover {
    background: #e57a3c;
}

.btn-reset {
    padding: 8px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    background: #FFFFFF;
    color: #1E293B;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    /*transition: all 0.2s;*/
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-reset:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.btn-export {
    padding: 8px 12px;
    border: 1px solid #ff8a4c;
    border-radius: 6px;
    background: #FFFFFF;
    color: #ff8a4c;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-export:hover {
    background: #FEFCFB;
}

.btn-refer {
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    background: #ff8a4c;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-refer:hover {
    background: #ff8a4c;
}

.btn-view {
    padding: 6px 16px;
    border: 1px solid #ff8a4c;
    border-radius: 6px;
    background: #ff8a4c;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
  //  transition: all 0.2s;
}

.btn-view:hover {
    background: #FEFCFB;
}

.badge-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-pending {
    background: #FEF3C7;
    color: #92400E;
}

.badge-completed {
    background: #D1FAE5;
    color: #065F46;
}

.badge-failed {
    background: #FEE2E2;
    color: #991B1B;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748B;
}

.empty-state svg {
    opacity: 0.3;
    margin-bottom: 16px;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0 0;
    flex-wrap: wrap;
    gap: 16px;
}

.pagination-info {
    font-size: 14px;
    color: #64748B;
}

/* Timeline styles for Track Details */
.trackOrder .timeline {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.trackOrder .timeline-item {
    display: flex;
    position: relative;
}

.trackOrder .timeline-item:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E2E8F0;
    z-index: 0;
}

.timeline-new-item:before {
    display: none !important;
}

.trackOrder .timeline-item:last-child:before {
    height: calc(55% - 10px);
}

.trackOrder .timeline-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #E2E8F0;
    color: #1E293B;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 20px;
    position: relative;
    z-index: 1;
}

.trackOrder .timeline-number.completed {
    background-color: #10B981;
    color: #fff;
}

.trackOrder .timeline-number.pending {
    background-color: #F59E0B;
    color: #fff;
}

.trackOrder .timeline-number.rejected {
    background-color: #EF4444;
    color: #fff;
}

.trackOrder .timeline-content {
    flex: 1;
    margin: 0px 0px 10px;
    padding: 12px 16px;
    background: #F8FAFC;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.trackOrder .timeline-header {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1E293B;
    font-size: 14px;
}

.trackOrder .timeline-details {
    font-size: 13px;
    color: #64748B;
}

.trackOrder .status .badge {
    padding: 4px 12px;
    font-size: 12px;
    min-width: 80px;
    text-align: center;
}

.trackOrder .form-group {
    margin-bottom: 5px;
}

.kycInfo h6 {
    margin-bottom: 0;
}

/* Application Pages Responsive */
@media (max-width: 1400px) {
    .filter-group input.filter-input {
        width: 130px;
    }
}

@media (max-width: 1200px) {
    .filter-row {
        gap: 8px;
    }
    .filter-group {
        gap: 6px;
    }
    .filter-group input.filter-input {
        width: 110px;
    }
    .filter-row > button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .card-section-compact button {
    width: 100%;
}
.page-subtitle {
    text-align: left;
}
    .filter-input[type="text"][id*="Date"], input.filter-input.hasDatepicker, .filter-input.date-input {
            padding-right: 0px;

    }
    .inputWidth {
    width: 100%;
}

        .filter-group {
        width: 100%;
        display: block !important;
        max-width: unset;
    }
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
   
    .filter-group input.filter-input {
        width: 100%;
    }
    .filter-row > button {
        width: 100%;
    }
}

/* ============================================
   Purchase Token Page Styles
   (dsc/purchase-token.jsp)
   ============================================ */
.address-display {
   padding: 4px 16px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 14px;
    color: #64748B;
    min-height: 50px;
}

.price-summary {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 4px 16px;
    margin-top: 7px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    /*padding: 8px 0;*/
    font-size: 14px;
    color: #64748B;
    /*border-bottom: 1px solid #E2E8F0;*/
}

.price-row:last-child {
    border-bottom: none;
}

.price-row.total {
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
    padding-top: 6px;
    margin-top: 0px;
    border-top: 2px solid #E2E8F0;
    border-bottom: none;
}

.price-value {
    font-weight: 600;
    color: #1E293B;
}

.btn-primary-custom {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: #ff8a4c;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-primary-custom:hover {
    background: #ff8a4c;
}

.btn-secondary-custom {
    padding: 12px 24px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1E293B;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary-custom:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.alert-info-custom {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
     border-radius: 6px;
    padding: 6px 10px;
    color: #005bb3;
    font-size: 13px;
    line-height: 16px;
    display: flex;
    align-items: flex-start;
    gap: 6px;

}

.alert-warning-custom {
    background: #FFFBEB;
    border: 1px solid #fed8a8;
    border-radius: 8px;
    padding: 16px;
    color: #92400E;
    font-size: 14px;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
}

.table-custom thead th {
    background: #F8FAFC;
    padding: 10px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #E2E8F0;
}

.table-custom tbody td {
    padding: 10px 12px;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px solid #E2E8F0;
    vertical-align: middle;
}

.table-custom tbody tr:hover {
    background: #F8FAFC;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    background: #FFFFFF;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 14px;
    width: 200px;
}

.search-box svg {
    color: #94A3B8;
}

/* Modal Styling */
.modal-dialog {
    max-width: 600px;
}

.modal-dialog.modal-lg {
    max-width: 1000px;
}

#invoiceModal .modal-dialog {
    max-width: 1100px;
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #E2E8F0;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1E293B;
}

.modal-body {
    padding: 20px;
}

/* Compact Application Status Modal */
#dscApplicationDetails .modal-body {
    padding: 12px;
}

#dscApplicationDetails .card-v2-body {
    padding: 12px;
}

#dscApplicationDetails .mb-2 {
    margin-bottom: 6px !important;
}

#dscApplicationDetails .mb-3 {
    margin-bottom: 10px !important;
}

#dscApplicationDetails .mt-3 {
    margin-top: 12px !important;
}

#dscApplicationDetails .mt-4 {
    margin-top: 14px !important;
}

#dscApplicationDetails .trackOrder .timeline-content {
    padding: 8px 12px;
    margin-bottom: 6px;
}

#dscApplicationDetails .timeline-header {
    font-size: 13px;
    margin-bottom: 2px;
}

#dscApplicationDetails .timeline-details {
    font-size: 11px;
}

#dscApplicationDetails .text-muted {
    font-size: 12px;
}

#dscApplicationDetails .fw-bold {
    font-size: 13px;
}

#dscApplicationDetails .badge {
    font-size: 11px;
    padding: 3px 8px;
}

#dscApplicationDetails .badge-v2 {
    font-size: 11px;
    padding: 3px 8px;
}

#dscApplicationDetails .timeline-number {
    width: 28px;
    height: 28px;
    font-size: 13px;
    margin-right: 10px;
}

#dscApplicationDetails h6 {
    font-size: 14px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #E2E8F0;
    gap: 5px;
}

.form-group-v2 {
    margin-bottom: 8px;
}

.form-label-v2 {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0px;
}

.form-control-v2,
.form-select-v2 {
    width: 100%;
    padding: 7px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 14px;
    color: #1E293B;
}

.form-control-v2:focus,
.form-select-v2:focus {
    outline: none;
    border-color: #ff8a4c;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.btn-v2 {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-v2-primary {
    background: #ff8a4c;
    color: #FFFFFF;
    border: none;
}

.btn-v2-primary:hover {
    background: #ff8a4c;
}

.btn-v2-outline {
    background: #FFFFFF;
    color: #1E293B;
    border: 1px solid #E2E8F0;
}

.btn-v2-outline:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.alert-info-v2 {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    padding: 12px 16px;
    color: #1E40AF;
    font-size: 13px;
}

/* ============================================
   eMSigner Application Page Styles
   (emsigner/application.jsp)
   ============================================ */
.btn-refer-customer {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #ff8a4c;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /*transition: all 0.2s;*/
    white-space: nowrap;
}

.btn-refer-customer:hover {
    background: #ff8a4c;
}

.btn-submit-referral {
     width:170px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    background: #ff8a4c;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-submit-referral:hover {
    background: #ff8a4c;
}

.form-group-full {
    margin-bottom: 10px;
}

.table-v2-custom {
    width: 100%;
    border-collapse: collapse;
}

.table-v2-custom thead th {
    background: #F8FAFC;
    padding: 12px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #E2E8F0;
    white-space: nowrap;
}

.table-v2-custom tbody td {
    padding: 12px 14px;
    font-size: 13px;
    color: #374151;
    border-bottom: 1px solid #E2E8F0;
    vertical-align: middle;
}

.table-v2-custom tbody tr:hover {
    background: #F8FAFC;
}


/* ============================================
   Register Partner Page Styles
   ============================================ */

.register-container {
    max-width: 1400px;
    margin: 65px auto 20px;
    padding: 0 20px 20px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1E293B;
    text-align: center;
    margin: 0 0 2px 0;
}

.page-subtitle {
    font-size: 12px;
    color: #64748B;
       text-align: center;
    margin: 0 0 5px 0;
}

.register-card {
    background: #FFFFFF;
    border-radius: 6px;
    padding: 7px 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        border: 1px solid #dee2e6 !important;
}
.organizationDiv .input-group-text {
    border-radius: 0.25rem 0 0 0.25rem;
        font-size: 14px;
}
.register-card .card-title{display: flex;}
.register-card .form-group {
    margin-bottom: 2px;
}
/* Two column layout - sections side by side */
.register-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.register-row .register-card {
    margin-bottom: 0;
    height: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

/* Horizontal label-input layout for register page */
.register-container .form-group {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 3px;
    /*align-items: baseline;*/
}
.organizationDiv .form-group {
    grid-template-columns: 125px 1fr;
}
.register-container .form-group .form-label {
    padding-top: 0px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0px;
    text-align: left;
}

.register-container .form-group .radio-group,
.register-container .form-group .date-control,
.register-container .form-group .input-with-btn,
.register-container .form-group .file-upload,
.register-container .form-group .file-hint,
.register-container .form-group .gstin-toggle {
    grid-column: 2;
}
.mandatory {
    color: #ff0000;
    margin-left: 2px;
}
.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0px;
}

.form-control-v2 {
    width: 100%;
    padding: 5px 10px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s;
}

.form-control-v2:focus {
    outline: none;
    border-color: #fd7e14;
    box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.1);
}

.date-control {
    display: grid;
    grid-template-columns: 80px 1fr 100px;
    gap: 8px;
}
.personalInfo .date-control {
    grid-template-columns: 60px 85px 70px;
}

.ctr-date,
.ctr-month,
.ctr-year {
    width: 100%;
    min-width: 0;
    padding: 6px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
}

.ctr-month {
    padding-right: 30px;
    background: #FFFFFF url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") right 8px center no-repeat;
    background-size: 16px;
    appearance: none;
    cursor: pointer;
}

.input-with-btn {
    display: flex;
    gap: 0px;
}

.btn-get-otp {
    padding: 10px 20px;
       background: #fff;
    color: #fd7e14;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-get-otp:hover {
    background: #e66d0f;
    color:#fff;
}
.personalInfo .radio-group{
    display: block;
}
.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
}

.file-upload input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
}

.file-hint {
    font-size: 10px;
    color: #64748B;
    margin-top: 2px;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.btn-primary-v2 {
    padding: 12px 32px;
    background: #fd7e14;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    /*transition: background 0.2s;*/
}
.loginBtn .btn-primary-v2 {
    padding: 4px 16px;
    font-size: 14px;
}

.btn-primary-v2:hover {
    background: #fd7e14;
    color:#fff;
    box-shadow: none!important;
}
.otpSec .otpSecBtn{
    width:100px;
    font-size: 14px;
    padding: 6px 14px;
}
.submitClim button {
    width: 110px;
}
.login-link {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #64748B;
}

.login-link a {
    color: #fd7e14;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Verification Section */
.verification-section,
.success-section {
    display: none;
}

.verification-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.verification-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.verification-label {
    font-size: 12px;
    color: #64748B;
    font-weight: 500;
}

.verification-value {
    font-size: 14px;
    color: #1E293B;
    font-weight: 600;
}

.disclaimer-box {
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
    padding: 16px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 13px;
    color: #78350F;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 20px 0;
    font-size: 14px;
    color: #334155;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 2px;
}

.checkbox-group a {
    color: #fd7e14;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Success Section - FIX FOR HUGE CHECKMARK */
.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #D1FAE5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: #059669;
    stroke-width: 3;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: #1E293B;
    text-align: center;
    margin: 0 0 16px 0;
}

.success-message {
    font-size: 14px;
    color: #64748B;
    text-align: center;
    margin: 0 0 20px 0;
}

.login-id-display {
    background: #F1F5F9;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.login-id-display label {
    display: block;
    font-size: 12px;
    color: #64748B;
    margin-bottom: 4px;
}

.login-id-display span {
    font-size: 18px;
    font-weight: 700;
    color: #1E293B;
}

.otp-timer-wrapper {
    margin-top: 8px;
}

.otp-timer-text {
    font-size: 12px;
    color: #64748B;
}

.gstin-toggle {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .trackOrder .timeline-content {
    padding: 12px 0px;
    }
    .form-grid,
    .verification-grid {
        grid-template-columns: 1fr;
    }

    .date-control {
        grid-template-columns: 1fr;
    }

    /* Stack register rows vertically on mobile */
    .register-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Stack labels and inputs vertically on mobile */
    .register-container .form-group {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .register-container .form-group .form-label {
        padding-top: 0px;
    }

    .register-container .form-group .radio-group,
    .register-container .form-group .date-control,
    .register-container .form-group .input-with-btn,
    .register-container .form-group .file-upload,
    .register-container .form-group .file-hint,
    .register-container .form-group .gstin-toggle {
        grid-column: auto;
    }

    .register-container {
        padding: 0 16px 0px;
    }
    .page-title {
     text-align: left;
    font-size: 22px;
    }
    .register-container {
    margin: 80px auto 20px;
    }
}


/* ============================================
   Password Authentication Page Styles
   ============================================ */

.auth-form {
    width: 100%;
}

.login-id-display {
    background: #F1F5F9;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
}

.resend-link {
    color: #fd7e14;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.resend-link:hover {
    text-decoration: underline;
}

.success-icon-large {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: #D1FAE5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon-large svg {
    width: 50px;
    height: 50px;
    color: #059669;
    stroke-width: 3;
}

.form-actions-v2 {
    margin-top: 24px;
}

.w-100 {
    width: 100% !important;
}

/* Relationship Manager Section */
.relationship-manager-section {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: #FFFAF8;
}

.rm-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.rm-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rm-name-mobile-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.rm-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rm-name-item {
    flex: 1;
    min-width: 0;
}

.rm-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.rm-value {
    font-size: 13px;
    color: var(--text-body);
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

.rm-name-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Unclaimed Commission Card */
.unclaimed-commission-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 1px solid #FED7AA;
       border-radius: 6px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.unclaimed-label {
    font-size: 12px;
    font-weight: 500;
    color: #9A3412;
}

.unclaimed-amount {
    font-size: 16px;
    font-weight: 700;
    color: #EA580C;
    letter-spacing: -0.5px;
}

/* Commission Summary Cards */
.commission-summary-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.commission-summary-title {
    font-size: 16px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 16px;
}

.commission-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.commission-summary-table thead th {
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    padding: 10px 12px;
    border-bottom: 2px solid #E2E8F0;
    text-align: left;
}

.commission-summary-table thead th.text-end {
    text-align: right;
}

.commission-summary-table tbody tr {
    border-bottom: 1px solid #F1F5F9;
}

.commission-summary-table tbody tr:last-child {
    border-bottom: none;
}

.commission-summary-table tbody td {
    font-size: 14px;
    color: #334155;
    padding: 12px;
}

.commission-summary-table tbody td.text-end {
    text-align: right;
    font-weight: 600;
    color: #0F172A;
}

/* Commission Info Buttons */
.btn-commission-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    height: 40px;
}

.btn-commission-info:hover {
    background: #F8FAFC;
    border-color: #FF8A4C;
    color: #FF8A4C;
    box-shadow: 0 3px 8px rgba(255, 138, 76, 0.15);
    transform: translateY(-1px);
}

.btn-commission-info svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
