.rb-table-insert-controls[hidden], .rb-table-actions[hidden] { display:none; }
#editor .resizable-table { margin-top:0; margin-left:0; max-width:100%; }
#editor table[contenteditable="true"]:focus { outline:none; }
.rb-table-insert-controls { position:absolute; inset:0; pointer-events:none; z-index:90; }
.rb-table-insert-controls > button { position:absolute; display:grid; place-items:center; transform:translate(-50%,-50%); width:20px; height:20px; padding:0; border:0; border-radius:4px; background:#edf1f6; color:#65758b; cursor:pointer; pointer-events:auto; touch-action:manipulation; user-select:none; -webkit-user-select:none; transition:background .12s,color .12s; }
.rb-table-insert-controls > button svg { width:12px; height:12px; pointer-events:none; }
.rb-table-insert-controls > button:hover { background:#dfe9f6; color:#245a91; }
.rb-table-insert-controls button:focus-visible { outline:2px solid #3878bd; outline-offset:2px; }
.rb-table-insert-controls > .rb-table-move { width:12px; height:12px; border:1px solid #000; border-radius:0; background:#fff; cursor:grab; touch-action:none; }
.rb-table-insert-controls > .rb-table-move::before { content:''; position:absolute; inset:-7px; }
.rb-table-insert-controls > .rb-table-menu-toggle[aria-expanded="true"] { background:#dfe9f6; color:#245a91; }
.rb-table-actions { position:absolute; width:160px; padding:5px; box-sizing:border-box; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; pointer-events:auto; z-index:1; }
.rb-table-actions button { display:block; width:100%; padding:8px 10px; border:0; border-radius:4px; background:none; color:#344357; text-align:left; font:12px/1.4 sans-serif; cursor:pointer; touch-action:manipulation; }
.rb-table-actions button:hover { background:#f0f4f9; }
.rb-table-actions .rb-table-action-remove { color:#a64747; }
.rb-table-border-color { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; color:#344357; font:12px/1.4 sans-serif; }
.rb-table-actions .rb-table-border-color button { flex:0 0 24px; width:24px; height:24px; padding:0; border:1px solid #ddd; border-radius:50%; background:#ddd; }
.rb-table-border-color input { position:absolute; width:0; height:0; padding:0; border:0; opacity:0; pointer-events:none; }
.rb-table-action-separator { height:1px; margin:5px 0; background:#edf0f4; }
@media (pointer:coarse), (max-width:640px) {
    .rb-table-insert-controls > button { width:28px; height:28px; border-radius:5px; }
    .rb-table-insert-controls > button svg { width:14px; height:14px; }
    .rb-table-insert-controls > .rb-table-move { width:12px; height:12px; border-radius:0; }
    .rb-table-actions button { padding:10px; font-size:13px; }
    .rb-table-border-color { font-size:13px; }
}
@media print { .rb-table-insert-controls { display:none !important; } }
