/* One application table language. Layout and business controls remain page-owned. */
body.workspace-ui {
 --table-row-height:44px; --table-heading-height:36px;
 --table-cell-x:14px; --table-cell-y:8px;
 --table-heading-bg:#f7f7f9; --table-hover-bg:#f5f7fa;
}
body.workspace-ui .main-content table.workspace-table {
 width:100%; margin:0; border-collapse:separate; border-spacing:0;
 color:var(--text-primary); font-size:12px; line-height:1.5;
 --bs-table-bg:transparent; --bs-table-striped-bg:transparent;
 --bs-table-hover-bg:var(--table-hover-bg); --bs-table-accent-bg:transparent;
}
body.workspace-ui .main-content table.workspace-table>thead>tr>th {
 height:var(--table-heading-height); padding:8px var(--table-cell-x);
 background:var(--table-heading-bg); color:var(--text-secondary);
 font-size:11px; font-weight:500; line-height:18px; vertical-align:middle;
 border:0; border-bottom:1px solid var(--border); box-shadow:none;
 white-space:nowrap; letter-spacing:0; text-transform:none;
}
body.workspace-ui .main-content table.workspace-table>tbody>tr { height:auto; background:transparent; box-shadow:none; transform:none; }
body.workspace-ui .main-content table.workspace-table>tbody>tr>td,
body.workspace-ui .main-content table.workspace-table>tbody>tr>th {
 height:var(--table-row-height); padding:var(--table-cell-y) var(--table-cell-x);
 vertical-align:middle; line-height:18px; font-size:12px;
 color:var(--text-primary); background:var(--surface);
 border:0; border-bottom:1px solid var(--border-light); box-shadow:none;
}
body.workspace-ui .main-content table.workspace-table>tbody>tr:hover>td { background:var(--table-hover-bg); }
body.workspace-ui .main-content table.workspace-table>tbody>tr:last-child>td { border-bottom:0; }
body.workspace-ui .main-content table.workspace-table>tfoot>tr>* {
 padding:10px var(--table-cell-x); background:var(--table-heading-bg);
 border:0; border-top:1px solid var(--border); font-size:12px; font-weight:600;
}
body.workspace-ui .main-content table.workspace-table :is(.text-end,[data-numeric]) { font-variant-numeric:tabular-nums; }
body.workspace-ui .main-content table.workspace-table .workspace-table-actions { text-align:right!important; white-space:nowrap; }
body.workspace-ui .main-content table.workspace-table .workspace-table-actions>:is(div,form) { justify-content:flex-end; }
body.workspace-ui .main-content table.workspace-table :is([class$="-action-group"],.btn-group) { display:inline-flex; align-items:center; gap:4px; flex-wrap:nowrap; box-shadow:none; }
body.workspace-ui .main-content table.workspace-table :is([class*="-action-btn"],.btn-group>.btn,.workspace-table-actions>.btn) {
 display:inline-flex; align-items:center; justify-content:center; gap:5px;
 min-width:28px; min-height:28px; height:28px; padding:4px 7px;
 border:1px solid transparent; border-radius:6px!important;
 background:transparent; color:var(--text-secondary); box-shadow:none;
 font-size:12px; line-height:18px; margin:0; text-decoration:none; transform:none;
}
body.workspace-ui .main-content table.workspace-table :is([class*="-action-btn"],.btn-group>.btn,.workspace-table-actions>.btn):hover {
 background:var(--surface); color:var(--primary); border-color:var(--border); transform:none;
}
body.workspace-ui .main-content table.workspace-table :is([class*="--danger"],.btn-outline-danger,.btn-danger):hover { color:#b42318; background:#fff1f0; border-color:#f4d5d2; }
body.workspace-ui .main-content table.workspace-table :is(a,button,input,select):focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
body.workspace-ui .main-content table.workspace-table .badge { font-size:10px; font-weight:500; line-height:14px; padding:3px 6px; border-radius:5px; }
body.workspace-ui .main-content table.workspace-table .badge.bg-success { background:#eaf5ee!important; color:#26774b!important; }
body.workspace-ui .main-content table.workspace-table .badge.bg-danger { background:#fff0ef!important; color:#b42318!important; }
body.workspace-ui .main-content table.workspace-table .badge.bg-warning { background:#fff5df!important; color:#946200!important; }
body.workspace-ui .main-content table.workspace-table .badge.bg-secondary { background:#eeeef1!important; color:#72727a!important; }
body.workspace-ui .main-content table.workspace-table>tbody>tr:only-child>td[colspan] { height:auto; padding:24px 16px; text-align:center; color:var(--text-secondary); }
body.workspace-ui .main-content :is(.table-empty,.table-modern__empty,.empty-state--table) { padding:24px 16px; min-height:0; font-size:12px; color:var(--text-secondary); }
body.workspace-ui .main-content :is(.table-empty,.empty-state--table) .empty-state__icon { font-size:28px; margin-bottom:8px; }
body.workspace-ui .main-content .pagination { gap:4px; margin:0; }
body.workspace-ui .main-content .pagination .page-link {
 display:flex; align-items:center; justify-content:center; min-width:30px; height:30px;
 padding:4px 8px; margin:0; border:1px solid var(--border); border-radius:6px;
 background:var(--surface); color:var(--text-secondary); font-size:12px; line-height:20px; box-shadow:none;
}
body.workspace-ui .main-content .pagination .active>.page-link { background:var(--soft); color:var(--text-primary); font-weight:600; border-color:var(--border); }
body.workspace-ui .main-content .pagination .disabled>.page-link { opacity:.45; }
body.workspace-ui .main-content :is(.page-card__footer,.product-footer):has(.pagination) { min-height:48px; padding:10px 14px; border-top:1px solid var(--border); font-size:11px; gap:12px; flex-wrap:wrap; }
/* Color is data, not a separate table theme. */
body.workspace-ui .view-color-list .color-preview,
body.workspace-ui.view-color-list .color-preview { display:inline-block; width:20px; height:20px; flex:none; border-radius:6px; border:1px solid #00000014; background:var(--soft); }
body.workspace-ui.view-color-list .workspace-table code { padding:0; background:transparent; font-size:11px; color:var(--text-secondary); }
/* Editable tables share surfaces and typography, with compact input spacing. */
body.workspace-ui .main-content table.workspace-table.variant-table>tbody>tr>td { padding:5px 8px; }
body.workspace-ui .main-content table.workspace-table.variant-table>thead>tr>th { padding-inline:8px; }
@media(max-width:767px) {
 body.workspace-ui { --table-cell-x:10px; }
 body.workspace-ui .main-content .pagination .page-link { min-width:32px; height:32px; }
}
@media print {
 body.workspace-ui .main-content table.workspace-table { font-size:10pt; }
 body.workspace-ui .main-content table.workspace-table>thead>tr>th,
 body.workspace-ui .main-content table.workspace-table>tbody>tr>td { color:#000; background:#fff; }
 body.workspace-ui .main-content .pagination { display:none; }
}
/* Checkboxes must not increase heading height through Bootstrap's form wrapper. */
body.workspace-ui .main-content table.workspace-table .form-check { display:flex; align-items:center; min-height:18px; margin:0; padding:0; }
body.workspace-ui .main-content table.workspace-table .form-check-input { position:static; float:none; margin:0; flex-shrink:0; }
