/* Enhanced UI/UX Stylesheet
   Includes: Responsive design, Accessibility, Loading states, Animations, Modern styling */

/* ============================================
   LOADING STATES & ANIMATIONS
   ============================================ */

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.loading-overlay.hidden {
    display: none;
}

.loading-container {
    text-align: center;
}

.loading-container .loading-spinner {
    width: 50px;
    height: 50px;
    border-width: 4px;
    margin: 0 auto 20px;
}

.loading-container p {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 15px;
}

/* Button Loading State */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

/* Skeleton Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 10px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 15px;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slide In Animation */
.slide-in {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Pulse Animation for Important Actions */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   ENHANCED ERROR MESSAGES & ALERTS
   ============================================ */

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid;
    min-width: 300px;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--danger-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast.info {
    border-left-color: var(--info-color);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--success-color);
}

.toast.error .toast-icon {
    color: var(--danger-color);
}

.toast.warning .toast-icon {
    color: var(--warning-color);
}

.toast.info .toast-icon {
    color: var(--info-color);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark-text);
}

.toast-message {
    font-size: 0.9rem;
    color: #666;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.toast-close:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    animation: fadeIn 0.3s ease-in;
    border-left: 4px solid;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.alert-message {
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
    align-self: flex-start;
}

.alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.alert-close:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: var(--success-color);
}

.alert-success .alert-icon {
    color: var(--success-color);
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: var(--danger-color);
}

.alert-error .alert-icon {
    color: var(--danger-color);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: var(--warning-color);
}

.alert-warning .alert-icon {
    color: var(--warning-color);
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: var(--info-color);
}

.alert-info .alert-icon {
    color: var(--info-color);
}

