/* From Purchases section: */
#graphs-sections .graphs-search,
.table-search .leads-search,
.table-search .leads-followup-search,
.table-search .pickups-search,
.table-search .debts-search,
.table-search .sprays-search,
.table-search .auto-sprays-search,
.table-search .reports-search,
.table-search .reviews-search,
.table-search .franchisee-search,
.table-search .cancels-search,
.table-search .subs_clients-search,
.table-search .deliveries-search,
.reviews-graphs-search,
.table-search .clean-products-inventory-search,
.table-search .points-get-search,
.table-search .points-redeem-search,
.table-search .recommends-search,
.table-search .inventory-search,
.table-search .inventory-trades-search,
.table-search .extra-franch-search,
.table-search .clean-search,
.table-search .tasks-search,
.table-search .search-app-id,
.table-search .expenses-search,
.table-search .client-statistics-search,
.table-search .client-stats-search,
.table-search .calls-followup-search,
.table-search .calls-search,
.table-search .messages-followup-search,
.table-search .messages-search,
.table-search .notes-search,
.table-search .tour-search,
.table-search .pur-search,
.table-search .login-dup-search,
.table-search .enter-search,
.table-search .search-filter {
    display: inline-block;
    width:150px;
    padding:5px;
    height:35px;
    vertical-align: top;
    margin: 5px 0;
}
.tan-table a {
    text-decoration: underline;
}

/* From tourist section */
div#table-tourists .row .col:nth-child(1) {
    width: 60px;
    flex-basis: 60px;
    flex-shrink: 0;
}
div#table-tourists .row .col:nth-child(2) {
    width: 50px;
    flex-basis: 50px;
}
div#table-tourists .row .col:nth-child(4) {
    width: 60px;
    flex-basis: 60px;
}
div#table-tourists .row .col:nth-child(11) {
    width: 50px;
    flex-basis: 50px;
}
div#table-tourists .row .col:nth-child(7) {
    width: 100px;
}
div#table-tourists .row .col:nth-child(5) {
    width: 100px;
    flex-basis: 100px;
}
div#table-tourists .row .col:nth-child(6) {
    width: 100px;
    flex-basis: 100px;
}
div#table-tourists .row .col:nth-child(8) {
    width: 230px;
}

div#table-tourists .row .col:nth-child(9) {
    width: 120px;
}

/* From expenses section */
div#table-expenses .row .col:nth-child(1) {
    width: 70px;
    flex-basis: 70px;
    flex-shrink: 0;
}
div#table-expenses .row .col:nth-child(2) {
    width: 110px;
    flex-basis: 110px;
}
div#table-expenses .row .col:nth-child(3) {
    width: 110px;
    flex-basis: 110px;
}
div#table-expenses .row .col:nth-child(4) {
    width: 120px;
    flex-basis: 120px;
}
div#table-expenses .row .col:nth-child(5) {
    width: 70px;
    flex-basis: 70px;
}
div#table-expenses .row .col:nth-child(9) {
    width: 80px;
    flex-basis: 80px;
}
div#table-expenses .row .col:nth-child(10) {
    width: 120px;
    flex-basis: 120px;
}
div#table-expenses .row .col:nth-child(11) {
    width: 70px;
    flex-basis: 70px;
}

/* From branches section */
div#table-total-branches .row .col:nth-child(1) {
    width: 30px;
    flex-basis: 30px;
    flex-shrink: 0;
}
div#table-total-branches .row .col:nth-child(3) {
    width: 55px;
    flex-basis: 55px;
}

div#table-total-branches .row .col:nth-child(4) {
    width: 100px;
    flex-basis: 100px;
}

div#table-total-branches .row .col:nth-child(7) {
    width: 30px;
    flex-basis: 30px;
}
div#table-total-branches .row .col:nth-child(8) {
    width: 50px;
    flex-basis: 50px;
}
div#table-total-branches .row .col:nth-child(9) {
    width: 50px;
    flex-basis: 50px;
}
div#table-total-branches .row .col:nth-child(10) {
    width: 50px;
    flex-basis: 50px;
}

