.select2-container--default .select2-selection--single .select2-selection__clear {
    font-weight: 100;
    color: #dddbe2;
    font-size: 25px;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered .select2-selection__placeholder {
    color: #999 !important;
}

.select2-container--default .select2-search--inline .select2-search__field::placeholder {
    color: #999 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0 13px;
}

.select2-selection__arrow {
    display: none !important;
}

.select2-selection__rendered {
    padding-right: 8px !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--multiple:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #cccccc !important;
}

label.error {
    box-shadow: none !important;
    display: block;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

.app-content,
.content-body {
    overflow-x: hidden;
}

.select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

.select2-container .select2-dropdown {
    max-width: 100vw;
    overflow-x: hidden;
}

.select2-container .select2-search__field {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

.select2-container .select2-selection__rendered {
    max-width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    box-sizing: border-box;
    padding: 2px 6px;
}

.select2-container .select2-selection--multiple .select2-search--inline {
    flex: 1 0 140px !important;
    min-width: 140px;
}

.select2-container .select2-selection--multiple .select2-search__field {
    width: 100% !important;
    min-width: 0 !important;
    line-height: 24px;
    box-sizing: border-box !important;
}

.select2-container .select2-selection--multiple .select2-selection__choice {
    margin-top: 1px;
    margin-right: 6px;
}

.select2-container .select2-selection--multiple .select2-selection__clear {
    order: 99;
    margin-left: auto;
}

.card-title.file-uploader {
    font-size: 15px;
}

.custom-switch.custom-switch-60 {
    line-height: 1.02rem;
}

.custom-switch.custom-switch-60 .custom-control-label {
    padding-left: 2.1rem;
    line-height: 1.02rem;
}

.custom-switch.custom-switch-60 .custom-control-label::before {
    width: 1.8rem;
    height: 1.02rem;
    border-radius: 0.6rem;
}

.custom-switch.custom-switch-60 .custom-control-label::after {
    width: 0.6rem;
    height: 0.6rem;
    top: 0.15rem;
    left: 0.15rem;
    border-radius: 0.6rem;
}

.custom-switch.custom-switch-60 .custom-control-input:checked~.custom-control-label::after {
    -webkit-transform: translateX(0.9rem);
    -ms-transform: translateX(0.9rem);
    transform: translateX(0.9rem);
}

.auth-wrapper.auth-v2 .auth-inner .auth-bg {
    position: relative;
}

.auth-wrapper.auth-v2 .auth-inner .auth-bg .brand-logo {
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 992px) and (max-height: 820px) {
    .auth-wrapper.auth-v2 .auth-inner .auth-bg.auth-login-panel {
        align-items: flex-start !important;
        padding-top: 8rem !important;
    }

    .auth-wrapper.auth-v2 .auth-inner .auth-bg.auth-login-panel .brand-logo {
        top: 2.75rem;
    }
}

/* Shared media helpers */
.account-profile-photo,
.user-profile-photo {
    object-fit: cover;
}

.visibility-hidden {
    visibility: hidden;
}

/* Header search */
.nav-search .search-list-main .avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

.nav-search .search-list-main .search-data {
    min-width: 0;
}

.nav-search .search-list-main .search-data-title {
    max-width: 22rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brins-search-loader {
    padding: 0.75rem 1rem;
}

.brins-search-loader-gif {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
}

.brins-search-all-results {
    border-top: 1px solid #ebe9f1;
    font-weight: 600;
}

.dark-layout .brins-search-all-results {
    border-color: #3b4253;
}

.dark-layout .flatpickr-input[readonly],
.dark-layout input.form-control.flatpickr[readonly],
.dark-layout .form-control.flatpickr-input[readonly] {
    background-color: #283046 !important;
    border-color: #3b4253 !important;
    color: #b4b7bd !important;
    opacity: 1 !important;
}

.dark-layout .flatpickr-input[readonly]:focus,
.dark-layout input.form-control.flatpickr[readonly]:focus,
.dark-layout .form-control.flatpickr-input[readonly]:focus {
    background-color: #283046 !important;
    border-color: #7367f0 !important;
    color: #d0d2d6 !important;
}

.dark-layout .flatpickr-input[readonly]::placeholder,
.dark-layout input.form-control.flatpickr[readonly]::placeholder,
.dark-layout .form-control.flatpickr-input[readonly]::placeholder {
    color: #676d7d !important;
}

/* Auth pages */
.auth-illustration-panel {
    background: url('/brins/images/sign.svg') no-repeat center;
    opacity: 0.04;
}

.auth-illustration-panel-force {
    opacity: 0.05;
}

.auth-brand-logo-img {
    width: 250px;
}

.auth-footer-fixed {
    position: absolute;
    bottom: 0;
}

.misc-brand-logo-img {
    width: 150px;
}

/* Enrollment */
.enrollment-reset-form {
    display: inline;
}

.enrollment-condition-note-tall {
    min-height: 170px;
}

/* Invoice print view */
.invoice-brand-logo {
    width: 250px;
}

.invoice-print {
    min-width: 0 !important;
}

.invoice-print .invoice-date-wrapper .invoice-date-title {
    width: 17rem;
    text-align: right;
    margin-right: 1em;
}

.invoice-print .table-responsive {
    overflow-x: visible !important;
}

.invoice-print .text-nowrap {
    white-space: normal !important;
}

.invoice-print .trace-footer {
    text-align: right;
    font-size: 11px;
    color: #555;
    line-height: 1.2;
    margin-top: 1.5rem;
}

.invoice-print .payment-method-card {
    border: 1px solid #ebe9f1;
    border-radius: 0.357rem;
    padding: 0.5rem;
    height: 100%;
}

/* Students */
.student-list-table th,
.student-list-table td {
    vertical-align: middle;
}

.student-photo-column {
    width: 72px;
}

.student-photo {
    width: 47px;
    height: 63px;
    border-radius: 0.75rem;
    object-fit: cover;
    box-shadow: 0 0.35rem 0.9rem rgba(34, 41, 47, 0.12);
}

.student-overview-card {
    border: 0;
    background: linear-gradient(135deg, rgba(115, 103, 240, 0.1), rgba(40, 199, 111, 0.08), rgba(0, 207, 232, 0.08));
    box-shadow: 0 0.35rem 0.85rem rgba(34, 41, 47, 0.08);
}

.student-overview-photo {
    width: 110px;
    height: 145px;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 0.6rem 1.4rem rgba(34, 41, 47, 0.14);
}

.student-inline-detail {
    display: flex;
    align-items: flex-start;
    color: #6e6b7b;
    font-size: 0.94rem;
}

.student-inline-detail i {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.student-profile-stat,
.tab-shell,
.family-compact-card,
.observer-note-preview,
.documentation-card,
.performance-card,
.attendance-card,
.attendance-summary-card {
    border: 1px solid rgba(34, 41, 47, 0.08);
    border-radius: 1rem;
    background-color: #fff;
    box-shadow: 0 0.35rem 1rem rgba(34, 41, 47, 0.04);
}

.student-profile-stat {
    min-height: 122px;
    padding: 1rem;
}

.student-tabs .nav-link {
    display: flex;
    align-items: center;
}

.student-tabs .nav-link i,
.student-tabs .nav-link svg {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.tab-shell {
    padding: 1.5rem;
}

.family-strip {
    padding: 1.1rem 1.2rem;
    border: 1px dashed rgba(115, 103, 240, 0.24);
    border-radius: 1rem;
    background: rgba(115, 103, 240, 0.04);
}

.family-compact-card {
    padding: 1rem;
    width: 100%;
}

.family-contact-line {
    display: flex;
    align-items: flex-start;
    color: #6e6b7b;
    font-size: 0.9rem;
}

.family-contact-line + .family-contact-line {
    margin-top: 0.5rem;
}

.family-contact-line i {
    width: 15px;
    height: 15px;
    margin-right: 0.5rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.family-empty-state,
.observer-placeholder-empty {
    padding: 1.2rem;
    border: 1px dashed rgba(34, 41, 47, 0.14);
    border-radius: 1rem;
    background: rgba(34, 41, 47, 0.02);
}

.observer-note-preview {
    padding: 1rem;
}

.observer-note-preview-success {
    background: linear-gradient(135deg, rgba(40, 199, 111, 0.08), rgba(40, 199, 111, 0.02));
}

.observer-note-preview-warning {
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.1), rgba(255, 159, 67, 0.03));
}

.observer-note-preview-primary {
    background: linear-gradient(135deg, rgba(115, 103, 240, 0.1), rgba(115, 103, 240, 0.03));
}

.documentation-strip {
    padding: 1.1rem 1.2rem;
    border: 1px dashed rgba(0, 207, 232, 0.24);
    border-radius: 1rem;
    background: rgba(0, 207, 232, 0.05);
}

.documentation-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.documentation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.5rem rgba(34, 41, 47, 0.08);
}

.documentation-card-button {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.documentation-card-button:focus {
    outline: 0;
}

.documentation-card-button:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(115, 103, 240, 0.22);
}

.documentation-file-logo-wrapper {
    min-height: 108px;
    border-bottom: 1px solid rgba(34, 41, 47, 0.06);
    background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f9 100%);
}

.documentation-file-logo-wrapper img {
    width: 38px;
    height: auto;
}

.documentation-card-content {
    padding: 1rem;
}

.documentation-card-title {
    margin-bottom: 0.5rem;
    color: #5e5873;
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.35;
}

.documentation-file-name {
    word-break: break-word;
    margin-bottom: 0.4rem;
    color: #6e6b7b;
    font-size: 0.96rem;
}

.documentation-file-date {
    margin-bottom: 0;
    color: #b9b9c3;
    font-size: 0.9rem;
}

.documentation-preview-placeholder {
    padding: 1.25rem;
}

.performance-card .card-header,
.attendance-card .card-header {
    border-bottom: 0;
    padding-bottom: 0;
}

#student-performance-radar {
    min-height: 360px;
}

.performance-subject-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px dashed rgba(34, 41, 47, 0.1);
}

.performance-subject-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.attendance-summary-card {
    padding: 1rem;
    height: 100%;
}

.attendance-summary-pill {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 0.5rem;
}

.attendance-summary-pill-present,
.attendance-day-present {
    background-color: #28c76f;
}

.attendance-summary-pill-late,
.attendance-day-late {
    background-color: #ff9f43;
}

.attendance-summary-pill-absent,
.attendance-day-absent {
    background-color: #ea5455;
}

.attendance-year-strip {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.attendance-month {
    flex: 0 0 auto;
    min-width: 112px;
}

.attendance-month-label {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02rem;
    color: #6e6b7b;
    text-transform: uppercase;
}

.attendance-month-days {
    display: flex;
    align-items: center;
    gap: 0.22rem;
}

.attendance-day {
    width: 8px;
    height: 30px;
    border-radius: 999px;
    background-color: #d8d6de;
    display: inline-block;
    opacity: 0.95;
    cursor: pointer;
}

.attendance-day:hover {
    transform: translateY(-1px);
}

.attendance-legend-item {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    color: #6e6b7b;
    font-size: 0.9rem;
}

.document-preview-frame {
    width: 100%;
    height: 70vh;
    border: 0;
}

@media (max-width: 767.98px) {
    .student-overview-photo {
        margin-bottom: 1rem;
    }

    .student-tabs {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .student-tabs .nav-link {
        white-space: nowrap;
    }
}
