/* =============================================================
   BASE GENERAL DEL TEMA LOGIPRESS
============================================================= */

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 0;
}

.lp-main-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* =============================================================
   SIDEBAR IZQUIERDO
============================================================= */

#lpSidebarLeft,
.lp-sidebar-left {
    width: 250px;
    background: #1f2937;
    color: #fff;
    padding: 20px 10px;
    flex-shrink: 0;
    min-height: 100vh;
    overflow-y: auto;
    transition: all 0.3s ease;
}

#lpSidebarLeft.open {
    left: 0;
}

.lp-sidebar-left .menu-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

.lp-sidebar-left .menu-item a:hover {
    background: rgba(255,255,255,0.15);
}

.lp-menu-icon {
    font-size: 18px;
    width: 22px;
    display: inline-block;
}

/* Submenús */
.menu-item-has-children > a::after {
    content: "▸";
    margin-left: auto;
}

.menu-item-has-children.open > a::after {
    content: "▾";
}

.menu-item-has-children ul {
    display: none;
    padding-left: 15px;
}

.menu-item-has-children.open ul {
    display: block;
}

/* =============================================================
   SIDEBAR DERECHO
============================================================= */

.lp-sidebar-right {
    width: 260px;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    padding: 20px;
    flex-shrink: 0;
}

/* =============================================================
   CONTENIDO PRINCIPAL
============================================================= */

.lp-main-content {
    flex: 1;
    padding: 25px;
    background: #f4f6f8;
}

.lp-dashboard-container {
    max-width: 1250px;
    margin: auto;
}

/* =============================================================
   TARJETAS KPIs
============================================================= */

.lp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lp-kpi-box {
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.lp-kpi-box h3 {
    margin: 0;
    font-size: 15px;
    color: #666;
}

.lp-kpi-box .value {
    margin-top: 10px;
    font-size: 34px;
    font-weight: bold;
    color: #1a73e8;
}

/* =============================================================
   SECCIONES (cuadros blancos)
============================================================= */

.lp-section {
    background:#fff;
    padding:25px;
    border-radius:12px;
    margin-bottom:30px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.lp-section h2 {
    font-size:20px;
    padding-bottom:10px;
    margin-bottom:20px;
    border-bottom:2px solid rgba(26,115,232,0.3);
    color:#1a73e8;
}

/* =============================================================
   TABLAS
============================================================= */

.lp-table {
    width:100%;
    border-collapse:collapse;
}

.lp-table th,
.lp-table td {
    padding:10px;
    border-bottom:1px solid #eee;
    font-size:14px;
}

.lp-table th {
    background:#f5f7fa;
    font-weight:600;
}

/* =============================================================
   BADGES (estatus)
============================================================= */

.lp-badge-status {
    display:inline-block;
    padding:3px 8px;
    border-radius:12px;
    font-size:12px;
    color:#fff;
}

.lp-badge-active { background:#34a853; }
.lp-badge-inactive { background:#9e9e9e; }
.lp-badge-review { background:#fbbc04; color:#333; }
.lp-badge-prospect { background:#1a73e8; }

/* =============================================================
   SINGLE SHIPMENT — SISTEMA DE TABS
============================================================= */

.lp-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.lp-tab-btn {
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #f1f5f9;
    cursor: pointer;
    transition: all .2s;
    font-weight: 500;
}

.lp-tab-btn:hover {
    background: #e2e8f0;
}

.lp-tab-btn.active {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

.lp-tab {
    display: none;
}

.lp-tab.active {
    display: block;
}

/* =============================================================
   SINGLE SHIPMENT — INFO GRID
============================================================= */

.lp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.lp-info-item {
    background:#fff;
    padding:14px;
    border-radius:8px;
    box-shadow:0 1px 4px rgba(0,0,0,0.08);
    font-size: 15px;
}

.lp-info-item strong {
    display: block;
    color: #333;
}

/* =============================================================
   PROFIT COLORS
============================================================= */

.lp-profit-positive { color:#2e7d32; }
.lp-profit-negative { color:#c62828; }
.lp-profit-zero     { color:#424242; }

/* =============================================================
   RESPONSIVE
============================================================= */

@media (max-width: 900px) {
    .lp-sidebar-left {
        position: fixed;
        left: -260px;
        top: 0;
        transition: 0.3s ease;
    }

    .lp-sidebar-left.open {
        left: 0;
    }
}
