/*
 * Estilos específicos de Outlet Labeler que extienden el micro-framework
 * local equivalente a Bootstrap y reflejan la paleta Cerulean de Bootswatch.
 */

body {
    background-color: #f8f9fa;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2c3e50;
}

svg.icon {
    width: 1.1em;
    height: 1.1em;
    vertical-align: middle;
    flex-shrink: 0;
}

.navbar-brand {
    font-weight: 700;
}

.dropzone {
    border: 2px dashed rgba(47, 164, 231, 0.45);
    border-radius: 1rem;
    padding: 1.5rem;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.dropzone.is-dragover {
    border-color: rgba(47, 164, 231, 0.8);
    background: rgba(47, 164, 231, 0.12);
}

.dropzone img {
    max-height: 200px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: inset 0 0 0 1px rgba(3, 60, 115, 0.12);
    background: #f1f6fb;
}

.card-soft {
    border: 1px solid rgba(3, 60, 115, 0.12);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.5rem 1.4rem rgba(3, 60, 115, 0.08);
    padding: 1.25rem;
}

.badge-soft {
    background: rgba(47, 164, 231, 0.12);
    color: #1b6da8;
    border-radius: 9999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.table-inventory tbody tr {
    transition: background 0.2s ease;
}

.table-inventory tbody tr:hover {
    background: rgba(47, 164, 231, 0.1);
}

.table-inventory tbody tr.is-selected {
    background: rgba(47, 164, 231, 0.16);
    box-shadow: inset 0 0 0 1px rgba(47, 164, 231, 0.3);
}

.selection-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    border: 1px solid rgba(47, 164, 231, 0.25);
    background: rgba(47, 164, 231, 0.12);
    border-radius: 0.75rem;
    padding: 0.85rem 1.1rem;
}

.inventory-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.inventory-stats .stat {
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(47, 164, 231, 0.14), rgba(47, 164, 231, 0.04));
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.inventory-stats .stat-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(44, 62, 80, 0.7);
}

.inventory-stats .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

label.required::after {
    content: '*';
    color: #c71c22;
    margin-left: 0.25rem;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-status[data-status="Pendiente"] {
    background: rgba(221, 86, 0, 0.18);
    color: #7c3300;
}

.badge-status[data-status="Validado"] {
    background: rgba(115, 168, 57, 0.18);
    color: #43611d;
}

.badge-status[data-status="Descartado"] {
    background: rgba(199, 28, 34, 0.18);
    color: #7b1417;
}

.badge-status[data-status="Sin stock"] {
    background: rgba(150, 167, 186, 0.2);
    color: #2c3e50;
}

.badge-status[data-status="Vendido"] {
    background: rgba(47, 164, 231, 0.2);
    color: #1b6da8;
}

.barcode-preview {
    border: 1px dashed rgba(15, 23, 42, 0.12);
    padding: 1rem;
    border-radius: 0.75rem;
    background: #fff;
    text-align: center;
}

.barcode-preview img {
    max-width: 100%;
}

.ai-summary {
    border-left: 4px solid rgba(47, 164, 231, 0.6);
    padding-left: 1rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

:root {
    --f7-theme-color: #2fa4e7;
    --f7-theme-color-rgb: 47, 164, 231;
    --f7-theme-color-shade: #1b6da8;
    --f7-theme-color-tint: #4fb8f4;
    --f7-bars-bg-color: #1b6da8;
    --f7-bars-text-color: #ffffff;
    --f7-bars-border-color: transparent;
    --f7-navbar-large-title-text-color: #ffffff;
    --f7-subnavbar-bg-color: rgba(27, 109, 168, 0.92);
}

.framework7-root .navbar .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.framework7-root .navbar .brand svg.icon {
    width: 1.35em;
    height: 1.35em;
}

.framework7-root .navbar .subtitle {
    font-size: 0.75rem;
    opacity: 0.78;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 0.25rem;
}

.navbar .navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar .navbar-actions .chip {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    color: #fff;
}

.navbar .navbar-actions .button {
    border-radius: 999px;
}

.subnavbar .segmented {
    width: 100%;
}

.subnavbar .segmented .button {
    flex: 1 1 auto;
    gap: 0.35rem;
    border-radius: 999px;
}

.subnavbar .segmented .button svg.icon {
    width: 1.1em;
    height: 1.1em;
}

.subnavbar .segmented .button.button-active {
    box-shadow: 0 0.35rem 1.1rem rgba(27, 109, 168, 0.28);
}

.page-content .page-body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1.5rem 2.5rem;
}

@media (min-width: 768px) {
    .page-content .page-body {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.page-main {
    flex: 1 0 auto;
}

.footer-soft {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid rgba(3, 60, 115, 0.12);
    padding: 1rem 1.25rem;
    box-shadow: 0 0.35rem 1.2rem rgba(3, 60, 115, 0.08);
}

.footer-soft strong {
    color: #1b6da8;
}
