@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;600;800&display=swap');
@font-face {
  font-family: 'Leo';
  src: url('../font/Manrope-Medium.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Leo';
  src: url('../font/Manrope-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
:root {
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #444;
    --bs-soft: #f5f8fb;
    --bs-black: #1f1f1f;
    --bs-soft-indigo: #f5e8ff;
    --bs-soft-green: #2CA58D;
    --bs-gray-100: #f3f7fa;
    --bs-gray-200: #f5f8fb;
    --bs-gray-300: #F0F3F6;
    --bs-gray-400: #eaedf2;
    --bs-gray-500: #d1d7e0;
    --bs-gray-600: #93a5be;
    --bs-gray-700: #66799e;
    --bs-gray-800: #506690;
    --bs-facebook: #3b5999;
    --bs-twitter: #1da1f2;
    --bs-google: #DB4337;
    --bs-instagram: #e4405f;
    --bs-pinterest: #bd081c;
    --bs-youtube: #cd201f;
    --bs-slack: #3aaf85;
    --bs-dribbble: #ea4c89;
    --bs-dropbox: #1E90FF;
    --bs-twitch: #4B367C;
    --bs-paypal: #ecb32c;
    --bs-behance: #0057ff;
    --bs-reddit: #E84422;
    --bs-github: #222222;
    --bs-font-sans-serif: "Leo", sans-serif;
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    --bs-dropdown-link-active-bg: #9da6aa;

    --fc-event-border-color: #7e7e7e;
    --fc-list-event-hover-bg-color: #5c5c5c;
}

html {
  font-size: 14px;
  letter-spacing: 0.2px;
}

body {
    margin: 0;
    font-family: var(--bs-font-sans-serif);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #444;
    background-color: #eef0f1; /* f5f8fb */
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(46, 54, 80, 0);
}

label {
    font-weight: 500;
    margin-bottom: .2rem;
    color: #222;
}

h5 {
    color: #333;
}

pre {
    white-space: pre-wrap;
}

.popover{
    max-width: 100%; /* Max Width of the popover (depending on the container!) */
}

svg.icon-sm {
    width: 0.875rem;
    height: 0.875rem;
    min-width: 0.875rem;
    min-height: 0.875rem;
    max-width: 0.875rem;
    max-height: 0.875rem;
}
svg.icon-md {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    max-width: 1rem;
    max-height: 1rem;
}
svg.icon {
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    min-height: 1.25rem;
    max-width: 1.25rem;
    max-height: 1.25rem;
}
svg.icon-lg {
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    min-height: 1.5rem;
    max-width: 1.5rem;
    max-height: 1.5rem;
}
svg.icon-xl {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    max-width: 2rem;
    max-height: 2rem;
}
svg.icon-2xl {
    width: 2.4rem;
    height: 2.4rem;
    min-width: 2.4rem;
    min-height: 2.4rem;
    max-width: 2.4rem;
    max-height: 2.4rem;
}

.required:after {
    content:" *";
    color: red;
}

.card {
    --bs-card-border-radius: 0.75rem;
    --bs-card-inner-border-radius: calc(0.75rem - var(--bs-card-border-width));
}

.btn {
    --bs-btn-border-radius: 0.65rem;
    box-shadow: none !important;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0c56d0;
}

.btn-orange {
    color: #fff;
    background-color: #ff4800;
}

.btn-orange:hover {
    color: #fff;
    background-color: #ff782a;
    border-color: #ff782a;
}

.text-bg-orange {
    color: #fff !important;
    background-color: #fd7e14 !important;
}

.btn-notification {
    color: #fff;
    background-color: #96079b;
}

.btn-notification:hover {
    color: #fff;
    background-color: #730876;
    border-color: #730876;
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    text-align: center;
    color: #444;
    font-size: 1.15em;
    vertical-align: middle;
}

svg.sidebar-icon {
    overflow: visible;
}

.notification-container {
    position: relative;
    display: inline-block;
}

#notification-tooltip {
    background-color: #fff28b;
    color: #262626;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 5px;
    z-index: 999;
    top: 51px; /* Position of the tooltip above the bell icon */
    left: 52%;
    transform: translateX(-50%);
    /* opacity: 0; */
    /* transition: opacity 0.3s ease; */
    white-space: nowrap;
    border: 1px solid #c49425;
    position: relative;
    box-shadow: 0 .135rem .40rem rgba(193, 193, 193, 0.75);
}

#notification-tooltip.show {
    opacity: 1;
}

#notification-tooltip::before {
    content: "";
    display: block;
    position: absolute;
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent #c49425 transparent;
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
    z-index: 999;
}
#notification-tooltip::after {
    content: "";
    display: block;
    position: absolute;
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent #fff28b transparent;
    left: 50%;
    top: -7px;
    transform: translateX(-50%);
    z-index: 999;
}

