/* Frontend styles */
.author-dashboard,.author-books,.author-payouts{margin:20px;font-family:'Inter',sans-serif;}
.sales-table,.books-table,.payouts-table{width:100%;}

/* DataTables Pagination Styles */
.dataTables_wrapper{margin-top:20px;}
.dataTables_length,.dataTables_filter{margin-bottom:10px;}
.dataTables_paginate{margin-top:10px;}
.dataTables_length select{width:100px;padding:5px;border:1px solid #ddd;border-radius:4px;}
.dataTables_filter input[type="search"]{padding:8px;border:1px solid #ddd;border-radius:4px;}
.dataTables_paginate .paginate_button{padding:6px 12px;margin:0 2px;border:1px solid #ddd;border-radius:4px;cursor:pointer;}
.dataTables_paginate .paginate_button.current{background-color:#2563eb;color:white;border-color:#2563eb;}
.dataTables_paginate .paginate_button:hover{background-color:#eff6ff;color:#2563eb;}
.dataTables_paginate .paginate_button.disabled{opacity:0.5;cursor:not-allowed;}
.books-table th{background-color:#2563eb;color:white;border:1px solid #ddd;padding:8px;}
.books-table td{border:1px solid #ddd;padding:8px;}
.books-table tr:hover{background-color:#eff6ff;}

.dataTables_paginate .paginate_button {
    background: linear-gradient(to right, #2563eb, #1e3a8a);
    color: white !important;
    padding: 8px 16px;
}


/* Sales Table Column Widths */
#sales-table th, #sales-table td {
    box-sizing: border-box; /* Ensure padding is included in width */
}

/* ISBN (1st column) */
#sales-table th:nth-child(1),
#sales-table td:nth-child(1) {
    width: 15%;
    min-width: 100px; /* Prevent collapsing on smaller screens */
}

/* Book Title (2nd column) */
#sales-table th:nth-child(2),
#sales-table td:nth-child(2) {
    width: 20%;
    min-width: 150px;
}

/* Order ID (3rd column) */
#sales-table th:nth-child(3),
#sales-table td:nth-child(3) {
    width: 12%;
    min-width: 100px;
}

/* Quantity (4th column) */
#sales-table th:nth-child(4),
#sales-table td:nth-child(4) {
    width: 8%;
    min-width: 80px;
}

/* Sales Channel (5th column) */
#sales-table th:nth-child(5),
#sales-table td:nth-child(5) {
    width: 11%;
    min-width: 100px;
}

/* MRP (6th column) */
#sales-table th:nth-child(6),
#sales-table td:nth-child(6) {
    width: 10%;
    min-width: 90px;
}

/* Sales Month (7th column) */
#sales-table th:nth-child(7),
#sales-table td:nth-child(7) {
    width: 12%;
    min-width: 100px;
}

/* Royalty (8th column) */
#sales-table th:nth-child(8),
#sales-table td:nth-child(8) {
    width: 10%;
    min-width: 100px;
}

/* Ensure table doesn't overflow */
#sales-table {
    table-layout: fixed; /* Enforce column widths */
    width: 100%;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    #sales-table th, #sales-table td {
        min-width: 80px; /* Reduce min-width for smaller screens */
    }
}

/* Ensure vertical alignment is top for sales-table cells */
#sales-table th, #sales-table td {
    vertical-align: top; /* Align text to the top of the cell */
}

/* Center ISBN (1st column) and MRP (3rd column) headings */
.books-table th:nth-child(1),
.books-table th:nth-child(3) {
    text-align: center;
}