@font-face {
    font-family: 'FontAwesomeSolid';
    src: url('https://dev23.webappreports.com/assets/fonts/fa-solid-900.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.fasa {
    font-family: 'FontAwesomeSolid';
}

/* Modern Export Icon Styling */
.modern-export-icon {
    font-size: 28px !important;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    display: inline-block;
    vertical-align: middle;
}

.modern-export-icon:hover {
    transform: scale(1.15);
    filter: brightness(1.1);
}

/* Remove default background/borders from export buttons */
button.dt-button, 
.btn-transparent, 
.dt-button:hover,
.btn-transparent:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 5px !important;
}

@media (max-width: 767px) {
    .enable-tweaks #cards-mview {
        display: block;
    }

    .enable-tweaks #financial_balance_card {
        display: none;
    }

    .enable-tweaks #security_value_card {
        display: none;
    }

    .enable-tweaks #open_position_card {
        display: none;
    }

    .enable-tweaks #margin_card {
        display: none;
    }

    .enable-tweaks #download-group {
        flex-direction: row;
    }

    .enable-tweaks #request-group {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .enable-tweaks #download-group>li {
        width: 50%;
        border: 0px;
    }

    .enable-tweaks #request-group>li {
        width: 50%;
        border: 0px;
    }



    .enable-tweaks #downloads_card {
        padding: 0px !important;
    }

    .enable-tweaks .view-button {
        float: none !important;
        display: ruby-text;
    }

    .enable-tweaks .card-icon {
        color: red !important;
        margin-left: 4%;
    }

    .enable-tweaks #cards-row {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }

    .enable-tweaks #cards-table {
        margin-bottom: 1px;
    }

    .enable-tweaks #cards-table-row>.col-md-12 {
        padding-right: 0px;
        padding-left: 0px;
    }

    .enable-tweaks #cards-mview>.card-box.tilebox-one {
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-bottom: 0px !important;
        padding-top: 7px !important;
    }

    .enable-tweaks #cards-table td {
        border: 0px !important;
        vertical-align: middle !important;
        padding: 0px !important;
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }

    .enable-tweaks .cards-table-key-span {
        font-size: 16px;
        color: #595A5A !important;
        padding-left: 10px;
    }

    .enable-tweaks .cards-table-value-span {
        color: #689FDE !important;
        float: right;
        margin-right: 10px;
    }

    .enable-tweaks .cards-table-button>* {
        font-size: 11px !important;
        text-transform: uppercase;
    }

    .enable-tweaks .cards-table-separator {
        background-color: white;
        padding-top: 2px !important;
    }

    .enable-tweaks .cards-table-separator>hr {
        margin: 4px;
    }

    .enable-tweaks .datepicker-dropdown {
        left: auto !important;
        right: 50px !important;
    }

    .enable-tweaks .menu-btn {
        padding: 0px !important;
    }

}

@media (min-width: 768px) {
    #cards-mview {
        display: none;
    }

    #cards-mview .card-box.tilebox-one {
        display: none;
    }

    #financial_balance_card {
        display: block;
    }

    #security_value_card {
        display: block;
    }

    #open_position_card {
        display: block;
    }

    #margin_card {
        display: block;
    }

    #inlineCheckbox1_label {
        padding-right: 0px !important;
        margin-right: 0px !important;
    }

    #inlineCheckbox1_wrapper {
        padding-right: 0px !important;
        margin-left: 0px !important;
    }
}

.activate_checkboxes {
    margin-left: 40%;
}

