@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.2.2/font/bootstrap-icons.css");

/* =============================================
   NaariBazaar Design Tokens — Red Brand Theme
   Brand Primary: #d91a1a  (Naari Red)
   ============================================= */
:root {
    /* Brand Reds */
    --nb-red-50:   #fff5f5;
    --nb-red-100:  #ffe0e0;
    --nb-red-200:  #ffbaba;
    --nb-red-300:  #ff8080;
    --nb-red-400:  #f05050;
    --nb-red-500:  #e02020;
    --nb-red-600:  #d91a1a;   /* Primary brand red */
    --nb-red-700:  #b81414;
    --nb-red-800:  #960f0f;
    --nb-red-900:  #6e0a0a;

    /* Warm Neutrals */
    --nb-neutral-50:  #faf9f9;
    --nb-neutral-100: #f4f2f2;
    --nb-neutral-200: #e8e4e4;
    --nb-neutral-300: #d1cbcb;
    --nb-neutral-400: #a89d9d;
    --nb-neutral-500: #7d7070;
    --nb-neutral-600: #574d4d;
    --nb-neutral-700: #3d3131;
    --nb-neutral-800: #2b2020;
    --nb-neutral-900: #1a1212;

    /* Sidebar palette */
    --nb-sidebar-bg:      #212121;   /* Deep neutral-dark for visual calm */
    --nb-sidebar-hover:   #2e2424;   /* Warm-tinted hover */
    --nb-sidebar-active:  #d91a1a;   /* Brand red — accent only */
    --nb-sidebar-text:    #bdbdbd;   /* Neutral muted text */
    --nb-sidebar-border:  #333333;

    /* Surface / Background */
    --nb-page-bg:      #f5f5f5;      /* Very light neutral — comfortable on eyes */
    --nb-card-bg:      #ffffff;
    --nb-card-border:  #ebebeb;
    --nb-card-shadow:  0 1px 4px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.04);

    /* Semantic */
    --nb-success:  #16a34a;
    --nb-warning:  #ca8a04;
    --nb-danger:   #d91a1a;
    --nb-info:     #0369a1;

    /* Typography */
    --white-color: #ffffff;
    --font-8: 14px;
    --fontWeight-400: 400;
}


@font-face {
    font-family: 'InterRegular';
    src: url('../fonts/InterRegular.eot');
    src: url('../fonts/InterRegular.eot') format('embedded-opentype'), url('../fonts/InterRegular.woff2') format('woff2'), url('../fonts/InterRegular.woff') format('woff'), url('../fonts/InterRegular.ttf') format('truetype'), url('../fonts/InterRegular.svg#InterRegular') format('svg');
}

@font-face {
    font-family: 'HeeboLight';
    src: url('../fonts/HeeboLight.eot');
    src: url('../fonts/HeeboLight.eot') format('embedded-opentype'), url('../fonts/HeeboLight.woff2') format('woff2'), url('../fonts/HeeboLight.woff') format('woff'), url('../fonts/HeeboLight.ttf') format('truetype'), url('../fonts/HeeboLight.svg#HeeboLight') format('svg');
}



/** Common Styles **/
body {
    background: var(--nb-page-bg);
    color: #2d2d2d;
    line-height: 1.6;
}

.cursor {
    cursor: pointer;
}

.login_bg {
    /*    background-image: url('../images/login_bg.jpg');
    background-size: cover;*/
    background-color: #FFFFFF;
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'InterRegular';
}

.login_bg::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.associates-wrapper {
    margin-top: 15px;
}

.associates-text {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.associate-logo {
    height: 90px;
    width: auto;
    margin-top: 4px;
}
.form-floating {
    margin-bottom: 15px;
}

.form-control {
    border: 1px solid #EFEFEF;
}

.input-validation-error {
    border-color: red !important;
}

.form-check {
    margin-top: 15px;
}

.form-check .form-check-input[type='checkbox'] {
    border: 1px solid #B6B6B6;
    border-radius: 1px;
    height: 20px;
    width: 20px;
    margin-right: 10px;
}

.fs-12 {
    font-size: 12px !important;
}

.bg-red {
    background-color: var(--nb-red-600) !important;
    border-color: var(--nb-red-600) !important;
}

.light-grey {
    color: #B6B6B6;
}

.form-check-input:checked {
    background-color: #0046FF;
    border-color: #0046FF;
}

.btn-height-60 {
    height: 50px;
}

.white_bg {
    background-color: var(--nb-card-bg);
    color: var(--nb-red-600);
    border: 1px solid var(--nb-red-600) !important;
}

.border-left-2px {
    border-left: 2px solid #F8F9FE;
}

/** Login Page **/

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--nb-neutral-100);
}