.hidden {
    display: none;
}

.dropdown-menu{
    margin-top: 0;
}

@keyframes blink {
    0% { opacity: 1; }
    30% { opacity: 1; }
    50% { opacity: 0; }
    70% { opacity: 1; }
    100% { opacity: 1; }
}

.badge-team {
    font-size: 12px;
}

.blinking-badge {
    animation: blink 2s infinite;
}

.has-search .form-control {
    padding-left: 2.375rem;
}

.has-search .form-control-feedback {
    position: absolute;
    z-index: 2;
    display: block;
    width: 2.375rem;
    height: 2.375rem;
    line-height: 2.375rem;
    text-align: center;
    pointer-events: none;
    color: #aaa;
}

.content {
    /* overflow: hidden; */
    padding: 0 1rem 0 1rem;
    height: 100%;
    transition: all 0.2s; }
    @media (prefers-reduced-motion: reduce) {
      .content {
        transition: none; } }
    @media (min-width: 992px) {
      .content {
        margin-left: 180px; } }

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container, .container-sm {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container, .container-sm, .container-md {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container, .container-sm, .container-md, .container-lg {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl {
        max-width: 1140px;
    }
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 .15rem rgba(13,110,253,.25);
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection, .select2-container--bootstrap-5.select2-container--open .select2-selection {
    box-shadow: 0 0 0 .15rem rgba(13,110,253,.25);
}

.inactive-user {
    color: #626669 !important;
}

.last-row, .last-row:hover{
    border-bottom: 2px solid black !important;
    --bs-table-accent-bg: white !important;
}

.errorlist {
    list-style-type: none;
    margin-top: 0.4em;
    color: red;
}

ul.errorlist li:before {
    content: '\2014';
    position: absolute;
    margin-left: -25px;
  }

/* Page Loader overlay */
#loader {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 1;
    background-color: #f5f8fb;
    z-index: 1100;
}
#modal-loader {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.6;
    background-color: #f5f8fb;
    z-index: 1100;
}
.modal-overlay {
    color: #666666;
    position: absolute;
    text-align: center;
    height: 100%;
    width: 100%;
    z-index: 1000;
    /*padding-top: 10%;*/
    opacity: 0.8;
    background-color: #f5f8fb;
    border-color: #f5f8fb;
    border-radius: .3rem;
    transition: opacity 0.3s ease;
}
.modal-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -1vmax;
    opacity: 0.8;
}
.load-overlay {
    color: #666666;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0.7;
    z-index: 2000;
    background-color: #f5f8fb;
    border-color: #f5f8fb;
    border-radius: .3rem;
}
.calendar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #666666;
    background-color: #f5f8fb;
    opacity: 0.7;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
  }

.bg-live {
    background-color: #b5ffe6;
}

.bg-wait {
    background-color: #e4e4e4;
}

.bg-warning-soft {
    background-color: #fff9db;
}

.fc-event-time, .fc-event-title {
    padding: 0 1px;
    white-space: normal;
}
.fc-daygrid-dot-event:hover, .fc-daygrid-dot-event.fc-event-mirror {
    background: rgba(0, 0, 0, 0.6);
}
/* .fc-daygrid-event-dot, .fc-list-event-dot {
    border-color: white !important;
} */
/* .fc-event-main-frame {
    color: white !important;
} */
.fc-event-title {
    font-weight: normal;
}
.fc .fc-daygrid-body-natural .fc-daygrid-day-events {
    margin-bottom: 0;
}
.fc-direction-ltr .fc-daygrid-event .fc-event-time {
    /* font-weight: bold; */
    margin-left: 0.3em;
    white-space: nowrap;
}
.fc-timegrid-event .fc-event-time {
    font-size: 1em;
}
.fc-v-event .fc-event-title {
    font-size: 1em;
    margin-left: 0.5em;
    font-weight: bold;
}
/* .fc-direction-ltr .fc-list-table .fc-list-event-graphic {
    display: none;
} */
.fc-list-event-time, .fc-list-event-title a {
    /*color: white !important;*/
    font-weight: bold;
}
.fc .fc-list-event.fc-event-forced-url:hover a {
    text-decoration: none;
}
.fc-direction-ltr .fc-timegrid-slot-label-frame {
    text-align: left;
    margin-left: 0.3em;
}
.fc-h-event .fc-event-time {
    overflow: visible;
}
a.event {
    color: var(--bs-white) !important;
    text-decoration: none;
}
@media screen and (max-width:767px) { 
    .fc-toolbar.fc-header-toolbar {
        font-size: 80%
    }
    .fc-toolbar.fc-header-toolbar {
        flex-direction:column;
    } 
    .fc-toolbar-chunk { 
        display: table-row; 
        text-align:center; 
        padding:5px 0; 
    }
}
@media screen and (max-width:1200px) { 
    .fc-daygrid-block-event .fc-event-time, .fc-daygrid-block-event .fc-event-title {
        margin-left: 0.3em;
    }
    .fc-h-event .fc-event-main-frame {
        display: block;
    }
}
.fc-v-event .fc-event-main-frame {
    flex-direction: row;
}
.fc .fc-list-event:hover td {
    background-color: rgb(0, 0, 0, 0.1);
}

