/* Product Management DataGrid Styles */

/* Variables */
:root {
    --primary-color: #d4af37;
    --primary-dark: #b8941f;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --border-color: #bdc3c7;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Container */
.product-management-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Header */
.management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 45px;
    width: auto;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.stats-summary {
    display: flex;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 10px 15px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    min-width: 80px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Controls Bar */
.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-section {
    display: flex;
    gap: 15px;
    flex: 1;
    min-width: 300px;
}

.search-box {
    position: relative;
    flex: 1;
    /* SP-ADIC M5: recortado de 400px a 320px para dejar espacio al botón "Adiciones"
       agregado en .action-section. Si la pantalla es chica igual hay flex-wrap. */
    max-width: 320px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--border-color);
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--border-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
}

.clear-btn:hover {
    background: var(--light-color);
    color: var(--danger-color);
}

.filter-section {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    font-size: 0.9rem;
    min-width: 150px;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.action-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #34495e;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

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

/* Data Grid Container */
.data-grid-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    background: #f8f9fa;
}

.grid-info {
    font-weight: 600;
    color: var(--secondary-color);
}

.grid-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.view-options {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.view-btn {
    padding: 8px 12px;
    background: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
}

.refresh-btn {
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.refresh-btn:hover {
    background: var(--light-color);
}

/* Table View */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.data-table th {
    background: #f8f9fa;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.data-table th.sortable:hover {
    background: #e9ecef;
}

.data-table th.sortable span {
    margin-right: 8px;
}

.data-table th.sortable i {
    opacity: 0.5;
    transition: var(--transition);
}

.data-table th.sortable:hover i {
    opacity: 1;
}

.data-table th.sortable.sorted i {
    opacity: 1;
    color: var(--primary-color);
}

.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-badge i {
    font-size: 0.7rem;
}

/* Actions Column */
.actions-column {
    width: 120px;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.action-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
}

.action-btn.edit {
    background: var(--info-color);
    color: white;
}

.action-btn.edit:hover {
    background: #2980b9;
}

.action-btn.delete {
    background: var(--danger-color);
    color: white;
}

.action-btn.delete:hover {
    background: #c0392b;
}

/* Card View */
.card-view {
    padding: 20px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

.card-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.card-category {
    background: var(--light-color);
    color: var(--secondary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 10px 0;
    line-height: 1.4;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.card-actions {
    display: flex;
    gap: 5px;
}

/* States */
.state-container {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.state-container i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.hidden {
    display: none !important;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: white;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    color: var(--secondary-color);
    font-weight: 500;
}

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

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--light-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
    margin: 0 10px;
}

.page-number {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.page-number:hover {
    background: var(--light-color);
}

.page-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.size-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: white;
}

/* Modals — scope SOLO a los modales del módulo de productos.
 * IMPORTANTE: estos selectores estaban antes como `.modal` y `.modal.show`
 * sin scope. Cuando product-management.html se embebió en index.html
 * (commit 16e6d73), esa regla `display: none` empezó a ganar la cascada
 * sobre el .modal legacy (la tarjeta blanca dentro de #modalOverlay /
 * #paymentModal), porque product-management.css carga DESPUÉS de style.css.
 * Resultado: el modal legacy quedaba display:none permanente y solo se
 * veía el overlay opaco. Fix: scopear por ID a los modales de productos.
 */
#productModal,
#categoryModal,
#deleteModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

#productModal.show,
#categoryModal.show,
#deleteModal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--secondary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--border-color);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-form {
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.price-input-group {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-weight: 600;
}

.price-input-group .form-input {
    padding-left: 35px;
}

.status-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-input {
    display: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.toggle-switch {
    width: 50px;
    height: 25px;
    background: var(--border-color);
    border-radius: 25px;
    position: relative;
    transition: var(--transition);
}

.toggle-switch::before {
    content: '';
    position: absolute;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: var(--transition);
}

.toggle-input:checked + .toggle-label .toggle-switch {
    background: var(--success-color);
}

.toggle-input:checked + .toggle-label .toggle-switch::before {
    transform: translateX(25px);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Delete Modal */
.delete-modal .modal-body {
    text-align: center;
    padding: 30px;
}

.warning-icon {
    font-size: 3rem;
    color: var(--warning-color);
    margin-bottom: 20px;
}

.product-info {
    background: var(--light-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.warning-text {
    color: var(--danger-color);
    font-weight: 600;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

.toast {
    background: white;
    border-left: 4px solid var(--success-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    animation: slideInRight 0.3s ease;
    min-width: 300px;
}

.toast.error {
    border-left-color: var(--danger-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .management-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .stats-summary {
        justify-content: center;
    }
    
    .controls-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-section {
        flex-direction: column;
    }
    
    .action-section {
        justify-content: center;
    }
    
    .grid-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .pagination-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .product-management-container {
        padding: 10px;
    }
    
    .management-header,
    .controls-bar,
    .grid-header {
        padding: 15px 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .modal-form {
        padding: 20px;
    }
}

/* ── EMOJI PICKER (modal de producto) ─────────────────────────────── */
.form-label-hint {
    font-weight: 400;
    font-size: 0.85em;
    color: #888;
    margin-left: 6px;
}
.emoji-picker {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
}
.emoji-picker__current {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
    margin-bottom: 12px;
}
.emoji-picker__display {
    font-size: 2rem;
    line-height: 1;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0e0e0e;
    border: 1px solid #333;
    border-radius: 12px;
}
.emoji-picker__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 4px;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
}
.emoji-picker__item {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 1.4rem;
    width: 100%;
    aspect-ratio: 1;
    cursor: pointer;
    line-height: 1;
    transition: background 0.1s ease, border-color 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.emoji-picker__item:hover {
    background: #2a2a2a;
    border-color: #444;
}
.emoji-picker__item.is-selected {
    background: rgba(178, 34, 34, 0.18);
    border-color: #B22222;
}
.emoji-picker__category {
    grid-column: 1 / -1;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.05em;
    padding: 6px 4px 2px;
}
.btn.btn-sm {
    padding: 4px 10px;
    font-size: 0.82rem;
}

/* ============================================================================
   SP-ADIC M5: iOS-style toggle switch (reutilizable)
   ============================================================================
   IMPORTANTE: usamos clase `.ios-toggle` (no `.toggle-switch` — esa ya existe
   en este mismo archivo para el modal-form de productos y colisionaría).
   ----------------------------------------------------------------------------*/
.ios-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 26px;
    background: #d1d5db;             /* gris neutro = OFF */
    border-radius: 13px;
    cursor: pointer;
    transition: background 200ms ease-out;
    flex-shrink: 0;
    vertical-align: middle;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.ios-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 200ms ease-out;
}

.ios-toggle--active {
    background: #34c759;             /* iOS green = ON */
}

.ios-toggle--active::after {
    transform: translateX(18px);
}

.ios-toggle:hover {
    opacity: 0.92;
}

.ios-toggle:focus-visible {
    outline: 2px solid #34c759;
    outline-offset: 2px;
}

/* ============================================================================
   SP-ADIC M5: Modal "Gestión de Adiciones" + sub-modal editor
   ============================================================================
   Reusa la estructura .modal-overlay global de style.css. Aquí solo agregamos
   estilos de contenido (mini-tabla de adiciones, rows, badges).
   ----------------------------------------------------------------------------*/

.adiciones-modal {
    max-width: 640px;
}

.adicion-editor-modal {
    max-width: 480px;
}

.adiciones-modal__intro {
    color: var(--text-secondary, #6b7280);
    font-size: 0.875rem;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.adiciones-modal__new-btn {
    margin-top: 16px;
    width: 100%;
    justify-content: center;
}

.adiciones-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.adiciones-loading {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary, #6b7280);
    font-size: 0.875rem;
}

.adicion-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    transition: background 150ms ease-out, border-color 150ms ease-out;
}

.adicion-row:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.adicion-row__main {
    flex: 1;
    min-width: 0;
}

.adicion-row__name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    word-break: break-word;
}

.adicion-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.adicion-row__desc {
    margin-top: 4px;
    font-size: 0.8125rem;
    color: var(--text-secondary, #6b7280);
}

.adicion-row__price {
    color: #57A773;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
}

.adicion-row__actions {
    flex-shrink: 0;
}

/* SP-ADIC M5.10: visual de adición inactiva (opacity reducida).
   Mini-tabla muestra todas (incluyendo desactivadas) para que el admin
   pueda ver el estado completo y reactivar via el toggle iOS. */
.adicion-row--inactive {
    opacity: 0.55;
}

.adicion-row--inactive:hover {
    opacity: 0.85;  /* hint visual al hover de que sigue interactiva */
}

/* Badges (Portal / Solo mesero / Inactiva) */
.adicion-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.adicion-badge i {
    font-size: 0.7rem;
}

.adicion-badge--portal {
    background: #dbeafe;
    color: #1e40af;
}

.adicion-badge--internal {
    background: #fef3c7;
    color: #92400e;
}

.adicion-badge--inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* SP-ADIC M5.5: badge del ingrediente asignado (FK a tabla ingredients).
   Color púrpura para diferenciarlo de Portal (azul) y Solo-mesero (ámbar). */
.adicion-badge--ingredient {
    background: #ede9fe;
    color: #6b21a8;
}

/* Toggle row del editor (label + toggle alineados) */
.adicion-editor__toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.adicion-editor__toggle-label {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary, #1A1A1A);
    cursor: pointer;
    margin-bottom: 0 !important;     /* override .form-group label margin-bottom */
}

/* Required marker inside form labels (sub-modal editor) */
.adicion-editor-modal .required {
    color: var(--danger-color, #dc3545);
    font-weight: 700;
}

/* Empty state inline (reutilizable dentro del modal de adiciones).
   No reemplaza .empty-state global de style.css — solo extiende para versión inline. */
.empty-state--inline {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-secondary, #6b7280);
}

.empty-state--inline .empty-state__icon {
    font-size: 2rem;
    color: #d1d5db;
    margin-bottom: 8px;
}

.empty-state--inline .empty-state__msg {
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.empty-state--inline .empty-state__hint {
    font-size: 0.875rem;
}

.empty-state--error {
    color: #991b1b;
}

.empty-state--error .empty-state__msg {
    color: #991b1b;
}

/* Forzar .modal-actions a centrarse en sub-modal pequeño */
.adicion-editor-modal .modal-actions {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
}