.login-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 448px;
    text-align: center;
}

.login-card img {
    margin-bottom: 5px;
}

.form-control {
    height: 50px;
    border-radius: 10px;
    font-size: 15px;
}

/* Global input focus — soft rose glow instead of harsh dark */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--nb-red-400) !important;
    box-shadow: 0 0 0 3px rgba(217, 26, 26, 0.10) !important;
    caret-color: var(--nb-red-600);
    outline: none !important;
}

/* Custom Scrollbar for Sidebar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--nb-sidebar-bg);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--nb-sidebar-border);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--nb-red-800);
}

/* ── Sidebar Logo (White Logo on dark sidebar) ───────────────
   White Logo.png has a transparent/white-friendly design —
   render it directly on the dark sidebar background.
   ──────────────────────────────────────────────────────────── */
.sidebar > div:first-child {
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.sidebar-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 20px;
    text-decoration: none;
    background: transparent;
    transition: opacity 0.15s ease;
}

.sidebar-logo-link:hover {
    opacity: 0.88;
    background: transparent;
}

.sidebar-logo {
    display: block;
    width: 80px;
    height: auto;
    object-fit: contain;
}

.sidebar-logo-sub {
    display: block;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--nb-sidebar-text, #bdbdbd);
    padding: 0 10px;
    margin: 0;
}

/* Sidebar Logout Link Theme Enforcement - Overrides inline inline styles */
#logoutLink.logout {
    color: var(--nb-red-600) !important;
    background-color: transparent !important;
    transition: background-color 0.18s ease, color 0.18s ease !important;
}

#logoutLink.logout:hover,
#logoutLink.logout:focus,
#logoutLink.logout:active,
.sidebar #logoutLink.logout:hover {
    background-color: var(--nb-red-600) !important;
    color: #ffffff !important;
}

