#bay-efficiency-page { display: grid; gap: 20px; min-width: 0; font-size: 14px; }
#bay-efficiency-page h2 { font-size: 21px; margin: 0 0 10px; }
#bay-efficiency-page h3 { font-size: 16px; margin: 0 0 12px; }
#bay-efficiency-page p { font-size: 13px; line-height: 1.6; }
#bay-efficiency-page .member-panel { padding: 22px; min-width: 0; }
#bay-efficiency-page .member-page-heading { margin-bottom: 0; }
#bay-efficiency-page label { display: grid; gap: 7px; min-width: 0; font-size: 13px; font-weight: 600; }
#bay-efficiency-page input, #bay-efficiency-page select { width: 100%; min-width: 0; padding: 10px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 6px; font: inherit; }
#bay-efficiency-page input:focus-visible, #bay-efficiency-page select:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.bay-date-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; }
#bay-efficiency-page .bay-date-bar input, #bay-efficiency-page .bay-date-bar select { width: auto; max-width: 100%; }
.bay-section-title { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.bay-section-title > span, .bay-muted { color: var(--muted); }
.bay-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.bay-metric { padding: 20px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); min-width: 0; }
.bay-metric > strong { display: block; font-size: 30px; color: var(--primary); }
.bay-metric small { display: block; color: var(--muted); margin-top: 8px; }
.bay-metric.bay-good { border-color: var(--positive); }
.bay-metric.bay-below { border-color: var(--warning); }
.bay-meter { height: 12px; background: var(--border); position: relative; border-radius: 3px; margin: 12px 0; }
.bay-meter > span { display: block; height: 100%; max-width: 100%; background: var(--primary); border-radius: 3px; }
.bay-meter > i { position: absolute; height: 20px; width: 3px; top: -4px; transform: translateX(-3px); }
.bay-benchmark-mark { background: var(--warning); }
.bay-target-mark { background: var(--positive); }
.bay-report-grid, .bay-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bay-tech-bar { margin: 18px 0; }
.bay-tech-bar > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.bay-tech-bar small { color: var(--muted); }
.bay-form { display: grid; align-content: start; gap: 15px; min-width: 0; }
.bay-form .button { justify-self: start; }
.bay-hours-grid, .bay-attendance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bay-hours-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bay-entry-list { display: grid; gap: 16px; }
.bay-entry-list fieldset { display: grid; gap: 12px; border: 1px solid var(--border-strong); border-radius: 10px; min-width: 0; padding: 16px; }
.bay-entry-list legend { padding: 0 5px; font-weight: 700; overflow-wrap: anywhere; }
.bay-roster { display: grid; gap: 10px; list-style: none; padding: 0; }
.bay-roster li { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid var(--border); padding: 10px 0; }
.bay-roster li strong { overflow-wrap: anywhere; }
.bay-roster li span { color: var(--muted); flex: 1; }
#bay-status { color: var(--positive); }
#bay-monthly-dashboard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
#monthly-results { min-width: 0; }
.monthly-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px; border-radius: 18px; background: linear-gradient(125deg, #142a4e, #234a78); color: #fff; }
#bay-efficiency-page .monthly-hero h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.15; margin: 12px 0; letter-spacing: -.035em; color: #fff; }
#bay-efficiency-page .monthly-hero p { color: #d9e7fa; max-width: 480px; }
.monthly-kicker { font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.monthly-hero .monthly-kicker { color: #a9d5ff; }
.monthly-report-actions { display: grid; gap: 12px; flex-shrink: 0; }
.monthly-toolbar { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 16px; }
.monthly-inputs, .monthly-hours-section, .monthly-incomplete, .monthly-coverage, .monthly-formulas { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 22px; min-width: 0; }
.monthly-inputs summary, .monthly-paste summary, .monthly-formulas summary, .bay-daily-tools > summary { font-size: 16px; font-weight: 750; cursor: pointer; }
.monthly-input-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.monthly-input-grid small { font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.45; }
.monthly-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
#bay-efficiency-page .monthly-table-scroll table { font-size: 13px; }
#bay-efficiency-page .monthly-table-scroll th, #bay-efficiency-page .monthly-table-scroll td { font-size: 12px; padding: 12px; }
.monthly-hours-table { min-width: 660px; }
.monthly-hours-table th:first-child { width: 30%; }
.monthly-hours-table td { vertical-align: middle; }
#bay-efficiency-page .monthly-hours-table input { min-width: 90px; padding: 12px 9px; font-size: 15px; }
#bay-efficiency-page .monthly-hours-table caption { font-size: 12px; line-height: 1.5; white-space: normal; padding: 16px; }
.monthly-remove { border: 0; color: var(--negative); background: transparent; text-decoration: underline; cursor: pointer; padding: 8px; }
.monthly-inline-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.monthly-paste { margin-top: 14px; }
#bay-efficiency-page .monthly-paste textarea { width: 100%; padding: 12px; color: var(--text); background: var(--surface-soft); border: 1px solid var(--border-strong); font: 13px monospace; border-radius: 8px; margin-bottom: 12px; }
.monthly-pace-strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 18px 0; }
.monthly-pace-strip > div { display: grid; gap: 10px; padding: 24px; background: var(--surface); min-width: 0; }
.monthly-pace-strip > div:first-child { background: var(--primary-soft); }
.monthly-pace-strip span { color: var(--muted); font-weight: 650; font-size: 12px; }
.monthly-pace-strip strong { font-size: clamp(22px, 2vw, 32px); letter-spacing: -.035em; overflow-wrap: anywhere; }
.monthly-pace-strip small { font-size: 11px; color: var(--muted); }
.monthly-potential-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.monthly-potential { display: grid; gap: 9px; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: 13px; min-width: 0; }
.monthly-potential:nth-child(2) { border-top-color: #8a68ce; }
.monthly-potential > strong { font-size: 44px; line-height: 1.3; letter-spacing: -.04em; }
.monthly-potential > span:not(.monthly-kicker), .monthly-potential > small { color: var(--muted); }
.monthly-potential > small { font-size: 11px; }
.monthly-potential dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin: 12px 0; }
.monthly-potential dt { color: var(--muted); font-size: 12px; }
.monthly-potential dd { margin: 0; font-weight: 750; font-size: 14px; overflow-wrap: anywhere; }
.monthly-attainment-track, .monthly-chart-track { background: var(--border); height: 9px; border-radius: 20px; overflow: hidden; }
.monthly-attainment-track > span, .monthly-chart-track > span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.monthly-positive { color: var(--positive); }
.monthly-negative { color: var(--negative); }
.monthly-balance { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0; padding: 18px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 10px; }
.monthly-balance span { display: grid; gap: 6px; flex: 1; font-size: 12px; min-width: 150px; color: var(--muted); }
.monthly-balance strong { color: var(--text); font-size: 18px; }
.monthly-chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.monthly-chart { border: 1px solid var(--border); border-radius: 12px; padding: 24px; background: var(--surface); min-width: 0; }
#bay-efficiency-page h4 { margin: 0 0 12px; font-size: 17px; }
.monthly-chart-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin: 24px 0; font-size: 13px; }
.monthly-chart-row > strong { overflow-wrap: anywhere; }
.monthly-chart-row .monthly-chart-track { grid-column: 1 / -1; height: 15px; }
.monthly-chart-track > .monthly-bay, .monthly-chart-track > .monthly-worked { background: #149b80; }
.monthly-chart-track > .monthly-tech, .monthly-chart-track > .monthly-sold { background: #8a68ce; }
.monthly-hour-chart { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 18px 0; border-top: 1px solid var(--border); }
.monthly-hour-chart > strong { overflow-wrap: anywhere; }
.monthly-hour-chart > span { font-size: 11px; color: var(--muted); }
.monthly-hour-line { grid-column: 1 / -1; display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; font-size: 11px; }
.monthly-findings { margin: 22px 0; padding: 24px; background: var(--primary-soft); border-radius: 14px; border: 1px solid var(--primary-tint); }
.monthly-findings ul { display: grid; gap: 12px; margin: 0; padding-left: 20px; font-size: 13px; }
.monthly-coverage { margin-top: 18px; }
.monthly-target-row { background: var(--primary-soft); font-weight: 750; }
.monthly-formulas { margin-top: 20px; }
.monthly-footnote { color: var(--muted); }
.bay-daily-tools { border-top: 1px solid var(--border-strong); padding-top: 22px; }
.bay-daily-tools > .member-panel, .bay-daily-tools > section { margin: 22px 0; }
@media (max-width: 1200px) {
  .monthly-input-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .monthly-hero { align-items: start; }
}
@media (max-width: 850px) {
  .monthly-input-grid, .monthly-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monthly-hero { flex-direction: column; }
  .monthly-report-actions { display: flex; flex-wrap: wrap; }
  .monthly-pace-strip, .monthly-chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .monthly-hero { padding: 22px; }
  .monthly-input-grid, .monthly-toolbar, .monthly-potential-grid { grid-template-columns: 1fr; }
  .monthly-inputs, .monthly-hours-section, .monthly-chart, .monthly-coverage, .monthly-findings { padding: 16px; }
  .monthly-potential { padding: 20px; }
  .monthly-potential dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .monthly-potential dd { text-align: right; }
}
@media (max-width: 1000px) {
  .bay-metrics { grid-template-columns: 1fr; }
  .bay-report-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  #bay-efficiency-page .member-panel { padding: 15px; }
  .bay-config-grid, .bay-hours-grid, .bay-attendance { grid-template-columns: 1fr; }
  .bay-section-title > span { font-size: 11px; overflow-wrap: anywhere; }
  .bay-date-bar { display: grid; grid-template-columns: 1fr; }
  #bay-efficiency-page .bay-date-bar input, #bay-efficiency-page .bay-date-bar select { width: 100%; }
  #bay-efficiency-page .button { max-width: 100%; white-space: normal; }
}