.font-size-100 {
    font-size: 100%;
}
.font-size-110 {
    font-size: 110%;
}
.font-size-115 {
    font-size: 115%;
}
.font-size-120 {
    font-size: 120%;
}
.font-size-125 {
    font-size: 125%;
}
.font-size-150 {
    font-size: 150%;
}
.font-size-175 {
    font-size: 175%;
}
.font-size-200 {
    font-size: 200%;
}

.scale-90 {
    font-size: 90%;
}

.scale-120 {
    transform: scale(1.2);
}

.custom-thead {
    background-color: #f0f0f0;
}

.custom-thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #f0f0f0;
}

.form-control-xs {
    padding: 0.25rem 0.4rem;
    font-size: 1rem;
    line-height: 1.2;
}

.btn-xs {
    padding: 0.25rem 0.4rem;
    font-size: 1rem;
    line-height: 1.2; 
    white-space: nowrap;
}

.notification-item p {
    margin-top: 0rem !important;
    margin-bottom: 0rem !important;
}

/* .notification-item p:first-child {
    margin-top: 0.2rem !important;
    margin-bottom: 0rem !important;
} */

.tr-hover:hover {
    background-color: #ecfaf3; /* Цвет подсветки при наведении */
}

.light-overlay {
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8));
}

.calendar-event-header {
    margin-top: -0.2rem;
}

.calendar-event-card-header {
    padding: 0.3rem 0.9rem 0.2rem 0.9rem;
    border-bottom: none;
}

.calendar-event-card-body {
    padding: 0.7rem 1rem;
}

.calendar-event-header i {
    height: 35px;
    width: 35px;
    cursor: pointer;
    text-align: center;
    line-height:35px;
    border-radius: 50%;
    user-select: none;
    color: #aeabab;
    font-size: 1rem;
    /* margin-top: -0.1rem; */
}

.calendar-event-header i:hover {
    background: #f2f2f2;
}

.card-internal {
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
}

.teacher-todo-list {
    --bs-list-group-border-color: #dfe5eb;
    border-radius: 0.65rem;
    overflow: hidden;
}

.todo-calendar-link {
    min-height: 2.5rem;
    padding: .5rem .9rem;
    color: #96079b;
    background-color: #f8eafa;
    border: 1px solid #e8c5ea;
    border-radius: .75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: none;
}

.todo-calendar-link .icon {
    width: 1.1rem;
    height: 1.1rem;
    color: #96079b;
}

.todo-calendar-link:hover,
.todo-calendar-link:focus-visible {
    color: #730876;
    background-color: #f3dcf5;
    border-color: #dca9df;
    box-shadow: none;
}

.family-ejournal-link {
    min-height: 2.5rem;
    padding: .5rem .9rem;
    color: #176b55;
    background-color: #e8f5f0;
    border: 1px solid #b9dfd1;
    border-radius: .75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: none;
}

.family-ejournal-link .icon {
    width: 1.1rem;
    height: 1.1rem;
    color: #176b55;
}

.family-ejournal-link:hover,
.family-ejournal-link:focus-visible {
    color: #10513f;
    background-color: #d9eee6;
    border-color: #8fcbb8;
    box-shadow: none;
}

.teacher-todo-list .list-group-item {
    min-height: 4.25rem;
    padding: 0.65rem 0.8rem;
}

.teacher-todo-list .list-group-item:hover {
    background-color: #f8fafc;
}

.teacher-todo-list .flex-grow-1 {
    min-width: 0;
}

.teacher-todo-icon {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    border-radius: 0.75rem;
}

.teacher-todo-icon-homework {
    color: #1769aa;
    background-color: #e8f3fc;
}

.teacher-todo-icon-assessment {
    color: #8a6200;
    background-color: #fff4cf;
}

.teacher-todo-icon-calendar {
    color: #287a49;
    background-color: #e7f6ec;
}

.teacher-todo-icon-danger {
    color: #b42332;
    background-color: #fdebed;
}

.teacher-todo-icon-neutral {
    color: #687d8a;
    background-color: #edf2f5;
}