/* From notes section */
div#table-total-notes .row .col:nth-child(1) {
    width: 0px;
    flex-basis: 0px;
    flex-shrink: 0;
}
div#table-total-notes .row .col:nth-child(2) {
    width: 0px;
    flex-basis: 0px;
}
div#table-total-notes .row .col:nth-child(3) {
    width: 0px;
    flex-basis: 0px;
}
div#table-total-notes .row .col:nth-child(4) {
    width: 0px;
    flex-basis: 0px;
}
div#table-total-notes .row .col:nth-child(6) {
    width: 10px;
    flex-basis: 10px;
}
div#table-total-notes .row .col:nth-child(7) {
    width: 0px;
   flex-basis: 0px;
}

/* From deliveries section */
div#table-total-deliveries .row .col:nth-child(1) {
    width: 50px;
    flex-basis: 50px;
    flex-shrink: 0;
}
div#table-total-deliveries .row .col:nth-child(8) {
    width: 80px;
   flex-basis: 80px;
}
/* From cancels section */
div#table-total-cancels .row .col:nth-child(1) {
    width: 70px;
    flex-basis: 70px;
    flex-shrink: 0;
}
div#table-total-cancels .row .col:nth-child(3) {
    width: 100px;
    flex-basis: 100px;
}
div#table-total-cancels .row .col:nth-child(4) {
    width: 100px;
    flex-basis: 100px;
}

div#table-bot-times .row .col:nth-child(1) {
    width: 50px;
    flex-basis: 50px;
}
div#table-bot-times .row .col:nth-child(2) {
    width: 350px;
    flex-basis: 350px;
}
div#table-bot-times .row .col:nth-child(3) {
    width: 30px;
    flex-basis: 30px;
}
div#table-bot-msgs .row .col:nth-child(1) {
    width: 50px;
    flex-basis: 50px;
}
div#table-bot-msgs .row .col:nth-child(2) {
    width: 350px;
    flex-basis: 350px;
}
div#table-bot-msgs .row .col:nth-child(3) {
    width: 30px;
    flex-basis: 30px;
}


/* From inventory section */
div#table-inventory .row .col:nth-child(1) {
    width: 50px;
    flex-basis: 50px;
    flex-shrink: 0;
}
div#table-inventory .row .col:nth-child(3) {
    width: 110px;
    flex-basis: 110px;
}
div#table-inventory .row .col:nth-child(4) {
    width: 140px;
    flex-basis: 140px;
}
div#table-inventory .row .col:nth-child(5) {
    width: 50px;
    flex-basis: 50px;
}
div#table-inventory .row .col:nth-child(6) {
    width: 90px;
    flex-basis: 90px;
}
div#table-inventory .row .col:nth-child(7) {
    width: 60px;
    flex-basis: 60px;
}
div#table-inventory .row .col:nth-child(8) {
    width: 60px;
    flex-basis: 60px;
}
div#table-inventory .row .col:nth-child(9) {
    width: 50px;
    flex-basis: 50px;
}
div#table-inventory .row .col:nth-child(10) {
    width: 50px;
    flex-basis: 50px;
}
div#table-inventory .row .col:nth-child(11) {
    width: 50px;
    flex-basis: 50px;
}
div#table-inventory .row .col:nth-child(12) {
    width: 50px;
    flex-basis: 50px;
}

/* From inventory trades section */
div#table-inventory-trades .row .col:nth-child(1) {
    width: 60px;
    flex-basis: 60px;
    flex-shrink: 0;
}
div#table-inventory-trades .row .col:nth-child(4) {
    width: 110px;
    flex-basis: 110px;
}
div#table-inventory-trades .row .col:nth-child(5) {
    width: 50px;
    flex-basis: 50px;
}
div#table-inventory-trades .row .col:nth-child(7) {
    width: 50px;
    flex-basis: 50px;
}
div#table-inventory .row .col:nth-child(6) {
    width: 40px;
    flex-basis: 40px;
}


