/* Freezer system only; the shared XG look is in xg.css (copied unchanged from the portal kit). */
.tabs a{background:none;border:0;padding:10px 14px;font-size:14px;font-weight:500;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;text-decoration:none}
.tabs a:hover{color:var(--ink)}
.tabs a.on{color:var(--brand);border-bottom-color:var(--brand)}
.tabs a:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.topactions form{margin:0}
#banners > div{margin-bottom:10px}

/* freezer cards on the start tab */
.fgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.fcard{display:block;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px;text-decoration:none;color:var(--ink);box-shadow:0 1px 2px rgba(35,35,35,.04)}
.fcard:hover{border-color:var(--washed)}
.fcard img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:6px;background:#fff}
.fcard .fn{font-weight:600;margin-top:10px}
.fcard .fs{font-size:12px;color:var(--muted)}
.preview{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:6px;background:#fff;margin-bottom:10px}

/* contents tables */
td.place input.in{min-width:150px}
td.amt .inu{width:120px;margin-left:auto}
tr.err td{background:var(--bad)}
.rowerr{color:var(--bad-ink);font-size:11.5px;margin-top:3px}
.where{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12.5px}
.where a{text-decoration:none}
.where a:hover{text-decoration:underline}
.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.filters input.in{max-width:300px}
details.more{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
details.more > summary{cursor:pointer;font-weight:600;font-size:13px;color:var(--brand)}
textarea.bulk{min-height:180px;font-family:var(--font-mono);font-size:12.5px}
.actionsrow{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}
.login{max-width:400px;margin:40px auto}
.login .logo{height:54px;margin-bottom:14px}
pre.summary{white-space:pre-wrap;margin:0;font:inherit;font-size:12.5px}
/* first submit button of a table form, so Enter in a box saves instead of pressing a row's × button */
.defaultsubmit{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.filestatus a{color:inherit}
/* phones: contents tables become one block per row (name on top, place and amount below), so the
   amount box stays in view without scrolling sideways */
@media(max-width:600px){
  .topactions .wide-only{display:none}
  table.stock thead{display:none}
  table.stock tbody tr{display:grid;grid-template-columns:minmax(0,1fr) 132px 30px;gap:6px 8px;padding:10px 0;border-bottom:1px solid var(--line)}
  table.stock tbody td{padding:0!important;border:0}
  table.stock td.pname{grid-column:1 / 3;grid-row:1}
  table.stock td.rm{grid-column:3;grid-row:1}
  table.stock td.place{grid-column:1;grid-row:2}
  table.stock td.amt{grid-column:2 / 4;grid-row:2}
  table.stock td.amt .inu{width:auto}
  table.stock td.place input.in{min-width:0}
  table.stock tfoot tr{display:flex;justify-content:space-between}
  table.stock tfoot td:empty{display:none}
}