.teacher-action-card {
    display: block;
    width: 100%;
    min-height: 7rem;
    height: 100%;
    padding: 0.9rem 1rem;
    color: #2d4554;
    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 0.75rem;
    font: inherit;
    text-align: left;
    text-decoration: none;
    box-shadow: none;
    transition: background-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}

.teacher-action-card-classes,
.teacher-action-card-journal,
.teacher-action-card-alert,
.teacher-action-card-warning,
.teacher-action-card-neutral {
    background: #f8f9fa;
}

.teacher-action-card:hover {
    color: #173f58;
    filter: brightness(0.985);
}

.teacher-action-icon {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: 0.5rem;
}

.teacher-action-icon-classes,
.teacher-action-icon-journal,
.teacher-action-icon-alert,
.teacher-action-icon-warning,
.teacher-action-icon-neutral {
    color: #687d8a;
    background: #edf2f5;
}

.teacher-action-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.teacher-action-header strong {
    color: #667781;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-transform: uppercase;
}

.teacher-action-value {
    display: block;
    margin: 0.45rem 0 0.25rem;
    color: #173f58;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
}

.teacher-action-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: #6c7e89;
    font-size: 0.82rem;
    font-weight: 400;
}

.teacher-performance-metric {
    background: #f8f9fa;
    border: 1px solid #e2e7eb;
    border-radius: 0.6rem;
}

.teacher-performance-metric .h2,
.teacher-performance-metric .h3 {
    color: #304b5b;
    font-weight: 500;
}

.teacher-lesson-panel {
    padding: 0.9rem;
    background: #f8f9fa;
    border: 1px solid #e2e7eb;
    border-radius: 0.65rem;
}

.teacher-lesson-panel + .teacher-lesson-panel {
    margin-top: 0.75rem;
}

.teacher-lesson-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.teacher-lesson-header h5 {
    flex: 1 1 auto;
}

.teacher-lesson-start {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.65rem 0.3rem 0.35rem;
    color: #d92f45;
    background: #ffe8ec;
    border: 1px solid #f3aeb8;
    border-radius: 0.5rem;
    font-weight: 600;
    box-shadow: none;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.teacher-lesson-start-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    color: #c91f37;
    background: #ffcbd3;
    border-radius: 0.38rem;
}

.teacher-lesson-start:hover,
.teacher-lesson-start:focus-visible {
    color: #c91f37;
    background: #ffdbe1;
    border-color: #ea8997;
    box-shadow: 0 0 0 0.2rem rgba(217, 47, 69, 0.13);
    transform: none;
}

.teacher-lesson-start:hover .teacher-lesson-start-icon,
.teacher-lesson-start:focus-visible .teacher-lesson-start-icon {
    color: #b8172d;
    background: #f8acb8;
}

.teacher-lesson-teams {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.8rem;
}

.teacher-lesson-teams .badge {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
}

.teacher-lesson-details {
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #fff;
    border: 1px dashed #d6dee3;
    border-radius: 0.5rem;
}

.teacher-lesson-details .teacher-lesson-teams {
    margin-top: 0;
}

.teacher-lesson-details .teacher-lesson-meta {
    margin-top: 0.65rem;
}

.teacher-lesson-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1rem;
    margin-top: 0.8rem;
}

.teacher-lesson-meta > span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.teacher-lesson-meta small,
.teacher-lesson-meta strong {
    display: block;
}

.teacher-lesson-meta small {
    color: #71828d;
    font-size: 0.7rem;
    line-height: 1.1;
}

.teacher-lesson-meta strong {
    margin-top: 0.1rem;
    color: #304b5b;
    font-size: 0.85rem;
    font-weight: 600;
}

.teacher-lesson-empty {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    color: #71828d;
    background: #fff;
    border: 1px dashed #d6dee3;
    border-radius: 0.5rem;
}

.teacher-lesson-empty strong,
.teacher-lesson-empty small {
    display: block;
}

.teacher-lesson-empty strong {
    color: #536b79;
    font-size: 0.875rem;
}

.teacher-attention-card {
    overflow: hidden;
}

.teacher-attention-header {
    padding: 1rem 1rem 0;
    background: #fff;
    border-bottom: 0;
}

.teacher-attention-card-active .teacher-attention-header {
    background: #fff;
}

.teacher-attention-title-icon {
    display: inline-grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.45rem;
    color: #687d8a;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.teacher-attention-card-active .teacher-attention-title-icon {
    color: #b84141;
}

.teacher-attention-badge-high {
    color: #bd3e46;
    background: #fff0f1;
}