@media (max-width: 768px) {
    #close_bal_wrapper {
        width: 70%;
    }

    #include_mft {
        margin-left: -3em;
    }

    #include_mft_label {
        padding-right: 0px !important;
        margin-left: -1.4em;
    }

    #inlineCheckbox1 {
        padding: 0px;
        margin-left: -3em;
    }

    #inlineCheckbox1_label {
        padding: 0px !important;
        margin: 0px !important;
        margin-left: -1.2em !important;
    }

    #inlineCheckbox1_wrapper {
        padding: 0px !important;
        margin: 0px !important;
    }

    #include_mft_wrapper {
        margin: 0px !important;
        padding: 0px !important;
    }

    #close_bal_label {
        margin-left: -34px !important;
    }

    #capcur_label_wrapper {
        text-align: left !important;
        left: -52px;
        width: 70px;
    }

    #capcur_wrapper {
        margin-top: 7px !important;
        left: -39px;
        /*        width: 106px;*/
        width: 62%;
        padding-right: 0px !important;
    }

    #peak_margin_label {
        margin: 0px !important;
        margin-left: 0px;
        padding: 0px !important;
        left: -42px !important;
        margin-left: -33px !important;
        margin-top: 2px !important;
    }

    #peak_margin_col {
        display: contents;
    }

    #peark_margin {
        /*        width: 106px !important;*/
        width: 62%;
        margin: 0px !important;
        margin-left: 6px !important;
    }

    #financial-ledger-tbl-details_filter {
        display: contents;
    }

    #financial-ledger-tbl-details_length {
        display: none;
    }

    #financial-ledger-tbl-details_wrapper>.dt-buttons {
        display: inline;
    }

    div#financial-ledger-tbl-details_filter input {
        width: 78%;
    }

    #no_margin_transactions_wrapper {
        margin-left: 19px;
    }

    #include_mft_wrapper_fl {
        margin-left: 19px !important;
    }

    #segment_wrapper {
        padding-left: 0px !important;
        margin-left: -8px !important;
    }

    #segment_wrapper {
        text-align: left !important;
        margin-top: 7px !important;
        left: -6px;
        width: 93%;
        padding-right: 0px !important;
    }

    #capcur_wrapper_fl {
        margin-top: 7px !important;
        left: -39px;
        width: 62%;
        padding-right: 0px !important;
    }

    #peak_margin_label_fl {
        margin: 0px !important;
        margin-left: 0px;
        padding: 0px !important;
        left: -42px !important;
        margin-left: -6px !important;
        margin-top: 2px !important;
    }

    #peak_margin_col_fl {
        display: contents;
    }

    #segment_label_fl {
        margin-right: 25px !important;
    }

}

@media (max-width: 400px) {
    #company_name_mw {
        margin-left: 0px;
    }
}



/*new css .............................  02-03-2024  */

body {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    /* Slightly bolder */
    background-color: #f8f9fa !important;
    color: #333333 !important;
    /* Darker gray for contrast */
    font-size: 13.84px !important;

}

.card {
    box-shadow: #919eab4d 0 0 2px, #919eab1f 0 12px 24px -4px !important;
}

.card-box.tilebox-one.card1 {
    background-color: #ebf3fe !important;
}

.content-page>.content {
    background-color: white !important;
    font-size: 13px !important;
    padding: 10px 5px 15px 5px !important;


}




#sidebar-menu,
#sidebar-menu ul,
#sidebar-menu li,
#sidebar-menu a {
    font-weight: 800 !important;
}



@media (min-width: 800px) {
    b {
        font-size: 1.09375rem !important;
        color: #2a3547 !important;
        font-weight: 400 !important;
    }
}

span.company {
    font-weight: 500 !important;
}

table.table-bordered th {
    border-top: 0.5px solid #e9ecef !important;
    border-bottom: 0.5px solid #e9ecef !important;
}

table.table-bordered td {
    border-top: 0.5px #e9ecef !important;
    border-right: 0.5px #e9ecef !important;
    border-left: 0.5px solid #e9ecef !important;
    font-weight: 400 !important;
    font-size: 11.50px !important;
}

.table-bordered td,
.table-bordered th {
    border: none !important;
}



/*Testing*/

nav.navbar-custom {
    padding: 1px 5px 1px 5px !important;
}

div.dataTables_wrapper div.dataTables_info {
    padding-top: 0px !important;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #eaeff4 !important;
    opacity: 1 !important;
    border: 1px solid #dfe5ef !important;
}

.table-responsive .dataTables_wrapper .dataTables_filter input {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.765625rem !important;
    border-radius: 5px !important;
    border: 1px solid #ebf1f6 !important;
}

.table-responsive .dataTables_wrapper .dataTables_length select {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    padding-left: 0.5rem !important;
    padding-right: 1.625rem !important;
    font-size: 0.765625rem !important;
    border-radius: 5px !important;
    border-color: #ebf1f6 !important;
}

#sidebar-menu,
#sidebar-menu ul,
#sidebar-menu li,
#sidebar-menu a {
    font-size: 13px !important;
    font-weight: 500 !important;
}

.side-menu {
    top: 60px !important;
    background-color: #F7F8F9 !important;
    color: #2a2e34 !important;
    box-shadow: none !important;
}

.tp_comp {
    color: #ffffff !important;
    /* background-color: #151E28 !important; */
    background: linear-gradient(225deg, #0053d5 0%, #061d41 100%) !important;
}

.custom_bg {
    background-color: #ffefd2 !important;
    color: black;
}

.col-sm-5.powerby {
    font-weight: 400 !important;
}

/* --- SIMPLE MODERN BUTTONS --- */
.btn-primary {
    background-color: #5d87ff !important;
    border: 1px solid #5d87ff !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #4570e6 !important;
    border-color: #4570e6 !important;
    color: #ffffff !important;
}




.table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button {
    cursor: pointer !important;
    border: 1px #ebf1f6 !important;
}

.table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button .previous {
    border-radius: 7px 0 0 7px !important;
    background-color: #5d87ff !important;
}

.table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: #fff;
    background-color: #5d87ff !important;
    border-color: #5d87ff !important;
}

