/* ===== Стили загруженности аудиторий ===== */ .workload-grid-container { width: 100%; max-height: 600px; overflow: auto; border-radius: var(--radius-sm); border: 1px solid var(--bg-card-border); position: relative; } .workload-filter-row { flex-wrap: wrap; } .workload-display-control { flex: 1 1 260px; min-width: 240px; } .workload-target-control { flex: 0 1 220px; min-width: 200px; } .workload-display-select { width: 100%; min-height: 38px; padding: 0.45rem 2.25rem 0.45rem 1rem; background: var(--bg-input); border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); color: var(--text-primary); font: inherit; font-size: 0.85rem; outline: none; transition: background var(--transition), border-color var(--transition), box-shadow var(--transition); } .workload-display-select:hover { background: var(--bg-hover); } .workload-display-select:focus { background: var(--bg-input-focus); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); } .workload-overview-filter[hidden], #workload-overview-block[hidden], #room-workload-block[hidden] { display: none !important; } .workload-table { width: 100%; border-collapse: collapse; min-width: 800px; table-layout: fixed; } .workload-table th, .workload-table td { border: 1px solid var(--bg-card-border); padding: 0.5rem; vertical-align: top; position: relative; min-width: 150px; height: 86px; } .workload-table th { background: var(--bg-input); color: var(--text-secondary); font-weight: 500; text-align: center; position: sticky; top: 0; z-index: 10; padding: 1rem 0.5rem; box-shadow: 0 1px 0 var(--bg-card-border); } .workload-table th strong, .workload-table th span, .workload-table th small { display: block; } .workload-table th strong { color: var(--text-primary); font-size: 0.82rem; line-height: 1.1; } .workload-table th span { margin-top: 0.2rem; color: var(--text-secondary); font-size: 0.76rem; line-height: 1.1; } .workload-table th small { width: fit-content; margin: 0.35rem auto 0; padding: 0.1rem 0.35rem; border-radius: 999px; background: rgba(139, 92, 246, 0.16); color: var(--accent-hover); font-size: 0.68rem; font-weight: 700; line-height: 1.2; } .workload-table .time-cell, .workload-table .axis-cell { background: var(--bg-input); color: var(--text-primary); font-weight: 600; text-align: left; vertical-align: middle; width: 140px; min-width: 140px; position: sticky; left: 0; z-index: 5; box-shadow: 1px 0 0 var(--bg-card-border); } .workload-table .axis-cell strong, .workload-table .axis-cell span, .workload-table .axis-cell small { display: block; } .workload-table .axis-cell strong { color: var(--text-primary); font-size: 0.9rem; line-height: 1.15; } .workload-table .axis-cell span, .workload-table .axis-cell small { margin-top: 0.2rem; color: var(--text-secondary); font-size: 0.72rem; line-height: 1.15; } .workload-table .axis-cell.room-unavailable { color: var(--error); background: color-mix(in srgb, var(--error) 8%, var(--bg-input)); } .workload-table .top-left-cell { position: sticky; top: 0; left: 0; z-index: 20; background: var(--bg-input); min-width: 140px; width: 140px; box-shadow: 1px 1px 0 var(--bg-card-border); } /* Диагональная линия через linear-gradient */ .workload-table .top-left-cell::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient( to bottom right, transparent calc(50% - 1px), var(--bg-card-border) 50%, transparent calc(50% + 1px) ); pointer-events: none; } .top-left-cell span.top-label { position: absolute; top: 0.5rem; right: 0.5rem; font-size: 0.75rem; color: var(--text-secondary); } .top-left-cell span.bottom-label { position: absolute; bottom: 0.5rem; left: 0.5rem; font-size: 0.75rem; color: var(--text-secondary); } .workload-summary { margin: -0.75rem 0 1rem; color: var(--text-secondary); font-size: 0.86rem; } .workload-filter-empty { padding: 0.75rem; color: var(--text-secondary); font-size: 0.86rem; } .workload-busy-cell { background: color-mix(in srgb, var(--accent) 5%, var(--bg-primary)); } .workload-free-cell { background: color-mix(in srgb, var(--success) 4%, var(--bg-primary)); } .free-slot { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; color: var(--text-secondary); font-size: 0.78rem; } /* Карточки занятий внутри ячеек сетки */ .lesson-card { background: var(--bg-card); border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); padding: 0.5rem; font-size: 0.8rem; margin-bottom: 0.25rem; transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } [data-theme="light"] .lesson-card { background: rgba(255, 255, 255, 0.9); } .lesson-card:hover { background: var(--bg-hover); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); border-color: var(--accent); } .lesson-subject { font-weight: 600; color: var(--text-primary); margin-bottom: 0.2rem; line-height: 1.2; } .lesson-group { font-weight: 700; /* Акцент на названии группы */ color: var(--text-primary); margin-bottom: 0.1rem; font-size: 0.75rem; } .lesson-subgroup { color: var(--accent-hover); font-size: 0.72rem; font-weight: 600; margin-bottom: 0.1rem; line-height: 1.2; } .lesson-teacher { color: var(--text-secondary); font-size: 0.75rem; } .lesson-meta { margin-top: 0.25rem; color: var(--text-secondary); font-size: 0.72rem; line-height: 1.2; } .room-workload-block { display: flex; flex-direction: column; gap: 1rem; } .room-workload-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin: -0.75rem 0 0.25rem; color: var(--text-secondary); font-size: 0.86rem; } .room-summary-main { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0.45rem; margin-right: 0.25rem; } .room-summary-main strong { color: var(--text-primary); font-size: 0.98rem; } .room-summary-chip, .room-summary-warning { display: inline-flex; align-items: center; min-height: 28px; padding: 0.25rem 0.55rem; border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); background: var(--bg-input); color: var(--text-secondary); line-height: 1.15; } .room-summary-warning { color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, var(--bg-input)); } .room-workload-tables { display: flex; flex-direction: column; gap: 1rem; } .room-week-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; } .room-week-heading h3 { margin: 0; color: var(--text-primary); font-size: 1rem; line-height: 1.2; } .room-week-heading span { color: var(--text-secondary); font-size: 0.82rem; } .room-week-panel { display: flex; flex-direction: column; min-height: calc(100vh - 19rem); } .room-grid-container { flex: 1; height: calc(100vh - 24rem); min-height: 420px; max-height: none; } .room-week-table { min-width: 1040px; } .room-week-table th, .room-week-table td { min-width: 126px; height: 172px; } .room-week-table .room-time-heading, .room-week-table .room-time-cell { position: sticky; left: 0; min-width: 128px; width: 128px; background: var(--bg-input); box-shadow: 1px 0 0 var(--bg-card-border); } .room-week-table .room-time-heading { z-index: 20; } .room-week-table .room-time-cell { z-index: 5; color: var(--text-primary); font-weight: 600; vertical-align: middle; } .room-week-table .room-time-cell strong, .room-week-table .room-time-cell span, .room-week-table .room-day-cell strong, .room-week-table .room-day-cell span, .room-week-table .room-day-cell small { display: block; } .room-week-table .room-time-cell strong { font-size: 0.86rem; line-height: 1.15; } .room-week-table .room-time-cell span { margin-top: 0.2rem; color: var(--text-secondary); font-size: 0.72rem; line-height: 1.15; } .room-week-table .room-day-cell strong { color: var(--text-primary); font-size: 0.84rem; line-height: 1.1; } .room-week-table .room-day-cell > span { margin-top: 0.15rem; color: var(--text-secondary); font-size: 0.76rem; line-height: 1.1; } .room-week-table .room-day-cell small { margin-top: 0.25rem; color: var(--text-secondary); font-size: 0.68rem; line-height: 1.1; } .room-day-parity-dates { display: grid; gap: 0.2rem; margin-top: 0.45rem; } .room-day-parity-dates span { padding: 0.16rem 0.35rem; border-radius: 999px; background: var(--bg-input); color: var(--text-secondary); font-size: 0.68rem; font-weight: 700; line-height: 1.1; white-space: nowrap; } .room-combined-cell { height: 1px; padding: 0 !important; background: var(--bg-primary); } .room-single-cell { padding: 0 !important; } .room-week-unified { min-height: 172px; height: 100%; padding: 0.45rem; display: flex; flex-direction: column; justify-content: center; gap: 0.25rem; } .room-week-unified-busy { justify-content: flex-start; background: color-mix(in srgb, var(--accent) 5%, var(--bg-primary)); } .room-week-unified-busy > .lesson-card { flex: 1; display: flex; flex-direction: column; justify-content: center; margin-bottom: 0; } .room-week-unified-free { background: color-mix(in srgb, var(--success) 4%, var(--bg-primary)); } .room-week-unified-missing, .room-week-unified-empty { background: color-mix(in srgb, var(--warning) 5%, var(--bg-primary)); } .room-week-half { position: relative; min-height: 86px; padding: 1.4rem 0.45rem 0.45rem; display: flex; flex-direction: column; justify-content: center; gap: 0.25rem; } .room-week-half + .room-week-half { border-top: 1px solid var(--bg-card-border); } .room-week-half-busy { justify-content: flex-start; background: color-mix(in srgb, var(--accent) 5%, var(--bg-primary)); } .room-week-half-free { background: color-mix(in srgb, var(--success) 4%, var(--bg-primary)); } .room-week-half-missing, .room-week-half-empty { background: color-mix(in srgb, var(--warning) 5%, var(--bg-primary)); } .room-half-marker { position: absolute; top: 0.35rem; left: 0.45rem; display: inline-flex; align-items: center; max-width: calc(100% - 0.9rem); padding: 0.1rem 0.35rem; border-radius: 999px; background: var(--bg-input); color: var(--text-secondary); font-size: 0.64rem; font-weight: 700; line-height: 1.1; white-space: nowrap; } .room-week-half-odd .room-half-marker { color: var(--accent-hover); } .room-week-half-even .room-half-marker { color: var(--success); } .slot-unavailable { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; color: var(--text-secondary); font-size: 0.78rem; } .room-workload-state { border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); background: var(--bg-input); } .schedule-view-table-stack { display: flex; flex-direction: column; gap: 1rem; } .schedule-view-week-panel { display: flex; flex-direction: column; gap: 0; } .schedule-view-grid-container { max-height: none; } .schedule-view-matrix-table { min-width: 980px; } .schedule-view-matrix-table th, .schedule-view-matrix-table td { min-width: 150px; height: 172px; } .schedule-view-lesson-card .lesson-meta + .lesson-meta { margin-top: 0.1rem; } .schedule-view-state { border: 1px solid var(--bg-card-border); border-radius: var(--radius-sm); background: var(--bg-input); } /* Настройка scrollbar для контейнера сетки */ .workload-grid-container::-webkit-scrollbar { width: 8px; height: 8px; } .workload-grid-container::-webkit-scrollbar-track { background: transparent; } .workload-grid-container::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 8px; } [data-theme="light"] .workload-grid-container::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); } @media (max-width: 768px) { .workload-target-control, .workload-display-control { min-width: 100%; } .room-week-heading { align-items: flex-start; } .room-week-panel { min-height: auto; } .room-grid-container { height: 520px; } }