/**
 * TABLE OF CONTENTS
 *
 * 1. Datatable 
 * 2. Add More Content JQUERY (Add/Remove) 
 * 3. Permission_table
 * 4. Icon Picker
 * 5. Password Hide/Show 
 *
 */

/* 1. Datatable CSS*/
.dt-buttons,.dataTables_info{
    float: left !important;
}
.dt-buttons button{
    line-height: 18px;
}
.pagination .page-link{
    padding: 8px;
    line-height: 10px;
}
.dataTables_length select.form-control:not([size]):not([multiple]){
    font-size: 14px;
    padding: 5px;
    width: 60px;
    height: 30px;
}

/* 2. Add More Content JQUERY (Add/Remove)*/
.addContent .item{
    position: relative;
    margin-bottom: 5px
}
.addContent input{
    width: 92%;
}
.addContent .addMore,.addContent .removeLast{
    position: absolute;
    right: 0;
    top: 0px;
}

/* Product admin form */
.product-admin-form .card{
    border: 0;
    box-shadow: 0 4px 18px rgba(34,41,47,.06);
    margin-bottom: 20px;
}
.product-admin-form .card-header{
    min-height: 58px;
    padding: 14px 22px;
}
.product-admin-form .card-header h4{
    font-size: 15px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-admin-form .card-header h4 i{
    color: var(--main-color);
    font-size: 16px;
}
.product-admin-form .card-body{
    padding: 18px 22px 8px;
}
.product-admin-form .control-label{
    font-size: 13px;
    font-weight: 600;
    color: var(--heading-label);
    margin-bottom: 6px;
}
.product-admin-form .form-group{
    margin-bottom: 16px;
}
.product-admin-form .section-hint{
    font-size: 12px;
    color: #8b98a5;
    margin: -4px 0 16px;
}

.qty-type-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.qty-type-card{
    margin: 0;
    cursor: pointer;
}
.qty-type-card input{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.qty-type-body{
    border: 1px solid #e4e8ee;
    border-radius: 10px;
    padding: 14px 14px 12px;
    background: #fff;
    transition: all .15s ease;
    min-height: 88px;
}
.qty-type-body i{
    color: var(--main-color);
    margin-bottom: 6px;
    display: block;
    font-size: 16px;
}
.qty-type-body strong{
    display: block;
    font-size: 14px;
    color: #2c3344;
}
.qty-type-body span{
    display: block;
    font-size: 12px;
    color: #8b98a5;
    margin-top: 2px;
}
.qty-type-card input:checked + .qty-type-body{
    border-color: var(--main-color);
    background: rgba(0,113,255,.05);
    box-shadow: 0 0 0 3px rgba(0,113,255,.08);
}

.product-photo-drop{
    border: 1px dashed #cfd7e1;
    border-radius: 10px;
    padding: 18px;
    background: #f8fafc;
    text-align: center;
    color: #6c7a89;
    cursor: pointer;
    display: block;
    margin-bottom: 12px;
}
.product-photo-drop:hover{
    border-color: var(--main-color);
    color: var(--main-color);
    background: #fff;
}
.product-photo-drop i{
    display: block;
    font-size: 22px;
    margin-bottom: 6px;
}
.product-photo-drop input{
    display: none;
}
.product-photo-thumbs{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.product-photo-thumb{
    width: 110px;
    position: relative;
    border: 1px solid #eef1f5;
    border-radius: 8px;
    padding: 6px;
    background: #fff;
}
.product-photo-thumb img{
    width: 100%;
    height: 80px;
    object-fit: contain;
    display: block;
}
.product-photo-thumb .btn{
    margin-top: 6px;
}
#img_preview img{
    width: 110px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #eef1f5;
    border-radius: 8px;
    padding: 6px;
    background: #fff;
    margin: 0 8px 8px 0;
}

.variation-empty{
    border: 1px dashed #d5dde6;
    border-radius: 10px;
    padding: 28px 16px;
    text-align: center;
    color: #8b98a5;
    background: #fbfcfe;
    margin-bottom: 12px;
}
.variation-empty i{
    font-size: 24px;
    color: var(--main-color);
    margin-bottom: 8px;
    display: block;
}
.variation-item{
    border: 1px solid #e8edf3;
    box-shadow: none;
    border-radius: 10px;
    overflow: hidden;
}
.variation-item .card-body{
    padding: 14px !important;
}
.variation-item-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.variation-item-head strong{
    font-size: 13px;
    color: #34395e;
}
.variation-layout{
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    align-items: start;
}
.variation-image-box{
    display: block;
    width: 120px;
    height: 120px;
    border: 1px dashed #cfd7e1;
    border-radius: 10px;
    background: #f8fafc;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    margin: 0;
}
.variation-image-box input{
    display: none;
}
.variation-image-box img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
.variation-image-box .upload-hint{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44,51,68,.72);
    color: #fff;
    font-size: 11px;
    text-align: center;
    padding: 4px 0;
}
.variation-fields .form-group{
    margin-bottom: 10px;
}
.variation-fields label{
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}
.variation-rrp-field input{
    background: #fffdf6;
    border-color: #e6d7b0;
}
.variation-rrp-field small{
    display: block;
    margin-top: 4px;
    line-height: 1.3;
}
.offer-price-panel{
    margin: 0 0 8px;
    padding: 14px 14px 4px;
    border: 1px solid #f0d7a2;
    border-radius: 10px;
    background: #fffaf0;
}

.product-form-actions{
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: #fff;
    border: 0;
    box-shadow: 0 -8px 24px rgba(34,41,47,.08);
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.product-list-thumb{
    width: 42px;
    height: 42px;
    object-fit: contain;
    border: 1px solid #eef1f5;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
}

@media (max-width: 767px){
    .qty-type-grid,
    .variation-layout{
        grid-template-columns: 1fr;
    }
    .variation-image-box{
        width: 100%;
        height: 140px;
    }
}

.font-13{
    font-size: 13px;
}

/* 3. Permission_table */
.permission_table tr td{
    padding-bottom: 0px
}

/* 4. Icon Picker  */
.table-icons .btn {
    min-height: 30px;
    min-width: 35px;
    text-align: center;
    padding: 0;
    margin: 2px;
    background: #0071FF;
    color: white;
}
.table-icons .btn:hover{
    background: #000 !important;
    color: white;
}

/* 5. Password Hide/Show */
.pass_hide_show{
    position: relative;
}
.pass_hide_show input{
    width: 93%;
}
.pass_hide_show .action-btn{
    width: 7%;
    position: absolute;
    right: -5px;
    padding: 10px;
    top: 28px;
    cursor: pointer;
}