h1.modal-title.m-auto.request_header {
    font-weight: 500;
}

@media (min-width: 576px) {
    .modal {
        --bs-modal-margin: 1.75rem !important;
        --bs-modal-box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.12) !important;
    }
}

button.button-menu-mobile.open-left.waves-light.waves-effect.menu-btn {
    margin-top: -9px !important;
}

.notification-list .noti-icon {
    font-size: 16px !important;
}

.side-menu {
    top: 56px !important;
}

#sidebar-menu ul li a i {
    font-size: 17px !important;
}

button.dt-button.buttons-pdf.buttons-html5 {
    background: none !important;
}

.dt-buttons {
    background: none !important;
}

marquee#marq {
    font-weight: 400 !important;
}

.dash_icons {
    width: 39px !important;
    /* font-size: 17px !important; */
}

@media (min-width: 1300px) {
    [data-layout=vertical] .topbar {
        width: calc(100% - 270px);
    }
}

.modal-content {
    color: #333335 !important;
    background-color: #fff !important;
    border: 1px solid #ededf5 !important;
    border-radius: 0.4rem !important;
}

.bg-blue {
    background-color: white !important;
    color: #333335 !important;
}

.modal-header {
    padding: 0.5em 1.25rem !important;
    border-block-end: 1px solid #ededf5 !important;
    border-top-left-radius: 0.4rem !important;
    border-top-right-radius: 0.4rem !important;
}

/*modal*/

.modal-body table.table-bordered th {
    border-top: 0.5px solid #e9ecef !important;
    border-bottom: 0.5px solid #e9ecef !important;
}

.modal-body table.table-bordered td {
    border-top: 0.5px #e9ecef !important;
    border-right: 0.5px #e9ecef !important;
    border-left: 0.5px solid #e9ecef !important;
    font-weight: 400 !important;
    font-size: 13.10px !important;
}

.modal-body .table-bordered td,
.table-bordered th {
    border: none !important;
}

.modal-body .table-responsive .dataTables_wrapper .dataTables_filter input {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.765625rem !important;
    border-radius: 5px !important;
    border: 1px solid #ebf1f6 !important;
}

.modal-body .table-responsive .dataTables_wrapper .dataTables_length select {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    padding-left: 0.5rem !important;
    padding-right: 1.625rem !important;
    font-size: 0.765625rem !important;
    border-radius: 5px !important;
    border-color: #ebf1f6 !important;
}

.modal-body .table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button {
    cursor: pointer !important;
    border: 1px #ebf1f6 !important;
}

.modal-body .table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button .previous {
    border-radius: 7px 0 0 7px !important;
    background-color: #5d87ff !important;
}

.modal-body .table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: #fff;
    background-color: #5d87ff !important;
    border-color: #5d87ff !important;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #eaeff4 !important;
}

.select2-container--default .select2-selection--single {
    background-color: #fff !important;
    color: black !important;
    border: 1px solid #eaeff4 !important;
    border-radius: 4px !important;
}

.modal-body {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    /* Slightly bolder */
    color: #333333 !important;
    /* Darker gray for contrast */
    font-size: 13.10px !important;
}

.modal-body table.table-bordered td {
    border-top: 0.5px solid #e9ecef !important;
    border-right: 0.5px solid #e9ecef !important;
    border-left: 0.5px solid #e9ecef !important;
    font-weight: 400 !important;
    font-size: 11.50px !important;
}

.modal-body table.table-bordered th {
    border-top: 0.5px solid #e9ecef !important;
    border-bottom: 0.5px solid #e9ecef !important;
}

/*Notification bell items repsonsive*/
@media (max-width: 480px) {
    .list-inline-item:not(:last-child) {
        margin-right: -1px !important;
    }
}

@media (max-width: 767px) and (min-width: 481px) {
    .list-inline-item:not(:last-child) {
        margin-right: -1px !important;
    }
}

@media (max-device-width: 480px) {
    .list-inline-item:not(:last-child) {
        margin-top: -39px !important;
        float: right !important;
        margin-right: -10px !important;
        /* padding: 5px 5px 5px 5px !important; */
        display: flex !important;
    }
}

.list-inline-item {
    margin-right: -2px !important;
    -webkit-margin-right: 5px !important;
}

