﻿/*for showing validation error message*/
.custom-alert {
    max-width: 320px;
    width: 100%;
    position: fixed !important;
    max-height: 100vh;
    z-index: 9999;
    pointer-events: none;
    right: 15px;
    top: 15px;
}

.loader {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url('//upload.wikimedia.org/wikipedia/commons/thumb/e/e5/Phi_fenomeni.gif/50px-Phi_fenomeni.gif') 50% 50% no-repeat rgb(249,249,249);
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 1.22rem 1rem !important;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--bs-gray-700);
    text-align: center;
    white-space: nowrap;
    background-color: var(--bs-gray-100);
    border: 1px solid var(--bs-gray-300);
    border-radius: 0 !important;
    border-top-left-radius: .65rem !important;
    border-bottom-left-radius: .65rem !important;
}

.secLoader {
    display: none;
    background-color: rgba(255,255,255,0.7);
    position: fixed;
    z-index: 9999 !important;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

    .secLoader img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }


/*for UserManagementRole checkbox begin*/
.form-check.form-check-solid .roledefault:checked {
    background-color: black !important;
}

.form-check.form-check-solid .roleoverridden:checked {
    background-color: red !important;
}

.form-check.form-check-solid .roleoverroleoriented:checked {
    background-color: green !important;
}

.form-check.form-check-solid .roleoverrolewarning:checked {
    background-color: orangered !important;
}

.roleindication {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin-top: 4px;
}
/*for UserManagementRole checkbox end*/


/* Media query */

@media screen and (max-width: 990px) {
    .pagination {
    }
}

@media screen and (min-width: 992px) {
    .pagination {
        float: right !important;
    }
}

/*Table Borders*/
.menu-minimalist {
    background: #f6f3ed !important;
}

    .menu-minimalist .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) {
        background-color: #F1EDE4;
    }

    .menu-minimalist .menu-item .menu-link.active {
        background-color: #F1EDE4;
    }

.table thead tr th {
    background: #efede8 !important;
}

.table tbody tr:hover {
    background: #f9f9f8 !important;
}

/*.table tbody tr:nth-child(2n+2) {
    background: #fbfbfa !important;
}*/

table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 .50rem;
}

table tbody tr:last-child td:last-child {
    border-radius: 0 0 .50rem 0;
}

.table thead tr th:first-child {
    border-radius: .50rem 0 0 0;
}

.table thead tr th:last-child {
    border-radius: 0 .50rem 0 0;
}


.table thead tr th:last-child {
    border-right: 0;
}

.table tbody tr td:last-child {
    border-right: 0;
}

.form-floating .form-select {
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 0.65rem;
    padding-top: 1.65rem !important;
    /*padding-left: 1rem !important; old padding*/
    padding-left: 0.5rem !important;
    padding-bottom: .450rem !important;
}

.form-floating .form-control {
    padding-left: 0.5rem !important;
}

.form-floating > label {
    padding-left: 0.5rem !important;
    font-size: 1rem !important;
}

@media screen and (max-width: 600px) {
    .customheaderwidth {
        width: 165px !important;
    }

    .customsearchwidth {
        width: 315px !important;
    }
}

.btn.btn-active-sidebar.active {
    background: #e3ac46;
}

    .btn.btn-active-sidebar.active i {
        color: #fff;
    }


.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 12px !important;
    border-bottom: var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);
    border-top-left-radius: var(--bs-modal-inner-border-radius);
    border-top-right-radius: var(--bs-modal-inner-border-radius);
}

.modal-footer {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 12px !important;
    background-color: var(--bs-modal-footer-bg);
    border-top: var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);
    border-bottom-right-radius: var(--bs-modal-inner-border-radius);
    border-bottom-left-radius: var(--bs-modal-inner-border-radius);
}

.minusingQuantity {
    display: flex;
    align-items: center;
    padding: 1.22rem 1rem !important;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--bs-gray-700);
    text-align: center;
    white-space: nowrap;
    background-color: var(--bs-gray-100);
    border: 1px solid var(--bs-gray-300);
    border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.selectedAdjustQuantity {
    background: var(--bs-info);
}


.form-check-input:checked {
    background-color: var(--bs-info);
    border-color: #009ef7;
}

.form-control:disabled {
    color: var(--bs-gray-600);
    background-color: var(--bs-gray-200);
    border-color: var(--bs-gray-300);
    opacity: 1;
}

/*Text Editor*/
.ck-content.ck-focused {
    border-color: var(--ck-color-toolbar-border) !important;
    box-shadow: none !important;
}

.ck-content {
    border-color: var(--ck-color-toolbar-border) !important;
    box-shadow: none !important;
    min-height: 150px;
    border-radius: 0px 0px .92rem .92rem !important;
}

.ck-toolbar {
    border-top-left-radius: .92rem !important;
    border-top-right-radius: .92rem !important;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}


/*Quotation Detail Responsic*/
/* Extra Small (Mobile Phones) */
@media (max-width: 575.98px) {
    .QuoteDetailRespHead {
        width: 100%;
        display: inline-block;
    }

    .QuoteDetailRespValue {
        width: 100%;
        display: inline-block;
    }
}

