/* Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card.clickable {
    cursor: pointer;
    transition: var(--card-accent-transition);
}

/* לכרטיס הזה אין מסגרת משלו, ולכן הקו מגיע דרך צל בעובי פיקסל. */
.stat-card.clickable:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), var(--card-accent-hover);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon-svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.refresh-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.dashboard-list {
    max-height: 400px;
    overflow-y: auto;
    padding-left: 4px;
}

/* Request Card */
.request-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.request-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}


.request-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.request-id {
    font-size: 14px;
    font-weight: 600;
    color: #5a67d8;
}

.request-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 4px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    border: none !important;
    box-shadow: none !important;
    border-right: 3px solid transparent;
}

.status-pending       { background: #fff7ed; color: #9a3412; border-right-color: #f97316 !important; }
.status-approved      { background: #f0fdf4; color: #15803d; border-right-color: #16a34a !important; }
.status-rejected      { background: #fef2f2; color: #b91c1c; border-right-color: #dc2626 !important; }
.status-clarification { background: #eef2ff; color: #4338ca; border-right-color: #4f46e5 !important; }
.status-awaiting_invoice { background: #f5f3ff; color: #6d28d9; border-right-color: #7c3aed !important; }
.status-closed        { background: #f8fafc; color: #475569; border-right-color: #94a3b8 !important; }
.status-draft         { background: #eef2ff; color: #3730a3; border-right-color: #6366f1 !important; }
.status-submitted     { background: #ecfeff; color: #0e7490; border-right-color: #0891b2 !important; }
.status-returned      { background: #fff1f2; color: #be123c; border-right-color: #e11d48 !important; }
.status-signed        { background: #ecfdf5; color: #15803d; border-right-color: #15803d !important; }
.status-sent_to_accounting { background: #ecfdf5; color: #047857; border-right-color: #047857 !important; }

.status-pending {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.status-approved {
    background: #ecfdf5;
    color: #15803d;
    border-color: #a7f3d0;
}

.status-rejected {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.status-clarification {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

.status-awaiting_invoice {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
}

.status-closed {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.status-draft {
    background: #eef2ff;
    color: #3730a3;
    border-color: #c7d2fe;
}

.status-submitted {
    background: #ecfeff;
    color: #0e7490;
    border-color: #a5f3fc;
}

.status-returned {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.status-signed {
    background: #ecfdf5;
    color: #15803d;
    border-color: #a7f3d0;
}

.status-sent_to_accounting {
    background: #ecfdf5;
    color: #047857;
    border-color: #6ee7b7;
}


.request-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #64748b;
}