.list-inline-item {
    text-rendering: optimizeLegibility !important;
}

/*Notification bell items repsonsive*/

.form-group {
    margin-bottom: 0.5rem !important;
}

#comp_name {
    font-size: 14.50px !important;
}

@media only screen and (max-width: 768px) {

    /* Styles for tablets and smaller screens */
    marquee#marq {
        padding-top: 30px !important;
        /* Adjust the padding amount as needed */
    }
}

#sidebar-menu,
#sidebar-menu ul,
#sidebar-menu li,
#sidebar-menu a {
    font-size: 12px !important;
    font-weight: 500 !important;
}

.list-group-item.active {
    background-color: #5d87ff !important;
    border-color: #5d87ff !important;
}

.user-list-item {
    padding: 9px !important;
}

.help_image {
    height: 65px !important;
    width: 65px !important;
}

/*Marquee For Mobile*/
@media (max-width: 768px) {

    /* Adjust this max-width to target your desired mobile view */
    marquee#marq {
        margin-top: 18px !important;
        /* Add margin to the top */
    }
}

@media only screen and (max-width: 768px) {
    #open_pos_modal .table {
        width: auto;
        /* Allows the table to expand as needed, preserving column widths */
        min-width: 768px;
        /* Adjust based on your table's minimum width to maintain layout without forcing too narrow columns */
    }
}

@media only screen and (max-width: 768px) {
    #brokerage-and-turnover-tbl_wrapper .table {
        width: auto;
        /* Allows the table to expand as needed, preserving column widths */
        min-width: 768px;
        /* Adjust based on your table's minimum width to maintain layout without forcing too narrow columns */
    }
}

@media only screen and (max-width: 768px) {
    #day_turnover-tbl {
        width: 100%;
        /* Adjust if this provides a better outcome */
        min-width: 768px;
        /* This forces a horizontal scroll on smaller screens */
        overflow-x: auto;
        /* Make sure this is applied to a container if not effective on the table */
    }
}

@media only screen and (max-width: 768px) {
    #net-position-user-data .form-check.form-check-inline {
        /* Switch to block layout on smaller screens */
        display: block;
        margin-right: 0;
        /* Adjusts spacing, if necessary */
    }

    #net-position-user-data .form-check-label {
        margin-right: 0.5rem;
        /* Adjust label spacing on smaller screens, if necessary */
    }
}

@media (max-width: 400px) {
    .comNet {
        margin-left: 9px !important;
    }
}

@media (max-width: 400px) {
    .curNet {
        margin-left: 27px !important;
    }
}

#profile_bank_accounts-tbl td b {
    font-size: 16px !important
        /* Set your desired font size */
}

/*Side Menu Icons*/

i.icon-home.icons {
    color: #40bf89 !important;
}

i.icon-user.icons {
    color: #40bf89 !important;
}

i.icon-basket-loaded.icons {
    color: #40bf89 !important;
}

i.icon-chart.icons {
    color: #40bf89 !important;
}

i.icon-bag.icons {
    color: #40bf89 !important;
}

i.icon-notebook.icons {
    color: #40bf89 !important;
}

i.icon-graph.icons {
    color: #40bf89 !important;
}

i.icon-magnifier.icons {
    color: #40bf89 !important;
}

i.icon-fire.icons {
    color: #40bf89 !important;
}

i.icon-wallet.icons {
    color: #40bf89 !important;
}

i.icon-diamond.icons {
    color: #40bf89 !important;
}

i.icon-location-pin.icons {
    color: #40bf89 !important;
}

i.icon-layers.icons {
    color: #40bf89 !important;
}

i.icon-book-open.icons {
    color: #40bf89 !important;
}

i.icon-envelope-open.icons {
    color: #40bf89 !important;
}

i.icon-lock.icons {
    color: #40bf89 !important;
}

i.icon-arrow-down.icons {
    color: #40bf89 !important;
}

.recaptcha-container {
    text-align: center !important;
    margin: 0 auto !important;
    margin-left: 1px !important;
    padding-bottom: 4px !important;
}


.total_turnover_tab {
    cursor: pointer;
}

.total_turnover_tab.active>b {
    color: #695eef !important;
}


@media only screen and (max-width: 768px) {
    #total_turnover_tab_holder {
        margin: 0 auto;
    }
}

#stock-scanner-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
}

#stock-scanner-button-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

#stock-scanner-button-wrapper {
    width: auto;
    margin-left: 0px;
}

@media (min-width: 768px) {
    #stock-scanner-button-container {
        width: 37%;
    }

    #stock-scanner-button-wrapper {
        margin-left: 8px;
    }

    #stock-scanner-container {
        width: 100%;
    }
}