/* Members KPI Card Lighter Theme Override */
.kpi-card.bg-gradient-to-br {
    background: linear-gradient(135deg, #fdfdfd 0%, #f4f0f0 100%) !important;
    color: #1a1a1a !important;
    border: 1px solid #ebebeb !important;
    border-left: 4px solid #7d7070 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}
.kpi-card.bg-gradient-to-br .absolute {
    display: none !important;
}
.kpi-card.bg-gradient-to-br p.text-gray-400,
.kpi-card.bg-gradient-to-br div.text-gray-400 {
    color: #7d7070 !important;
}
.kpi-card.bg-gradient-to-br h3 {
    color: #1a1212 !important;
}
.kpi-card.bg-gradient-to-br .kpi-icon-wrapper {
    background: #7d7070 !important;
    color: #ffffff !important;
    backdrop-filter: none !important;
    border-radius: 10px !important;
}
.kpi-card.bg-gradient-to-br .text-green-400 {
    color: #16a34a !important;
}
.kpi-card.bg-gradient-to-br .bg-green-400.bg-opacity-20 {
    background-color: rgba(22, 163, 74, 0.12) !important;
}

/* ── Login / Auth Page Logo (Logo.png on white background) ── */
.login-logo {
    display: block;
    margin: 0 auto 8px;
    width: auto;
    height: 130px;
    max-width: 260px;
    object-fit: contain;
}

@media (max-width: 480px) {
    .login-logo {
        height: 90px;
    }
    .sidebar-logo {
        width: 120px;
    }
}

.password-wrapper {
    position: relative;
}

.eye-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

.error-message {
    font-size: 13px;
    color: red;
    margin-top: 4px;
}

.forgot_pass {
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-bottom: 2rem;
}

.login-btn {
    height: 50px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
}

.footer-text {
    margin-left: 15px;
    margin-top: 4px;
    font-size: 13px;
    color: #888;
}
.sidebar-associate-inline {
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 1px;
    margin-left: 20px;
}

.sidebar-kalki-logo {
    height: 60px;
    width: auto;
}


.password-wrapper {
    position: relative;
}

.password-wrapper .eye-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #6c757d;
    /* muted grey */
}

.password-wrapper .eye-icon:hover {
    color: #000;
    /* darker on hover */
}

.login-logo {
    max-width: 100%;
    width: auto;
    height: 160px;
    display: block;
    margin: 0 auto 20px auto;
}



@media (max-width: 768px) {
    .login-logo {
        max-height: 90px;
    }
}




.login-container {
    background-color: #F8F9FE;
    width: 646px;
    min-height: 590px;
    border-radius: 4px;
    box-shadow: 0px 0px 10px 0px #000000;
    padding: 30px 100px;
}

.login-container img {
    display: block;
    margin: 0 auto;
}

.login-container h2 {
    text-align: center;
    color: var(--nb-red-600);
    font-family: 'HeeboMedium';
    font-size: 22px;
}

.login-container p {
    font-size: 14px;
}

.login-container .eye-icon {
    top: 16px;
    right: 15px;
}

.forgot_link {
    color: var(--nb-red-600);
    font-size: 15px;
    text-decoration: none;
    margin-top: 5px;
}

.forgot_link:hover {
    text-decoration: underline;
}

.btn {
    outline: none;
    font-size: 18px;
    line-height: 29.38px;
    border-radius: 4px;
    font-family: 'HeeboMedium';
    font-weight: 500;
    min-width: 100px;
}

.btn-primary {
    background-color: #d91a1a;
    border-color: #d91a1a;
    background-color: var(--nb-red-600);
    border-color: var(--nb-red-700);
    color: white;
    min-width: 100px;
    outline: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

    .btn-primary:hover,
    .btn-primary:active,
    :not(.btn-check) + .btn:active,
    .btn:first-child:active {
        background-color: #d91a1a;
        color: #ffffff;
        border: 1px solid #ffffff !important;
    }
.btn-primary:hover,
.btn-primary:active,
:not(.btn-check)+.btn:active,
.btn:first-child:active {
    background-color: var(--nb-red-700);
    color: #ffffff;
    border: 1px solid var(--nb-red-700) !important;
    box-shadow: 0 4px 12px rgba(217,26,26,0.3);
}

.btn-outline-primary,
.btn-check:checked+.btn,
.btn.show {
    background-color: #d91a1a;
    color: #ffffff;
    background-color: var(--nb-red-600);
    color: #ffffff;
    min-width: 100px;
    outline: none;
    font-size: 18px;
    line-height: 29.38px;
    border-radius: 4px;
    font-family: 'HeeboMedium';
    font-weight: 500;
    border: 1px solid var(--nb-red-700) !important;
}

    .btn-outline-primary:hover {
        background-color: #d91a1a;
        color: #ffffff;
        border: 1px solid #ffffff !important;
    }
.btn-outline-primary:hover {
    background-color: var(--nb-red-700);
    color: #ffffff;
    border: 1px solid var(--nb-red-700) !important;
}

.otp_input .form-control {
    width: 55px;
    height: 52px;
    border: 2px solid #000000 !important;
    border-radius: 4px;
    font-size: 26px;
    font-family: 'HeeboLight';
}

.otp_input .form-control::placeholder {
    font-size: 26px;
    font-weight: 300;
}


.otp-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.otp-input {
    width: 40px;
    height: 40px;
    font-size: 20px;
    text-align: center;
    border: 2px solid #007bff;
    border-radius: 5px;
    outline: none;
    transition: 0.2s;
}

.otp-input:focus {
    border-color: #0056b3;
    box-shadow: 0px 0px 5px rgba(0, 91, 187, 0.5);
}

.resend-link {
    color: red;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.resend-link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .login-container {
        padding: 20px;
        margin: 10px;
    }
}

/** Dashboard Css **/
.menusection li {
    margin: 5px 0px;
}

.menusection li a {
    color: black;
    font-size: 16px;
    font-weight: 500;
    padding: 5px 10px;
    line-height: 30px;
}

.menusection li a:hover,
.menusection li a.active,
.menusection li a:focus {
    background-color: #d91a1a !important;
    color: #fff;
}

.menusection li ul {
    margin: 10px 0px;
}

.menusection li ul li {
    margin: 0px 0px;
    padding: 0px 10px;
}

.menusection li ul li a {
    font-size: 15px;
    margin-left: 10px;
}

.menusection li ul li a:hover,
menusection li ul li a:focus,
.menusection li ul li a.active {
    background-color: transparent !important;
    color: #d91a1a;
}

.menusection li ul li a::before {
    font-size: 50px;
    content: ".";
    line-height: 0px;
}

.menusection li i::before {
    vertical-align: middle;
}

.download_btn {
    margin-right: 15px;
}

.download_btn .btn {
    border-radius: 4px;
    padding: 10px 30px;
    font-size: 12px;
    line-height: 14.52px;
}

.download_btn .dropdown-toggle::after {
    margin-left: 10px;
}

._title {
    color: #000000;
    font-family: 'HeeboMedium';
    font-size: 24px;
}

.table th,
.table td {
    padding: 10px;
    min-width: 150px;
    border: 0px;
}

.table thead {
    background: #f5f0f0;
}

.table th {
    background-color: #f5f0f0 !important;
    white-space: nowrap;
    height: 48px;
    color: #5a3a3a;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.table td {
    border-bottom: 1px solid #f0eded;
    white-space: nowrap;
    font-size: 14px;
    color: #444444;
}

/* Table row hover */
.table tbody tr:hover {
    background-color: #fdf8f8;
}

.table td .btn {
    background: #116d151f;
    width: 80px;
    text-transform: uppercase;
    font-size: 12px;
    padding: 8px 14px 8px 14px;
    border-radius: 4px;
    font-size: 500;
}

.table td .btn-warning {
    background-color: rgba(255, 184, 0, 0.2);
    color: #FFB800;
    border: 1px solid transparent;
}

.pagination {
    justify-content: flex-end;
    margin-top: 10px;
}

.pagination .page-item {
    margin: 0px 5px;
}

.pagination .page-item .page-link {
    border: 1px solid transparent;
    color: #555555;
    border-radius: 6px;
    font-size: 13px;
    transition: background-color 0.15s ease;
}

.pagination .page-item .page-link:hover {
    background-color: var(--nb-red-50);
    color: var(--nb-red-600);
}

.pagination .page-item.active .page-link {
    background-color: var(--nb-red-600);
    border-color: var(--nb-red-700);
    color: #fff;
    box-shadow: 0 2px 6px rgba(217,26,26,0.22);
}

.accordion-button:not(.collapsed),
.accordion-button:hover {
    background-color: var(--nb-red-600);
    border-color: var(--nb-red-700);
    color: #fff;
}

.nav-tabs {
    border-bottom: 0.5px solid #676566;
    justify-content: space-between;
}

.nav-tabs .nav-item a {
    padding: 0px 65px 10px;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover {
    border-top: 1px solid transparent !important;
    border-left: 1px solid transparent !important;
    border-right: 1px solid transparent !important;
    border-bottom: 2px solid var(--nb-red-600) !important;
    color: var(--nb-red-600) !important;
}

.nav-tabs .nav-link {
    color: #676566 !important;
    font-size: 14px !important;
    font-family: 'HeeboMedium';
    font-weight: 400 !important;
    border-bottom: none;
    border-radius: 0;
}

.bg-white-tabs {
    background-color: #ffffff;
    padding: 15px;
}

.tab-content .form-control,
.tab-content .form-select,
.modal-body .form-control {
    height: 44px;
    border: 1px solid #DADADA;
    border-radius: 2px;
}

.tab-content label {
    color: #000000;
    font-size: 14px;
    font-weight: 500;
}

.modal-body {
    max-width: 978px;
    /*height: 642px;*/
}

.rating {
    display: inline-block;
    font-size: 1.5rem;
}

.rating input {
    display: none;
}

.rating label {
    cursor: pointer;
    color: #000;
}

.rating label:before {
    content: '\2605';
}

.rating input:checked~label {
    color: #ffc107;
}

.tab-content .accordion-item {
    border: 0px;
}

@media (max-width: 991px) {
    .tab-content>.tab-pane {
        display: block;
        opacity: 1;
    }
}

._notification_dropdown .dropdown-menu {
    border-radius: 0px;
    width: 200px;
    padding: 10px;
}

._notification_dropdown li {
    border-bottom: 1px solid #cfcfcf;
    padding-top: 8px;
}

._notification_dropdown li:last-child {
    border-bottom: 1px solid transparent;
}

._notification_dropdown li:first-child {
    padding-top: 0px;
}

._notification_dropdown li a {
    text-decoration: none;
}

._notification_dropdown li ._new_message {
    color: #E41D28;
    font-size: 9px;
    padding-bottom: 0px;
    margin-bottom: 0px;
}

._notification_dropdown li .text-muted {
    font-size: 9px;
    margin-bottom: 8px;
}

._notification_dropdown li img {
    margin-top: 5px;
}

._red_dot {
    top: 0px;
    background-color: var(--nb-red-600);
    width: 8px;
    height: 8px;
    border: 1px solid var(--nb-neutral-900);
    border-radius: 50%;
    right: 13px;
}

/* .accordion-collapse .btn-primary, .modal-footer .btn-primary, .accordion-collapse .btn-outline-primary:
   No style overrides needed — inherits from .btn-primary definition. */

@media only screen and (min-width: 992px) and (max-width: 1420px) {
    .nav-tabs {
        justify-content: space-between;
    }

    .nav-tabs .nav-item a {
        padding: 0px 10px 10px;
    }
}

#main {
    transition: margin-left .5s;
    margin-left: 250px;
}

.logo {
    width: 98px;
}

.sidemenu .logo_sec .logo {
    width: 48px;
}

.sidemenu .logo_sec img:last-child {
    display: none;
}

.sidemenu .logo_sec img,
.sidemenu .nav-pills .nav-link img {
    margin: auto;
}

.sidemenu ul#menu span,
.sidemenu ul#menu ul {
    display: none;
}

#mySidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    transition: all 0.4s ease;
    background: #fff;
    margin-bottom: 0;
    padding-bottom: 1rem;
}


