/* ============================================================
   DON ALE — VISTAS ESPECÍFICAS (views.css)
   Login, Panel General y Vistas en Construcción
   ============================================================ */

/* --- VISTA DE LOGIN --- */
.login-view-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--gradient-mesh);
    position: relative;
    overflow: hidden;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    box-shadow: var(--shadow-modal);
    position: relative;
    z-index: 10;
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-brand-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-lg);
    background: var(--gradient-brand);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 6px 20px var(--accent-orange-glow);
}

.login-brand-icon i {
    width: 30px;
    height: 30px;
}

.login-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.login-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i.leading-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 11px 14px 11px 42px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    width: 28px;
    height: 28px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
}

.password-toggle-btn:hover {
    color: var(--text-primary);
}

.login-error-alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--accent-red-subtle);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
    font-size: 0.84rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* --- VISTA PANEL GENERAL --- */
.panel-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.panel-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-recent-leads {
    margin-top: 24px;
}

.lead-name-cell {
    display: flex;
    flex-direction: column;
}

.lead-name {
    font-weight: 600;
    color: var(--text-primary);
}

.lead-date {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* --- VISTA EN CONSTRUCCIÓN (ROADMAP FASE R4-R7) --- */
.placeholder-view {
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.placeholder-badge {
    background: var(--accent-orange-glow);
    color: var(--accent-orange);
    border: 1px solid var(--border-hover);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.placeholder-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.placeholder-desc {
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 24px;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* --- VISTA CRM DE PROSPECTOS (FASE R4) --- */
.crm-header-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.crm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
}

.filter-tabs-group {
    display: flex;
    align-items: center;
    background: var(--bg-hover);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 2px;
}

.filter-tab {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--accent-orange);
    color: white;
    box-shadow: 0 2px 8px var(--accent-orange-glow);
}

.crm-filters-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.crm-search-box {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 220px;
}

.crm-search-box i {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.crm-search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    font-size: 0.85rem;
}

.crm-select-filter {
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
}

.crm-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 0 4px;
}

/* Paginación */
.crm-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-hover);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ficha / Detalle de Lead */
.lead-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .lead-detail-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.lead-detail-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lead-field-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.lead-field-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Sección de Notas Comerciales */
.notes-container {
    margin-top: 20px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 14px;
}

.note-item {
    background: var(--bg-hover);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    font-size: 0.84rem;
}

.note-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* Historial de Chat / Conversaciones */
.conversations-box {
    margin-top: 20px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
}

.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 240px;
    overflow-y: auto;
    padding: 12px;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.chat-msg {
    max-width: 84%;
    padding: 9px 13px;
    border-radius: var(--radius-md);
    font-size: 0.83rem;
    line-height: 1.45;
    word-break: break-word;
    box-shadow: var(--shadow-sm);
}

.chat-msg-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.70rem;
    font-weight: 600;
    margin-bottom: 3px;
    opacity: 0.85;
}

.chat-msg-body {
    white-space: pre-wrap;
}

.chat-msg.incoming {
    align-self: flex-start;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-bottom-left-radius: 3px;
}

.chat-msg.outgoing {
    align-self: flex-end;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom-right-radius: 3px;
}

.chat-msg.outgoing .chat-msg-meta {
    color: rgba(255, 255, 255, 0.92);
}

.chat-msg.system {
    align-self: center;
    background: var(--accent-blue-subtle);
    color: var(--accent-blue);
    border: 1px solid var(--border-subtle);
    font-size: 0.76rem;
    text-align: center;
    max-width: 90%;
}

/* Botón de Gestión de Prospectos (Contraste AA Certificado >= 4.5:1) */
.btn-manage-lead {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    font-size: 0.81rem;
    font-weight: 600;
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 6px rgba(4, 120, 87, 0.25);
}

