/* TABLE */
.table-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}


/* TOOLBAR */
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}


/* PAGE SIZE */
.table-size {
    width: 65px;
    height: 30px;
    padding: 2px 5px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
    outline: none;
}

.table-size:focus {
    border-color: #2563eb;
}


/* SEARCH */
.table-toolbar .table-search {
    width: 190px;
    height: 34px;
    padding: 6px 10px;
    margin-left: auto;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background: #fff;
    font-size: 13px;
    box-sizing: border-box;
    outline: none;
}

.table-search::placeholder {
    color: #9ca3af;
}

.table-search:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .08);
}


/* TABULATOR */
#qc-table {
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
}


/* HEADER */
#qc-table .tabulator-header {
    background: #f1f5f9;
    border-bottom: 1px solid #dbe1e8;
}

#qc-table .tabulator-col {
    background: #f1f5f9;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    border-right: 1px solid #e5e7eb;
}


/* HEADER TEXT */
#qc-table .tabulator-col-title {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 20px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;

    font-weight: 500;
}


/* SORT ARROW */
#qc-table .tabulator-col .tabulator-arrow {
    margin-left: 5px;
}


/* ROW */
#qc-table .tabulator-row {
    min-height: 21px;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 400;
}


/* NORMAL HOVER */
#qc-table .tabulator-row:hover,
#qc-table .tabulator-row:hover .tabulator-cell {
    background: #eae99c;
}


/* CELL */
#qc-table .tabulator-cell {
    padding: 6px 1px;
    vertical-align: middle;
    border-right: 1px solid #f1f5f9;
    font-size: 14px;
    font-weight: 400;
    color: #4b5563;
    line-height: 20px;
}


/* LINKS */
#qc-table .tabulator-cell a {
    font-size: 14px;
    font-weight: 400;
}


/* INPUT */
#qc-table .tabulator-cell input {
    width: 70px;
    max-width: 70px;
    min-width: 70px;
    box-sizing: border-box;

    font-size: 14px;
    font-weight: 400;
}


/* FINAL PASS DOSES CELL */
#qc-table .tabulator-cell[tabulator-field="cell_final_pass_doses"] {
    width: 100px;
    max-width: 100px;
    min-width: 100px;
    box-sizing: border-box;
}


/* SELECTED ROW */
#qc-table .tabulator-row.selected-row,
#qc-table .tabulator-row.selected-row .tabulator-cell {
    background: #eae99c;
    border-color: #eae99c;
}


/* SELECTED COLUMN */
#qc-table .tabulator-cell.selected-column {
    background: #eae99c;
    border-color: #eae99c;
}


/* SELECTED COLUMN HEADER */
#qc-table .tabulator-col.selected-column {
    background: #eae99c;
}


/* CLICKED CELL */
#qc-table .tabulator-row.selected-row
.tabulator-cell.selected-column {
    background: #eae99c;
    border-color: #eae99c;
}


/* PAGINATION */
#qc-table .tabulator-footer {
    display: block;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    border-bottom: none;
    padding: 7px 10px;
    box-shadow: none;
}


/* TABLE HOLDER */
#qc-table .tabulator-tableholder {
    background: #fff;
    border-bottom: none !important;

    /* Horizontal scrolling when required */
    overflow-x: auto;

    /* JS will control vertical scrolling */
    overflow-y: hidden;
}


/* TABLE */
#qc-table .tabulator-table {
    background: #fff;
    border-bottom: none !important;
}


/* VERTICAL SCROLLBAR */
#qc-table .tabulator-tableholder::-webkit-scrollbar {
    width: 8px;
}


/* HORIZONTAL SCROLLBAR */
#qc-table .tabulator-tableholder::-webkit-scrollbar:horizontal {
    height: 8px;
}


/* SCROLLBAR TRACK */
#qc-table .tabulator-tableholder::-webkit-scrollbar-track {
    background: #f1f1f1;
}


/* SCROLLBAR THUMB */
#qc-table .tabulator-tableholder::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}


/* SUBMIT BUTTON */
.table-footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 15px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.btn-submit {
    border: 0;
    background: #2563eb;
    color: #fff;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-submit:hover {
    background: #1d4ed8;
}


/* NO DATA */
#qc-table .tabulator-placeholder {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 400;
}


.required-field::after {
    content: " *";
    color: red;
    font-weight: bold;
}
#qc-table .tabulator-header {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* MOBILE */
@media (max-width: 768px) {

    .table-toolbar {
        padding: 7px 10px;
    }

    .table-search {
        width: 150px;
    }

    #qc-table .tabulator-col-title {
        padding-right: 24px;
    }

    #qc-table .tabulator-cell {
        padding: 7px;
        font-size: 13px;
    }

    #qc-table .tabulator-cell input {
        width: 70px;
        max-width: 70px;
        min-width: 70px;
    }
}