.fs-14 {
    font-size: 14px;
}

@media(max-width:767px) {
    #mySidebar {
        background: rgb(0 0 0 / 50%);
        width: 100% !important;
    }

    #mySidebar.sidemenu {
        display: none !important;
    }

    #main {
        margin-left: 0px !important;
    }



    #mySidebar>div {
        background: #fff;
        width: 250px;
    }
}

/*spinner css start*/

/*Loader Style */
@keyframes loader {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.spinner-center {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    position: fixed;
    /* Change from absolute to fixed */
    top: 0;
    /* Ensure it starts at the top of the viewport */
    left: 0;
    /* Ensure it starts at the left of the viewport */
    z-index: 999999999;
    padding: 0;
    margin: 0;
}

.loader div {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 20px solid var(--nb-red-600);
    border-top-color: transparent;
    border-radius: 50%;
}

.loader div {
    animation: loader 1s linear infinite;
    top: 100px;
    left: 100px
}

.spinner {
    width: 200px;
    height: 200px;
    display: inline-block;
    overflow: hidden;
}

.loader {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    transform-origin: 0 0;
}

.loader div {
    box-sizing: content-box;
}

/* ─────────────────────────────────────────────
   Global card / white-surface polish
   ───────────────────────────────────────────── */
.whiteBgSection {
    background: var(--nb-card-bg);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--nb-card-border);
    box-shadow: var(--nb-card-shadow);
}

