.welcome-container {
    max-width: 1650px;
    margin: 0 auto;
    padding: 1rem 0.5rem;
}

.welcome-card {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
    overflow: hidden;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
}

.card-body {
    padding: 1.5rem;
}

.welcome-title {
    color: var(--frs-accent1-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 2.2rem;
    text-align: left;
    background: linear-gradient(320deg, var(--frs-accent1-color), var(--frs-accent2-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-text {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 400;
    line-height: 1.5;
}

.main-content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 1rem;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.right-column {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border-radius: 12px;
        border: 1px solid var(--frs-accent1-color);
    box-shadow: 3px 3px 8px var(--frs-accent1-color);
}

/* Quick Actions Styling */
.quick-actions {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.actions-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--frs-accent1-color);
    display: flex;
    align-items: center;
}

.actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.action-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 167, 157, 0.15);
    border-color: var(--frs-accent1-color);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.action-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--frs-accent1-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(0, 167, 157, 0.1), rgba(0, 167, 157, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 167, 157, 0.2);
}

.action-text h4 {
    margin-bottom: 0.25rem;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.action-text p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Service Options Styling */
.service-options {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.service-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border-color: #28a745;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.service-card:nth-child(1) .service-icon {
    background: linear-gradient(145deg, rgba(40, 167, 69, 0.15), rgba(40, 167, 69, 0.05));
    color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.service-card:nth-child(1):hover {
    border-color: #28a745;
}

.service-card:nth-child(2) .service-icon {
    background: linear-gradient(145deg, rgba(0, 123, 255, 0.15), rgba(0, 123, 255, 0.05));
    color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.service-card:nth-child(2):hover {
    border-color: #007bff;
}

.service-card:nth-child(3) .service-icon {
    background: linear-gradient(145deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05));
    color: #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.service-card:nth-child(3):hover {
    border-color: #ffc107;
}

.service-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-text h4 {
    margin-bottom: 0.25rem;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.service-text p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Shipping Quote Styling */
.shipping-quote-section {
    background: var(--frs-gradient1-color);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 167, 157, 0.2);
    margin-top: 1rem;
}

.shipping-quote-section .actions-header {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
}

.shipping-quote-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quote-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.input-group {
    display: flex;
    flex-direction: row;
    min-width: 0;
    flex-wrap: inherit;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
    font-size: 0.8rem;
}

.input-group input.form-control {
    background-color: white !important;
    border: 2px solid #e9ecef !important;
    color: #495057 !important;
    font-size: 0.85rem !important;
    padding: 0.5rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
}

.input-group input.form-control:focus {
    border-color: var(--frs-accent1-color) !important;
    box-shadow: 0 0 0 0.15rem rgba(0, 167, 157, 0.25) !important;
    outline: none;
}

.input-group input.form-control:hover {
    border-color: var(--frs-accent1-color);
}

.quote-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    background: linear-gradient(145deg, var(--frs-accent1-color), var(--frs-accent2-color));
    border: none;
    box-shadow: 0 3px 10px rgba(0, 167, 157, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.quote-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 167, 157, 0.4);
}

.quote-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.quote-results {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.quote-success h6 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.quote-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.quote-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 3px solid var(--frs-accent1-color);
}

.quote-label {
    font-weight: 600;
    color: #666;
    font-size: 0.8rem;
}

.quote-value {
    font-weight: 700;
    color: #333;
    font-size: 0.8rem;
}

.quote-error {
    background: linear-gradient(145deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 0.75rem;
    color: #856404;
    font-weight: 500;
    font-size: 0.8rem;
}

/* Authentication buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-primary {
    background: var(--frs-accent1-color);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 167, 157, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--frs-accent1-color);
    color: var(--frs-accent1-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--frs-accent1-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 167, 157, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.divider {
    margin: 1rem 0;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Recent Orders Focus Styling - Updated for Compact Table */
.recent-orders-focus {
    padding: 1.5rem;
    height: 100%;
}

.orders-header {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--frs-accent1-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--frs-accent1-color);
    display: flex;
    align-items: center;
}

.orders-summary {
    margin-bottom: 1.5rem;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid var(--frs-accent1-color);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--frs-accent1-color);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Compact Order Table Styles */
.compact-order-table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    height: 400px; /* Fixed height for home page */
}

/* Compact header */
.table-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.header-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
    flex: 1;
}