#stock_scanner-tbl_length {
    display: inline;
}

#stock_scanner-tbl_filter {
    display: inline;
    float: right;
}


#annexure-tbl .js-view_pdf {
    margin-bottom: 4px;
}

/* --- Shilpi Premium Spinner --- */
@keyframes shilpi-spin {
    to {
        transform: rotate(360deg);
    }
}

.shilpi-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(100, 176, 242, 0.2);
    border-top-color: #64b0f2;
    border-radius: 50%;
    animation: shilpi-spin 0.8s linear infinite;
    margin: 15px auto;
}

.shilpi-spinner-sm {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(100, 176, 242, 0.2);
    border-top-color: #64b0f2;
    border-radius: 50%;
    animation: shilpi-spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

.shilpi-btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: shilpi-spin 0.6s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    margin-top: -2px;
}

#loading-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(2px);
}

#loading-modal::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid rgba(100, 176, 242, 0.2);
    border-top-color: #64b0f2;
    border-radius: 50%;
    animation: shilpi-spin 0.8s linear infinite;
}

/* Force override for any inline styles or CDN styles */
#loading-modal[style*="background"] {
    background-image: none !important;
}

/* Final Ultimate Fix for Button Text and Background Contrast */
#login-btn,
#required_otp_submit,
#validate_user_btn,
#password_reset_submit,
#login_mobile,
#login_otp_only,
#login-btn:hover,
#login-btn:focus,
#login-btn:active,
#login-btn.active,
#required_otp_submit:hover,
#required_otp_submit:focus,
#required_otp_submit:active,
#required_otp_submit.active,
#validate_user_btn:hover,
#validate_user_btn:focus,
#validate_user_btn:active,
#validate_user_btn.active,
#login_mobile:hover,
#login_mobile:focus,
#login_mobile:active,
#login_mobile.active,
#login_otp_only:hover,
#login_otp_only:focus,
#login_otp_only:active,
#login_otp_only.active {
    color: #ffffff !important;
    /* Force white text in EVERY state */
    box-shadow: none !important;
    outline: none !important;
}

#login-btn {
    background-color: #10c469 !important;
    /* Success Green for Login */
    border: 1px solid #10c469 !important;
}

#required_otp_submit,
#validate_user_btn,
#login_mobile,
#login_otp_only {
    background-color: #0053d5 !important;
    /* Brand Blue for others */
    border: 1px solid #0053d5 !important;
}

#login-btn:disabled,
#required_otp_submit:disabled,
#validate_user_btn:disabled,
#login_mobile:disabled,
#login_otp_only:disabled {
    opacity: 0.7 !important;
    color: #ffffff !important;
    background-image: none !important;
}

/* ========================================================================
   EXECUTIVE PREMIUM THEME (RICH & CLEAN)
   ======================================================================== */

/* 1. TOP COMPANY BAR (MIDNIGHT BLUE GRADIENT) */
body #wrapper .topbar .tp_comp {
    background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 100%) !important;
    /* Deep Midnight Blue Gradient */
    border-bottom: none !important;
    height: 34px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -1px rgba(255, 255, 255, 0.1);
}

body #wrapper #comp_name.top_company {
    color: #ffffff !important;
    /* Pure White on Dark Background */
    font-weight: 600 !important;
    font-size: 11.5px !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.95;
}

/* ========================================================================
   EXECUTIVE PREMIER SIDEBAR (PIXEL-PERFECT REWRITE)
   ======================================================================== */

/* 1. TOP BRANDING BELT */
body #wrapper .topbar .tp_comp {
    background: #1e40af !important;
    /* Rich Corporate Blue */
    height: 34px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

body #wrapper #comp_name.top_company {
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 10.5px !important;
    text-transform: uppercase;
    letter-spacing: 1.5px !important;
    opacity: 0.9;
}

/* 2. SIDEBAR CORE REFINEMENT */
body #wrapper #sideMenu.side-menu {
    background-color: #ffffff !important;
    box-shadow: 1px 0 10px rgba(0, 0, 0, 0.02) !important;
    border-right: 1px solid #f1f5f9 !important;
}

body #wrapper #sideMenu #sidebar-menu {
    background-color: #ffffff !important;
    padding-top: 10px !important;
}

body #wrapper #sideMenu #sidebar-menu .menu-title {
    color: #94a3b8 !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    padding: 15px 20px 8px !important;
    text-transform: uppercase !important;
    opacity: 0.6;
}

