/*
 * COPIA EXACTA DE style.css
 */
.body {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 10px;
    margin: 20px;
    padding: 20px;
    display: flex;
}

.fountain_container {
    padding: 0 15px;
}

.fountain_container,
.alignment,
#table-grid-container table  .table {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
}

.alignment,
#table-grid-container .table {
    padding: 0 15px;
}

.separator {
    border-right: 1px solid #a4a4a4;
    padding-right: 15px;
}

.font_group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.font_group_title {
    text-align: center;
    width: 100%;
    font-size: 15px;
}

.select {
    padding: 8px 5px;
    border-radius: 5px;
    border-width: 1px;
    border-color: #a4a4a4;
}

.select_grow {
    flex-grow: 1;
}

.toolbar_btn {
    font-weight: bold;
    font-size: 15px;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    border-radius: 0.375rem;
    background-color: transparent;
    border: none;
    outline: none;
    transition: background-color 0.2s ease;
}

.toolbar_btn:hover {
    background-color: #e5e7eb;
}

.toolbar_btn:focus {
    background-color: #e5e7eb;
    outline: 1px solid;
}

.italic {
    font-style: italic;
}

.color_picker {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 30px;
    height: 30px;
    gap: 5px;
}

.text_color_picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
}

.color_indicator {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.text_color_picker input {
    border: none;
    padding: 0;
    margin: 0;
    background: none;
    height: 14px;
    width: 30px;
    pointer-events: none;
    margin-top: -5px;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.pt-4 {
    padding-top: 12px;
}

.alignment_group,
.table_group {
    display: flex;
    gap: 5px;
}

.alignment .alignment_group:nth-child(1) {
    height: 35px;
}

.alignment_group div {
    display: flex;
}

.alignment_group div:nth-child(1) {
    align-items: flex-start;
}

.alignment_group div:nth-child(2) {
    align-items: center;
}

.alignment_group div:nth-child(3) {
    align-items: flex-end;
}

.alignment_group button img {
    height: 12px;
}

.alignment_group:nth-child(2) button img {
    height: 15px;
}

.img-h-18 {
    height: 18px;
}

.custom-select-wrapper {
    position: relative;
    display: inline-block;
}

.select-display {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    background-color: transparent;
}

.select-options-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 180px;
}

.select-options-list.open {
    display: block;
}

.select-option {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
    gap: 8px;
}

.select-option:hover {
    background-color: #f0f0f0;
}

#table-grid-container table {
    border-collapse: collapse;
    margin-top: 20px;
}

#table-grid-container th,
#table-grid-container td {
    padding: 8px;
    min-width: 80px;
    text-align: center;
    /* line-height: 1.5; */
}

#table-grid-container td.selected-multi,
#table-grid-container th.selected-multi {
    outline: 2px solid #00aaff;
    background-color: #d9f3ff;
}

.table-controls {
    margin: 15px 0;
}

.select_font_family {
    width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.create_table {
    display: flex;
    gap: 5px;
    flex-direction: column;
    justify-content: space-between;

}

.input_row_col {
    border-radius: 5px;
    border-width: 1px;
    height: 25px;
    border-color: #a4a4a4;
    text-align: center;
    width: 60px;
}

.create_table_group {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
}


/*
  ESTOS ESTILOS DEBEN IR EN assets/style.css
  Fuerza a que las celdas de TU tabla usen el border que les estás aplicando
*/

/* 1. Resetear el border-collapse para evitar problemas de espacio */
.atesan-shortcode-table {
    border-collapse: collapse; 
    width: 100%; /* O el ancho que desees */
}

/* 2. Sobreescribir bordes globales con mayor especificidad */
/* Esto se asegura de que el navegador respete la propiedad 'border' */
.atesan-shortcode-table th,
.atesan-shortcode-table td {
   line-height: 1.5 !important;
    border: inherit; 
    /*padding: 8px; Ajusta el padding si es necesario*/
}

#editor-table th ,
#editor-table td  {
    line-height: 1.4 !important;
}


/* 
---------------------------------------------------------------------
⚡️ FUNCIÓN PARA OBTENER DATOS Y ESTILOS COMO JSON (GUARDADO) ⚡️
---------------------------------------------------------------------
*/

/*
 * CSS ESENCIAL PARA EL REDIMENSIONAMIENTO 
 * Solo aplica los cursores a elementos seleccionados.
 */

#editor-table th,
#editor-table td {
    position: relative; 
}

/* 1. Cursor para Redimensionar COLUMNAS (Ancho) */
#editor-table th.column-selected {
    cursor: col-resize !important;
}

/* 2. Cursor para Redimensionar FILAS (Alto) */
#editor-table td.row-selected,
#editor-table th.row-selected {
    cursor: row-resize !important; 
}

/* 3. Estilos de arrastre en el body para prevenir la selección de texto */
body.resizing-element {
    user-select: none;
    -webkit-user-select: none; /* Compatibilidad Safari/Chrome */
}

/* 4. Estilos visuales del body durante el arrastre (opcional) */
body.resizing-element.col-resize {
    cursor: col-resize !important; 
}
body.resizing-element.row-resize {
    cursor: row-resize !important; 
}


.atesan-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.atesan-table-responsive table {
    width: 100%;
    border-collapse: collapse;
}
