Admin cockpit

This commit is contained in:
2026-05-06 18:45:23 +02:00
parent b1368980f9
commit 7c3e04cf06
2 changed files with 807 additions and 0 deletions

View File

@@ -28,6 +28,328 @@ button:disabled { opacity: 0.5; cursor: not-allowed; }
color: #14213d;
}
.admin-console {
height: 100vh;
display: grid;
grid-template-rows: auto auto minmax(0, 1fr);
gap: 0.85rem;
padding: 1rem;
overflow: hidden;
background: #f5f7fb;
}
.admin-console-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
padding: 1rem 1.15rem;
border: 1px solid #e2e8f0;
border-radius: 18px;
background: white;
box-shadow: 0 10px 30px rgba(20,33,61,0.07);
}
.admin-console-header h1,
.admin-console-header p,
.admin-panel h2,
.admin-panel h3,
.admin-metric p,
.admin-metric span,
.admin-action-list button,
.student-report-grid p {
margin: 0;
}
.admin-user-box {
display: flex;
align-items: center;
gap: 0.75rem;
color: #64748b;
white-space: nowrap;
}
.admin-tabs {
display: flex;
gap: 0.45rem;
overflow-x: auto;
padding: 0.25rem;
border: 1px solid #e2e8f0;
border-radius: 16px;
background: white;
}
.admin-tabs button {
flex: 0 0 auto;
background: transparent;
color: #475569;
border: 1px solid transparent;
border-radius: 12px;
padding: 0.7rem 0.9rem;
font-weight: 800;
}
.admin-tabs button.active {
color: #14213d;
background: #eff6ff;
border-color: #bfdbfe;
}
.admin-workspace {
min-height: 0;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 1rem;
}
.admin-metrics-grid,
.admin-dashboard-grid,
.student-report-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 1rem;
}
.admin-dashboard-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-metric,
.admin-panel {
border: 1px solid #e2e8f0;
border-radius: 18px;
background: white;
box-shadow: 0 10px 30px rgba(20,33,61,0.06);
padding: 1rem;
}
.admin-metric {
display: flex;
flex-direction: column;
gap: 0.35rem;
min-height: 132px;
}
.admin-metric span,
.student-report-grid span {
color: #2563eb;
font-size: 0.78rem;
font-weight: 900;
text-transform: uppercase;
}
.admin-metric strong {
min-width: 0;
overflow: hidden;
color: #14213d;
font-size: 1.8rem;
line-height: 1.1;
text-overflow: ellipsis;
white-space: nowrap;
}
.admin-metric.warning {
background: #fff7ed;
border-color: #fed7aa;
}
.admin-panel,
.student-report-panel {
display: flex;
flex-direction: column;
gap: 1rem;
min-height: 0;
}
.admin-panel-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
}
.admin-action-list,
.student-roster,
.student-create-form,
.pipeline-list {
display: flex;
flex-direction: column;
gap: 0.65rem;
}
.admin-action-list button,
.student-roster button {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
width: 100%;
border: 1px solid #e2e8f0;
background: #f8fafc;
color: #14213d;
text-align: left;
}
.admin-action-list button span,
.student-roster button span {
color: #64748b;
font-size: 0.9rem;
font-weight: 700;
}
.student-roster button.active {
border-color: #2563eb;
background: #eff6ff;
}
.admin-students-layout {
min-height: 0;
display: grid;
grid-template-columns: 340px minmax(0, 1fr);
gap: 1rem;
}
.student-create-form {
padding-top: 1rem;
border-top: 1px solid #e2e8f0;
}
.student-report-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.student-report-grid article {
display: flex;
flex-direction: column;
gap: 0.35rem;
min-height: 120px;
border: 1px solid #e2e8f0;
border-radius: 14px;
background: #f8fafc;
padding: 0.85rem;
}
.student-report-grid strong {
min-width: 0;
overflow: hidden;
font-size: 1.35rem;
text-overflow: ellipsis;
white-space: nowrap;
}
.student-settings-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.8rem;
}
.student-settings-grid.single {
grid-template-columns: 1fr;
}
.student-settings-grid label {
display: flex;
flex-direction: column;
gap: 0.35rem;
font-weight: 800;
}
.student-settings-grid .wide-field {
grid-column: 1 / -1;
}
.student-settings-grid textarea {
min-height: 120px;
resize: vertical;
border: 1px solid #cfd7e6;
border-radius: 12px;
padding: 0.8rem 1rem;
font: inherit;
}
.program-tab {
min-height: 72vh;
}
.validation-layout {
min-height: 0;
display: grid;
grid-template-columns: 300px minmax(0, 1fr) 320px;
gap: 1rem;
}
.review-queue,
.validation-inspector {
max-height: calc(100vh - 170px);
overflow: hidden;
}
.review-queue .program-tree-list {
overflow-y: auto;
}
.review-filters {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
}
.review-filters span,
.pipeline-list span {
border: 1px solid #e2e8f0;
border-radius: 999px;
background: #f8fafc;
padding: 0.45rem 0.65rem;
color: #475569;
font-size: 0.85rem;
font-weight: 800;
}
.validation-stage {
min-height: calc(100vh - 170px);
}
.validation-main-preview {
min-height: 0;
flex: 1;
display: grid;
place-items: center;
border: 1px solid #e2e8f0;
border-radius: 16px;
background: #f8fafc;
overflow: hidden;
padding: 1rem;
}
.validation-main-preview img {
width: 100%;
height: 100%;
max-height: calc(100vh - 310px);
object-fit: contain;
display: block;
}
.empty-preview {
display: grid;
place-items: center;
min-height: 320px;
color: #64748b;
font-weight: 800;
}
.validation-inspector .admin-review-form {
flex: 1;
}
.program-status-grid.compact {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pipeline-list {
align-items: flex-start;
}
.layout {
display: grid;
grid-template-columns: 360px 1fr;
@@ -771,6 +1093,44 @@ button:disabled { opacity: 0.5; cursor: not-allowed; }
overflow: auto;
}
.admin-console {
height: auto;
min-height: 100dvh;
overflow: visible;
padding: 0.75rem;
}
.admin-console-header,
.admin-user-box {
align-items: stretch;
flex-direction: column;
}
.admin-workspace {
overflow: visible;
}
.admin-metrics-grid,
.admin-dashboard-grid,
.admin-students-layout,
.student-report-grid,
.student-settings-grid,
.validation-layout,
.admin-program-browser {
grid-template-columns: 1fr;
}
.review-queue,
.validation-inspector,
.validation-stage {
min-height: auto;
max-height: none;
}
.validation-main-preview img {
max-height: 70dvh;
}
.layout {
grid-template-columns: 1fr;
height: auto;