/* Field Error Messages */
.field-error {
    display: block;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-error i {
    font-size: 14px;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Focus Styles */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10001;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid white;
    outline-offset: -2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .stat-card {
        border: 2px solid var(--border-color);
    }
    
    .action-card {
        border: 2px solid var(--border-color);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading-spinner {
        animation: none;
        border-top-color: var(--primary-color);
    }
}

/* ============================================
   RESPONSIVE DESIGN IMPROVEMENTS
   ============================================ */

/* Better Mobile Typography */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .stat-content h3 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .section {
        padding: 20px 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Better touch targets on mobile */
    .btn,
    .btn-sm,
    .nav-link,
    .action-card {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improved table scrolling on mobile */
    .table-container {
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table thead {
        display: none; /* Hide table headers on small screens */
    }

    .data-table, .data-table tbody, .data-table tr, .data-table td {
        display: block; /* Force table to act like blocks */
        width: 100%;
    }

    .data-table tr {
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        overflow: hidden;
    }

    .data-table td {
        text-align: right;
        padding-left: 100px; /* Make space for the data-label */
        position: relative;
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
        white-space: normal; /* Allow content to wrap */
    }

    .data-table td:last-child {
        border-bottom: 0;
    }

    .data-table td::before {
        content: attr(data-label) !important; /* Display the data-label as a pseudo-element */
        position: absolute !important;
        left: 15px !important;
        width: 85px !important; /* Ensure full width for the label */
        padding-right: 10px !important;
        white-space: normal !important; /* Allow content to wrap */
        overflow: visible !important; /* Ensure content is not hidden */
        text-overflow: clip !important; /* Prevent ellipsis */
        font-weight: 600 !important;
        text-align: left !important;
        color: #333 !important; /* Make the color darker for better visibility */
    }
    
    /* Toast positioning on mobile */
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .stats-grid {
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .action-card {
        padding: 20px;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }

/* Icon-only button styling */
.btn i {
    margin-right: 0; /* Remove margin for icon-only buttons */
}

.btn:has(i:only-child) {
    padding: 10px; /* Adjust padding for icon-only buttons */
    width: 44px; /* Ensure a good touch target */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .stats-grid {
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .action-card {
        padding: 20px;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}
}

/* ============================================
   MODERN STYLING ENHANCEMENTS
   ============================================ */

/* Enhanced Buttons */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

/* Enhanced Cards */
.stat-card,
.action-card,
.section {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before,
.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before,
.action-card:hover::before {
    left: 100%;
}

/* Enhanced Form Inputs */
.form-group input,
.form-group select,
.form-group textarea {
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: var(--success-color);
}

/* Enhanced Tables */
.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .action-card,
    .nav-toggle {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    body {
        background: white;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Spacing Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Display Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-bold { font-weight: 700; }
.text-muted { color: #6c757d; }

/* Visibility Utilities */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Opacity Utilities */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* Cursor Utilities */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* ============================================
   TOOLTIP STYLES
   ============================================ */

[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #333;
    color: white;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    animation: fadeIn 0.2s ease-out;
}

[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
    margin-bottom: -5px;
}

/* ============================================
   ACCESSIBILITY: KEYBOARD NAVIGATION
   ============================================ */

/* Focus indicators for keyboard navigation */
.nav-link:focus,
.nav-dropdown-btn:focus,
.btn:focus,
.action-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ARIA live regions for dynamic content */
.aria-live {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================
   ENHANCED DATA TABLE
   ============================================ */

.data-table {
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--dark-text);
}

.empty-state p {
    margin-bottom: 20px;
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* ============================================
   BADGE ENHANCEMENTS
   ============================================ */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.status-badge {
    padding: 4px 8px;
    color: white;
    border-radius: 3px;
    font-size: 12px;
}

/* ============================================
   MODAL ENHANCEMENTS
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--light-bg);
    color: var(--dark-text);
}

.modal-close:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 992px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 993px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ============================================
   SMOOTH TRANSITIONS
   ============================================ */

* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 575px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .draft-btn {
        background: #ffc107 !important;
        color: #000 !important;
    }

    .section > div:first-child {
        flex-direction: column;
        gap: 10px;
    }

    .section > div:first-child .btn {
        width: 100%;
    }
}

/* Styles moved from quotations.php */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}
.badge-info {
    background: #17a2b8;
    color: white;
}
.badge-secondary {
    background: #6c757d;
    color: white;
}
.btn-success {
    background: #28a745;
    color: white;
}
.btn-success:hover {
    background: #218838;
}

/* Table header visibility and layout improvements */
.data-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.data-table thead th {
    color: #fff;
}
.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

@media (min-width: 769px) {
    .data-table thead,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: table-row-group; /* Revert to default table display for desktop */
        width: auto;
    }

    .data-table thead {
        display: table-header-group;
    }

    .data-table tr {
        display: table-row;
        margin-bottom: 0;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .data-table th,
    .data-table td {
        display: table-cell;
        text-align: left; /* Reset text alignment for desktop */
        padding-left: 12px; /* Reset padding */
        position: static; /* Reset position */
        width: auto; /* Allow width to be controlled by new rules */
        white-space: nowrap; /* Prevent wrapping by default, can be overridden */
        overflow: hidden;
        text-overflow: ellipsis; /* Add ellipsis for overflow */
    }

    .data-table td::before {
        content: none !important; /* Hide data-label on desktop */
    }

    .data-table th:nth-child(1), .data-table td:nth-child(1) { width: 12%; } /* Quotation # */
    .data-table th:nth-child(2), .data-table td:nth-child(2) { width: 10%; } /* Date */
    .data-table th:nth-child(3), .data-table td:nth-child(3) { width: 16%; } /* Dealer */
    .data-table th:nth-child(4), .data-table td:nth-child(4) { width: 12%; } /* Type */
    .data-table th:nth-child(5), .data-table td:nth-child(5) { width: 16%; } /* Customer */
    .data-table th:nth-child(6), .data-table td:nth-child(6) { width: 10%; } /* Order ID */
    .data-table th:nth-child(7), .data-table td:nth-child(7) { width: 10%; text-align: right; } /* Total */
    .data-table th:nth-child(8), .data-table td:nth-child(8) { width: 10%; } /* Status */
    .data-table th:nth-child(9), .data-table td:nth-child(9) { width: 8%; } /* Actions */
}