@media (min-width: 768px) {
    .layoutSection {
        padding: 20px;
    }
    .whiteBgSection {
        padding: 20px;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)
    }

    50% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
    }

    75%,
    100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
    }
}

/*spinner css end*/
.closeImg {
    position: absolute;
    top: -5px;
    right: -5px;
}

.btn-upload {
    background-color: #f6f6f6;
    font-size: var(--font-8);
    font-weight: var(--fontWeight-400);
    color: #4d4d4d;
    height: 48px;
    border-radius: 12px;
    padding-left: 10px;
    padding-right: 15px;
    white-space: nowrap;
    min-width: 128px;
}

.btn-upload:hover {
    background-color: #f6f6f6;
}

/* Make entire page white and center login */
body.login_bg {
    background: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* full screen height */
    margin: 0;
}

/* Login container styled as a card */
.login-container {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    /* same card width as screenshot */
    text-align: center;
}

/* Make page white and center the card */
body.login_bg {
    background: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

/* Keep only ONE .login-container definition – this one should be last */
.login-container {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* --- Floating label compatibility with our global .form-control override --- */
.form-floating>.form-control,
.form-floating>.form-control-plaintext {
    height: calc(3.5rem + 2px) !important;
    /* restore Bootstrap's height */
    padding: 1rem .75rem !important;
    /* restore Bootstrap's padding */
    line-height: 1.25;
}

.form-floating>label {
    padding: .5rem .75rem !important;
}

/* Make placeholder transparent so label is visible inside input */
.form-floating .form-control::placeholder {
    color: transparent !important;
}

/* Nice invalid state */
.form-control.is-invalid {
    border-color: #dc3545;
}

/*Product*/

.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #f9fafb;
}

.form-input:focus {
    outline: none;
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.status-active {
    background-color: #dcfce7;
    color: #166534;
}

.status-inactive {
    background-color: #fee2e2;
    color: #b91c1c;
}

.status-discontinued {
    background-color: #fef3c7;
    color: #b45309;
}

.search-highlight {
    background-color: #fffbeb;
    font-weight: 600;
}

.action-btn {
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.1);
}

.status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

#clearSearchBtn i {
    pointer-events: none;
}