/* From info-times-table section */
div#info-times-table .row .col:nth-child(1) {
    width: 0px !important;
}
div#info-times-table .row .col:nth-child(2) {
    width: 130px;
}
div#info-times-table .row .col:nth-child(3) {
    width: 220px;
}
div#info-times-table .row .col:nth-child(4) {
    width: 0px !important;
}

/* From whatsapp section */
div#table-total-messages .row .col:nth-child(1) {
    width: 10px;
    flex-basis: 10px;
    flex-shrink: 0;
}
div#table-total-messages .row .col:nth-child(2) {
    width: 80px;
    flex-basis: 80px;
}
div#table-total-messages .row .col:nth-child(3) {
    width: 50px;
    flex-basis: 50px;
}
div#table-total-messages .row .col:nth-child(4) {
    width: 20px;
    flex-basis: 20px;
}
div#table-total-messages .row .col:nth-child(6) {
    width: 20px;
    flex-basis: 20px;
}
div#table-total-messages .row .col:nth-child(7) {
    width: 20px;
    flex-basis: 20px;
}
div#table-total-messages .row .col:nth-child(8) {
    width: 50px;
    flex-basis: 50px;
}
div#table-total-messages .row .col:nth-child(8) {
    width: 70px;
    flex-basis: 70px;
}

/* From pickups section */
div#table-total-pickups .row .col:nth-child(1) {
    width: 50px;
    flex-basis: 50px;
    flex-shrink: 0;
}

div#table-total-pickups .row .col:nth-child(5) {
    width: 90px;
    flex-basis: 90px;
}
div#table-total-pickups .row .col:nth-child(6) {
    width: 90px;
    flex-basis: 90px;
}
div#table-total-pickups .row .col:nth-child(8) {
    width: 60px;
    flex-basis: 60px;
}
div#table-total-pickups .row .col:nth-child(10) {
    width: 130px;
    flex-basis: 130px;
}

/* From sprays section */
div#table-sprays .row .col:nth-child(1) {
    width: 50px;
    flex-basis: 50px;
    flex-shrink: 0;
}
div#table-sprays .row .col:nth-child(3) {
    width: 110px;
    flex-basis: 110px;
}
div#table-sprays .row .col:nth-child(4) {
    width: 130px;
    flex-basis: 130px;
}
div#table-sprays .row .col:nth-child(5) {
    width: 110px;
    flex-basis: 110px;
}
div#table-sprays .row .col:nth-child(6) {
    width: 120px;
    flex-basis: 120px;
}
div#table-sprays .row .col:nth-child(7) {
    width: 120px;
    flex-basis: 120px;
}
div#table-sprays .row .col:nth-child(9) {
    width: 70px;
    flex-basis: 70px;
}
div#table-sprays .row .col:nth-child(11) {
    width: 70px;
    flex-basis: 70px;
}
div#table-sprays .row .col:nth-child(12) {
    width: 90px;
    flex-basis: 90px;
}
div#table-sprays .row .col:nth-child(13) {
    width: 90px;
    flex-basis: 90px;
}
/* extra-franch table */
div#table-extra-franch .row .col:nth-child(6) {
    width: 50px;
    flex-basis: 50px;
}

/* From tasks section */
div#table-total-tasks .row .col:nth-child(1) {
    width: 40px;
    flex-basis: 40px;
    flex-shrink: 0;
}
div#table-total-tasks .row .col:nth-child(2) {
    width: 120px;
    flex-basis: 120px;
}
div#table-total-tasks .row .col:nth-child(3) {
    width: 70px;
    flex-basis: 70px;
}
div#table-total-tasks .row .col:nth-child(6) {
    width: 120px;
    flex-basis: 120px;
}
div#table-total-tasks .row .col:nth-child(7) {
    width: 90px;
    flex-basis: 90px;
}
div#table-total-tasks .row .col:nth-child(8) {
    width: 100px;
    flex-basis: 100px;
}

