.k-loading-image {
    /* background-image: url(Material/loading-image.gif); */
    background-image: none !important;
}
kendo-grid {
    overflow: auto;
    display: block;
    max-height:500px;
}

.k-list {
    height: 200px;
}

.k-grid-toolbar kendo-button {
    background: transparent !important;
    padding: 0 15px !important;
    /*border: 1px dashed white !important;*/
    border: none;
    color: white !important;
}

.k-header.k-grid-toolbar, .k-grid .k-grouping-header {



    height: auto !important;
    line-height: 2;
    color: #fff !important; /* Custom text color */
    font-size: 16px; /* Custom font size */
    /*font-weight: bold;*/ /* Bold text */
    background-color: #f5f5f5; /* Light gray background */
    padding: 5px; /* Add padding */
    border: 1px solid #ddd; /* Optional border */
    border-radius: 5px; /* Rounded corners */
}

.k-header.k-grid-toolbar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.buttons{
    margin-bottom:100px;
}

.k-grid-content {
    overflow: visible !important;
    margin-top:40px;
    /*    overflow-y:hidden  !important;*/
}

.k-grid-header table {
    width: 100%; /* Ensure the table fills the header */
}
/*format the kendo grid footer*/
.k-grid-footer {
}


/*.buttons .k-button-operations {
    position:absolute;   
}
.main-content .data .k-button-operations, .k-button-operations {
                position: absolute;
}*/


    .save-edit-loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Styles for the loading spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #09f;
    animation: spin 1s linear infinite;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block;
}

.important-display{
    display:inline-block !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.modal {
    z-index: 99 !important
}

.modal-overlay {
    z-index: 98 !important
}

/*for tooltip */
.k-widget.k-tooltip.k-tooltip-validation.k-invalid-msg {
    margin: 0px !important;
    width: 15px;
    height: 15px;
    overflow: hidden;
    border-radius: 50px;
}


.k-widget.k-tooltip.k-tooltip-validation.k-invalid-msg:hover {
    background-color:red;
}


/* Page title: flat Odoo-style (no gradient / word-art) */
.data h2 {
    font-size: 1.35rem;
    font-weight: 600;
    font-style: normal;
    color: #212529;
    text-shadow: none;
    letter-spacing: 0.01em;
    line-height: 1.35;
}


.color-line {
    display: inline-block;
    width: 40px; /* Adjust the width of the color line */
    height: 10px; /* Adjust the height of the color line */
    margin-right: 10px; /* Adjust the margin between the color line and the text */
    margin-left:20px;
}


.confirmed {
    background-color: lightgreen !important;
}

.first-submitted {
    background-color: rgba(0,0,0,0.2) !important;
}

.second-submitted {
    background-color: #FFFF00 !important;
}
.third-submitted {
    background-color: #c9d82b !important;
}


.fourth-submitted{
    background-color:blanchedalmond;
}

.fifth-submitted {
    background-color: #63CDFF;
}
.sixth-submitted {
    background-color: #AAC6DC;
}
.seventh-submitted {
    background-color: #D5DCE8;
}



.rejected {
    background-color: #FF0000 !important;
}


kendo-grid {
    overflow: auto;
    /*height: 400px !important;*/
/*    max-height: 400px !important;*/
    display: block;
    position: relative;
}

kendo-grid .k-grid-header {
    overflow:hidden;
}

/*#ItemGrid2 {
    overflow: hidden !important;
}*/

.data {
    overflow: hidden !important;
}




/* Increase z-index for scrollbar only */
::-webkit-scrollbar {
    z-index: 100; /* Adjust as needed */
}

/* Styling scrollbar (optional) */
::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* Change as needed */
}

::-webkit-scrollbar-thumb {
    background-color: #888; /* Change as needed */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Change as needed */
}


.k-grid-header {
    /*padding-right: 17px;
    position: fixed;
    z-index: 99;*/
    /*width: 72.5%;*/
    /*left:20px;
    right:281px;*/


    /*position: sticky;*/
    position: absolute;

    z-index: 90;
    top: 0;
}
/*.k-grid-content {
    margin-top: 47px;
}*/





.k-popup, .k-animation-container {
    overflow: visible !important;
}


