/* tables.css – стили модуля Таблицы */
#tables-admin-panel .form-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: stretch;
    padding: 10px 0;
}
#tables-admin-panel .form-column {
    flex: 0 0 auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    background: #f8f9fa;
    min-width: 160px;
    transition: box-shadow 0.2s;
    position: relative;
}
#tables-admin-panel .form-column:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#tables-admin-panel .form-column .field-admin-controls {
    display: none;
    position: absolute;
    top: -10px;
    right: 5px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 2px 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid #ccc;
    z-index: 10;
}
#tables-admin-panel .form-column:hover .field-admin-controls {
    display: flex;
}
.field-control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f0f0f0;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
    color: #6c757d;
    transition: background 0.2s;
    user-select: none;
}
.field-control-btn:hover {
    background: #e0e0e0;
}

#data-table th {
    background: #f0f0f0;
}
#data-table .btn-sm {
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
}
.modal-body .form-group {
    margin-bottom: 0.8rem;
}
.modal-body label {
    font-weight: 500;
}

/* тёмная тема */
body.theme-dark #tables-admin-panel .form-column {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}
body.theme-dark #tables-admin-panel .form-column:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
body.theme-dark #tables-admin-panel .form-column .field-admin-controls {
    background: rgba(40,40,40,0.95);
    border-color: #555;
}
body.theme-dark .field-control-btn {
    background: #444;
    border-color: #666;
    color: #e0e0e0;
}
body.theme-dark .field-control-btn:hover {
    background: #555;
}
body.theme-dark #data-table th {
    background: #333;
    color: #e0e0e0;
    border-color: #444;
}
body.theme-dark #data-table td {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
}
body.theme-dark .modal-content {
    background: #2a2a2a;
    color: #e0e0e0;
}
body.theme-dark .modal-header,
body.theme-dark .modal-footer {
    border-color: #444;
}
body.theme-dark .modal-body .form-control,
body.theme-dark .modal-body .form-select {
    background: #333;
    color: #e0e0e0;
    border-color: #555;
}

/* Инлайн-редактор */
.editable-cell {
    position: relative;
    cursor: pointer;
}
.editable-cell:hover {
    text-decoration: underline dotted #0d6efd;
}
.inline-edit-icon {
    display: none;
    margin-left: 5px;
    font-size: 12px;
    color: #0d6efd;
}
.editable-cell:hover .inline-edit-icon {
    display: inline !important;
}
.inline-editor-input {
    width: 100%;
    padding: 2px 4px;
    border: 1px solid #0d6efd;
    border-radius: 3px;
}