.table-overview,
.table-map-panel,
.table-cell-panel,
.table-structure,
.table-create { border: 1px solid #dfe5ed; border-radius: 7px; background: #fff; }
.table-overview { overflow: hidden; background: #f7f9fc; }
.table-overview__heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #efd3e2; background: #fff8fc; }
.table-overview__heading span, .table-overview__heading strong { display: block; }
.table-overview__heading span { color: #a70f62; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.table-overview__heading strong { margin-top: 2px; color: #202635; font-size: 14px; }
.table-overview__heading small { color: #748197; font-size: 8px; text-align: right; }
.table-relationship { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr); align-items: center; gap: 4px; padding: 11px 12px; background: #edf3f9; }
.table-relationship > span { display: grid; min-width: 0; gap: 2px; padding: 6px; border: 1px solid #d1dce8; border-radius: 6px; background: #fff; text-align: center; }
.table-relationship b { overflow: hidden; color: #213047; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.table-relationship small { color: #7b8798; font-size: 7px; }
.table-relationship > i { position: relative; height: 2px; background: #7192b5; }
.table-relationship > i::after { content: ""; position: absolute; right: 0; top: -3px; width: 8px; height: 8px; border-top: 2px solid #7192b5; border-right: 2px solid #7192b5; transform: rotate(45deg); }
.table-property-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.table-property-grid > div { min-width: 0; padding: 7px 9px; border-top: 1px solid #e4e9f0; }
.table-property-grid > div:nth-child(odd) { border-right: 1px solid #e4e9f0; }
.table-property-grid span, .table-property-grid strong { display: block; }
.table-property-grid span { color: #7c8798; font-size: 8px; }
.table-property-grid strong { margin-top: 2px; overflow: hidden; color: #202635; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.table-map-panel, .table-cell-panel, .table-structure, .table-create { padding: 11px 12px; }
.table-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.table-section-heading h3, .table-section-heading p { margin: 0; }
.table-section-heading h3 { color: #202635; font-size: 13px; font-weight: 700; }
.table-section-heading p { margin-top: 2px; color: #7c8798; font-size: 8px; line-height: 1.45; }
.table-section-heading > span, .table-section-heading div > span { color: #a70f62; font-size: 8px; font-weight: 700; }
.table-map { display: grid; gap: 3px; min-height: 48px; padding: 8px; border-radius: 6px; background: #edf2f7; }
.table-map > p { align-self: center; margin: 0; color: #7c8798; font-size: 9px; text-align: center; }
.table-map button { display: grid; min-width: 0; height: 25px; place-items: center; padding: 0; border: 1px solid #cbd7e5; border-radius: 3px; color: #55718e; background: #fff; font-size: 7px; }
.table-map button:hover, .table-map button.is-active { border-color: #ec168c; color: #a70f62; background: #fff0f7; box-shadow: inset 0 0 0 1px #ec168c; }
.table-map button.is-selected { border-color: #ec168c; color: #a70f62; background: #fff0f7; box-shadow: inset 0 0 0 1px rgba(236, 22, 140, .35); }
.table-map button.is-active.is-selected { color: #fff; background: #ec168c; }
.table-map button.is-header { background: #dfeaf5; font-weight: 700; }

.table-cell-panel { overflow: hidden; transition: opacity .16s ease; }
.table-cell-panel.is-empty { opacity: .58; }
.cell-preview { display: flex; align-items: center; min-height: 48px; padding: 8px 10px; border: 1px solid #dfe5ed; border-radius: 6px; background: var(--cell-preview-color, #fff); }
.cell-preview span { overflow: hidden; color: #202635; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.cell-preview.is-dark span { color: #fff; }
.table-property-grid--cell { margin-top: 8px; overflow: hidden; border: 1px solid #e4e9f0; border-radius: 6px; }
.table-property-grid--cell > div { border-top: 0; }
.table-property-grid--cell > div:nth-child(n + 3) { border-top: 1px solid #e4e9f0; }
.cell-format-controls { display: grid; gap: 8px; margin-top: 11px; padding-top: 11px; border-top: 1px solid #e4e9f0; }
.cell-format-controls .demo-field-label { font-size: 8px; }
.cell-format-controls .demo-text-input { width: 100%; margin-top: 4px; }
.cell-color-control { display: flex; gap: 7px; }
.cell-color-control button { width: 25px; height: 25px; border: 2px solid #fff; border-radius: 50%; background: var(--cell-color); box-shadow: 0 0 0 1px #cbd5e1; }
.cell-color-control button:hover, .cell-color-control button.is-active { box-shadow: 0 0 0 2px #ec168c; }
.cell-color-control button[data-cell-color="#ffffff"] { --cell-color: #fff; }
.cell-color-control button[data-cell-color="#fff0f7"] { --cell-color: #fff0f7; }
.cell-color-control button[data-cell-color="#eaf3fb"] { --cell-color: #eaf3fb; }
.cell-color-control button[data-cell-color="#edf8f2"] { --cell-color: #edf8f2; }
.cell-color-control button[data-cell-color="#1b273a"] { --cell-color: #1b273a; }
.cell-alignment-control { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid #d6dee8; border-radius: 999px; }
.cell-alignment-control button { min-width: 0; min-height: 29px; padding: 5px 3px; border: 0; border-right: 1px solid #d6dee8; color: #52647b; background: #fff; font: inherit; font-size: 8px; font-weight: 650; }
.cell-alignment-control button:last-child { border-right: 0; }
.cell-alignment-control button:hover:not(:disabled), .cell-alignment-control button.is-active { color: #fff; background: #c40f70; }
.cell-color-control button:disabled, .cell-alignment-control button:disabled { opacity: .45; cursor: not-allowed; }

.table-operation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.table-operation-grid button { min-width: 0; min-height: 48px; padding: 7px 8px; border: 1px solid #dce3ec; border-radius: 6px; color: #202635; background: #f9fbfd; text-align: left; }
.table-operation-grid button:hover:not(:disabled) { border-color: #ec168c; background: #fff3f9; }
.table-operation-grid strong, .table-operation-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-operation-grid strong { font-size: 9px; }
.table-operation-grid small { margin-top: 2px; color: #7c8798; font-size: 7px; }
.table-operation-grid button:disabled { opacity: .45; cursor: not-allowed; }
.table-remove-action { margin-top: 9px; padding: 0; border: 0; color: #a70f62; background: transparent; font: inherit; font-size: 8px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.table-remove-action:disabled { color: #aab2be; }

.table-create { border-color: #ef9dc7; background: #fff8fc; }
.table-size-picker { display: grid; grid-template-columns: 1fr 18px 1fr; align-items: end; gap: 7px; }
.table-size-picker > span { padding-bottom: 8px; color: #a70f62; font-size: 12px; text-align: center; }
.table-size-picker .demo-field-label { font-size: 8px; }
.table-size-picker .demo-text-input { width: 100%; margin-top: 4px; }
.table-size-preview { display: grid; gap: 2px; width: 100%; min-height: 45px; margin: 9px 0; padding: 6px; border-radius: 5px; background: #edf2f7; }
.table-size-preview i { border: 1px solid #c5d3e2; border-radius: 2px; background: #fff; }

@media (max-width: 575.98px) {
    .table-property-grid, .table-operation-grid { grid-template-columns: 1fr; }
    .table-property-grid > div:nth-child(odd) { border-right: 0; }
}
