.dashboard-wrapper {
    position: relative;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
}
.dashboard-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/homee.jpg") center/cover no-repeat;
}
.dashboard-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.55) 100%);
}
.dashboard-wrapper > * {
    position: relative;
    z-index: 1;
}
.dashboard-header {
    margin-bottom: 24px;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.greeting-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
}
.greeting-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.greeting-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    background: #111827;
}
.greeting-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.02em;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.greeting-subtitle {
    font-size: 14px;
    color: #9ca3af;
    margin: 4px 0 0;
}
.dashboard-content {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.dashboard-left {
    flex: 1;
}
.dashboard-stats-full {
    flex: 1;
    min-width: 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}
.stat-card:hover {
    border-color: #c7d2e0;
    background: #fafbfc;
}
.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f3f4f6;
    color: #6b7280;
}
.stat-icon svg {
    width: 15px;
    height: 15px;
}
.stat-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.stat-number {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}
.stat-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}
.stat-primary .stat-icon { background: #eff6ff; color: #2563eb; }
.stat-secondary .stat-icon { background: #ecfdf5; color: #059669; }
.stat-accent .stat-icon { background: #fef3c7; color: #d97706; }
.stat-dark .stat-icon { background: #f3f4f6; color: #374151; }
.stat-outline .stat-icon { background: #f9fafb; color: #9ca3af; }
.stat-outline .stat-number { color: #111827; }
.stat-outline:hover { border-color: #2563eb; }

.alert-stock-bajo {
    background: #ffffff;
    border: 1px solid #fecaca;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.alert-stock-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #fef2f2;
    color: #dc2626;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid #fecaca;
}
.alert-stock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fee2e2;
    color: #dc2626;
    flex-shrink: 0;
}
.alert-stock-bajo .table-container {
    padding: 0;
}
.alert-stock-bajo table {
    margin-bottom: 0;
}

.dash-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.dash-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}
.dash-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}
.dash-card-title svg {
    width: 18px;
    height: 18px;
    color: #6b7280;
}
.dash-chart-wrap {
    position: relative;
    height: 300px;
    padding: 16px 20px 20px;
}
.dash-card .table-container {
    padding: 0;
}
.dash-card table {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .dashboard-content {
        flex-direction: column;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-wrapper {
        padding: 16px;
    }
}