/* Table tokens are aliases in andy-foundations.css. */
/* Existing modern tables share the same typography, spacing and borders during migration.
   The !important defeats the old theme's global 14px !important th rule. */
body.andy-ui table.andy-grid th,body.andy-ui table.andy-table th,body.andy-ui .andy-data-table__table th {
 font-size:var(--table-heading)!important; line-height:1.4; font-weight:700;
 color:var(--table-ink); background:var(--table-head); text-align:left;
 padding:var(--table-cell-y) var(--table-cell-x); border-bottom:1px solid var(--table-line);
 white-space:normal; overflow-wrap:normal; word-break:normal; vertical-align:middle;
}
body.andy-ui table.andy-grid td,body.andy-ui table.andy-table td,body.andy-ui .andy-data-table__table td {
 font-size:var(--table-font); line-height:1.45; padding:var(--table-cell-y) var(--table-cell-x);
 color:var(--table-ink); border-bottom:1px solid var(--table-line); vertical-align:middle; overflow-wrap:anywhere;
}
body.andy-ui table.andy-grid .andy-grid__num,body.andy-ui .andy-data-table__table .is-numeric { text-align:right; font-variant-numeric:tabular-nums; }
.andy-data-table { min-width:0; color:var(--table-ink); }
.andy-data-table__scroll { overflow-x:auto; margin:0 14px; border:1px solid var(--table-line); border-radius:var(--as-radius); }
.andy-data-table__scroll:focus-visible { outline:2px solid var(--as-blue); outline-offset:2px; }
.andy-data-table__table { width:100%; min-width:var(--table-min-width); border-collapse:separate; border-spacing:0; table-layout:fixed; background:#fff; }
.andy-data-table__table tr:last-child td { border-bottom:0; }
body.andy-ui .andy-data-table__table tr.is-selected td { background:var(--table-hover); }
body.andy-ui .andy-data-table__table tr:hover td { background:var(--table-hover); }
body.andy-ui .andy-data-table__table tr.is-checked td { background:var(--table-selected); }
col.andy-data-table__pick { width:42px; } col.andy-data-table__actions { width:80px; }
body.andy-ui .andy-data-table__table .andy-data-table__pick { text-align:center; padding-left:10px; padding-right:10px; position:sticky; left:0; z-index:1; background:#fff; }
body.andy-ui .andy-data-table__table .andy-data-table__actions { text-align:center; white-space:nowrap; position:sticky; right:0; z-index:1; background:#fff; }
body.andy-ui .andy-data-table__table th.andy-data-table__pick,body.andy-ui .andy-data-table__table th.andy-data-table__actions { background:var(--table-head); z-index:2; }
.andy-data-table input[type=checkbox] { appearance:auto; width:16px; height:16px; min-height:0; margin:0; padding:0; accent-color:var(--as-blue); vertical-align:middle; cursor:pointer; }
.andy-data-table__primary { display:block; min-width:0; text-decoration:none; color:var(--as-blue); }
.andy-data-table__primary strong { font-size:var(--table-font); font-weight:600; line-height:1.4; }
.andy-data-table__primary small { display:block; margin-top:3px; font-size:11px; color:var(--table-muted); }
.andy-data-table__muted { color:var(--table-muted); }
.andy-data-table__person { display:flex; align-items:center; gap:9px; }
.andy-data-table__avatar { display:grid; place-items:center; flex:0 0 30px; height:30px; border-radius:50%; background:var(--as-blue); color:#fff; font-size:11px; font-weight:700; }
.andy-data-table__avatar.is-violet { background:#8334d6; }
.andy-data-table__more { display:inline-grid; place-items:center; width:var(--as-control-height); height:var(--as-control-height); min-height:var(--as-control-height); border:0; border-radius:4px; padding:0; background:transparent; color:var(--as-blue); cursor:pointer; font-size:14px; letter-spacing:1px; }
.andy-data-table__more:hover,.andy-data-table__more[aria-expanded=true] { background:#dfeeff; }
.andy-data-table__more:focus-visible,.andy-data-table__menu a:focus-visible,.andy-data-table__menu button:focus-visible { outline:2px solid var(--as-blue); outline-offset:1px; }
.andy-data-table__menu { position:fixed; z-index:var(--as-z-menu); width:190px; max-height:calc(100vh - 16px); overflow-y:auto; box-sizing:border-box; padding:5px; border:1px solid var(--table-line); border-radius:var(--as-radius); background:#fff; box-shadow:0 6px 20px #00183824; }
.andy-data-table__menu a,.andy-data-table__menu button { display:block; width:100%; box-sizing:border-box; padding:9px 10px; border:0; border-radius:3px; background:transparent; text-align:left; text-decoration:none; color:var(--as-ink); font-size:13px; line-height:1.4; cursor:pointer; }
.andy-data-table__menu form { margin:0; }
.andy-data-table__menu a:hover,.andy-data-table__menu button:hover { background:var(--table-hover); }
.andy-data-table__menu .is-danger { color:var(--as-danger); }
.andy-data-table__bulk { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 14px 10px; padding:10px; border:1px solid var(--table-line); border-radius:var(--as-radius); background:var(--table-selected); font-size:12px; }
.andy-data-table__count { margin-right:auto; }
.andy-data-table__bulk label { margin:0; }
body.andy-ui .andy-data-table__bulk select { width:auto; max-width:210px; min-height:var(--as-control-height); height:var(--as-control-height); margin:0; padding:0 9px; border:1px solid var(--table-line); border-radius:4px; background:#fff; color:var(--as-ink); font-size:12px; }
.andy-data-table__apply { min-height:var(--as-control-height); padding:7px 14px; border:1px solid var(--as-blue); border-radius:4px; background:var(--as-blue); color:#fff; font-size:12px; cursor:pointer; }
.andy-data-table__clear { min-height:var(--as-control-height); padding:7px; border:0; background:transparent; color:var(--as-ink); font-size:12px; cursor:pointer; }
.andy-data-table__bulk[hidden],.andy-data-table__menu[hidden],.andy-data-table [data-for-operation][hidden] { display:none; }
.andy-data-table__footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding:16px 14px; color:var(--table-muted); font-size:12px; }
.andy-data-table__pager { display:flex; gap:5px; }
.andy-data-table__pager a { display:grid; place-items:center; width:34px; min-height:var(--as-control-height); border:1px solid var(--table-line); border-radius:4px; color:var(--as-blue); text-decoration:none; }
.andy-data-table__pager a[aria-current] { border-color:var(--as-blue); background:var(--table-selected); }
.andy-data-table__empty { text-align:center; padding:32px!important; }
.andy-data-table__empty strong,.andy-data-table__empty span { display:block; }
.andy-data-table__empty span { margin-top:6px; color:var(--table-muted); font-size:12px; }
@media(max-width:640px) {
 .andy-data-table__more { width:44px; height:44px; }
 .andy-data-table__count { flex-basis:100%; }
 body.andy-ui .andy-data-table__bulk select,.andy-data-table__apply,.andy-data-table__clear { min-height:44px; height:44px; }
 .andy-data-table__pager a { width:40px; min-height:40px; }
}