/* 3. MENU ITEMS & ICON ALIGNMENT (PIXEL-PERFECT) */
body #wrapper #sideMenu #sidebar-menu ul li a {
    color: #334155 !important;
    /* Rich Darker Slate for Clarity */
    font-size: 12.2px !important;
    /* Sharper Executive Size */
    font-weight: 500 !important;
    margin: 1px 12px !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    letter-spacing: 0.15px;
}

/* Fix Icon Consistency (Same Size for All) */
body #wrapper #sideMenu #sidebar-menu ul li a i {
    color: #64748b !important;
    font-size: 17px !important;
    /* ROBUST UNIFIED SIZE */
    margin-right: 14px !important;
    width: 24px !important;
    /* FIXED GRID WIDTH */
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

/* 4. ARROW ALIGNMENT (ABSOLUTE RIGHT PIN - VISIBLE) */
body #wrapper #sideMenu #sidebar-menu ul li.has-sub>a .menu-arrow,
body #wrapper #sideMenu #sidebar-menu ul li.has_sub>a .menu-arrow {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    font-size: 12.5px !important;
    /* BIGGER & VISIBLE */
    width: 14px;
    height: 14px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

/* 5. HOVER & ACTIVE SYNERGY */
body #wrapper #sideMenu #sidebar-menu ul li a:hover {
    background-color: #f8fafc !important;
    color: #1e40af !important;
}

body #wrapper #sideMenu #sidebar-menu ul li a:hover i {
    color: #1e40af !important;
}

body #wrapper #sideMenu #sidebar-menu ul li a.active {
    background-color: #eff6ff !important;
    color: #1e40af !important;
    font-weight: 600 !important;
}

body #wrapper #sideMenu #sidebar-menu ul li a.active i {
    color: #1e40af !important;
}

body #wrapper #sideMenu #sidebar-menu ul li a.active::before {
    content: "";
    position: absolute;
    left: 0 !important;
    top: 20% !important;
    height: 60% !important;
    width: 3.5px !important;
    background-color: #1e40af !important;
    border-radius: 0 4px 4px 0 !important;
}

/* 6. LOGOUT & UTILS */
.side_bar_logout a {
    background-color: #1e40af !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    margin: 20px 15px !important;
    padding: 10px !important;
    font-weight: 600 !important;
    text-align: center !important;
    font-size: 13px !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2) !important;
}

.slimScrollBar {
    background: #94a3b8 !important;
    /* Darker & More Visible */
    width: 5px !important;
    /* Thicker for better grip */
    opacity: 0.6 !important;
    border-radius: 10px !important;
    right: 2px !important;
}

.slimScrollRail {
    display: none !important;
    /* Remove the fixed grey line/rail */
}

body #wrapper .topbar .navbar-custom {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    height: 52px !important;
}

/* ==========================================================================
   7. SHILPI PREMIUM THEME - MASTER CONSOLIDATION
   ========================================================================== */

/* 7.1. GLOBAL LAYOUT & BACKGROUND */
body,
html,
#wrapper {
    background-color: #f8fafc !important;
    /* Premium Slate-Blue Grey Background */
    overflow-x: hidden !important;
    /* Root cause fix for horizontal scroll */
}

/* Ensure transparency on all intermediate layout wrappers */
.content-page,
.content,
.container-fluid,
#container_fluid,
.row,
.col-12,
.col-xl-12 {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
}

/* 7.2. SIDEBAR & TOPBAR HARMONY */
body #wrapper #sideMenu.side-menu,
body #wrapper .topbar .navbar-custom {
    background-color: #ffffff !important;
    border-right: 1px solid #edf2f7 !important;
    border-bottom: 1px solid #edf2f7 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01) !important;
}

/* 7.3. UNIFIED CARD DESIGN - PREMIUM SOFT SHADOW */
body #wrapper .card-box,
body #wrapper .card,
body #wrapper .panel {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02) !important;
    border-radius: 12px !important;
    margin-bottom: 24px !important;
    padding: 20px !important;
}

/* 7.4. REFINED HEADER (Dashboard Title & Breadcrumbs) */
.page-title-box {
    background-color: transparent !important;
    padding: 12px 0 !important;
    margin-bottom: 5px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.page-title {
    color: #1e293b !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.breadcrumb {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 7.5. GLOBAL MARQUEE (Top Header Position) */
#marquee_div {
    margin-top: 5px !important;
    margin-bottom: 15px !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    height: 32px !important;
    /* Slimmer more professional height */
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    overflow: hidden !important;
}

#marquee_div marquee {
    font-size: 12.5px !important;
    /* Smaller for consistency */
    font-weight: 500 !important;
    color: #1e40af !important;
    line-height: 32px !important;
}

