.table-size-dialog { width: min(37rem, calc(100% - 2rem)); }
.table-size-dialog fieldset { border: 1px solid var(--line); border-radius: 6px; margin: .65rem 0; padding: .45rem .65rem .6rem; min-width: 0; }
.table-size-dialog legend { font-weight: 650; font-size: .83rem; padding: 0 .26rem; }
.table-size-dialog [data-table-size-summary] { font-size: .82rem; color: var(--muted); margin: .25rem 0 .75rem; }
.table-size-dialog .table-dialog-fields { gap: .45rem .75rem; }
.table-size-dialog .table-dialog-fields label { min-width: 0; }
.table-size-dialog .table-dialog-fields select { width: 100%; }
.table-size-dialog .table-dialog-status { font-size: .82rem; }

:is(td, th) > [data-brasa-cell-exact] {
  display: flow-root;
  overflow: hidden auto;
  overscroll-behavior: contain;
}

:is(td, th) > [data-brasa-cell-exact] > :first-child { margin-block-start: 0; }
:is(td, th) > [data-brasa-cell-exact] > :last-child { margin-block-end: 0; }

@media screen {
  .canvas[data-brasa-table-resize="column"], .canvas[data-brasa-table-resize="column"] * { cursor: col-resize !important; }
  .canvas[data-brasa-table-resize="row"], .canvas[data-brasa-table-resize="row"] * { cursor: row-resize !important; }

  .brasa-table-resize-guide, .brasa-table-resize-measure {
    position: fixed;
    z-index: 28;
    pointer-events: none;
  }
  .brasa-table-resize-guide[data-axis="column"] { border-left: 1px dashed #2c63b6; }
  .brasa-table-resize-guide[data-axis="row"] { border-top: 1px dashed #2c63b6; }
  .brasa-table-resize-measure {
    padding: .22rem .42rem;
    border-radius: 4px;
    background: #243246;
    color: #fff;
    font: 600 .73rem/1.25 system-ui, sans-serif;
    white-space: nowrap;
  }
}

@media print {
  .brasa-table-resize-guide, .brasa-table-resize-measure { display: none !important; }
  :is(td, th) > [data-brasa-cell-exact] { overflow: hidden; }
}
