/* assigned_orders.css */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: #f9fafb; 
}

.dashboard-container { 
    padding: 20px; 
    max-width: 1400px; 
    margin-left: 260px;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    width: calc(100% - 260px);
}

@media (max-width: 992px) {
    .dashboard-container { 
        margin-left: 0; 
        padding-bottom: 100px;
        width: 100%;
        padding: 56px 18px 100px 18px;
    }
}

.dashboard-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
    margin-bottom: 24px; 
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard-header h1 { 
    font-size: 28px; 
    color: #111827; 
    font-weight: 700;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #4361ee;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s;
}

@media (max-width: 600px) {
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        margin-top: 0;
        margin-bottom: 18px;
    }
    
    .btn-back {
        width: 100%;
        justify-content: center;
    }
}

.btn-back:hover { 
    background: #3451d6; 
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 992px) {
    .orders-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .orders-grid {
        grid-template-columns: 1fr;
    }
}

.order-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    min-height: 94px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.order-card:hover,
.order-card:focus-visible {
    border-color: #3b82f6;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.16);
    transform: translateY(-1px);
    outline: none;
}

.order-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-card__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
}

.order-card__total {
    align-self: end;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    text-align: right;
    white-space: nowrap;
}

.company-logo {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    border: 1px solid #dbe3f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.company-logo .company-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.company-logo img { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    display: none;
}

.company-logo i {
    font-size: 48px;
    color: white;
}

.company-name { 
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e293b;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-number {
    margin: 0;
    color: #6b7280;
    font-size: 0.84rem;
}

.order-inline-total {
    margin: 0;
    color: #1d4ed8;
    font-size: 0.92rem;
    font-weight: 600;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: capitalize;
    padding: 4px 10px;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-accepted { background: #e0e7ff; color: #4f46e5; }
.status-rejected { background: #ffe4e6; color: #b91c1c; }
.status-delivered { background: #dcfce7; color: #16a34a; }

.grid-sentinel {
    height: 1px;
}

.empty { 
    padding: 60px 24px; 
    background: #fff; 
    border: 2px dashed #e5e7eb; 
    border-radius: 12px; 
    text-align: center; 
    color: #6b7280;
}

.empty i {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.empty h3 {
    font-size: 20px;
    color: #374151;
    margin-bottom: 8px;
}

html[data-theme='dark'] body {
    background: #020617;
    color: #e2e8f0;
}

html[data-theme='dark'] .dashboard-header {
    border-bottom-color: #334155;
}

html[data-theme='dark'] .dashboard-header h1 {
    color: #f8fafc;
}

html[data-theme='dark'] .order-card {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

html[data-theme='dark'] .order-card:hover,
html[data-theme='dark'] .order-card:focus-visible {
    border-color: #60a5fa;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

html[data-theme='dark'] .company-logo {
    border-color: #475569;
}

html[data-theme='dark'] .company-name {
    color: #f1f5f9;
}

html[data-theme='dark'] .order-number {
    color: #94a3b8;
}

html[data-theme='dark'] .order-inline-total {
    color: #93c5fd;
}

html[data-theme='dark'] .order-card__total {
    color: #cbd5e1;
}

html[data-theme='dark'] .status-pending {
    background: rgba(234, 179, 8, 0.2);
    color: #fde68a;
}

html[data-theme='dark'] .status-accepted {
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
}

html[data-theme='dark'] .status-rejected {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

html[data-theme='dark'] .status-delivered {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

html[data-theme='dark'] .empty {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

html[data-theme='dark'] .empty i {
    color: #64748b;
}

html[data-theme='dark'] .empty h3 {
    color: #e2e8f0;
}