.plus::before {
    transform: translateY(27%);
    display: inline-block;
    width: 30px;
    /* height: 20px; */
    content: '\f196';
    /* padding: 3px; */
    color: #d57bc2;
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    /* border: 1px black solid; */
    border-radius: 50%;
    font-family: "FontAwesome";
    /* margin: 5px; */
    cursor: pointer;
}
.minus::before {
    transform: translateY(27%);
    display: inline-block;
    width: 30px;
    /* height: 20px; */
    content: '\f147';
    font-family: "FontAwesome";
    /* padding: 3px; */
    color: #d57bc2;
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    /* border: 1px black solid; */
    border-radius: 50%;
    /* margin: 5px; */
    cursor: pointer;
}
  
  .minus:hover::before{
/*  background-color:red;    
  border:none;
  color:white;*/
   font-size:30px;
  }
.plus:hover::before {
/*    background-color: green;
    border: none;
    color: white;*/
    font-size: 30px;
}



.modal .modal-header .modal-title{
    margin-right: 20px;
}
.modal .modal-header .close{
    float: left;
    top: 26px;
    position: fixed;
    top: 10px;
    left: 10px;
    padding: 6px;
    border: none;
    background: none;
    transform: scale(1.7);
}

/*  AAM
 disabling and loading on clicking the first login button
*/

.login button, .loginn button {
    position: relative;
    outline: none;
    cursor: pointer;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-transition: background 0.2s ease-in-out;
    -moz-transition: background 0.2s ease-in-out;
    transition: background 0.2s ease-in-out;
    -webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.1);
    -moz-box-shadow: 0 2px 2px rgba(0,0,0,0.1);
    box-shadow: 0 2px 2px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.5);
}


    .login button:not([disabled]):hover {
        background: #2ecc71;
    }
    .loginn button:not([disabled]):hover {
        background: #838fcc;
    }

    .login button[disabled] {
        background: #3c7d57 !important;
        color: #ffffff3b !important;
        cursor: default;
    }

    .loginn button[disabled] {
        background: #1a5ddc !important;
        color: #ffffff3b !important;
        cursor: default;
    }


    .login button:after, .save-edit:after {
        content: '';
        display: block;
        position: relative;
        opacity: 0;
        width: 30px;
        height: 30px;
        border: 5px solid rgba(255,255,255,0.3);
        border-right-color: #fff;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        border-radius: 50%;
        left: -39px !important;
        top: -31px !important;
        -webkit-transition-property: -webkit-transform;
        -webkit-transition-duration: .5s;
        -moz-transition-property: -moz-transform;
        -moz-transition-duration: .5s;
        -webkit-animation-name: rotate;
        -webkit-animation-duration: .5s;
        -webkit-animation-iteration-count: infinite;
        -webkit-animation-timing-function: linear;
        -moz-animation-name: rotate;
        -moz-animation-duration: .5s;
        -moz-animation-iteration-count: infinite;
        -moz-animation-timing-function: linear;
        transition: all 0.2s linear;
        -webkit-transform: scale(2);
        transform: scale(2);
    }

    .loginn button:after {
        content: '';
        display: block;
        position: absolute;
        opacity: 0;
        width: 30px;
        height: 30px;
        border: 5px solid rgba(255,255,255,0.3);
        border-right-color: #fff;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        border-radius: 50%;
        left: 72px !important;
        top: 13px !important;
        -webkit-transition-property: -webkit-transform;
        -webkit-transition-duration: .5s;
        -moz-transition-property: -moz-transform;
        -moz-transition-duration: .5s;
        -webkit-animation-name: rotate;
        -webkit-animation-duration: .5s;
        -webkit-animation-iteration-count: infinite;
        -webkit-animation-timing-function: linear;
        -moz-animation-name: rotate;
        -moz-animation-duration: .5s;
        -moz-animation-iteration-count: infinite;
        -moz-animation-timing-function: linear;
        transition: all 0.2s linear;
        -webkit-transform: scale(2);
        transform: scale(2);
    }

.login button.loading-login-btn:after {
    opacity: 1;
    left: 10px;
    top: 4px;
}

.loginn button.loading-login-btn:after {
    opacity: 1;
    left: 10px;
    top: 4px;
}

/*.buttons {
    margin-bottom: 100px
}*/


/*.buttons > .k-grid {
    margin-bottom: 100px
}
*/
@-webkit-keyframes rotate {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

@-moz-keyframes rotate {
    from {
        -moz-transform: rotate(0deg);
    }

    to {
        -moz-transform: rotate(360deg);
    }
}




.dropbtn {
    /*background-color: #4CAF50;*/
    /*color: white;*/
    /*padding: 4px;*/
    /*font-size: 12px;*/
    border: none;
    cursor: pointer;
    background: unset;
}
    
    .dropdown {
        position: relative;
        display: inline-block;
    }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    opacity: 1;
    top: 22px;
    left: 0;
}

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

        .dropdown-content a:hover {
            background-color: #f1f1f1
        }