#searchInput {
    padding-right: 2.5rem;
}

#searchInput:focus+#clearSearchBtn {
    display: block;
}

.menu-item.active {
    background-color: var(--nb-red-600);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(217,26,26,0.3);
}

.menu-item.active i {
    color: #FFFFFF;
}

#btnAddPermission i {
    display: flex;
    align-items: center;
}

th.sortable {
    white-space: nowrap;
    /* prevent wrapping */
    text-align: left;
    /* keep text aligned */
    vertical-align: middle;
    /* proper alignment */
}

th.sortable .sort-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    /* spacing between text and icon */
}



.pageSelect {
    border: 1px solid #666;
}

/*#productListSection .flex.items-center {
    position: relative;*/
/* creates stacking context */
/*z-index: 0;*/
/* ensures it stays below menu bar */
/*}*/
.view-icon i,
.fa-edit,
.fa-pencil-alt {
    color: #000000 !important;
}

.view-icon:hover i {
    color: #444444 !important;
}

.user-profile-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--nb-red-600);
    color: white;
    font-weight: bold;
    border: 2px solid var(--nb-red-200);
    box-shadow: 0 2px 6px rgba(217,26,26,0.25);
}

/* ============================================
   Tailwind Red-Brand Overrides
   Replaces generic indigo/blue with NaariBazaar
   brand red palette across all Tailwind classes.
   ============================================ */

/* Primary solid backgrounds (search btn, add btn) → brand red */
.bg-indigo-600, .bg-blue-600,
.bg-indigo-500, .bg-blue-500,
.bg-indigo-700, .bg-blue-700 {
    background-color: var(--nb-red-600) !important;
    transition: background-color 0.18s ease !important;
}

/* Hover → slightly darker red */
.hover\:bg-indigo-700:hover, .hover\:bg-blue-700:hover,
.hover\:bg-indigo-600:hover, .hover\:bg-blue-600:hover {
    background-color: var(--nb-red-700) !important;
}

/* Focus rings → soft rose */
.focus\:ring-indigo-400:focus, .focus\:ring-blue-400:focus,
.focus\:ring-indigo-500:focus, .focus\:ring-blue-500:focus {
    --tw-ring-color: rgba(217,26,26,0.18) !important;
    box-shadow: 0 0 0 3px rgba(217,26,26,0.14) !important;
}

/* Tint backgrounds → very soft rose (not loud pink) */
.bg-indigo-100, .bg-blue-100 {
    background-color: #f8f0f0 !important;
}
.bg-indigo-50, .bg-blue-50 {
    background-color: #fdf8f8 !important;
}

