/* Consistent Table System */
.table-system {
    --table-border-color: #dee2e6;
    --table-header-bg: #f8f9fa;
    --table-hover-bg: #f1f3f5;
    --table-striped-bg: #fdfdfe;
}

/* Base table enhancements */
.table {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1rem;
}

.table th {
    background-color: var(--table-header-bg);
    border-bottom: 2px solid var(--table-border-color);
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
}

.table td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--table-border-color);
}

.table tbody tr:hover {
    background-color: var(--table-hover-bg);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--table-striped-bg);
}

/* Order table (green theme) */
.table-order {
    --table-bg-color: #d4edda;
    --table-header-bg: #6c757d47;
    --table-border-color: transparent;
}

.table-order {
    border-collapse: collapse;
}

.table-order thead th {
    background-color: var(--table-header-bg) !important;
    border: none;
}

.table-order tbody th,
.table-order tbody td {
    background-color: var(--table-bg-color) !important;
    border: none;
    padding: 0.25rem 0.5rem;
}

/* Customer price table */
.table-price {
    font-size: 0.9rem;
}

.table-price th {
    min-width: 120px;
}

.table-price .product-info {
    line-height: 1.4;
}

.table-price .product-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.table-price .product-notes {
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px dashed var(--table-border-color);
    font-size: 0.85rem;
}

/* Price styling */
.price-value {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Responsive tables */
.table-responsive {
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Column width utilities */
.col-w-xs { width: 60px; }
.col-w-sm { width: 100px; }
.col-w-md { width: 150px; }
.col-w-lg { width: 200px; }
.col-w-xl { width: 300px; }

/* Action column */
.col-actions {
    width: 1%;
    white-space: nowrap;
    text-align: center;
}