/* From client stats section */
div#table-clients-stats .row .col:nth-child(1) {
    width: 40px;
    flex-basis: 40px;
    flex-shrink: 0;
}

/* From leads section */
div#table-total-leads .row .col:nth-child(1) {
    width: 50px;
    flex-basis: 50px;
    flex-shrink: 0;
}
div#table-total-leads .row .col:nth-child(3) {
    width: 120px;
    flex-basis: 120px;
}
div#table-total-leads .row .col:nth-child(4) {
    width: 80px;
    flex-basis: 80px;
}
div#table-total-leads .row .col:nth-child(5) {
    width: 80px;
    flex-basis: 80px;
}
div#table-total-leads .row .col:nth-child(6) {
    width: 90px;
    flex-basis: 90px;
}
div#table-total-leads .row .col:nth-child(7) {
    width: 70px;
    flex-basis: 70px;
}
div#table-total-leads .row .col:nth-child(8) {
    width: 60px;
    flex-basis: 60px;
}

/* From calls section */
div#table-total-calls .row .col:nth-child(1) {
    width: 40px;
    flex-basis: 40px;
  	text-align: center;
    flex-shrink: 0;
}

div#table-total-calls .row .col:nth-child(9) {
    width: 110px;
    flex-basis: 110px;
}
div#table-total-calls .row .col:nth-child(10) {
    width: 110px;
    flex-basis: 110px;
}
    /* From Clients section: */
.table-clients-search input:disabled {
    color: -internal-light-dark(graytext, rgb(170, 170, 170));
    opacity: 0.7;
    border-color: rgba(118, 118, 118, 0.3);
}
div#table-clients .row.no_edit {
    background:#742d2d;
    /*display: none;*/
    cursor: context-menu;
}


div#table-total-cancels .row .col:nth-child(7) {
    width: 100px;
    flex-basis: 100px;
}
div#table-total-cancels .row .col:nth-child(8) {
    width: 100px;
    flex-basis: 100px;
}
div#table-total-cancels .row .col:nth-child(9) {
    width: 100px;
    flex-basis: 100px;
}
div#table-total-cancels .row .col:nth-child(10) {
    width: 100px;
    flex-basis: 100px;
}

div#table-clients .row .col:nth-child(1) {
    width: 50px;
    flex-basis: 50px;
    flex-shrink: 0;
}
div#table-clients .row .col:nth-child(2) {
    width: 60px;
    flex-basis: 60px;
}
div#table-clients .row .col:nth-child(3) {
    width: 140px;
    flex-basis: 140px;
}
div#table-clients .row .col:nth-child(11) {
    width: 100px;
    flex-basis: 100px;
}
div#table-clients .row .col:nth-child(7) {
    width: 90px;
}
div#table-clients .row .col:nth-child(5) {
    width: 200px;
    flex-basis: 200px;
}
div#table-clients .row .col:nth-child(6) {
    width: 50px;
    flex-basis: 50px;
}
div#table-clients .row .col:nth-child(8) {
    width: 150px;
}
.table-clients-search input.cl-search {
    display: inline-block;
    width: fit-content;
}

.table-clients-search {
    margin: 5px 0;
}
#adb-enable-edit{
    cursor:pointer;
}

/* Statistics: */
.client-s-search {
    display: inline-block!important;
    width: fit-content;
    width:180px!important;
    padding:5px!important;
    height:35px;
    vertical-align: top;
}
.client-s-search {
    margin: 5px 0;

}
.canvas-wrap {
    height: 450px;
}


/* General at the bottom: */

.tan-table .row {
    display: flex;
    flex-direction: row;

}
.tan-table .head-row {
    font-weight: bold;
    background-color:gray;

}
.tan-table .col{
    text-align:center;
    border-left:1px solid;
    width:16.66%;
}
.tan-table.dark .row-content .col {
    color: black;
    margin: auto;
}
.tan-table .row-content .row {
    border-bottom: 1px solid;
    cursor: pointer;
    transition: all 0.3s ease;
}
.tan-table .row-content .row:hover {
    background-color: #ccc;
}
.tan-table.dark .row-content .row {
    border-bottom: 1px solid black;
}

