495 lines
7.2 KiB
CSS
495 lines
7.2 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
--bg: #f7f8fb;
|
|
--panel: #ffffff;
|
|
--text: #1b1f2a;
|
|
--muted: #667085;
|
|
--line: #d9e0ea;
|
|
--accent: #2563eb;
|
|
--accent-2: #0f766e;
|
|
--shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
|
|
--bad: #ef4444;
|
|
--warn: #f59e0b;
|
|
--good: #22c55e;
|
|
--empty: #e5e7eb;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
body {
|
|
margin: 0;
|
|
font-family:
|
|
Inter,
|
|
system-ui,
|
|
-apple-system,
|
|
BlinkMacSystemFont,
|
|
"Segoe UI",
|
|
sans-serif;
|
|
color: var(--text);
|
|
background: var(--bg);
|
|
}
|
|
|
|
.page {
|
|
max-width: 1440px;
|
|
margin: 0 auto;
|
|
padding: 24px;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
align-items: flex-start;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.title h1 {
|
|
margin: 0 0 8px;
|
|
font-size: 30px;
|
|
}
|
|
|
|
.title p {
|
|
margin: 0;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.btn {
|
|
border: 1px solid var(--line);
|
|
background: var(--panel);
|
|
border-radius: 12px;
|
|
padding: 10px 14px;
|
|
cursor: pointer;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.btn.primary {
|
|
background: linear-gradient(135deg, var(--accent), #4f46e5);
|
|
color: white;
|
|
border-color: transparent;
|
|
}
|
|
|
|
.section,
|
|
.class-block,
|
|
.screen-nav,
|
|
.print-nav {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: 18px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.section {
|
|
padding: 20px;
|
|
}
|
|
|
|
.section h2,
|
|
.print-nav h2 {
|
|
margin: 0 0 16px;
|
|
font-size: 22px;
|
|
}
|
|
|
|
.cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
gap: 14px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.card {
|
|
border: 1px solid var(--line);
|
|
border-radius: 16px;
|
|
padding: 16px;
|
|
background: linear-gradient(180deg, #fff, #fbfcff);
|
|
}
|
|
|
|
.card-value {
|
|
font-size: 26px;
|
|
font-weight: 700;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.card-label {
|
|
color: var(--muted);
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.muted {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.screen-nav {
|
|
padding: 14px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.section-nav,
|
|
.class-nav-group {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.class-nav {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.class-nav-group {
|
|
display: none;
|
|
}
|
|
.class-nav-group.active {
|
|
display: flex;
|
|
}
|
|
|
|
.nav-btn {
|
|
border: 1px solid var(--line);
|
|
background: #fff;
|
|
color: var(--text);
|
|
border-radius: 999px;
|
|
padding: 10px 14px;
|
|
cursor: pointer;
|
|
transition: 0.15s ease;
|
|
}
|
|
|
|
.nav-btn:hover {
|
|
border-color: var(--accent);
|
|
}
|
|
.nav-btn.active {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: #fff;
|
|
}
|
|
|
|
.print-nav {
|
|
display: none;
|
|
padding: 18px 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.print-nav-section + .print-nav-section {
|
|
margin-top: 14px;
|
|
}
|
|
.print-nav-section h3 {
|
|
margin: 0 0 8px;
|
|
}
|
|
.print-nav-section ul {
|
|
margin: 0;
|
|
padding-left: 18px;
|
|
}
|
|
|
|
.report-section {
|
|
margin-bottom: 26px;
|
|
}
|
|
|
|
.class-block {
|
|
display: none;
|
|
padding: 20px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.class-block.active {
|
|
display: block;
|
|
}
|
|
|
|
.class-head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
align-items: flex-start;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.class-kicker {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.class-head h3 {
|
|
margin: 0;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.class-note {
|
|
margin-top: 6px;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
}
|
|
.class-note.desc {
|
|
color: var(--text);
|
|
font-size: 12px;
|
|
opacity: 0.75;
|
|
}
|
|
.class-note.warning {
|
|
color: #b45309;
|
|
background: #fffbeb;
|
|
border: 1px solid #fde68a;
|
|
border-radius: 6px;
|
|
padding: 6px 10px;
|
|
margin-top: 8px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.class-legend {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin-top: 8px;
|
|
font-size: 12px;
|
|
}
|
|
.legend-item {
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
.legend-conducted {
|
|
background: #dcfce7;
|
|
color: #166534;
|
|
}
|
|
.legend-missed {
|
|
background: #fef2f2;
|
|
color: #991b1b;
|
|
}
|
|
.legend-other {
|
|
background: #fffbeb;
|
|
color: #92400e;
|
|
}
|
|
|
|
.class-chart {
|
|
position: relative;
|
|
min-height: 320px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.week-chart {
|
|
width: 100%;
|
|
height: 320px;
|
|
}
|
|
|
|
.scheme-table,
|
|
.table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.scheme-table th,
|
|
.scheme-table td,
|
|
.table th,
|
|
.table td {
|
|
border-bottom: 1px solid var(--line);
|
|
vertical-align: top;
|
|
text-align: left;
|
|
}
|
|
|
|
.scheme-table th,
|
|
.table th {
|
|
font-size: 13px;
|
|
color: var(--muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.week-label {
|
|
white-space: nowrap;
|
|
}
|
|
.num {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.scheme-cell-wrap {
|
|
min-width: 420px;
|
|
}
|
|
|
|
.scheme-table {
|
|
width: 100%;
|
|
min-width: 420px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.scheme-table th,
|
|
.scheme-table td {
|
|
padding: 3px 4px;
|
|
text-align: center;
|
|
}
|
|
|
|
.scheme-table thead th:first-child,
|
|
.scheme-table tbody th {
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
}
|
|
.lesson-num {
|
|
font-size: 11px;
|
|
color: var(--muted);
|
|
font-weight: 400;
|
|
padding: 2px 6px !important;
|
|
}
|
|
|
|
.scheme-cell {
|
|
display: inline-block;
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 4px;
|
|
background: var(--empty);
|
|
border: 1px solid rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
.class-weeks {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 10px;
|
|
}
|
|
.week-block {
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
padding: 8px 10px;
|
|
}
|
|
.week-header {
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
margin-bottom: 4px;
|
|
}
|
|
.week-stats {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 6px;
|
|
font-size: 12px;
|
|
}
|
|
.stat {
|
|
padding: 1px 6px;
|
|
border-radius: 3px;
|
|
}
|
|
.stat-cond {
|
|
background: #dcfce7;
|
|
color: #166534;
|
|
}
|
|
.stat-miss {
|
|
background: #fef2f2;
|
|
color: #991b1b;
|
|
}
|
|
.stat-oth {
|
|
background: #fffbeb;
|
|
color: #92400e;
|
|
}
|
|
.stat-total {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.scheme-cell.code-0 {
|
|
background: var(--empty);
|
|
}
|
|
.scheme-cell.code-1 {
|
|
background: var(--bad);
|
|
}
|
|
.scheme-cell.code-2 {
|
|
background: var(--warn);
|
|
}
|
|
.scheme-cell.code-3 {
|
|
background: var(--good);
|
|
}
|
|
|
|
.code-1 {
|
|
color: var(--bad);
|
|
}
|
|
.code-2 {
|
|
color: var(--warn);
|
|
}
|
|
.code-3 {
|
|
color: var(--good);
|
|
}
|
|
|
|
.note {
|
|
padding: 14px 16px;
|
|
border-left: 4px solid var(--accent);
|
|
background: #eff6ff;
|
|
border-radius: 12px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.grid-2 {
|
|
display: grid;
|
|
grid-template-columns: 1.3fr 1fr;
|
|
gap: 16px;
|
|
}
|
|
|
|
.pill {
|
|
display: inline-block;
|
|
padding: 4px 8px;
|
|
border-radius: 999px;
|
|
background: #e8eefb;
|
|
color: #274a8a;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.nowrap {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@media print {
|
|
@page {
|
|
margin: 10mm;
|
|
}
|
|
* {
|
|
-webkit-print-color-adjust: exact !important;
|
|
print-color-adjust: exact !important;
|
|
}
|
|
body {
|
|
background: #fff;
|
|
}
|
|
.page {
|
|
max-width: none;
|
|
padding: 0;
|
|
}
|
|
.screen-nav,
|
|
.actions {
|
|
display: none !important;
|
|
}
|
|
.print-nav {
|
|
display: block;
|
|
}
|
|
.class-block {
|
|
display: block !important;
|
|
box-shadow: none;
|
|
break-inside: avoid;
|
|
page-break-inside: avoid;
|
|
}
|
|
.section,
|
|
.class-block,
|
|
.print-nav {
|
|
box-shadow: none;
|
|
}
|
|
.week-block {
|
|
break-inside: avoid;
|
|
page-break-inside: avoid;
|
|
}
|
|
.class-weeks {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 6px;
|
|
}
|
|
.class-chart {
|
|
min-height: auto;
|
|
margin-bottom: 4px;
|
|
padding: 0;
|
|
}
|
|
.class-chart img {
|
|
max-width: 100%;
|
|
width: 100% !important;
|
|
height: auto !important;
|
|
margin: 0;
|
|
}
|
|
.week-chart {
|
|
margin: 0;
|
|
}
|
|
}
|