.btn-manage-lead:hover {
    background: linear-gradient(135deg, #047857 0%, #065F46 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.4);
    color: #FFFFFF !important;
}

.btn-manage-lead:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.btn-danger {
    background: var(--accent-red);
    color: white;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    gap: 8px;
    box-shadow: 0 2px 10px var(--accent-red-subtle);
}

.btn-danger:hover {
    background: #DC2626;
}

/* --- VISTA PIPELINE DE VENTAS / KANBAN (FASE R5) --- */
.pipeline-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.kanban-wrapper {
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: thin;
}

.kanban-board {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    min-height: 520px;
}

.kanban-column {
    flex: 0 0 290px;
    width: 290px;
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 280px);
}

@media (max-width: 768px) {
    .kanban-column {
        flex: 0 0 84vw;
        width: 84vw;
        scroll-snap-align: start;
    }
    .kanban-board {
        scroll-snap-type: x mandatory;
    }
}

.kanban-column-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.9rem;
}

.kanban-count-pill {
    background: var(--bg-hover);
    border: 1px solid var(--border-subtle);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
}

.kanban-cards-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex: 1;
    min-height: 160px;
}

.kanban-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kanban-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.kanban-card-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.kanban-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.kanban-card-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

.kanban-move-btn {
    background: var(--bg-hover);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 3px 8px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.kanban-move-btn:hover:not(:disabled) {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

.kanban-move-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.kanban-empty-col {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-style: italic;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Sección Ventas */
.pipeline-sales-section {
    margin-top: 32px;
}

/* --- VISTA INVENTARIO (FASE R6) --- */
.stock-badge-normal {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stock-badge-low {
    background: var(--accent-red-subtle);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: pulseSlow 2s infinite;
}

.stock-adjust-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
}

/* --- VISTA REPORTES IA (FASE R6) --- */
.reports-header-card {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(14, 165, 233, 0.08));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.reports-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .reports-charts-grid {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    min-height: 250px;
    max-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-style: italic;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* --- VISTA PUBLICACIONES (FASE R7) --- */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.calendar-day-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.calendar-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-day-num {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-orange);
}

.calendar-type-pill {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.type-educativo { background: rgba(14, 165, 233, 0.15); color: var(--accent-blue); }
.type-storytelling { background: rgba(168, 85, 247, 0.15); color: #A855F7; }
.type-oferta_cta { background: rgba(249, 115, 22, 0.15); color: var(--accent-orange); }
.type-autoridad { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.type-dato_curioso { background: rgba(20, 184, 166, 0.15); color: #14B8A6; }
.type-persuasivo { background: rgba(236, 72, 153, 0.15); color: #EC4899; }

.calendar-day-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    flex: 1;
}

.calendar-day-species {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- VISTA AJUSTES (FASE R7) --- */
.role-badge-admin {
    background: rgba(168, 85, 247, 0.15);
    color: #A855F7;
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 700;
}

.role-badge-supervisor {
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 700;
}

.role-badge-advisor {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 700;
}

.system-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.system-info-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.system-info-label {
    font-size: 0.76rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.system-info-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================================
   R8-A.1: Proceso Visible de Publicación y Badges de Historial
   ============================================================ */
.publish-process-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 6px 0;
}

.process-steps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
}

.process-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
}

.step-status-pending {
    opacity: 0.55;
    background: transparent;
}

.step-status-active {
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.25);
    opacity: 1;
}

.step-status-ok {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    opacity: 1;
}

.step-status-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    opacity: 1;
}

.step-icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.step-status-pending .step-icon-wrapper {
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

.step-status-active .step-icon-wrapper {
    background: rgba(249, 115, 22, 0.2);
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
}

.step-status-ok .step-icon-wrapper {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-emerald);
    border: 1px solid var(--accent-emerald);
}

.step-status-error .step-icon-wrapper {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-rose);
    border: 1px solid var(--accent-rose);
}

.step-text-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.step-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.step-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.publish-result-card {
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.publish-result-card.result-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.publish-result-card.result-simulated {
    background: rgba(245, 158, 11, 0.09);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.publish-result-card.result-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal-simulated-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px dashed rgba(245, 158, 11, 0.45);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--accent-amber);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.modal-real-warning {
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--accent-orange);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.platform-ids-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}

.platform-id-badge {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-size: 0.78rem;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

.platform-id-badge.simulated-pill {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.06);
}

.stock-badge-pending {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.stock-badge-simulated {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-manual-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin-left: 6px;
}