/* 7.6. PREMIUM STABLE FOOTER (SLIM & BALANCED) */
body #wrapper footer.footer {
    background-color: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    padding: 0 30px !important;
    height: 40px !important;
    /* Reverted to slim height */
    display: flex !important;
    align-items: center !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 200px !important;
    width: calc(100% - 200px) !important;
    z-index: 1000 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
}

/* Space for fixed footer */
.content-page {
    margin-bottom: 40px !important;
    padding-bottom: 15px !important;
}

.footer-container {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 100% !important;
}

.footer-logo,
.footer-powerby,
.footer-version-box {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.footer-logo {
    justify-content: flex-start !important;
}

.footer-logo img {
    height: 24px !important;
    /* Optimized larger size for slim footer */
    width: auto !important;
    display: block !important;
    opacity: 0.95;
}

.footer-powerby {
    justify-content: center !important;
    text-align: center !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    letter-spacing: 0.1px;
}

.footer-version-box {
    justify-content: flex-end !important;
    text-align: right !important;
}

#footer_version {
    font-size: 11.5px !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

footer.footer #footer_link {
    color: #0056b3 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    margin-left: 5px;
    transition: all 0.2s ease;
}

footer.footer #footer_link:hover {
    color: #003d80 !important;
    text-decoration: underline !important;
}

/* Mobile & Toggled Sidebar Fix */
@media (max-width: 768px) {
    body #wrapper footer.footer {
        left: 0 !important;
        width: 100% !important;
        padding: 0 20px !important;
    }
}

/* 7.7. BACK TO TOP ICON BUTTON */
.to_top {
    position: fixed !important;
    bottom: 60px !important;
    right: 20px !important;
    width: 40px !important;
    /* Increased size slightly */
    height: 40px !important;
    border-radius: 50% !important;
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000 !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    opacity: 0.9 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    padding: 0 !important;
    outline: none !important;
}

.to_top i {
    color: #ffffff !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.to_top:hover {
    opacity: 1 !important;
    background-color: #2563eb !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2) !important;
}

/* 7.8. UTILITY & CLEANUP OVERRIDES */
.white-bg {
    background-color: transparent !important;
}

.bg-white:not(#marquee_div) {
    background-color: transparent !important;
}

.modal-content,
.dropdown-menu {
    background-color: #ffffff !important;
}

.breadcrumb-item.active {
    color: #94a3b8 !important;
}

/* 7.9. MODERN HELP MODAL STYLES */
.help-card {
    border: none !important;
    border-radius: 12px !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease !important;
    padding: 20px 10px !important;
    min-height: 180px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.help-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}

.help-icon-wrapper {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
    font-size: 26px !important;
    transition: all 0.3s ease !important;
}

.help-card:hover .help-icon-wrapper {
    transform: scale(1.1) rotate(5deg) !important;
}

.bg-soft-primary {
    background-color: #eff6ff !important;
}

.bg-soft-success {
    background-color: #f0fdf4 !important;
}

.bg-soft-warning {
    background-color: #fffbeb !important;
}

.font-600 {
    font-weight: 600 !important;
}

.font-500 {
    font-weight: 500 !important;
}

.font-13 {
    font-size: 13.5px !important;
}

.font-12 {
    font-size: 12.5px !important;
}

.underline-hover:hover {
    text-decoration: underline !important;
}

.help-card-text {
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
    word-break: break-word !important;
}

/* 7.10. MODERN INFORMATION MODAL STYLES */
.info-section-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #1e40af;
}

.info-section-header i {
    font-size: 18px;
    color: #1e40af;
    margin-right: 12px;
}

.info-section-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.info-item:hover {
    border-color: #cbd5e1;
    background: #fdfdfd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.info-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
    word-break: break-all;
}

.info-footer-table {
    margin-top: 30px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}


/* 7.10. MODERN INFORMATION MODAL STYLES */
.modal-body_info .info-grid-container {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 20px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.modal-body_info .info-label {
    color: #64748b !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 2px !important;
}

.modal-body_info .info-value {
    color: #1e293b !important;
    line-height: 1.4 !important;
}

.modal-body_info hr {
    border-top: 1px solid #f1f5f9 !important;
}

#info-tbl thead th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding: 12px 10px !important;
}

#info-tbl tbody td {
    font-size: 11.8px !important;
    padding: 10px !important;
    color: #334155 !important;
}

.modal-body_info .info-item:hover .info-label {
    color: #3b82f6 !important;
}

.modal-body_info .info-value b {
    font-weight: 600 !important;
    color: #0f172a !important;
}

/* 7.10. REFINED INFORMATION LIST STYLES */
.info-list-refined {
    padding: 10px 0;
}

