/* Shared layout for the baker portal and the admin page */
.shell-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.shell-top-right { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.shell-who { color: var(--muted); }
.shell-main { max-width: 1120px; margin: 0 auto; padding: 24px 20px 64px; }

.section {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; margin-bottom: 16px;
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2 > .section { margin-bottom: 0; }

/* Numbers */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.figure { background: var(--card); padding: 14px 16px; }
.figure-n { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1.1; }
.figure-l { font-size: 13px; color: var(--muted); margin-top: 2px; }
.figure.lamp { background: var(--lamp-soft); }

/* Bar chart (inline SVG) */
.chart { width: 100%; height: auto; max-height: 220px; display: block; }
.chart-legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab {
  background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  font: 700 14px var(--font-body); color: var(--muted); padding: 10px 12px; cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.tab .count { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--bg); font-size: 12px; margin-left: 4px; text-align: center; }
.tab .count.hot { background: var(--alarm); color: #fff; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
table.list td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list th.num, table.list td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.list .cell-title { font-weight: 700; }
table.list .cell-sub { color: var(--muted); font-size: 13px; }
table.list .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

.notice { padding: 12px 14px; border-radius: var(--r-md); font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.notice-lamp { background: var(--lamp-soft); border-color: #f2dc95; }
.notice-info { background: #eef3f8; border-color: #cfdcea; }
.notice-alarm { background: var(--alarm-soft); border-color: #efc4bf; }

@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
  .shell-main { padding: 16px 12px 48px; }
  .shell-top { padding: 10px 12px; }
  .shell-who, .shell-top-right .btn-quiet { display: none; }
  .section { padding: 16px; }
}