/* Small (Tablets) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .QuoteDetailRespHead {
        width: 120px;
        display: inline-block;
    }

    .QuoteDetailRespValue {
        display: inline-block;
    }
}

/* Medium (Desktops and Tablets in Landscape) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .QuoteDetailRespHead {
        display: inline-block;
        width: 120px;
    }

    .QuoteDetailRespValue {
        display: inline-block;
    }
}

/* Large (Desktops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .QuoteDetailRespHead {
        width: 120px;
        display: inline-block;
    }

    .QuoteDetailRespValue {
        display: inline-block;
    }
}

/* Extra Large (Large Desktops) */
@media (min-width: 1200px) {
    .QuoteDetailRespHead {
        width: 120px;
        display: inline-block;
    }

    .QuoteDetailRespValue {
        display: inline-block;
    }
}


/*Quotation Preview Page*/
/* X-Small (<576px) */
@media (max-width: 575.98px) {
    .Quote-Preview-left {
        min-width: 50px;
    }

    .Quote-Preview-right {
        min-width: 50px;
    }
}

/* Small (≥576px) */
@media (min-width: 576px) {
    .Quote-Preview-left {
        min-width: 50px;
    }

    .Quote-Preview-right {
        min-width: 50px;
    }
}

/* Medium (≥768px) */
@media (min-width: 768px) {
    .Quote-Preview-left {
        min-width: 100px;
    }

    .Quote-Preview-right {
        min-width: 100px;
    }
}

/* Large (≥992px) */
@media (min-width: 992px) {
    .Quote-Preview-left {
        min-width: 100px;
    }

    .Quote-Preview-right {
        min-width: 100px;
    }
}

/* Extra Large (≥1200px) */
@media (min-width: 1200px) {
    .Quote-Preview-left {
        min-width: 150px;
    }

    .Quote-Preview-right {
        min-width: 150px;
    }
}

/* Extra Extra Large (≥1400px) */
@media (min-width: 1400px) {
    .Quote-Preview-left {
        min-width: 200px;
    }

    .Quote-Preview-right {
        min-width: 200px;
    }
}



table .form-control {
    font-size: 0.8rem !important;
}

.text-ellipsis-200 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.text-ellipsis-250 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.app-header .app-header-menu .menu > .menu-item > .menu-link.active {
    transition: color .2s ease;
    color: var(--bs-gray-800);
    background: rgba(0, 0, 0, 0.125);
}

.app-header .menu-title-gray-600 .menu-item .menu-link .menu-title {
    color: var(--bs-text-gray-800);
}

.app-header .menu-state-dark .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here), .menu-state-dark .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) {
    transition: color .2s ease;
    color: var(--bs-dark);
    background: rgba(0, 0, 0, 0.125);
}

/*.app-sidebar {
    border-right: 1px solid rgba(217, 219, 228, 0.6);*/
/*width:50px !important;*/
/*}*/

.app-sidebar .nav-item .nav-link {
    border: 1px dashed rgba(217, 219, 228, 0.6) !important; /* thickness + style + color  2px solid #e3ac46 !important;*/
    border-radius: 8px; /* optional: rounded edges */
    padding: 6px;
}

@media (min-width: 992px) {
    .app-container {
        padding-left: 23px !important;
        padding-right: 23px !important;
    }
}

.menu-state-dark .menu-item .menu-link.active {
    transition: color .2s ease;
    color: var(--bs-dark);
    background: #F1F1F2;
}



/*New SEP 16 2025*/

@media (max-width: 992px) { /* tablets */
    .col-handled, .col-created, .col-status {
        display: none;
    }
}

@media (max-width: 768px) { /* mobiles */
    .col-orderno, .col-eway {
        display: none;
    }
}

#kt_app_sidebar .popover {
    background-color: #fff3e0 !important; /* green */
    color: white !important;
    border: none !important;
}

    #kt_app_sidebar .popover .popover-body {
        background-color: #fff3e0 !important;
        color: white !important;
    }

.custom-popover {
    background-color: #fff3e0; /* yellow */
    color: black;
    border: none;
}

.scrolltop {
    bottom: 75px !important;
}


/* ============================= */
/* CUSTOMER PRICING RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {

    /* Hide header */
    #ListOfCustomerProduct thead {
        display: none !important;
    }

    /* Convert table to cards */
    #ListOfCustomerProduct,
    #ListOfCustomerProduct tbody,
    #ListOfCustomerProduct tr,
    #ListOfCustomerProduct td {
        display: block !important;
        width: 100% !important;
    }

        /* Row card */
        #ListOfCustomerProduct tr {
            margin-bottom: 15px;
            border: 1px solid #e4e6ef;
            border-radius: 12px;
            padding: 12px;
            background: #fff;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        /* Cell style */
        #ListOfCustomerProduct td {
            text-align: left !important;
            padding: 8px 10px;
            border: none !important;
            position: relative;
            word-break: break-word;
        }

            /* Label */
            #ListOfCustomerProduct td::before {
                content: attr(data-label);
                font-weight: 600;
                font-size: 12px;
                color: #7e8299;
                display: block;
                margin-bottom: 3px;
            }

        /* Inputs full width */
        #ListOfCustomerProduct input,
        #ListOfCustomerProduct select {
            width: 100% !important;
        }

        /* Action icons */
        #ListOfCustomerProduct td[data-label="Action"] {
            display: flex !important;
            gap: 15px;
            align-items: center;
            margin-top: 8px;
        }

        /* Icon size */
        #ListOfCustomerProduct i {
            font-size: 18px;
        }

        /* Hide S.No */
        #ListOfCustomerProduct td:nth-child(1) {
            display: none !important;
        }
}