/* 取自 smart-athlete-nutrition f0abda2 的 css/workspace.css，只保留 healthWeb 使用的區塊。
   沒有取用的區塊：統計卡片、長條圖、餐秤站、排週計畫與範例用的帳號切換器。 */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-height);
  background: var(--topbar-bg);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 20;
  gap: 20px;
}
.top-brand {
  font-size: 19px;
  font-weight: 750;
  color: var(--brand-accent);
  white-space: nowrap;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar);
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  overflow: auto;
}
.nav-caption {
  font-size: 13px;
  color: var(--nav-caption);
  margin: 0 12px 15px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-soft);
  margin: 3px 0;
  font-size: 14px;
  line-height: 1.5;
}
.nav-item .icon {
  width: 17px;
  height: 17px;
  opacity: 0.75;
}
.nav-item.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
  font-weight: 700;
}
.nav-item:hover {
  background: var(--primary-soft);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.profile {
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding: 18px 12px 0;
  font-size: 14px;
}
.profile small {
  display: block;
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 12px;
}
.main-shell {
  margin-left: var(--sidebar);
  padding-top: var(--header-height);
  min-height: 100vh;
}
main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 38px 50px;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}
.page-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.role-tag {
  font-size: 13px;
  border: 1px solid var(--role-tag-border);
  border-radius: 99px;
  padding: 7px 12px;
  color: var(--role-tag-text);
  background: var(--role-tag-bg);
  white-space: nowrap;
}
.context-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
}
.date-control {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
}
.date-control input {
  border: 0;
  color: var(--text-soft);
  background: transparent;
  font-size: 13px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 11px 18px;
  border: 1px solid var(--input-border);
  background: var(--surface);
  border-radius: 9px;
  color: var(--primary);
  font-size: 12px;
  white-space: nowrap;
}
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--surface);
  box-shadow: 0 3px 7px var(--btn-shadow);
}
.context-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.date-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--date-border);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--date-text);
}
.date-control .icon {
  width: 15px;
  height: 15px;
}
.date-control input {
  border: 0;
  color: var(--date-input);
  font-size: 12px;
  background: transparent;
  outline: none;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.panel-heading {
  padding: 21px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-heading p {
  font-size: 12px;
  color: var(--text-faint);
  margin: 7px 0 0;
}
.panel-heading h2 {
  font-size: 14px;
}
.panel-heading a {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  border-radius: 4px;
  background: var(--success-soft);
  color: var(--success);
  padding: 4px 7px;
  white-space: nowrap;
}
.badge i {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.neutral {
  color: var(--table-head-text);
  background: var(--primary-soft);
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 12px;
  color: var(--table-head-text);
  background: var(--table-head-bg);
  font-weight: 400;
  border-top: 1px solid var(--table-line);
  border-bottom: 1px solid var(--table-line);
  padding: 12px 20px;
}
td {
  padding: 15px 20px;
  font-size: 12px;
  border-bottom: 1px solid var(--table-line);
  color: var(--text-soft);
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  font-weight: 500;
  color: var(--text);
}
td small {
  display: block;
  color: var(--text-faint);
  font-size: 12px;
  margin-top: 5px;
}
.empty {
  padding: 65px;
  text-align: center;
  color: var(--empty-text);
}
.empty p {
  font-size: 12px;
}
.btn {
  font-size: 14px;
  font-weight: 650;
  border-radius: 9px;
  min-height: 43px;
}
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
}
.panel-heading {
  padding: 24px;
  align-items: flex-start;
}
.panel-heading h2 {
  font-size: 20px;
  margin: 0;
}
.panel-heading p {
  font-size: 13px;
  margin: 8px 0 0;
  line-height: 1.6;
}
.panel-heading a {
  font-size: 13px;
}
.panel-padded {
  padding: 24px;
}
.panel-padded > h2 {
  margin-bottom: 20px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.footnote {
  font-size: 13px;
  color: var(--text-faint);
  margin: 24px 0 0;
  line-height: 1.7;
}
th, td {
  padding: 15px 12px;
  font-size: 14px;
}
th {
  font-size: 14px;
}
td small {
  font-size: 12px;
}
.badge {
  font-size: 12px;
  border-radius: 99px;
  padding: 5px 9px;
}
.table-wrap {
  padding: 0 20px 20px;
}
table {
  min-width: 700px;
}
.login-main {
  padding-top: 0;
}
.login {
  max-width: 460px;
  margin: 6vh auto;
  padding: 36px;
}
.login h1 {
  margin-bottom: 24px;
  text-wrap: balance;
}
.login .muted {
  margin-bottom: 0;
}
.login form {
  margin: 0;
  padding: 0;
}
.login .field {
  margin: 16px 0;
  font-size: 16px;
  color: var(--text);
}
.login .field input {
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 16px;
}
.login .field input[readonly] {
  color: var(--input-readonly-text);
  background: var(--input-readonly-bg);
}
.login .notice {
  margin-top: 16px;
}
.login .actions {
  margin-top: 22px;
}
.login-shell {
  margin-left: 0;
}