/* Compact widget hover tints */
.hover\:bg-indigo-100:hover, .hover\:bg-blue-100:hover {
    background-color: #f8f0f0 !important;
}

/* Borders → very light rose-gray */
.border-indigo-100, .border-blue-100,
.border-indigo-300, .border-blue-300 {
    border-color: #e8dede !important;
}

/* Hover borders on cards */
.hover\:border-indigo-300:hover, .hover\:border-blue-300:hover {
    border-color: var(--nb-red-300) !important;
}

/* Focus rings */
.ring-indigo-400, .ring-blue-400 {
    --tw-ring-color: rgba(217,26,26,0.25) !important;
}

/* KPI card gradient starts — NOT used (inline styles override), kept for completeness */
.from-indigo-600, .from-blue-600,
.from-indigo-500, .from-blue-500 {
    --tw-gradient-from: var(--nb-red-600) !important;
}
.from-indigo-400, .from-blue-400 {
    --tw-gradient-from: var(--nb-red-500) !important;
}

/* KPI card gradient ends */
.to-indigo-800, .to-blue-800 {
    --tw-gradient-to: var(--nb-red-900) !important;
}
.to-indigo-600, .to-blue-600,
.to-indigo-500, .to-blue-500 {
    --tw-gradient-to: var(--nb-red-800) !important;
}

/* Icon accent colors in compact widgets */
.text-indigo-400, .text-blue-400   { color: #c06060 !important; }
.text-indigo-500, .text-blue-500   { color: #b54040 !important; }
.text-indigo-600, .text-blue-600   { color: var(--nb-red-600) !important; }
.group:hover .group-hover\:text-indigo-600,
.group:hover .group-hover\:text-blue-600 { color: var(--nb-red-700) !important; }

/* View-all link and notification links */
a.text-indigo-600 { color: var(--nb-red-600) !important; }

/* White card surfaces used by list pages */
.bg-white.rounded-lg.shadow-md,
.bg-white.rounded-xl.shadow-sm {
    box-shadow: var(--nb-card-shadow) !important;
    border: 1px solid var(--nb-card-border) !important;
}

/* Tailwind divide lines → softer */
.divide-gray-200 > * + * {
    border-color: #f0ecec !important;
}

/* Table within list pages */
table.min-w-full thead {
    background-color: #f5f0f0 !important;
}
table.min-w-full thead th {
    color: #5a3a3a !important;
    font-size: 11px;
    letter-spacing: 0.06em;
}
table.min-w-full tbody tr:hover {
    background-color: #fdf8f8 !important;
}

/* =============================================
   Invoice View — Two-Column Layout (CSS only)
   Left : Customer details
   Right: Order details
   Bottom: Full-width order items table
   ============================================= */

/* Parent container → CSS Grid, 2 equal columns */
.bg-white.rounded-lg.shadow-md > .space-y-3.text-gray-800 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    row-gap: 0;
    align-items: start;
}

/* ── Label styling improvements ── */
.space-y-3.text-gray-800 > .flex.items-start > .w-56 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5a5a5a;
    min-width: 160px;
    flex-shrink: 0;
}

