#table-container {
    width: 100%;
    margin-top: 5px;
}

td.custom-cell {
    color: gray;
    background-color: #d3dce3;
}

td.custom-cell2 {
    color: #000;
    background-color: #e1e1e1;
}

.wrap-content {
        word-wrap: break-word; /* Permite romper palabras largas */
        white-space: normal;   /* Ajusta el texto al ancho del contenedor */
        overflow-wrap: break-word; /* Asegura que el contenido se ajuste */
    }

.filled {
    border: 2px solid green; /* Verde cuando está lleno */
    background-color: #1acc8e1a;
}

.empty {
    border: 2px solid red; /* Rojo cuando está vacío */
    background-color: rgba(255, 0, 0, 0.111);
}

@keyframes shake {
        0% { transform: translateX(0); }
        25% { transform: translateX(-5px); }
        50% { transform: translateX(5px); }
        75% { transform: translateX(-5px); }
        100% { transform: translateX(0); }
    }

.shake {
    animation: shake 0.5s ease-in-out;
}

@media (min-width: 1200px) {
    .align-items-xl-center {
        align-items:start !important;
    }
}

#scriptType {
    background-image: none !important;
    -webkit-appearance: menulist !important;
}

#tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 4px 6px;
    background: #f9fafb;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 🔹 Botones de hojas (azul) */
.sheet-tab {
    background: #e9f1ff;
    color: #0d6efd;
    border: none;
    padding: 6px 13px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.sheet-tab:hover {
    background: #d6e4ff;
}

.sheet-tab.active {
    background: #0d6efd;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sheet-tab:disabled {
    opacity: 0.7;
    cursor: default;
    pointer-events: none;
}

/* 🔹 Contenedor de las tablas */
.subTabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
    padding: 4px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* 🔹 Botones de tablas (gris) */
.tab-btn {
    background: #e9ecef;
    color: #333;
    border: none;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.tab-btn:hover {
    background: #dee2e6;
}

.tab-btn.active {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.tab-btn:disabled {
    opacity: 0.7;
    cursor: default;
    pointer-events: none;
}

/* === MODALES PRINCIPALES === */
.modal, .custom-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    font-family: "Segoe UI", sans-serif;
}

.modal-content, .custom-modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 20px 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    min-width: 320px;
    max-width: 420px;
    text-align: center;
    animation: fadeIn 0.2s ease-in-out;
}

.modal-content h3, .custom-modal-content h3 {
    margin-top: 0;
    color: #333;
    font-weight: 600;
}

.modal-content p, .custom-modal-content p {
    color: #555;
    font-size: 14px;
    margin-bottom: 12px;
}

/* === BOTONES COMUNES === */
button {
    background: #0078d4;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 13px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
button:hover { background: #005fa3; }
.close-btn { background: #777; }
.close-btn:hover { background: #555; }

/* === FIND & REPLACE PANEL === */
.tool-panel {
    position: fixed;
    top: 15px; right: 15px;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    width: 250px;
    z-index: 10050;
    animation: fadeIn 0.2s ease-in-out;
    font-family: "Segoe UI", sans-serif;
}

.tool-header {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}

.tool-range {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.tool-input {
    width: 100%;
    padding: 6px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 13px;
}

.tool-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
}

.tool-status {
    margin-top: 8px;
    font-size: 12px;
    color: #555;
}

/* Animación suave */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.format-select-container {
    margin-top: 10px;
}
.format-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 10px;
}

.btn-xs {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.2;
    border-radius: 0.2rem;
}