.print:hover .dropdown-content {
    display: block;
}

/* Bulk item taxes/discounts page - clear content area and readable text */
.page-bulk-taxes-discounts {
    background-color: #fff;
    color: #333;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.page-bulk-taxes-discounts h2,
.page-bulk-taxes-discounts h4 {
    color: #222;
    margin-bottom: 1rem;
}
.page-bulk-taxes-discounts label {
    color: #444;
    font-weight: 500;
}
.page-bulk-taxes-discounts input[type="number"],
.page-bulk-taxes-discounts .k-input {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
}
.page-bulk-taxes-discounts .tab-content {
    background-color: #fafafa;
}

/* Bulk page: visible buttons (override transparent k-button-operations) */
.page-bulk-taxes-discounts .bulk-action-buttons {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.page-bulk-taxes-discounts .bulk-action-buttons .k-button-operations {
    position: static;
    display: inline-block;
    background-color: #4f46e5;
    color: #fff;
    padding: 10px 20px;
    margin-left: 12px;
    border-radius: 4px;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 14px;
}
.page-bulk-taxes-discounts .bulk-action-buttons .k-button-operations:hover {
    background-color: #4338ca;
    color: #fff;
}
.page-bulk-taxes-discounts .bulk-action-buttons .k-button-operations.new {
    background-color: #4f46e5;
}
.page-bulk-taxes-discounts .bulk-action-buttons .k-button-operations.new:hover {
    background-color: #4338ca;
}
.page-bulk-taxes-discounts .bulk-action-buttons .k-button-operations.delete {
    background-color: #d64635;
}
.page-bulk-taxes-discounts .bulk-action-buttons .k-button-operations.delete:hover {
    background-color: #c0392b;
}
.page-bulk-taxes-discounts .bulk-action-buttons .k-button-operations.confirm {
    background-color: #2196f3;
}
.page-bulk-taxes-discounts .bulk-action-buttons .k-button-operations.confirm:hover {
    background-color: #1976d2;
}

/* Offer lines grid: hide validation red indicators on editable cells */
#offerLinesGrid .k-grid-content td.k-state-invalid,
#offerLinesGrid .k-grid-content .k-edit-cell.k-state-invalid,
#offerLinesGrid .k-grid-content td .k-state-invalid,
#offerLinesGrid .k-grid-content .k-input.k-state-invalid,
#offerLinesGrid .k-grid-content .k-dropdown-wrap.k-state-invalid,
#offerLinesGrid .k-grid-content .k-numeric-wrap.k-state-invalid {
    border-color: #ccc !important;
    box-shadow: none !important;
    background-image: none !important;
}
#offerLinesGrid .k-tooltip-validation,
#offerLinesGrid .k-invalid-msg,
#offerLinesGrid .k-callout {
    display: none !important;
    visibility: hidden !important;
}
#offerLinesGrid .k-grid-content td::before,
#offerLinesGrid .k-grid-content td::after,
#offerLinesGrid .k-grid-content .k-edit-cell::before,
#offerLinesGrid .k-grid-content .k-edit-cell::after {
    content: none !important;
    display: none !important;
}
#offerLinesGrid .k-grid-content .k-widget .k-state-invalid {
    border-color: #ccc !important;
}
#offerLinesGrid .k-grid .k-grid-content td .k-widget.k-state-invalid {
    border-color: #ccc !important;
    box-shadow: none !important;
}
/* Force-remove all validation styling in offer lines grid */
.page-bulk-taxes-discounts .offer-lines-grid .k-state-invalid,
.page-bulk-taxes-discounts .offer-lines-grid td.k-state-invalid,
.page-bulk-taxes-discounts .offer-lines-grid .k-edit-cell.k-state-invalid {
    border-color: #ccc !important;
    box-shadow: none !important;
    background-image: none !important;
}
.page-bulk-taxes-discounts .offer-lines-grid .k-invalid-msg,
.page-bulk-taxes-discounts .offer-lines-grid .k-tooltip-validation,
.page-bulk-taxes-discounts .offer-lines-grid .k-callout {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

