
/* ========================================
   DASHBOARD ADMINISTRATIVO
======================================== */

.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-header {
    margin-bottom: 0;
}

.dashboard-header h1 {
    margin: 6px 0;
}

.dashboard-header p {
    margin: 8px 0 0;
    color: #64748b;
}

/* Tarjetas de indicadores */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-stat-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
    padding: 22px;
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.035);
}

.dashboard-stat-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 21px;
}

.orders-icon {
    color: #087fae;
    background: #e6f5fb;
}

.products-icon {
    color: #64748b;
    background: #f1f5f9;
}

.pending-icon {
    color: #b7791f;
    background: #fff5df;
}

.store-icon {
    color: #15803d;
    background: #e8f7ed;
}

.dashboard-stat-card p {
    margin: 0 0 9px;
    color: #64748b;
    font-size: 13px;
}

.dashboard-stat-card h2 {
    margin: 0 0 7px;
    color: #172b3a;
    font-size: 27px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.dashboard-stat-card > div:last-child > span {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
}

.dashboard-stat-card .dashboard-status {
    font-size: 19px;
}

.status-active {
    color: #15803d !important;
}

.status-maintenance {
    color: #b45309 !important;
}

/* Paneles secundarios */

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

.dashboard-panel {
    min-width: 0;
    padding: 24px;
    background: #fff;
    border: 1px solid #e8edf1;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.035);
}

.dashboard-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-panel-header h2 {
    margin: 0 0 7px;
    color: #172b3a;
    font-size: 18px;
}

.dashboard-panel-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.dashboard-panel-icon {
    color: #048ABF;
    font-size: 25px;
}

.dashboard-pending-summary,
.dashboard-store-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.dashboard-pending-summary {
    justify-content: space-between;
}

.dashboard-pending-summary span,
.dashboard-store-summary > span:last-child {
    color: #475569;
    font-size: 13px;
}

.dashboard-pending-summary strong {
    color: #172b3a;
    font-size: 22px;
}

.dashboard-status-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
}

.dot-active {
    background: #16a34a;
}

.dot-maintenance {
    background: #d97706;
}

.dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #048ABF;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.dashboard-link:hover {
    color: #036b94;
    text-decoration: underline;
}

/* Adaptación a tablets */

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

/* Adaptación a celulares */

@media (max-width: 640px) {
    .dashboard-stats,
    .dashboard-content-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-stat-card,
    .dashboard-panel {
        padding: 18px;
    }

    .dashboard-stat-card h2 {
        font-size: 24px;
    }
}

/*TABLA DE DASHBOARD*/
/* ========================================
   PEDIDOS RECIENTES
======================================== */

.dashboard-orders-panel {
    padding: 24px;
}

.dashboard-orders-list {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.dashboard-order-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 20px;
    padding: 16px 8px;
    color: inherit;
    text-decoration: none;
    border-top: 1px solid #edf1f4;
    transition: background-color 0.2s ease;
}

.dashboard-order-item:hover {
    background-color: #f8fafc;
}

.dashboard-order-main {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dashboard-order-main strong {
    color: #172b3a;
    font-size: 14px;
}

.dashboard-order-main span {
    color: #64748b;
    font-size: 13px;
}

.dashboard-order-info {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
}

.dashboard-order-info strong {
    color: #172b3a;
    font-size: 14px;
}

.dashboard-order-status {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

/* Estados */

.status-pending {
    color: #b45309;
    background: #fff5df;
}

.status-confirmed {
    color: #15803d;
    background: #e8f7ed;
}

.status-cancelled {
    color: #b91c1c;
    background: #feecec;
}

.status-completed {
    color: #0369a1;
    background: #e0f2fe;
}

.dashboard-order-arrow {
    color: #94a3b8;
    font-size: 15px;
}

.dashboard-orders-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #edf1f4;
}

.dashboard-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 40px 20px;
    color: #94a3b8;
    text-align: center;
}

.dashboard-empty-state i {
    font-size: 32px;
}

.dashboard-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Mobile */

@media (max-width: 640px) {

    .dashboard-order-item {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .dashboard-order-info {
        align-items: flex-end;
    }

    .dashboard-order-arrow {
        display: none;
    }

    .dashboard-order-main {
        min-width: 0;
    }

    .dashboard-order-main span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}