Files
magistr/frontend/admin/css/teacher-absences.css

839 lines
18 KiB
CSS

.absence-command-card {
position: relative;
overflow: hidden;
display: grid;
grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
gap: 2rem;
padding: 2rem;
border: 1px solid color-mix(in srgb, #f59e0b 30%, var(--bg-card-border));
border-radius: var(--radius-lg);
background:
linear-gradient(125deg, color-mix(in srgb, #f59e0b 13%, transparent), transparent 48%),
var(--bg-card);
box-shadow: 0 22px 70px color-mix(in srgb, #0f172a 22%, transparent);
}
.absence-command-card::after {
content: '';
position: absolute;
width: 280px;
height: 280px;
right: -120px;
top: -160px;
border: 42px solid color-mix(in srgb, #f59e0b 14%, transparent);
border-radius: 50%;
pointer-events: none;
}
.absence-command-copy {
position: relative;
z-index: 1;
}
.absence-kicker,
.absence-section-number {
color: #f59e0b;
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.absence-command-copy h2 {
max-width: 720px;
margin: 0.45rem 0 0.65rem;
font-size: clamp(1.55rem, 3vw, 2.35rem);
line-height: 1.08;
letter-spacing: -0.04em;
}
.absence-command-copy p {
max-width: 680px;
color: var(--text-secondary);
line-height: 1.65;
}
.absence-command-stats {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.65rem;
align-self: stretch;
}
.absence-command-stats article {
display: flex;
min-height: 118px;
flex-direction: column;
justify-content: flex-end;
padding: 1rem;
border: 1px solid var(--bg-card-border);
border-radius: var(--radius-md);
background: color-mix(in srgb, var(--bg-input) 76%, transparent);
}
.absence-command-stats strong {
font-size: 2rem;
line-height: 1;
}
.absence-command-stats span {
margin-top: 0.5rem;
color: var(--text-secondary);
font-size: 0.75rem;
}
.absence-create-card,
.absence-registry-card {
border-radius: var(--radius-lg);
}
.absence-create-card {
z-index: 20;
overflow: visible;
}
.absence-create-card:focus-within {
z-index: 30;
}
.absence-create-card .card-header-row > div:first-child,
.absence-registry-head > div:first-child {
display: flex;
align-items: baseline;
gap: 0.75rem;
}
.absence-form-grid {
display: grid;
grid-template-columns: minmax(220px, 1.25fr) repeat(2, minmax(160px, 0.7fr)) minmax(260px, 1.5fr) auto;
gap: 1rem;
align-items: end;
}
.absence-create-submit {
min-height: 44px;
white-space: nowrap;
}
.absence-registry-actions {
display: flex;
align-items: center;
gap: 0.75rem;
}
.absence-registry-actions .custom-select-wrapper,
.absence-registry-actions > select {
min-width: 210px;
}
.absence-registry {
display: grid;
gap: 0.75rem;
}
.absence-registry-item {
display: grid;
grid-template-columns: 68px minmax(0, 1fr) auto;
gap: 1rem;
align-items: center;
padding: 1rem;
border: 1px solid var(--bg-card-border);
border-radius: var(--radius-md);
background: color-mix(in srgb, var(--bg-input) 64%, transparent);
transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.absence-registry-item:hover {
transform: translateY(-2px);
border-color: color-mix(in srgb, #f59e0b 36%, var(--bg-card-border));
background: color-mix(in srgb, #f59e0b 5%, var(--bg-input));
}
.absence-date-rail {
display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
gap: 0 0.3rem;
min-height: 68px;
padding-right: 0.85rem;
border-right: 1px solid var(--bg-card-border);
}
.absence-date-rail strong {
font-size: 1.15rem;
}
.absence-date-rail span {
color: var(--text-secondary);
font-size: 0.7rem;
text-transform: uppercase;
}
.absence-date-rail i {
grid-column: 1 / -1;
width: 100%;
height: 1px;
margin: 0.25rem 0;
background: linear-gradient(90deg, #f59e0b, transparent);
}
.absence-registry-title,
.absence-meta-row,
.absence-registry-buttons {
display: flex;
align-items: center;
}
.absence-registry-title {
flex-wrap: wrap;
justify-content: space-between;
gap: 1rem;
}
.absence-registry-title h3 {
margin: 0;
font-size: 1rem;
}
.absence-registry-title p {
margin: 0.25rem 0 0;
color: var(--text-secondary);
font-size: 0.86rem;
}
.absence-meta-row {
flex-wrap: wrap;
gap: 0.45rem 1rem;
margin-top: 0.65rem;
color: var(--text-secondary);
font-size: 0.76rem;
}
.absence-meta-row span:not(:last-child)::after {
content: '•';
margin-left: 1rem;
color: #f59e0b;
}
.absence-status {
display: inline-flex;
align-items: center;
min-height: 28px;
padding: 0.25rem 0.65rem;
flex: 0 0 auto;
align-self: flex-start;
max-width: 100%;
line-height: 1.4;
border: 1px solid currentColor;
border-radius: 999px;
font-size: 0.69rem;
font-weight: 800;
letter-spacing: 0.03em;
white-space: normal;
}
.absence-status.is-pending { color: #f59e0b; }
.absence-status.is-approved { color: #34d399; }
.absence-status.is-resolved { color: #34d399; }
.absence-status.is-rejected,
.absence-status.is-cancelled { color: var(--text-secondary); }
[data-theme="light"] .absence-status.is-pending { color: #92400e; }
[data-theme="light"] .absence-status.is-approved,
[data-theme="light"] .absence-status.is-resolved { color: #047857; }
.absence-status.is-rejected { color: #fb7185; }
[data-theme="light"] .absence-status.is-rejected { color: #be123c; }
.absence-registry-buttons {
justify-content: flex-end;
flex-wrap: wrap;
gap: 0.5rem;
max-width: 270px;
}
.absence-empty {
display: flex;
min-height: 150px;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.4rem;
color: var(--text-secondary);
text-align: center;
}
.absence-empty strong {
color: var(--text-primary);
}
body.absence-wizard-open {
overflow: hidden;
}
.absence-wizard-overlay {
position: fixed;
inset: 0;
z-index: 2400;
display: grid;
place-items: center;
padding: 1.25rem;
background: rgba(3, 7, 18, 0.72);
backdrop-filter: blur(10px);
}
.absence-wizard-overlay[hidden] {
display: none;
}
.absence-wizard {
display: flex;
width: min(1180px, 100%);
max-height: min(900px, calc(100vh - 2.5rem));
flex-direction: column;
overflow: hidden;
border: 1px solid color-mix(in srgb, #f59e0b 35%, var(--bg-card-border));
border-radius: 24px;
background: color-mix(in srgb, var(--bg-card) 94%, #0f172a);
box-shadow: 0 35px 110px rgba(0, 0, 0, 0.48);
animation: absence-wizard-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes absence-wizard-in {
from { opacity: 0; transform: translateY(24px) scale(0.98); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.absence-wizard-header,
.absence-wizard-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 1.35rem 1.5rem;
}
.absence-wizard-header {
border-bottom: 1px solid var(--bg-card-border);
}
.absence-wizard-header h2 {
margin: 0.25rem 0;
}
.absence-wizard-header p {
margin: 0;
color: var(--text-secondary);
}
#absence-wizard-close {
font-size: 1.65rem;
}
.absence-wizard-progress {
display: flex;
align-items: center;
justify-content: center;
padding: 0.85rem 1.5rem 0;
color: var(--text-secondary);
font-size: 0.72rem;
font-weight: 700;
text-transform: uppercase;
}
.absence-wizard-progress span.done {
color: #f59e0b;
}
.absence-wizard-progress i {
width: 56px;
height: 1px;
margin: 0 0.75rem;
background: var(--bg-card-border);
}
#absence-wizard-alert {
margin: 0.9rem 1.5rem 0;
}
.absence-wizard-lessons {
display: grid;
gap: 0.65rem;
padding: 1.25rem 1.5rem;
overflow-y: auto;
}
.absence-lesson {
display: grid;
grid-template-columns: 100px minmax(0, 1fr) minmax(280px, 0.85fr);
gap: 1rem;
align-items: center;
padding: 1rem;
border: 1px solid var(--bg-card-border);
border-radius: 14px;
background: color-mix(in srgb, var(--bg-input) 70%, transparent);
}
.absence-lesson-time {
display: flex;
flex-direction: column;
padding-right: 1rem;
border-right: 1px solid var(--bg-card-border);
}
.absence-lesson-time strong {
font-size: 1.15rem;
}
.absence-lesson-time span,
.absence-lesson-time small,
.absence-lesson-copy p {
color: var(--text-secondary);
}
.absence-lesson-time small {
margin-top: 0.4rem;
}
.absence-lesson-type {
color: #f59e0b;
font-size: 0.68rem;
font-weight: 800;
text-transform: uppercase;
}
.absence-lesson-copy h3 {
margin: 0.2rem 0;
font-size: 1rem;
}
.absence-lesson-copy p {
margin: 0;
font-size: 0.8rem;
}
.absence-warning {
display: block;
margin-top: 0.45rem;
color: #fb7185;
}
.absence-lesson-decision label {
display: block;
margin-bottom: 0.35rem;
color: var(--text-secondary);
font-size: 0.72rem;
}
.absence-decision-fixed {
display: inline-block;
margin-top: 0.45rem;
color: #34d399;
font-size: 0.75rem;
font-weight: 700;
}
.absence-journal {
padding: 0 1.5rem 1.25rem;
}
.absence-journal h3 {
font-size: 0.95rem;
}
.absence-journal-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 0.5rem;
max-height: 150px;
overflow-y: auto;
}
.absence-journal-list article {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
gap: 0.65rem;
align-items: center;
padding: 0.7rem;
border: 1px solid var(--bg-card-border);
border-radius: 10px;
}
.absence-journal-list article div {
display: flex;
flex-direction: column;
}
.absence-journal-list small,
.absence-journal-list article > span:last-child {
color: var(--text-secondary);
font-size: 0.7rem;
}
.absence-journal-mark {
width: 9px;
height: 9px;
border-radius: 50%;
}
.absence-journal-mark.applied { background: #34d399; box-shadow: 0 0 12px rgba(52, 211, 153, 0.6); }
.absence-journal-mark.rejected { background: #94a3b8; }
.absence-wizard-footer {
margin-top: auto;
border-top: 1px solid var(--bg-card-border);
}
.absence-wizard-footer > div {
display: flex;
gap: 0.65rem;
}
.teacher-dialogue-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}
.teacher-dialogue-card {
min-width: 0;
border-radius: var(--radius-lg);
}
.teacher-dialogue-head {
display: flex;
align-items: start;
justify-content: space-between;
gap: 1rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--bg-card-border);
}
.teacher-dialogue-head h2 {
margin: .25rem 0;
font-size: 1.25rem;
}
.teacher-dialogue-head p {
max-width: 560px;
margin: 0;
color: var(--text-secondary);
font-size: .8rem;
line-height: 1.5;
}
.teacher-dialogue-counter {
display: grid;
min-width: 78px;
min-height: 70px;
place-items: center;
padding: .55rem;
border: 1px solid color-mix(in srgb, #f59e0b 28%, var(--bg-card-border));
border-radius: 14px;
background: color-mix(in srgb, #f59e0b 8%, var(--bg-input));
}
.teacher-dialogue-counter strong {
font-size: 1.5rem;
line-height: 1;
}
.teacher-dialogue-counter span {
color: var(--text-secondary);
font-size: .67rem;
}
.teacher-dialogue-toolbar {
display: flex;
align-items: stretch;
gap: .55rem;
margin: 1rem 0;
}
.teacher-dialogue-toolbar > select,
.teacher-dialogue-toolbar .custom-select-wrapper {
min-width: 0;
flex: 1 1 0;
}
.teacher-dialogue-toolbar > select {
min-height: 44px;
padding: 0.65rem 2.15rem 0.65rem 0.8rem;
border: 1px solid color-mix(in srgb, #f59e0b 24%, var(--bg-card-border));
border-radius: 11px;
background: var(--bg-input);
color: var(--text-primary);
font: inherit;
}
.teacher-dialogue-toolbar .custom-select-trigger {
min-height: 44px;
border-color: color-mix(in srgb, #f59e0b 24%, var(--bg-card-border));
border-radius: 11px;
background: color-mix(in srgb, var(--bg-input) 88%, #f59e0b 4%);
}
.teacher-dialogue-toolbar .custom-select-trigger:hover,
.teacher-dialogue-toolbar .custom-select-wrapper.open .custom-select-trigger {
border-color: color-mix(in srgb, #f59e0b 62%, var(--bg-card-border));
background: color-mix(in srgb, var(--bg-hover) 90%, #f59e0b 6%);
}
.teacher-dialogue-toolbar .custom-select-wrapper.open .custom-select-trigger,
.teacher-dialogue-toolbar .custom-select-trigger:focus {
box-shadow: 0 0 0 4px color-mix(in srgb, #f59e0b 20%, transparent);
}
.teacher-dialogue-toolbar .custom-select-menu {
border-color: color-mix(in srgb, #f59e0b 25%, var(--bg-card-border));
background: rgba(10, 10, 15, 0.96);
backdrop-filter: blur(20px) saturate(135%);
-webkit-backdrop-filter: blur(20px) saturate(135%);
}
.teacher-dialogue-toolbar .custom-select-item:hover:not(.disabled) {
background: color-mix(in srgb, #f59e0b 10%, var(--bg-hover));
}
.teacher-dialogue-toolbar .custom-select-item.selected {
background: color-mix(in srgb, #f59e0b 18%, var(--bg-input));
color: var(--text-primary);
}
[data-theme="light"] .teacher-dialogue-toolbar .custom-select-menu {
background: rgba(255, 255, 255, 0.96);
box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.04) inset;
}
.teacher-dialogue-list {
display: grid;
gap: .65rem;
max-height: 680px;
overflow-y: auto;
}
.teacher-dialogue-item {
display: grid;
grid-template-columns: 7px minmax(0, 1fr);
gap: .85rem;
padding: .85rem;
border: 1px solid var(--bg-card-border);
border-radius: 13px;
background: color-mix(in srgb, var(--bg-input) 68%, transparent);
}
.teacher-dialogue-mark {
grid-row: 1 / 3;
border-radius: 99px;
background: #94a3b8;
}
.teacher-dialogue-mark.preference-hard_unavailable { background: #fb7185; }
.teacher-dialogue-mark.preference-soft_preferred { background: #34d399; }
.teacher-dialogue-mark.preference-soft_unwanted { background: #f59e0b; }
.teacher-dialogue-mark.preference-consecutive,
.teacher-dialogue-mark.preference-no_gaps { background: #60a5fa; }
.teacher-dialogue-mark.change-move { background: #60a5fa; }
.teacher-dialogue-mark.change-change_classroom { background: #a78bfa; }
.teacher-dialogue-mark.change-cancel { background: #fb7185; }
.teacher-dialogue-copy small {
color: var(--text-secondary);
font-size: .68rem;
}
.teacher-dialogue-copy {
min-width: 0;
overflow-wrap: anywhere;
}
.teacher-dialogue-copy h3 {
margin: .22rem 0;
font-size: .92rem;
}
.teacher-dialogue-copy p {
margin: 0;
color: var(--text-secondary);
font-size: .77rem;
}
.teacher-dialogue-copy blockquote {
margin: .6rem 0 0;
padding: .5rem .65rem;
border-left: 2px solid #f59e0b;
background: color-mix(in srgb, #f59e0b 6%, transparent);
color: var(--text-primary);
font-size: .76rem;
}
.teacher-dialogue-review {
display: block;
margin-top: .55rem;
color: #34d399;
font-size: .72rem;
}
.teacher-dialogue-copy details {
margin-top: .55rem;
color: var(--text-secondary);
font-size: .7rem;
}
.teacher-dialogue-copy summary { cursor: pointer; }
.teacher-dialogue-copy ol { display: grid; gap: .3rem; padding-left: 1.15rem; }
.teacher-dialogue-action {
grid-column: 2;
min-width: 0;
display: flex;
flex-direction: column;
align-items: stretch;
gap: .55rem;
}
.teacher-dialogue-action > div {
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
gap: .5rem;
}
.teacher-dialogue-action > div > .btn {
flex: 1 1 120px;
min-width: 0;
white-space: normal;
line-height: 1.35;
padding-block: 0.4rem;
}
.teacher-dialogue-toolbar > .btn {
align-self: center;
min-height: 44px;
}
.teacher-dialogue-comment {
width: 100%;
min-height: 36px;
padding: 0 .65rem;
border: 1px solid var(--bg-card-border);
border-radius: 8px;
background: var(--bg-input);
color: var(--text-primary);
}
@media (max-width: 1100px) {
.absence-command-card,
.absence-form-grid {
grid-template-columns: 1fr 1fr;
}
.absence-command-stats,
.absence-reason-field {
grid-column: 1 / -1;
}
.absence-create-submit {
justify-self: start;
}
.absence-registry-item {
grid-template-columns: 68px minmax(0, 1fr);
}
.absence-registry-buttons {
grid-column: 2;
justify-content: flex-start;
max-width: none;
}
.teacher-dialogue-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 760px) {
.absence-command-card,
.absence-form-grid,
.absence-registry-item,
.absence-lesson {
grid-template-columns: 1fr;
}
.teacher-dialogue-toolbar {
flex-wrap: wrap;
}
.teacher-dialogue-toolbar .custom-select-wrapper,
.teacher-dialogue-toolbar > select,
.teacher-dialogue-toolbar > .btn {
flex: 1 1 100%;
}
.absence-command-stats {
grid-template-columns: repeat(3, 1fr);
}
.absence-registry-head,
.absence-registry-actions,
.absence-wizard-header,
.absence-wizard-footer {
align-items: stretch;
flex-direction: column;
}
.absence-date-rail {
grid-template-columns: auto auto 1fr auto auto;
min-height: auto;
padding: 0 0 0.75rem;
border-right: 0;
border-bottom: 1px solid var(--bg-card-border);
}
.absence-date-rail i {
grid-column: auto;
width: auto;
margin: 0 0.5rem;
}
.absence-registry-buttons {
grid-column: auto;
}
.absence-lesson-time {
display: grid;
grid-template-columns: auto auto 1fr;
gap: 0.4rem;
padding: 0 0 0.65rem;
border-right: 0;
border-bottom: 1px solid var(--bg-card-border);
}
.absence-wizard-overlay {
padding: 0;
}
.absence-wizard {
width: 100%;
max-height: 100vh;
min-height: 100vh;
border-radius: 0;
}
.teacher-dialogue-toolbar,
.teacher-dialogue-head {
align-items: stretch;
flex-direction: column;
}
.teacher-dialogue-item {
grid-template-columns: 7px minmax(0, 1fr);
}
.teacher-dialogue-action {
grid-column: 2;
align-items: stretch;
}
}