.payemnt-iframe-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    display: none;
}
.payemnt-iframe-box.open{
    display: flex;
}

.payemnt-iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #3a382f8a;
}

.payemnt-iframe-content {
    z-index: 5;
    transition: margin 0.3s ease 0.5s, opacity 0.2s ease 0.5s;
    margin-bottom: -50px;
    opacity: 0;
}

.payemnt-iframe-content iframe {
    width: 420px;
    height: 526px;
    border: 0;
}

.payemnt-iframe-box.open .payemnt-iframe-content {
    margin-bottom: 0;
    opacity: 1;
    background: white;
    position: relative;
}

.col:last-of-type {
    border: none;
}
#table-apt-search .date-range {
    display: none;
}

body:not(.admin-bar) .admins-only {
    display: none;
}

section.purchases #table-purchases {
    opacity: 1;
    transition: opacity 0.5s;
}
section.purchases.loading #table-purchases {
    opacity: 0;
}
section.purchases #loading-animation {
    transition: opacity 0.5s;
    opacity: 0;
    z-index: -1;
}
section.purchases.loading #loading-animation {
    opacity: 1;
    z-index: 1;
}

#table-total-notes .btn-note-mark {
    line-height: 5px;
    margin: 5px 0;
}
#table-total-notes span.done-txt {
    background-color: green;
    color: white;
    font-size: 13px;
}
#table-total-notes span.undone-txt {
    background-color: red;
    color: white;
    font-size: 13px;
}

#table-total-leads .btn-note-mark {
    line-height: 5px;
    margin: 5px 0;
}
#table-total-leads span.done-txt {
    background-color: green;
    color: white;
    font-size: 13px;
}
#table-total-leads span.undone-txt {
    background-color: red;
    color: white;
    font-size: 13px;
}


#table-total-tasks .btn-note-mark {
    line-height: 5px;
    margin: 5px 0;
}
#table-total-tasks span.done-txt {
    background-color: green;
    color: white;
    font-size: 13px;
}
#table-total-tasks span.undone-txt {
    background-color: red;
    color: white;
    font-size: 13px;
}


