/* Compact record tables. Daily performance sheets keep their existing input spacing. */
/* All labels, values and editable numbers share the column's left edge. */
body.balanced-blue.minimal-calm table :is(th,td),
body.balanced-blue.minimal-calm table :is(th,td):last-child,
body.balanced-blue.minimal-calm .sx-log-table :is(th,td):nth-child(n){text-align:left}
body.balanced-blue.minimal-calm table :is(input,.sx-cell-input){text-align:left}
body.balanced-blue.minimal-calm table .sx-rate{justify-content:flex-start}
body.minimal-calm{
  --record-line:color-mix(in srgb,var(--line) 78%,var(--surface));
  --record-header:color-mix(in srgb,var(--soft) 68%,var(--surface));
  --record-hover:color-mix(in srgb,var(--brand-wash) 35%,var(--surface));
}

body.minimal-calm :is(.page-leads,.page-payments,.page-closer,.page-setter) .sx-table-wrap:not(.sx-log-table),
body.minimal-calm :is(.page-students,.page-developer,.page-editors) .table-container{
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
}

/* Search, filters and records read as one table surface. */
body.minimal-calm :is(.page-leads,.page-payments) .sx-toolbar:has(+ .sx-table-wrap){
  padding:12px;
  margin-bottom:0;
  border:1px solid var(--line);
  border-bottom:0;
  border-radius:10px 10px 0 0;
  background:var(--surface);
}
body.minimal-calm :is(.page-leads,.page-payments) .sx-toolbar + .sx-table-wrap{
  border-radius:0 0 10px 10px;
}
body.minimal-calm .page-students .page-toolbar:has(> #ful-student-search):has(+ .table-container){
  padding:12px;
  margin-bottom:0;
  border:1px solid var(--line);
  border-bottom:0;
  border-radius:10px 10px 0 0;
  background:var(--surface);
}
body.minimal-calm .page-students .page-toolbar:has(> #ful-student-search) + .table-container{
  border-radius:0 0 10px 10px;
}

body.minimal-calm :is(.page-leads,.page-payments,.page-closer,.page-setter) .sx-table-wrap:not(.sx-log-table) th,
body.minimal-calm :is(.page-students,.page-developer,.page-editors,.page-scripts,.page-production) .data-table th{
  height:34px;
  padding:8px 14px;
  background:var(--record-header);
  border-bottom:1px solid var(--line);
  color:var(--secondary);
  font-size:10.5px;
  line-height:1.5;
  font-weight:500;
  letter-spacing:.01em;
}
body.minimal-calm :is(.page-leads,.page-payments,.page-closer,.page-setter) .sx-table-wrap:not(.sx-log-table) td,
body.minimal-calm :is(.page-students,.page-developer,.page-editors,.page-scripts,.page-production) .data-table td{
  height:42px;
  padding:8px 14px;
  border-bottom:1px solid var(--record-line);
  background:var(--surface);
  color:var(--ink);
  font-size:12px;
  line-height:1.5;
  font-variant-numeric:tabular-nums;
  vertical-align:middle;
}
body.minimal-calm :is(.page-leads,.page-payments,.page-closer,.page-setter) .sx-table-wrap:not(.sx-log-table) tbody tr:last-child td,
body.minimal-calm :is(.page-students,.page-developer,.page-editors,.page-scripts,.page-production) .data-table tbody tr:last-child td{
  border-bottom:0;
}
body.minimal-calm :is(.page-leads,.page-payments,.page-closer,.page-setter) .sx-table-wrap:not(.sx-log-table) tbody tr:hover td,
body.minimal-calm :is(.page-students,.page-developer,.page-editors,.page-scripts,.page-production) .data-table tbody tr:hover td{
  background:var(--record-hover);
}

/* Neutral record names make amounts and status easier to scan. */
body.minimal-calm :is(.page-leads,.page-payments,.page-closer,.page-setter) .sx-table-wrap:not(.sx-log-table) .sx-link,
body.minimal-calm :is(.page-students,.page-developer,.page-editors,.page-scripts,.page-production) .data-table :is(.ful-link,.mkt-rowlink){
  color:var(--ink);
  font-weight:550;
}
body.minimal-calm :is(.page-leads,.page-payments,.page-closer,.page-setter) .sx-table-wrap:not(.sx-log-table) .sx-link:hover,
body.minimal-calm :is(.page-students,.page-developer,.page-editors,.page-scripts,.page-production) .data-table :is(.ful-link,.mkt-rowlink):hover{
  color:var(--accent);
}
body.minimal-calm :is(.page-leads,.page-payments) .sx-table-wrap td:has(> .sx-link){min-width:150px}
body.minimal-calm .page-leads .sx-date{
  display:inline-flex;
  align-items:baseline;
  gap:8px;
  color:var(--ink);
}
body.minimal-calm .page-leads .sx-date small{
  display:inline;
  margin:0;
  padding-left:8px;
  border-left:1px solid var(--line);
  color:var(--secondary);
  font-size:10.5px;
}
body.minimal-calm :is(.page-leads,.page-payments,.page-setter) .sx-table-wrap:not(.sx-log-table) .sx-note-cell{
  max-width:280px;
  font-size:11px;
  line-height:1.45;
}
body.minimal-calm :is(.page-leads,.page-payments,.page-closer,.page-setter) .sx-table-wrap:not(.sx-log-table) .sx-badge,
body.minimal-calm :is(.page-students,.page-developer,.page-editors,.page-scripts,.page-production) .data-table .status{
  min-height:20px;
  padding:2px 7px;
  border:1px solid color-mix(in srgb,currentColor 12%,transparent);
  border-radius:6px;
  font-size:10px;
  line-height:1.4;
  font-weight:450;
}
body.minimal-calm :is(.page-leads,.page-payments) .sx-table-foot{
  padding-left:2px;
  padding-right:2px;
}
body.minimal-calm :is(.page-leads,.page-payments) .sx-table-wrap td:last-child strong{
  font-weight:550;
}

@media(max-width:600px){
  body.minimal-calm :is(.page-leads,.page-payments) .sx-toolbar:has(+ .sx-table-wrap),
  body.minimal-calm .page-students .page-toolbar:has(> #ful-student-search):has(+ .table-container){
    padding:10px;
  }
  body.minimal-calm :is(.page-leads,.page-payments) .sx-toolbar:has(+ .sx-table-wrap) .sx-filters{
    width:100%;
  }
}
