Add daily report calendar to the header

This commit is contained in:
Wyndham ARR committed 2026-10-09 13:20:13 +08:00
1 parent 2a54838d59
commit 4356160cc9
11 files changed
+735 -28

No files matched your search

+36 -5
View File
@@ -158,7 +158,7 @@ button { color: inherit; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 0; }
.panel-heading h2 { margin: 4px 0 0; font-size: 18px; line-height: 1.3; letter-spacing: -.025em; }
.daily-overview { display: grid; grid-template-columns: minmax(240px, 1.25fr) minmax(280px, 1.45fr) repeat(3, minmax(0, .8fr)); gap: 16px; align-items: stretch; margin-bottom: 20px; }
.daily-overview { display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(230px, 1.15fr) minmax(150px, .75fr) minmax(110px, .55fr) minmax(360px, 1.8fr); gap: 16px; align-items: stretch; margin-bottom: 20px; }
.daily-overview > * { min-width: 0; }
.daily-overview > .upload-panel { display: flex; flex-direction: column; }
.daily-overview .upload-footer { margin-top: auto; }
@@ -272,6 +272,36 @@ button { color: inherit; }
.upload-panel { min-height: 0; overflow: hidden; border-color: #dbe3ef; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 44px rgba(31, 51, 82, .07); }
.daily-overview > .metric-card { align-self: stretch; display: flex; flex-direction: column; justify-content: center; height: auto; min-height: 0; padding: 24px 22px; }
.daily-overview > .metric-card::after { right: -24px; bottom: -30px; width: 82px; height: 82px; border-width: 12px; }
.daily-overview > .arrival-metric { padding-left: 16px; padding-right: 16px; }
.daily-overview > .arrival-metric strong { font-size: clamp(20px, 1.5vw, 24px); }
.report-calendar { padding: 14px 12px; overflow: hidden; }
.report-calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.report-calendar-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.report-calendar button { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; cursor: pointer; }
.report-calendar-heading button { padding: 0 10px; color: var(--blue); font-size: 12px; }
.report-calendar-navigation { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; margin: 8px 0; }
.report-calendar-navigation strong { text-align: center; font-size: 13px; font-weight: 700; }
.report-calendar-navigation button { padding: 0; font-size: 22px; }
.report-calendar-weekdays, .report-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.report-calendar-weekdays { margin-bottom: 5px; color: var(--muted); text-align: center; font-size: 10px; }
.report-calendar-days .report-calendar-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; padding: 3px 0; border-color: transparent; background: var(--surface-soft); font-variant-numeric: tabular-nums; }
.report-calendar-day-number { font-size: 12px; font-weight: 650; line-height: 1.3; }
.report-calendar-day-state { display: flex; align-items: center; gap: 1px; font-size: 9px; line-height: 1.4; white-space: nowrap; }
.report-calendar-days .is-generated { color: var(--blue-dark); background: var(--blue-soft); }
.report-calendar-days .is-ungenerated { color: var(--muted); }
.report-calendar-days .is-unknown { color: var(--muted); border-style: dashed; border-color: var(--line); }
.report-calendar-days .is-today { border-color: #a3b9e8; }
.report-calendar-days [aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue-dark); }
.report-calendar button:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-soft); }
.report-calendar button:focus-visible { position: relative; z-index: 1; outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 1px; }
.report-calendar button:disabled { cursor: not-allowed; opacity: .55; }
.report-calendar-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 11px; color: var(--muted); font-size: 10px; }
.report-calendar-legend > span { display: inline-flex; align-items: center; gap: 4px; }
.report-calendar-legend > span:first-child b { color: var(--blue-dark); }
.report-calendar-status, .report-calendar-help { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.report-calendar-status { color: var(--blue-dark); }
.report-calendar-help { color: var(--subtle); }
.report-calendar .report-calendar-retry { margin-top: 8px; padding: 0 10px; color: var(--blue); font-size: 12px; }
.upload-heading { align-items: center; padding: 24px 28px 0; }
.upload-heading h2 { margin-top: 0; font-size: 20px; letter-spacing: -.03em; }
.process-panel { min-height: 640px; overflow: hidden; }
@@ -767,10 +797,11 @@ input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb
:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 3px; }
@media (min-width: 701px) and (max-width: 1199px) {
.daily-overview { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.daily-overview > .arr-download-panel, .daily-overview > .upload-panel { grid-column: span 3; }
.daily-overview > .metric-card { grid-column: span 2; }
@media (min-width: 701px) and (max-width: 1399px) {
.daily-overview { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.daily-overview > .arr-download-panel, .daily-overview > .upload-panel { grid-column: span 6; }
.daily-overview > .metric-card { grid-column: span 3; }
.daily-overview > .report-calendar { grid-column: span 6; }
}
@media (max-width: 960px) {