/* The table editor's tab (docs/adr/0013): a line about the table, then Rheaface's table filling the rest; over it, the
   box of a column's settings; and the tab a new table is made in. Tokens only; the fields are the face designer's
   (.z-input), so that a designer meets one kind of field across Studio. */
.t-tab { position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 0; background: var(--doc); }
.t-tab > .g { flex: 1 1 auto; min-height: 0; }
.t-about { margin: 0; padding: 10px 16px 0; font-size: 12.5px; color: var(--ink-2); }
.t-about:empty { display: none; }
.t-wait { margin: 0; padding: 24px 16px; font-size: 13px; color: var(--ink-2); }

/* a column's settings, and the question before it is removed: a box under the header, as Airtable's */
.t-pop { position: absolute; z-index: 30; width: 340px; max-height: calc(100% - 16px); overflow: auto; background: var(--doc); border: 1px solid var(--rule-2);
  border-radius: 12px; box-shadow: var(--doc-shadow); padding: 14px; }
.t-form, .t-make { display: grid; gap: 12px; }
.t-cap { margin: 0; font: 600 14px/1.3 var(--f-ui); color: var(--ink); }
.t-row { display: grid; gap: 4px; }
.t-row > span:first-child { font-size: 12.5px; color: var(--ink-2); }
.t-small { margin: 0; font-size: 12px; color: var(--ink-2); }
.t-note { margin: 0; font-size: 13px; color: var(--ink); line-height: 1.45; }
.t-refused { margin: 0; font-size: 12.5px; color: var(--due); }
.t-places { width: 80px; }
.t-types { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.t-types button { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; border: 1px solid transparent; border-radius: 7px; background: none;
  color: var(--ink); font-size: 13px; text-align: left; cursor: pointer; }
.t-types button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-types button:hover { background: var(--sunk); }
.t-types button[aria-checked="true"] { background: color-mix(in srgb, var(--accent-fill) 34%, var(--doc)); border-color: color-mix(in srgb, var(--accent) 45%, var(--rule-2)); }
.t-types .g-ico { opacity: .85; }
.t-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); cursor: pointer; }
.t-check + .t-small { margin-top: -8px; }
.t-btns { display: flex; align-items: center; gap: 14px; padding-top: 2px; }
.t-btns .btn { font-size: 13px; }

/* a new table: its own tab, a sheet of a few fields */
.t-new { overflow: auto; display: block; padding: 32px 24px; }
.t-make { max-width: 480px; margin: 0 auto; }
.t-title { margin: 0; font: 600 20px/1.25 var(--f-ui); color: var(--ink); }
.t-make .t-title + .t-small { margin-top: -8px; }
.t-lead { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

/* rows written by hand: the line under the last row, the row being written, a cell edited in its place, and a short
   word under what it is about */
.g-addr { padding: 0 6px; }
.g-addr:hover { --rowbg: var(--doc); }
.t-addrow { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink-2); font-size: 13px; padding: 5px 8px; border-radius: 7px; cursor: pointer; }
.t-addrow svg { width: 14px; height: 14px; }
.t-addrow:hover, .t-addrow:focus-visible { background: var(--sunk); color: var(--ink); }
.g-r.draft { --rowbg: color-mix(in srgb, var(--accent-fill) 14%, var(--doc)); }
.t-cell { position: absolute; z-index: 25; margin: 0; padding: 0 9px; border: 2px solid var(--accent); border-radius: 4px; background: var(--doc); color: var(--ink);
  font: inherit; font-size: 13px; outline: none; }
.t-cell.n { text-align: right; }
.t-cell:disabled { opacity: .6; }
.t-say { position: absolute; z-index: 35; max-width: 360px; padding: 8px 11px; border: 1px solid var(--rule-2); border-radius: 9px; background: var(--doc); box-shadow: var(--doc-shadow);
  color: var(--due); font-size: 12.5px; line-height: 1.4; }
.t-say.ok { color: var(--ink); }   /* a word that something was done, not refused */

/* rows from a file (tableport.js): a wide box with what the file uses, its columns matched over its first rows, and
   the way in; the table lit while a file is held over it */
.t-pop.t-wide { width: min(780px, calc(100% - 16px)); }
.t-file { display: none; }
.t-file-name { font-weight: 400; color: var(--ink-2); margin-left: 6px; }
.t-picks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.t-pick { display: grid; gap: 3px; }
.t-pick > span { font-size: 12px; color: var(--ink-2); }
.t-pick .z-select { width: auto; min-width: 120px; }
.t-prev { overflow: auto; max-height: 300px; border: 1px solid var(--rule); border-radius: 8px; }
.t-prev table { border-collapse: collapse; font-size: 12.5px; min-width: 100%; }
.t-prev th, .t-prev td { padding: 5px 8px; text-align: left; white-space: nowrap; border-right: 1px solid var(--rule); }
.t-prev th { position: sticky; top: 0; background: var(--sheet); vertical-align: top; font-weight: 500; border-bottom: 1px solid var(--rule-2); }
.t-prev td { border-bottom: 1px solid var(--rule); color: var(--ink); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.t-prev td.off { color: var(--ink-3); text-decoration: line-through; }
.t-prev .t-h { display: block; margin-bottom: 4px; color: var(--ink-2); }
.t-prev .z-select { width: auto; min-width: 130px; font-size: 12.5px; padding: 3px 6px; }
.t-prev .t-ty { display: block; margin-top: 3px; }
.t-mode { display: inline-flex; justify-self: start; border: 1px solid var(--rule-2); border-radius: 999px; padding: 2px; gap: 2px; }
.t-mode button { background: none; border: 0; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.t-mode button[aria-pressed="true"] { background: var(--ink); color: var(--sheet); }
.t-tab.t-drop { box-shadow: inset 0 0 0 2px var(--accent); }

/* a row opened whole, as a card: one field to a column, the key first, each with the mark of its type */
.t-card .t-row > span:first-child { display: flex; align-items: center; gap: 6px; }
.t-card .t-row > span:first-child .g-ico { opacity: .85; }
.t-card .t-cstat:empty { display: none; }
