/* TNT Unified Table Styles v3.0 */

/* Reduced margins globally */
body .entry-content,
body .site-content,
body main {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* All table containers */
.invoice-table-container,
.rfq-table-section,
.otp-order-table-wrap,
[class*="table-container"],
[class*="table-section"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Toolbar */
.tnt-toolbar,
.rfq-toolbar,
.otp-toolbar,
#invoice-toolbar {
    margin: 10px 0 15px 0 !important;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Buttons */
.tnt-btn, .rfq-btn, .otp-btn, .inv-btn, .rfq-button,
#invoice-toolbar button, #invoice-toolbar a {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border: none;
}

.tnt-btn-primary, .rfq-btn-primary, .otp-btn-primary, .inv-btn-primary {
    background: #0073aa;
    color: #fff !important;
}

.tnt-btn-secondary, .rfq-btn-secondary, .otp-btn-secondary, .inv-btn-secondary, .rfq-button {
    background: #fff;
    color: #495057 !important;
    border: 1px solid #ced4da !important;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Tables base */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

/* Table headers - consistent across all pages */
table thead th {
    background: #2c5282 !important;
    color: #fff !important;
    padding: 10px 8px !important;
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    white-space: nowrap;
}

/* Table cells */
table tbody td {
    padding: 8px;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
    vertical-align: middle;
}

/* Checkbox columns */
table th:first-child,
table td:first-child {
    width: 40px;
    text-align: center;
}

/* Row states */
table tbody tr:hover {
    background: #f8f9fa;
}

table tbody tr.selected,
.otp-selectable-row.selected,
.invoice-selectable-row.selected {
    background: #e3f2fd !important;
}

/* Inputs in tables */
table input, table select {
    padding: 4px 6px;
    font-size: 13px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
}

table input:focus, table select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

/* Checkboxes */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
