/* ============================================================ */
/* LABELS PRINT — FormTab Almacén                              */
/* ============================================================ */

.labels-container {
    padding: 2rem 3rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.labels-container .page-title {
    font-weight: 700;
    color: #1e2a38;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

/* ============================================================ */
/* MODULE NAV                                                    */
/* ============================================================ */
.labels-container .module-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.labels-container .btn-back-dash {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e2a38;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.labels-container .btn-back-dash:hover {
    background: #f0f2f5;
    border-color: #94a3b8;
}

.labels-container .module-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
}

.labels-container .module-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.labels-container .tag-storage {
    background: #e0f2fe;
    color: #0369a1;
}

.labels-container .breadcrumb-current {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e2a38;
}

.labels-container .flow-hint {
    margin-left: auto;
    font-size: 0.72rem;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px 12px;
    white-space: nowrap;
}

/* ============================================================ */
/* TOP CARD (sidebar + content)                                 */
/* ============================================================ */
.labels-container .labels-card {
    display: flex;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    width: 100%;
    overflow: hidden;
}

/* ---- Sidebar ---- */
.labels-container .labels-sidebar {
    width: 220px;
    background-color: #f8fafc;
    border-right: 1px solid #e8edf2;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.labels-container .sidebar-module-label {
    padding: 0.75rem 1rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid #e8edf2;
}

.labels-container .sidebar-btn {
    padding: 1.1rem 1rem;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #e8edf2;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.labels-container .sidebar-btn:hover {
    background-color: #eef1f5;
    color: #1e2a38;
}

.labels-container .sidebar-btn.active {
    background-color: #1e2a38;
    color: #ffffff;
    border-left: 3px solid #3B82F6;
}

.labels-container .sidebar-btn.active:hover {
    background-color: #1e2a38;
}

/* ---- Content area ---- */
.labels-container .labels-content {
    flex: 1;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
}

/* Inputs and Table */
.labels-container .generic-input {
    background-color: #f0f2f5;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    height: 36px;
    font-family: inherit;
}

.labels-container .generic-btn-dark {
    background-color: #1e2a38;
    border: none;
    height: 36px;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.13s;
    box-shadow: 0 2px 6px rgba(30, 42, 56, 0.2);
}

.labels-container .generic-btn-dark:hover {
    background-color: #0f1a24;
    transform: translateY(-1px);
}

.labels-container .labels-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e8edf2;
}

.labels-container .labels-table th {
    background-color: #1e2a38;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.65rem 0.75rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.labels-container .labels-table td {
    padding: 0.65rem 0.75rem;
    background-color: #f8fafc;
    border-bottom: 1px solid #e8edf2;
    height: 36px;
    font-size: 0.85rem;
    color: #374151;
}

/* Scan Area */
.labels-container .scan-area {
    display: flex;
    background-color: #f8fafc;
    border: 1px solid #e8edf2;
    padding: 1rem;
    border-radius: 10px;
    gap: 1.5rem;
}

.labels-container .scan-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.labels-container .scan-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    height: 40px;
    background-color: #ffffff;
}

.labels-container .scan-input-box {
    border: none;
    outline: none;
    flex: 1;
    padding: 0 0.5rem;
    font-size: 0.85rem;
    font-family: inherit;
    background: transparent;
}

.labels-container .btn-siguiente {
    background-color: #1e2a38;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.55rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    width: fit-content;
    margin-top: 1rem;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.13s, box-shadow 0.15s;
    box-shadow: 0 2px 6px rgba(30, 42, 56, 0.2);
}

.labels-container .btn-siguiente:hover {
    background-color: #0f1a24;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 42, 56, 0.28);
}

.labels-container .scan-right {
    flex: 1;
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e8edf2;
    display: flex;
    flex-direction: column;
}

.labels-container .detection-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e8edf2;
    padding-bottom: 0.5rem;
}

.labels-container .d-row {
    display: flex;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
}

.labels-container .d-label {
    color: #64748b;
    width: 130px;
    font-weight: 500;
}

/* ============================================================ */
/* BOTTOM CARD (config y opciones)                              */
/* ============================================================ */
.labels-container .config-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    width: 100%;
    display: flex;
    padding: 2rem;
    margin-top: 1rem;
}

.labels-container .config-left {
    flex: 1;
    border-right: 1px solid #e8edf2;
    padding-right: 2rem;
}

.labels-container .config-right {
    flex: 1;
    padding-left: 2rem;
}

.labels-container .hollow-input {
    background-color: #f0f2f5;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    height: 38px;
    font-family: inherit;
}

.labels-container .btn-imprimir {
    background-color: #1e2a38;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.13s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(30, 42, 56, 0.25);
}

.labels-container .btn-imprimir:hover {
    background-color: #0f1a24;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(30, 42, 56, 0.32);
}

/* Toggle */
.labels-container .switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.labels-container .switch input { opacity: 0; width: 0; height: 0; }

.labels-container .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 24px;
}

.labels-container .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.labels-container input:checked + .slider { background-color: #1e2a38; }
.labels-container input:checked + .slider:before { transform: translateX(18px); }