.info-item-simple {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

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

.info-label {
    color: #64748b !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 4px !important;
    text-transform: uppercase !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
}

.info-value {
    color: #1e293b !important;
    line-height: 1.5 !important;
}

.info-value.font-15 {
    font-size: 15px !important;
}

.info-value.font-14 {
    font-size: 14px !important;
}

.letter-spacing-1 {
    letter-spacing: 0.5px !important;
}

.info-value.font-13 {
    font-size: 13.2px !important;
}

.info-value {
    letter-spacing: 0.2px !important;
}

/* Dashboard Date-Linked Styles */
.fas.fa-history {
    transition: all 0.3s ease;
}

.card-box:hover .fas.fa-history {
    color: #64b0f2 !important;
}

.input-group.date:focus-within .input-group-addon {
    border-color: #689FDE !important;
    background: rgba(104, 159, 222, 0.1) !important;
}

/* 7.11. DASHBOARD CARD REFINEMENTS */
.font-700 {
    font-weight: 700 !important;
}

.font-18 {
    font-size: 18px !important;
}

.letter-spacing-1 {
    letter-spacing: 1px !important;
}

.border-blue-soft {
    border-color: #e2e8f0 !important;
}

.bg-soft-primary {
    background-color: #eff6ff !important;
}

.underline-hover:hover {
    text-decoration: underline !important;
}

.font-10 {
    font-size: 10px !important;
}

.font-12 {
    font-size: 12px !important;
}

.font-600 {
    font-weight: 600 !important;
}

.font-9 {
    font-size: 9px !important;
}

.font-11 {
    font-size: 11px !important;
}

.font-16 {
    font-size: 16px !important;
}

.font-700 {
    font-weight: 700 !important;
}

.font-600 {
    font-weight: 600 !important;
}

.underline-hover:hover {
    text-decoration: underline !important;
}

.shadow-none {
    box-shadow: none !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.rounded {
    border-radius: 4px !important;
}

/* 7.12. DASHBOARD BALANCE CARD UI/UX IMPROVEMENTS */
.balance-card-refined {
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
    border-radius: 12px !important;
}

.balance-card-refined:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08) !important;
}

.date-filter-context {
    background-color: #f1f5f9 !important;
    border: 1px dashed #cbd5e1 !important;
    padding: 10px !important;
    border-radius: 8px !important;
    margin: 15px 0 !important;
}

.date-filter-context label {
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 5px !important;
    display: block !important;
}

.balance-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 5px 0 !important;
}

.balance-label {
    color: #64748b !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
}

.balance-value {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

.card-btn-stack .btn {
    margin-bottom: 8px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    padding: 8px !important;
}

.card-btn-stack .btn:last-child {
    margin-bottom: 0 !important;
}

.info-value.font-12 {
    font-size: 12.5px !important;
}

.font-12 {
    font-size: 12.5px !important;
}

.font-11 {
    font-size: 11px !important;
}

.info-value {
    font-weight: 600 !important;
    font-size: 12.5px !important;
}

.btn-soft-primary {
    background-color: rgba(104, 159, 222, 0.15) !important;
    color: #689FDE !important;
    border: none !important;
}

.btn-soft-primary:hover {
    background-color: #689FDE !important;
    color: #ffffff !important;
}

.font-700 {
    font-weight: 700 !important;
}

.letter-spacing-1 {
    letter-spacing: 0.5px !important;
}

.color-slate {
    color: #64748b !important;
}

/* 7.11. TRADE CONFIRMATION MODAL REFINEMENT */
.trade-confirmation-header {
    background: #f8fafc !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 20px !important;
}

.trade-header-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.trade-header-item label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #64748b !important;
    margin-bottom: 0 !important;
    white-space: nowrap !important;
}

.trade-date-input-group {
    width: 140px !important;
}

.trade-date-input-group input {
    font-size: 12.5px !important;
    border-radius: 4px 0 0 4px !important;
    height: 32px !important;
}

.trade-date-input-group .input-group-addon {
    padding: 4px 8px !important;
    background: #e2e8f0 !important;
    border: 1px solid #ced4da !important;
    border-left: none !important;
    border-radius: 0 4px 4px 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
}

.trade-turnover-input {
    width: 150px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    height: 32px !important;
    background-color: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    text-align: right !important;
}

.trade-segment-radio-group {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
}

.trade-segment-radio-group .form-check {
    padding-left: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.trade-segment-radio-group .form-check-label {
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    cursor: pointer !important;
}

.trade-exchange-select {
    width: 90px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    height: 32px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 0 5px !important;
}