.compact-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* Compact search */
.search-container-compact {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.8rem;
    z-index: 2;
}

.compact-search {
    padding: 0.375rem 0.75rem 0.375rem 2rem;
    font-size: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    height: auto;
    width: 100%;
}

.compact-search:focus {
    border-color: var(--frs-accent1-color);
    box-shadow: 0 0 0 0.15rem rgba(0, 167, 157, 0.15);
}

/* Table content wrapper */
.table-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.table-wrapper {
    flex: 1;
    overflow-y: auto;
}

/* Compact table */
.compact-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    background: white;
}

.compact-order-table thead {
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.compact-order-table th {
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    font-size: 0.75rem;
    text-align: left;
    cursor: pointer;
    user-select: none;
}

.sortable-header {
    position: relative;
    transition: background-color 0.2s;
}

.sortable-header:hover {
    background-color: rgba(0, 167, 157, 0.1);
}

.sortable-header span {
    display: block;
    margin-right: 1rem;
}

.sort-icon {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    opacity: 0.6;
}

.status-column {
    width: 120px;
    min-width: 120px;
}

.date-column {
    width: 60px;
    min-width: 60px;
}

/* Table rows */
.order-row {
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f1f3f4;
}

.order-row:nth-child(even) {
    background-color: #f8f9fa;
}

.order-row:nth-child(odd) {
    background-color: white;
}

.order-row:hover {
    background-color: #e3f2fd !important;
    transform: translateX(2px);
}

.order-row.selected {
    background-color: #e7f3ff !important;
    border-left: 3px solid var(--frs-accent1-color);
    box-shadow: inset 0 0 0 1px rgba(0, 167, 157, 0.2);
}

.order-row.selected:hover {
    background-color: #d1ecf1 !important;
}

.order-row td {
    padding: 0.5rem 0.75rem;
    border-right: 1px solid #f1f3f4;
    vertical-align: middle;
}

.order-row td:last-child {
    border-right: none;
}

/* Customer cell */
.customer-cell {
    max-width: 0;
    width: 100%;
}

.customer-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.customer-name {
    font-weight: 500;
    color: #495057;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-id {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 400;
}

/* Status indicators */
.status-indicators {
    display: flex;
    gap: 0.25rem;
    justify-content: space-between;
    align-items: center;
}

/* Status Progress Container */
.status-progress-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 120px;
}

.status-progress-bar {
    flex: 1;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.status-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
    background: linear-gradient(90deg, var(--frs-accent1-color), #28a745);
}

.status-progress-fill.pending {
    width: 25%;
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.status-progress-fill.in-progress {
    width: 50%;
    background: linear-gradient(90deg, #0d6efd, var(--frs-accent1-color));
}

.status-progress-fill.completed {
    width: 100%;
    background: linear-gradient(90deg, var(--frs-accent1-color), #28a745);
}

.status-progress-fill.failed {
    width: 75%;
    background: linear-gradient(90deg, #dc3545, #6f42c1);
}

.status-progress-fill.needs-action {
    width: 60%;
    background: linear-gradient(90deg, #ffc107, #fd7e14);
    animation: pulse-progress 1.5s ease-in-out infinite;
}

@keyframes pulse-progress {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.status-icon.pending {
    color: #000;
}

.status-icon.in-progress {
    background-color: #0d6efd;
    color: white;
}

.status-icon.completed {
    background-color: #28a745;
    color: white;
}

.status-icon.failed {
    background-color: #dc3545;
    color: white;
}

.status-icon.needs-action {
    background-color: #ffc107;
    color: #000;
    border-color: #ffca2c;
    animation: pulse-attention 1.5s ease-in-out infinite;
}

@keyframes pulse-attention {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 4px rgba(255, 193, 7, 0);
    }
}

/* Date cell */
.date-cell {
    font-size: 0.7rem;
    color: #6c757d;
    text-align: center;
}

/* Loading and empty states */
.loading-state-compact,
.empty-state-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: #6c757d;
    font-size: 0.85rem;
    gap: 0.5rem;
}

.loading-spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--frs-accent1-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state-compact i {
    font-size: 2rem;
    color: #dee2e6;
}

/* Remove old table styles - these are replaced by compact table */
.order-table-container-focus,
.order-table-focus,
.order-table-header-focus,
.order-row-focus {
    /* These styles are now handled by compact table */
}
