﻿/* Пълна прозрачност за таблицата и всички нейни елементи */
/* Пълна прозрачност и наследяване на цвета на текста */
.table-clear,
.table-clear tr,
.table-clear td,
.table-clear th,
.table-clear p { /* Добавено и за параграфите, тъй като Excel често слага <p> вътре */
    background-color: transparent !important;
    background: transparent !important;
    color: inherit !important;
}



/* Стилизиране на таблицата в редактора */
.ProseMirror table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.ProseMirror td,
.ProseMirror th {
    min-width: 1em;
    border: 1px solid #ced4da; /* Сива рамка */
    padding: 3px 5px;
    vertical-align: top;
    box-sizing: border-box;
    position: relative;
}

.ProseMirror th {
    font-weight: bold;
    text-align: left;
    background-color: #f1f3f5; /* Лек фон за заглавния ред */
}

/* Стилизиране на селекцията при преоразмеряване (resizable: true) */
.ProseMirror .column-resize-handle {
    position: absolute;
    right: -2px;
    top: 0;
    bottom: -2px;
    width: 4px;
    background-color: #adf;
    pointer-events: none;
}

.ProseMirror .selectedCell:after {
    z-index: 2;
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(200, 200, 255, 0.4);
    pointer-events: none;
}