#table-notes .btn-note-mark {
    line-height: 5px;
    margin: 5px 0;
}
#table-notes span.done-txt {
    background-color: green;
    color: white;
    font-size: 13px;
}
#table-notes span.undone-txt {
    background-color: red;
    color: white;
    font-size: 13px;
}
#table-machines .machine-img {
    max-width: 45px;
}
select.machines-search {
    margin-bottom: 5px;
}
#table-machines .row .col:nth-child(2) {
    width: 5%;
}
#table-lamps .row .col:nth-child(3) {
    width: 5%;
}
#table-lamps .row .col:nth-child(1) {
    width: 7%;
}
#table-total-notes .row .col:nth-child(5) {
    width: 30%;
}
@media (max-width:600px){
    /*notes*/
    #table-notes .btn-note-mark {
        margin: 0;
        padding: 5px 5px;
    }
    #table-notes span.done-txt,
    #table-notes span.undone-txt {
        /*font-weight: unset;*/
    }
	#table-total-notes .btn-note-mark {
        margin: 0;
        padding: 5px 5px;
    }
    #table-total-notes span.done-txt,
    #table-total-notes span.undone-txt {
        /*font-weight: unset;*/
    }
    /* Entries section: */
    div#table-enters .row .col:nth-child(1),
    div#table-enters .row .col:nth-child(6),
    div#table-enters .row .col:nth-child(5),
    div#table-enters .row .col:nth-child(10)
    {
        display: none;
    }
    div#table-enters .row .col:nth-child(6){
        flex-basis: 5%!important;
    }
    div#table-enters .row .col:nth-child(7){
        flex-basis: 10%!important;
    }
    div#table-enters .row .col:nth-child(8){
        flex-basis: 7%!important;
    }

    /* Appointments section: */
    div#table-apt-search .row .col:nth-child(1),
    div#table-apt-search .row .col:nth-child(6),
    div#table-apt-search .row .col:nth-child(5),
    div#table-apt-search .row .col:nth-child(10)
    {
        display: none;
    }
    div#table-apt-search .row .col:nth-child(6){
        flex-basis: 5%!important;
    }
    div#table-apt-search .row .col:nth-child(7){
        flex-basis: 10%!important;
    }
    div#table-apt-search .row .col:nth-child(8){
        flex-basis: 7%!important;
    }


    /* Purchases section: */
    /* To show: 4,5,7,8,10 */
    div#table-purchases .row .col:nth-child(1),
    div#table-purchases .row .col:nth-child(2),
    div#table-purchases .row .col:nth-child(6),
    div#table-purchases .row .col:nth-child(10)
    {
        display: none;
    }

    div#table-purchases .row .col{
        width: 25%;
        flex-basis: 25%!important;
    }
    div#table-purchases .row .col:nth-child(8){
        flex-basis: 10%!important;
    }

    /* From Clients section: */

    div#table-clients .row .col:nth-child(1),
    div#table-clients .row .col:nth-child(2),
    div#table-clients .row .col:nth-child(7),
    div#table-clients .row .col:nth-child(11),
    div#table-clients .row .col:nth-child(10),
    div#table-clients .row .col:nth-child(8),
    div#table-clients .row .col:nth-child(9),
    div#table-clients .row .col:nth-child(5){
        display: none;
    }
    div#table-clients .row .col{
        width: 33%;
        flex-basis: 33%!important;
    }
    .table-clients-search input.cl-search {
        width:45%;
        margin-bottom:5px;
    }
    .table-clients-search{
        text-align: center;
    }

    /* Appointments - mobile */
    #table-apts .row .col:first-of-type,
    #table-apts .row .col:nth-child(7) {
        display: none;
    }
    #table-apts .row .col:nth-child(3) {
        width: 25%;
    }
    #table-apts .row .col:nth-child(4) {
        width: 30%;
    }
    #table-apts .row .col:nth-child(2) {
        width: 8%;
    }
    #table-machines button.switch-lamp {
        padding: 4px;
    }
}

/* From debts section */
div#table-debts .row .col:nth-child(1) {
    width: 130px;
    flex-basis: 130px;
}
div#table-debts .row .col:nth-child(2) {
    width: 100px;
    flex-basis: 100px;
}
div#table-debts .row .col:nth-child(3) {
    width: 100px;
    flex-basis: 100px;
}
div#table-debts .row .col:nth-child(4) {
    width: 100px;
    flex-basis: 100px;
}
div#table-debts .row .col:nth-child(5) {
    width: 110px;
    flex-basis: 110px;
}
div#table-debts .row .col:nth-child(6) {
    width: 60px;
    flex-basis: 60px;
}
div#table-debts .row .col:nth-child(9) {
    width: 120px;
    flex-basis: 120px;
}
div#table-debts .row .col:nth-child(10) {
    width: 100px;
    flex-basis: 100px;
}
div#table-debts .row .col:nth-child(11) {
    width: 100px;
    flex-basis: 100px;
}
div#table-debts .row .col:nth-child(12) {
    width: 100px;
    flex-basis: 100px;
}
div#table-debts .row .col:nth-child(13) {
    width: 80px;
    flex-basis: 80px;
}	

#table-machines button.admin-only.turn-on-machine {
    background-color: green;
}
#table-machines span.machine-inactive {
    padding: 0 10px;
    background: red;
    color: white;
}
.elementor-field-group-delay_min label,
.elementor-field-group-work_min label{
	display: inline-block !important;
    font-size: 100% !important;
    padding-bottom: 0 !important;
}

.col.title {
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; 
    white-space: normal; 
    word-wrap: break-word;
}
.col.title.expanded {
    -webkit-line-clamp: unset; /* Remove the clamp */
    display: block; /* Allow full display */
}