﻿/* ==========================================
   🧾 INVENTARIO — DETALLE DE PRODUCTO (COMPACTO)
   ========================================== */

.item-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.item-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

/* ===============================
   Header acciones
   =============================== */

.item-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.btn {
    background: #fff;
    color: black;
    border: 1px solid #d0d7e2;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: none;
    margin: 0;
}

    .btn:hover {
        background: #f7f9fc;
    }

.btn-outline {
    color: #333;
}

.btn-primary {
    background: #2d5bff;
    color: #fff;
    border-color: #2d5bff;
}

    .btn-primary:hover {
        background: #1a4ae0;
    }

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

/* ===============================
   Toggle Activo / Inactivo
   =============================== */

.pill-toggle {
    display: flex;
    border: 1px solid #d0d7e2;
    border-radius: 16px;
    overflow: hidden;
}

.pill {
    padding: 4px 10px;
    font-size: 12px;
    cursor: default;
    color: #888;
}

    .pill.active {
        background: #00b894;
        color: #fff;
        font-weight: 600;
    }

/* ===============================
   Cards
   =============================== */

.card {
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
}

.card-main {
    padding: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    align-items: start;
}

.card-left {
    padding: 14px 16px;
}

.card-right {
    background: #f7f9fc;
    padding: 14px;
    border-left: 1px solid #e5e9f2;
}

/* ===============================
   Campos
   =============================== */

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.field {
    display: flex;
    flex-direction: column;
}

.field-full {
    margin-top: 12px;
}

.label {
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
}

.value {
    font-size: 13px;
    color: #222;
}

.value-multiline {
    border: 1px solid #e5e9f2;
    border-radius: 8px;
    padding: 6px 8px;
    min-height: 48px;
    background: #fff;
}

/* ===============================
   Imagen
   =============================== */

.image-box {
    margin-bottom: 12px;
}

.image-preview {
    border: 2px dashed #d0d7e2;
    border-radius: 10px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

    .image-preview img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.image-placeholder {
    font-size: 13px;
    color: #aaa;
}

.image-actions {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hint {
    font-size: 11px;
    color: #888;
}

/* ===============================
   Precios
   =============================== */

.price-box {
    margin-top: 10px;
}

.price-title {
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
}

.price-total {
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.currency {
    font-size: 12px;
    color: #777;
}

.price-breakdown {
    margin-top: 10px;
    border-top: 1px solid #e5e9f2;
    padding-top: 10px;
}

.pb-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    margin-bottom: 4px;
}

.pb-label {
    color: #777;
}

.pb-value {
    color: #222;
    font-weight: 600;
}

/* ===============================
   Inventario
   =============================== */

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.inv-title {
    font-size: 14px;
    font-weight: 600;
}

.inv-badge {
    margin-left: 6px;
    background: #eef3ff;
    color: #2d5bff;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 12px;
}

.simple-table {
    width: 100%;
    border-collapse: collapse;
}

    .simple-table th,
    .simple-table td {
        font-size: 12px;
        padding: 8px;
        border-bottom: 1px solid #e5e9f2;
        text-align: left;
    }

    .simple-table th {
        color: #777;
        font-weight: 600;
    }

/* ===============================
   Secciones
   =============================== */

.section-title {
    font-size: 14px;
    font-weight: 600;
}

.empty {
    font-size: 13px;
    color: #888;
}

/* ==========================================
   🪟 Labels con borde suave (vista detalle)
   ========================================== */

.settings-wrapper .card .label {
    border: 1px solid #e5e9f2 !important;
    border-radius: 6px;
    padding: 4px 8px;
    background: #fafbff;
    display: inline-block;
}

/* ===============================
   Settings wrapper (contenido central)
   =============================== */

.settings-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px;
}

.is-hidden {
    display: none;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .card-right {
        border-left: none;
        border-top: 1px solid #e5e9f2;
    }

    .item-detail-header {
        flex-direction: column;
        gap: 8px;
    }

    .settings-wrapper {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .settings-wrapper {
        padding: 12px 8px;
    }

    .item-title {
        font-size: 17px;
    }

    .item-header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .item-header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }
}