.teacher-attention-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.teacher-attention-summary > div {
    padding: 0.6rem 0.7rem;
    border: 1px solid;
    border-radius: 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.teacher-attention-summary-academic { color: #bd3e46; background: #fff2f2; border-color: #efc5c5 !important; }
.teacher-attention-summary-open { color: #2769a9; background: #eef6ff; border-color: #c8ddf5 !important; }

.teacher-attention-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #e0e6ea;
    border-left-width: 4px;
    border-radius: 0.65rem;
}

.teacher-attention-item-academic { border-left-color: #cf4a50; }
.teacher-attention-item-icon {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    color: #b84141;
    background: #fff0f1;
    border-radius: 0.5rem;
}

.teacher-attention-item-content strong,
.teacher-attention-item-content span {
    display: block;
}

.teacher-attention-item-content strong { color: #233f50; font-size: 0.9rem; }
.teacher-attention-item-content span { margin-top: 0.15rem; color: #71828d; font-size: 0.75rem; }

.teacher-attention-item-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.teacher-attention-empty {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border: 1px solid #e2e7eb;
    border-radius: 0.6rem;
}

.teacher-attention-empty strong,
.teacher-attention-empty span { display: block; }
.teacher-attention-empty span { color: #71828d; font-size: 0.78rem; }

@media (max-width: 767.98px) {
    .teacher-attention-summary { grid-template-columns: 1fr; }
    .teacher-attention-item { grid-template-columns: auto minmax(0, 1fr); }
    .teacher-attention-item-action { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (max-width: 575.98px) {
    .teacher-lesson-meta {
        grid-template-columns: 1fr;
    }
}

.teacher-classes-modal-content {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
}

.teacher-classes-modal-header {
    background: linear-gradient(135deg, #f7fbfe, #fff);
}

.operational-term {
    color: #385b6c;
    font-weight: 700;
    white-space: nowrap;
}

.operational-task-list {
    background: #f7f9fa;
}

.operational-term-heading {
    display: flex;
    align-items: center;
    color: #304b5b;
    font-size: 0.92rem;
    font-weight: 700;
}

.operational-task-row {
    display: grid;
    grid-template-columns: 3.5rem minmax(18rem, 1.8fr) minmax(13rem, 1fr) 9.5rem;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem;
    background: #fff;
    border: 1px solid #dfe7eb;
    border-radius: 0.65rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.operational-task-row:hover {
    background: #fbfdfe;
    border-color: #cbd9df;
}

.operational-task-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    color: #174e68;
    background: #edf5f8;
    border-radius: 0.55rem;
    line-height: 1;
}

.operational-task-date strong { font-size: 1.15rem; }
.operational-task-date span { margin-top: 0.18rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.operational-task-date small { margin-top: 0.18rem; color: #71828d; font-size: 0.62rem; }

.operational-task-main,
.operational-task-responsible,
.operational-task-deadline { min-width: 0; }

.operational-task-title {
    display: block;
    color: #173f56;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.operational-task-note,
.operational-task-evidence {
    margin-top: 0.28rem;
    color: #687984;
    font-size: 0.73rem;
    line-height: 1.35;
}

.operational-task-evidence { color: #536b79; }

.operational-task-responsible > small,
.operational-task-deadline > small {
    display: block;
    color: #7b8992;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.operational-task-deadline strong {
    display: block;
    margin-top: 0.25rem;
    color: #304b5b;
    font-size: 0.82rem;
}

@media (max-width: 1199.98px) {
    .operational-task-row { grid-template-columns: 3.5rem minmax(0, 1fr) 9.5rem; }
    .operational-task-responsible { grid-column: 2 / -1; }
}

@media (max-width: 767.98px) {
    .operational-task-row { grid-template-columns: 3.25rem minmax(0, 1fr); }
    .operational-task-responsible,
    .operational-task-deadline { grid-column: 2; }
}

.operational-area {
    padding: 0.42rem 0.55rem;
    font-size: 0.75rem;
}

.operational-editor-heading-icon {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    color: #174e68;
    background: #eaf3f7;
    border-radius: 0.65rem;
}

.operational-editor-section {
    overflow: visible;
    background: #fff;
    border: 1px solid #d9e2e8;
    border-radius: 0.65rem;
}

.operational-editor-section-header {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.8rem;
    background: #f8fafb;
    border-bottom: 1px solid #d9e2e8;
    border-radius: 0.65rem 0.65rem 0 0;
}

.operational-task-modal-content,
.operational-task-modal-content > .operational-task-form {
    display: contents;
}

#operationalTaskModal .select2-container {
    display: block;
    width: 100% !important;
}

#operationalTaskModal .select2-container .select2-selection--multiple {
    position: relative;
    min-height: 2.65rem;
    padding: 0.2rem 2.25rem 0.2rem 0.35rem;
    border-color: #d1d7e0;
    border-radius: 0.5rem;
    cursor: pointer;
}

#operationalTaskModal .select2-selection--multiple .select2-selection__rendered,
#operationalTaskModal .select2-selection--multiple .select2-selection__choice,
#operationalTaskModal .select2-selection--multiple .select2-selection__choice__remove,
#operationalTaskModal .select2-selection--multiple .select2-selection__search,
#operationalTaskModal .select2-results__option {
    cursor: pointer;
}

#operationalTaskModal .operational-responsible-select:not(.operational-recipient-groups) + .select2-container .select2-search__field,
#operationalTaskModal .select2-dropdown .select2-search__field {
    cursor: text;
}

#operationalTaskModal .operational-recipient-groups + .select2-container .select2-search__field {
    cursor: pointer;
}

#operationalTaskModal .select2-container .select2-selection--multiple::after {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    width: 0.5rem;
    height: 0.5rem;
    content: "";
    border-right: 2px solid #61717b;
    border-bottom: 2px solid #61717b;
    transform: translateY(-65%) rotate(45deg);
    transition: transform .15s ease;
    pointer-events: none;
}

#operationalTaskModal .select2-container--open .select2-selection--multiple::after {
    transform: translateY(-25%) rotate(225deg);
}

#operationalTaskModal .select2-container--focus .select2-selection--multiple,
#operationalTaskModal .select2-container--open .select2-selection--multiple {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#operationalTaskModal .select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: #334b59;
    background: #edf3f6;
    border-color: #d5e1e7;
    border-radius: 0.35rem;
}

#operationalTaskModal .select2-container--open {
    z-index: 1065;
}

.operational-task-title {
    color: #174e68;
    text-decoration: none;
}

.operational-task-title:hover {
    color: #0e2a3b;
    text-decoration: underline;
}

.operational-comments {
    min-width: 260px;
    max-width: 360px;
    color: #61737e;
}

.operational-status {
    min-width: 135px;
    border-radius: 0.55rem;
    font-weight: 600;
}

.operational-status-badge {
    padding: 0.42rem 0.58rem;
    border: 1px solid #dce5ea;
    color: #536b79;
    background: #f5f8fa;
}

.operational-status-in_progress,
.operational-status-submitted { color: #27618c; background: #eaf4ff; border-color: #c7ddf4; }
.operational-status-completed { color: #18734a; background: #e9f7ef; border-color: #c6e6d4; }
.operational-status-overdue { color: #bd3545; background: #fff0f2; border-color: #f3c5cb; }
.operational-status-not_applicable { color: #77838b; background: #f5f6f7; border-color: #dfe3e6; }

.operational-responsible-menu {
    max-height: min(32rem, 65vh);
    overflow-y: auto;
    border-color: #d8e5eb;
    box-shadow: 0 0.8rem 2rem rgba(14, 42, 59, 0.14);
}

.operational-choice-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.teacher-class-card {
    padding: 1rem;
    background: #fff;
    border: 1px solid #dfe5eb;
    border-left: 4px solid var(--team-color, #6c757d);
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.35rem rgba(14, 42, 59, 0.05);
}

.teacher-class-icon {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    color: var(--team-color, #536b7a);
    background: #f2f6f8;
    border-radius: 0.75rem;
}

.teacher-class-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.teacher-class-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.65rem;
    color: #425866;
    background: #f7f9fa;
    border: 1px solid #d9e1e6;
    border-radius: 0.6rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.teacher-class-action:hover {
    color: #173f58;
    background: #edf4f8;
    border-color: #b9cbd6;
    transform: translateY(-1px);
}

.teacher-class-students {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e7eb;
}

.teacher-class-student-list {
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8ec;
    border-radius: 0.5rem;
    counter-reset: class-student;
}

.teacher-class-student {
    counter-increment: class-student;
    min-height: 2rem;
    padding: 0.3rem 0.55rem;
    background: #fff;
    border-bottom: 1px solid #edf0f2;
    font-size: 0.875rem;
    list-style: none;
}

.teacher-class-student:last-child {
    border-bottom: 0;
}

.teacher-class-student::before {
    content: counter(class-student) ".";
    width: 1.5rem;
    flex: 0 0 1.5rem;
    color: #84929b;
    font-size: 0.75rem;
    text-align: right;
}

.teacher-class-student-empty {
    padding: 0.5rem 0.75rem;
    list-style: none;
}

.teacher-student-status {
    min-width: 1.7rem;
    padding: 0.25rem 0.35rem;
    font-size: 0.65rem;
    line-height: 1;
}

@media (max-width: 767.98px) {
    .teacher-class-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.bg-green {
    background-color: #b4f2ad;
    border: 1px solid #b2eeb6;
}

.bg-mint-green {
    background-color: #e9fde7;
    border: 1px solid #d4f2d6;
}

.bg-lime-green {
    background-color: #f1f7d4;
    border: 1px solid #e6ecca;
}

.bg-yellow {
    background-color: #f7f59c;
    border: 1px solid #e6e5a5;
}

.bg-light-yellow {
    background-color: #fffec9;
    border: 1px solid #eceba3;
}

.bg-lightest-yellow {
    background-color: #ffffef;
    border: 1px solid #f4f4c3;
}

.border-lightest-yellow {
    border: 1px solid #f4f4c3;
}

.bg-light-pink {
    background-color: #ffe3e3;
    border: 1px solid #f2d5d5;
}

.light-pink {
    background-color: #ffeaea;
}

.bg-gray {
    background-color: #d5d5d5;
    border: 1px solid #d0d0d0;
}

.bg-light-gray {
    background-color: #f4f4f4;
    border: 1px solid #e3e3e3;
}

.border-light-gray {
    border: 1px solid #e3e3e3;
}

.bg-blue {
    background-color: #caf2ff;
    border: 1px solid #c4d6f2;
}

.bg-light-blue {
    background-color: #effbff;
    border: 1px solid #d1e3ff;
}

.bg-light-green {
    background-color: #eef9f1;
    border: 1px solid #d5eadb;
}

/* Teacher performance dashboard: Bootstrap handles layout; these styles mirror the supplied visual. */
.teacher-performance-dashboard {
    --tp-navy: #0e2a3b;
    --tp-text: #244253;
    --tp-muted: #5f7686;
    --tp-gold: #d8b24c;
    --tp-green: #15824b;
    --tp-green-soft: #eaf7ef;
    --tp-amber: #b77a00;
    --tp-amber-soft: #fff7df;
    color: var(--tp-text);
}

.tp-dashboard-header {
    background: radial-gradient(circle at top right, rgba(216, 178, 76, .16), transparent 34%), linear-gradient(135deg, #eaf4fa 0%, #fff 58%);
    border-radius: 1.25rem;
}

.tp-dashboard-avatar {
    border: 3px solid rgba(216, 178, 76, .75);
    border-radius: 1.1rem;
}

.tp-dashboard-eyebrow { color: var(--tp-gold); letter-spacing: .12em; }
.tp-dashboard-title { color: var(--tp-navy); letter-spacing: -.035em; }
.tp-dashboard-muted { color: var(--tp-muted); }

.tp-dashboard-panel {
    background: linear-gradient(135deg, #fff 0%, #f8fcff 100%);
    border-radius: 1.1rem;
}

.tp-overall-score {
    color: var(--tp-navy);
    font-size: clamp(3.75rem, 7vw, 5.5rem);
    line-height: .9;
    letter-spacing: -.065em;
}

.tp-status-good { background: var(--tp-green-soft); color: var(--tp-green); }
.tp-progress-track { background: #e5edf3; }
.tp-benchmark-current { background: #f1faf5; border-color: #b8dfc8 !important; }

.tp-chart-track {
    height: 150px;
    background: linear-gradient(to top, #edf3f7, #f8fbfd);
}

.tp-chart-bar { background: linear-gradient(180deg, #7d9bad, #345b72); }
.tp-chart-bar-current { background: linear-gradient(180deg, #e7c563, #b88a19); }
.tp-comparison-badge { border-radius: 999px; font-size: .8rem; font-weight: 800; }
.tp-comparison-positive { background: var(--tp-green-soft); color: var(--tp-green); }
.tp-comparison-neutral { background: #edf3f7; color: var(--tp-text); }
.tp-comparison-negative { background: var(--tp-amber-soft); color: var(--tp-amber); }

.tp-kpi-tile { background: rgba(255, 255, 255, .86); border-radius: .95rem; }
.tp-kpi-heading { color: var(--tp-navy); font-size: 1.35rem; font-weight: 800; }
.tp-kpi-title { color: var(--tp-text); font-size: .95rem; font-weight: 800; }
.tp-kpi-caption { color: var(--tp-muted); font-size: .78rem; line-height: 1.45; }
.tp-kpi-score { color: var(--tp-navy); font-size: 1.45rem; font-weight: 900; line-height: 1; }
.tp-strengths-panel { background: linear-gradient(145deg, #f7fcf9, #eaf7ef); }
.tp-priorities-panel { background: linear-gradient(145deg, #fffdf7, #fff7df); }

.tp-insight-heading { color: var(--tp-navy); }
.tp-insight-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
}
.tp-insight-icon-strength { background: var(--tp-green-soft); color: var(--tp-green); }
.tp-insight-icon-priority { background: var(--tp-amber-soft); color: var(--tp-amber); }
.tp-insight-row { border-color: #dfe9ef !important; border-radius: 15px !important; }
.tp-insight-mark {
    display: inline-grid;
    place-items: center;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 800;
}
.tp-insight-mark-strength { background: var(--tp-green-soft); color: var(--tp-green); }
.tp-insight-mark-priority { background: var(--tp-amber-soft); color: var(--tp-amber); }
.tp-benchmark-mark {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 13px;
    font-size: .85rem;
    font-weight: 800;
}
.tp-benchmark-mark-current { background: #fff; color: var(--tp-green); }
.tp-benchmark-mark-neutral { background: #edf5f9; color: #173f58; }
.tp-benchmark-mark-outstanding { background: var(--tp-amber-soft); color: #173f58; }

@media (max-width: 700px) {
    .tp-dashboard-avatar { width: 64px !important; height: 64px !important; }
    .tp-chart-track { height: 120px; }
}

.document-generator-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    background: #edf5f9;
    color: #173f58;
}
.document-paper { background: #fff; color: #171717; }
.document-static-text { line-height: 1.55; }

.bg-light-beige {
    background-color: #FDF6E2;
    border: 1px solid #ffe5ca;
}

.remove-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
    margin-right: 0.2rem;
    margin-left: 0.1rem;
}

.remove-account-link:hover {
    background-color: #d0d0d0; 
}

.remove-account-link:hover i {
    color: red;
}

.remove-account-link i {
    font-size: 11px;
    color: #333;
    transition: color 0.2s;
}

.house-popover {
    --bs-popover-bg: #faf1ec;
    --bs-popover-border-color: #e3c2af;
    font-size: 100%;
    --bs-popover-body-color: #0c293b;
}

#calendar-tabs .calendar-section-tab-academic,
#calendar-tabs .calendar-section-tab-academic:hover,
#calendar-tabs .calendar-section-tab-academic.active {
    color: #2463a5;
}

#calendar-tabs .calendar-section-tab-admin,
#calendar-tabs .calendar-section-tab-admin:hover,
#calendar-tabs .calendar-section-tab-admin.active {
    color: #b33a46;
}

#calendar-tabs .calendar-section-tab-marketing,
#calendar-tabs .calendar-section-tab-marketing:hover,
#calendar-tabs .calendar-section-tab-marketing.active {
    color: #7047a8;
}

/* Operational task details */
.operational-task-detail-dialog {
    max-width: 800px;
}

#operationalTaskDetailModal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 1.25rem 3.5rem rgba(21, 44, 57, 0.24);
}

.operational-task-detail-header {
    padding: .85rem 1.25rem;
    background: #fff;
    border-bottom-color: #e1e7eb;
}

.operational-task-detail-header .modal-title {
    color: #223746;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.25;
}

.operational-task-detail-area {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #647783;
    font-size: .82rem;
}

.operational-task-detail-body {
    padding: 1rem 1.25rem 1.25rem;
}

.operational-task-detail-metric {
    display: flex;
    align-items: center;
    gap: .65rem;
    height: 100%;
    min-height: 64px;
    padding: .65rem .75rem;
    background: #fff;
    border: 1px solid #dce5ea;
    border-radius: .65rem;
}

.operational-task-detail-metric > span:last-child,
.operational-task-detail-metric small,
.operational-task-detail-metric strong {
    display: block;
}

.operational-task-detail-metric-icon {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    color: #667985;
    background: #edf1f3;
    border-radius: .55rem;
}

.operational-task-detail-metric-icon .icon {
    width: 1.05rem;
    height: 1.05rem;
}

.operational-task-detail-metric small {
    margin-bottom: .15rem;
    color: #71828d;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.operational-task-detail-metric strong {
    color: #2b4352;
    font-size: .86rem;
    line-height: 1.25;
}

.operational-task-detail-metric-status {
    background: #f2f7ff;
    border-color: #cbdcf4;
}

.operational-task-detail-metric-status .operational-task-detail-metric-icon {
    color: #667985;
    background: #edf1f3;
}

.operational-task-detail-metric-status strong {
    color: #1769c2;
}

.operational-task-detail-copy {
    display: grid;
    gap: 1rem;
}

.operational-task-detail-section h6 {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .35rem;
    color: #2b4352;
    font-size: .84rem;
    font-weight: 700;
}

.operational-task-detail-section h6 .icon {
    width: 1rem;
    height: 1rem;
    color: #667985;
}

.operational-task-detail-section p {
    margin: 0;
    color: #536a77;
    font-size: .9rem;
    line-height: 1.55;
}

.operational-task-status-form {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e7ecef;
}

.operational-task-status-form .flex-grow-1 {
    max-width: 220px;
}

@media (max-width: 575.98px) {
    .operational-task-detail-dialog { margin: .75rem; }
    .operational-task-detail-header,
    .operational-task-detail-body { padding: 1rem; }
    .operational-task-detail-header .modal-title { font-size: 1.1rem; }
}