/* ── Value styling ── */
.space-y-3.text-gray-800 > .flex.items-start > span:last-child {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

/* ── Row spacing ── */
.space-y-3.text-gray-800 > .flex.items-start {
    padding: 7px 0;
    border-bottom: 1px solid #f5f2f2;
    margin: 0;
}

/* ── LEFT COLUMN: Customer Details ──
   Children: 2(Customer Name), 3(Company), 4(GST), 5(Email),
   6(Mobile), 7(First Name), 9(Phone), 10(Addr1), 11(Addr2),
   12(City), 13(Country), 14(State), 15(Zip Code) */
.space-y-3.text-gray-800 > .flex.items-start:nth-child(2),
.space-y-3.text-gray-800 > .flex.items-start:nth-child(3),
.space-y-3.text-gray-800 > .flex.items-start:nth-child(4),
.space-y-3.text-gray-800 > .flex.items-start:nth-child(5),
.space-y-3.text-gray-800 > .flex.items-start:nth-child(6),
.space-y-3.text-gray-800 > .flex.items-start:nth-child(7),
.space-y-3.text-gray-800 > .flex.items-start:nth-child(9),
.space-y-3.text-gray-800 > .flex.items-start:nth-child(10),
.space-y-3.text-gray-800 > .flex.items-start:nth-child(11),
.space-y-3.text-gray-800 > .flex.items-start:nth-child(12),
.space-y-3.text-gray-800 > .flex.items-start:nth-child(13),
.space-y-3.text-gray-800 > .flex.items-start:nth-child(14),
.space-y-3.text-gray-800 > .flex.items-start:nth-child(15) {
    grid-column: 1;
}

/* ── RIGHT COLUMN: Order Details ──
   Children: 1(Order Id), 8(Order Date), 16(Total Amount),
   17(Payment Type), 18(Payment Status), 19(Delivery Status) */
.space-y-3.text-gray-800 > .flex.items-start:nth-child(1),
.space-y-3.text-gray-800 > .flex.items-start:nth-child(8),
.space-y-3.text-gray-800 > .flex.items-start:nth-child(16),
.space-y-3.text-gray-800 > .flex.items-start:nth-child(17),
.space-y-3.text-gray-800 > .flex.items-start:nth-child(18),
.space-y-3.text-gray-800 > .flex.items-start:nth-child(19) {
    grid-column: 2;
}

/* Place the right-column items into the correct rows so they
   sit neatly beside the left-column items */
.space-y-3.text-gray-800 > .flex.items-start:nth-child(1)  { grid-row: 1; }
.space-y-3.text-gray-800 > .flex.items-start:nth-child(8)  { grid-row: 2; }
.space-y-3.text-gray-800 > .flex.items-start:nth-child(16) { grid-row: 3; }
.space-y-3.text-gray-800 > .flex.items-start:nth-child(17) { grid-row: 4; }
.space-y-3.text-gray-800 > .flex.items-start:nth-child(18) { grid-row: 5; }
.space-y-3.text-gray-800 > .flex.items-start:nth-child(19) { grid-row: 6; }

/* ── Visual separator between columns ── */
.bg-white.rounded-lg.shadow-md > .space-y-3.text-gray-800 {
    position: relative;
}
.bg-white.rounded-lg.shadow-md > .space-y-3.text-gray-800::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 60px;  /* stop above order items table */
    left: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #e8e4e4 15%, #e8e4e4 85%, transparent);
    pointer-events: none;
}

/* ── Section title & table → full width ── */
.space-y-3.text-gray-800 > .section-title {
    grid-column: 1 / -1;
    margin-top: 28px;
    padding-top: 16px;
    padding-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--nb-red-700);
    border-bottom: 2px solid var(--nb-red-200);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.space-y-3.text-gray-800 > table {
    grid-column: 1 / -1;
}

/* ── Responsive: stack on small screens ── */
@media (max-width: 768px) {
    .bg-white.rounded-lg.shadow-md > .space-y-3.text-gray-800 {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
    .space-y-3.text-gray-800 > .flex.items-start:nth-child(1),
    .space-y-3.text-gray-800 > .flex.items-start:nth-child(8),
    .space-y-3.text-gray-800 > .flex.items-start:nth-child(16),
    .space-y-3.text-gray-800 > .flex.items-start:nth-child(17),
    .space-y-3.text-gray-800 > .flex.items-start:nth-child(18),
    .space-y-3.text-gray-800 > .flex.items-start:nth-child(19) {
        grid-column: 1;
        grid-row: auto;
    }
    .bg-white.rounded-lg.shadow-md > .space-y-3.text-gray-800::before {
        display: none;
    }
}

/* ── Invoice View — Enlarged Logo ── */
.bg-white.rounded-lg.shadow-md > .text-center.mb-4 > img.w-20 {
    width: 140px !important;
    height: auto;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .bg-white.rounded-lg.shadow-md > .text-center.mb-4 > img.w-20 {
        width: 110px !important;
    }
}

.btn-upload {
    max-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .btn-upload span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 150px; /* adjust */
    }
.position-relative {
    width: 100%;
}

.closeImg {
    position: absolute;
    top: -8px;
    right: -8px;
    background: white;
    border-radius: 50%;
    z-index: 2;
}
.btn-full {
    width: 100%;
}
.grid > div {
    min-width: 0;
}