
.order-content {
    flex: 1;
    padding: 32px;
    background-color: var(--background-light);
    overflow-y: auto;
}

/* --- Page Header --- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--main-text);
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.header-actions {
    display: flex;
    gap: 8px;
}

/* --- Filter Card --- */
.filter-card {
    background-color: var(--white);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.filter-input {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    background-color: var(--white);
    color: var(--main-text);
}

.date-range-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-separator {
    color: var(--text-muted);
    font-size: 14px;
}

/* --- Table Container --- */
.table-container {
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.scrollable-table {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    background-color: #f8fafc;
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    /* Updated to use primary variable */
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.data-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 13px;
    
}

/* --- Nested Table for Details --- */
.inner-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.inner-table thead th {
    background-color: #f1f5f9;
    padding: 6px 8px;
    color: rgba(7, 89, 133, 0.6);
}

.inner-table td {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* --- Payment & Status Styling --- */
.payment-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
}

.payment-badge span {
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    font-weight: 700;
    width: 100%;
    
    /* Default for Total */
}

.status-pending {
    color: var(--primary);
    /* Swapped from danger to primary for "Paid" as per your HTML */
    font-weight: 700;
}

/* --- Action Buttons --- */
.control-actions {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.action-btn {
    padding: 6px;
    border-radius: 4px;
    color: white;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.action-btn:hover {
    opacity: 0.8;
}

.action-btn.print {
    background-color: #F59E0B;
}

.action-btn.edit {
    background-color: #10B981;
}


.action-btn.delete {
    background-color: #EF4444;
}



/* --- Pagination Styling --- */
.pagination {
    padding: 16px 24px;
    background-color: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.pagination-count {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.pagination-buttons {
    display: flex;
    gap: 4px;
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-main);
}

.page-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- Helper Utilities --- */
.btn-go {
    background-color: #14B8A6;
    color: white;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 600;
}

.flex-1 {
    flex: 1;
}

.min-w-200 {
    min-width: 350px;
}

.min-w-300 {
    min-width: 300px;
}

.width-48 {
    width: 192px;
}

.text-center {
    text-align: center;
}

.text-serial {
    color: var(--primary);
    font-weight: 600;
}

.text-date {
    font-size: 12px;
    line-height: 1.4;
}

.text-muted {
    color: #94a3b8;
}

.text-bold {
    font-weight: 700;
}

.p-0 {
    padding: 0 !important;
}

.pt-6 {
    padding-top: 16px !important;
}

.border-r {
    border-right: 1px solid var(--border-color);
}

/* Column Widths */
.w-8 {
    width: 32px;
}

.w-12 {
    width: 48px;
}

.w-20 {
    width: 100px;
}

.w-32 {
    width: 180px;
}