/* Red asterisk for required fields */
.required-star {
    color: red;
    font-weight: bold;
}
.login-page-content .item-logo img {
    width: 170px;
    height: 67px;
    object-fit: contain;
}

.login-page-content .login-box .login-form .form-group .login-btn {
    background: -webkit-gradient(
        linear,
        left bottom,
        left top,
        from(#0f3695),
        to(#4496c8)
    );
    background: -o-linear-gradient(bottom, #0f3695, #4496c8);
    background: linear-gradient(to top, #0f3695, #4496c8);
}

.login-page-content .login-box .login-form .form-group .login-btn:after {
    content: "";
    height: 100%;
    width: 100%;
    background: linear-gradient(to top, #4496c8, #0f3695);
}

.sidebar-menu-one .sidebar-menu-content .nav-sidebar-menu > .nav-item:hover {
    background: #ffffff1a !important;
}

h2.school-name {
    font-size: 3rem;
    font-weight: 700;
    padding: 0;
    margin: 0 0 0 -2rem;
    max-width: 65%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-page-content .login-box {
    padding: 2rem;
    min-width: 350px;
}

.sidebar-color {
    min-height: 100vh;
}

.header-menu-one {
    position: absolute;
    z-index: 99;
    width: 100%;
}

ul.nav.nav-sidebar-menu.sidebar-toggle-view {
    padding-top: 7rem;
}

.student-pie-chart .heading-layout1 {
    margin-bottom: 0;
}

.dashboard-card-three .card-body .doughnut-chart-wrap {
    padding: 0;
}

.card-body {
    padding: 15px;
}

.fc-calender .fc-header-toolbar .fc-right {
    margin-bottom: 10px;
}

table td img {
    width: 33px;
    height: 33px;
    border-radius: 50px;
    object-fit: cover;
    border: 1px solid lightgray;
}

table td img.flag {
    width: 25px;
    height: 25px;
    border-radius: 0;
    object-fit: contain;
    border: none;
}

.table td {
    vertical-align: middle;
}

#add-teacher-button {
    display: flex;
}

#add-teacher-button a:hover {
    color: #fff;
}

td.student-action {
    height: 0;
}

td.student-action a {
    height: fit-content;
}

/* CLASS ASSIGNMENT */
.teachers-data {
    display: flex;
    margin-bottom: 20px;
}

.teachers-data img {
    margin-right: 20px;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-top: 5px;
}

table.dataTable thead th,
table.dataTable thead td {
    padding: 10px 10px;
}

.item-title h3 {
    font-weight: 500;
}

.item-title h4 {
    margin: 20px 0 0 0;
}

td.student-action {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.document-item .document-icon i {
    font-size: 27px;
}

div.student-supporting-documents-and-icon {
    display: flex;
    align-items: center;
}

.student-supporting-documents-and-icon .card-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 185px;
}

.document-icon.card-body.d-flex.align-items-center {
    justify-content: space-between;
}

.supporting-documents {
    margin-top: 30px;
}

.supporting-documents .document-item {
    border: 1px solid #d3d3d3a6;
    border-radius: 5px;
}

form#student-page-form {
    display: flex;
    justify-content: space-between;
}

#view-student-profile-table td {
    text-wrap: wrap;
}

.fc-unthemed td.fc-today {
    background: #f50057;
    color: white;
    font-weight: 600;
}

.settings-nav {
    display: flex;
    flex-direction: column;
}

.settings-nav a {
    padding: 15px;
    /* background: #0f3695; */
    border-bottom: 1px solid lightgray;
    color: gray;
}

.settings-nav a:hover {
    background: #d3d3d389;
}

.settings-button {
    display: flex;
    align-items: flex-end;
}

.wrap-text {
    text-wrap: wrap;
}

h2 {
    font-weight: 100;
    font-size: 30pt;
    line-height: 1.3em;
    margin: 15px 0;
}

div.message {
    position: relative;
    width: 500px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 9999;
    padding: 10px;
    padding-left: 35px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

div.success.message h2,
div.error.message h2,
div.success.message p,
div.error.message p {
    color: #fff;
}

div.message:hover {
    box-shadow: 0 15px 20px rgba(10, 0, 10, 0.3);
}

/* #error-message {
    display: none;
    left: -100%;
} */

#success-message {
    display: none;
    left: -100%;
}

div.message.success {
    background: #5a6;
}
div.message.announcement {
    background: #ea0;
}
div.message.error {
    background: #c43;
}

#view-teacher-profile-table,
#view-student-profile-table {
    max-width: 500px;
    margin-left: 0;
}

.single-info-details .item-img {
    width: 250px;
    margin: 30px;
    margin-right: 100px;
}

.single-info-details .item-img img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

/* Grades Sheet CSS */
.tsm-teacher-grades {
    border: 2px solid black;
}

/* input.grade-input {
    width: 4rem;
} */

table.tsm-teacher-grades td,
table.tsm-teacher-grades th {
    border: 1px solid;
    text-align: center;
}

table.tsm-teacher-grades th {
    line-height: 1.1;
    text-align: center;
    padding: 0.5rem 0.1rem;
    background: #eaeaea;
    font-size: 12px;
}

table.tsm-teacher-grades td input {
    border: none;
    width: 4.5rem;
    height: 3.5rem;
    padding: 0.5rem 0.5rem;
    text-align: center;
}

input.grade-input:focus {
    outline: none;
    background: #d9d9d9;
}

table.tsm-teacher-grades .numbering {
    width: 5rem;
    padding: 0.5rem 1rem;
    text-align: center;
}

table.tsm-teacher-grades .student-grade-name-title,
table.tsm-teacher-grades .grade-subject,
table.tsm-teacher-grades .grade-classroom,
.teacher-master-grade-table .student-grade-name-title,
.teacher-master-grade-table .grade-subject,
.teacher-master-grade-table .grade-classroom {
    padding: 0.5rem 2rem 0.5rem 0.5rem;
    text-align: left;
    border-right: 2px solid black;
    text-wrap: nowrap;
}

input.grade-input.pass-grade {
    color: blue;
}

input.grade-input.fail-grade {
    color: red;
}

.fail-grade {
    color: red;
}

.pass-grade {
    color: blue;
}

.grade-semester {
    font-weight: bold; /* Highlight semester average */
}

.grade-yearly {
    font-weight: bold; /* Highlight yearly average */
}

.student-grade-field {
    width: 60px !important;
    border: 1px solid black !important;
}

.student-subject-grade-book {
    text-align: left !important;
    min-width: 200px;
    border-right: 2px solid black !important;
    padding-left: 5px !important;
    line-height: 1.2;
}

th.student-subject-grade-book {
    font-size: 2rem !important;
    text-transform: uppercase;
}

table.tsm-teacher-grades .semester-average {
    border-right: 2px solid black;
    border-left: 2px solid black;
}

.alert.alert-pd-mg {
    padding: 2px 10px;
    margin: 0;
}

.header-profile-image {
    width: 40px;
    height: 40px;
    border: 1px solid #bfbfbf;
    border-radius: 50px;
    object-fit: cover;
}

.change-password-form .change-password {
    display: flex;
    flex-direction: column;
}

.form-group .form-control {
    border: 1px solid lightgray;
}

.fc-calender .fc-header-toolbar .fc-center .fc-button-group .fc-button {
    padding: 8px 20px;
}

.copyright a {
    font-weight: 500;
}

.nav-bar-header-one {
    background: #fff;
    padding-left: 15px;
}

.nav-bar-header-one .header-logo img {
    max-width: 100%;
    height: 50px;
    object-fit: contain;
    object-position: left;
}

h2.permission-denied {
    margin-left: 15px;
}

#parent-assigned-students .alert {
    padding: 5px 10px;
    margin: 0;
}

.form-group .form-control:focus {
    border: 1px solid lightgray;
}

.row.parent-student-overview {
    border: 1px solid lightgray;
    margin-bottom: 15px;
    padding-top: 20px;
    border-radius: 6px;
    background: lightgray;
}

.col-4.parent-student-profile-image {
    width: 85px;
    height: 85px;
}

.parent-student-profile-image img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 100px;
}

.dashboard-card-two .card-body .expense-report {
    justify-content: space-between;
}

.col-12.form-group.mg-t-8.create-new-student-record {
    padding-left: 0;
}

.pseudo-bg-green:after {
    background-color: #3cb878;
}

#student-enrollment-form {
    align-items: center;
}

#registredStudents .school-logo,
#registredStudents .student-profile {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

#registredStudents .student-profile {
    margin-right: 30px;
    overflow: hidden;
}

.receipt-student-details strong {
    padding-left: 20px;
}

#registredStudents table.dataTable tfoot td {
    padding: 10px;
    border-top: 1px solid #111;
}

.dashboard-card-five .card-body .traffic-number {
    margin-bottom: 0;
}

.dashboard-card-five .card-body .traffic-table .table tbody tr td {
    padding: 5px 15px;
}

.dashboard-card-five .card-body .traffic-table .table tbody tr .t-title:after {
    background: #ff0000;
}

.dashboard-card-five#extra-collection
    .card-body
    .traffic-table
    .table
    tbody
    tr
    .t-title:after {
    background: #3cb878;
}

.dashboard-card-two .card-body .expense-report .monthly-expense {
    width: 50%;
}

.card-body.student-demography {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-color {
    background-color: #0f3695;
}

.sidebar-menu-one
    .sidebar-menu-content
    .nav-sidebar-menu
    > .nav-item
    > .nav-link
    i:before {
    color: #cccccc;
}

.sidebar-menu-one
    .sidebar-menu-content
    .nav-sidebar-menu
    > .nav-item
    > .nav-link
    span {
    color: #cccccc;
}

.sidebar-menu-one .sidebar-menu-content .nav-sidebar-menu > .nav-item {
    border-bottom: 1px solid #ffffff24;
}

img.attachment-large.size-large {
    width: 850px;
}

.student-personal-info-on-card {
    margin-bottom: 10px;
    width: 100%;
}

.grade-table#student-role-grade {
    width: 100%;
}

.student-grade-sheet-student-info {
    display: flex;
    gap: 10px;
}

.student-grade-sheet-student-info .student-photo img {
    width: 105px;
    height: 100px;
    object-fit: contain;
    object-position: top;
    border: 1px solid lightgray;
}

#student-info-table td {
    text-wrap: nowrap;
}
.student-grade-sheet-student-info .student-photo {
    margin-right: 15px;
}
.student-grade-sheet-student-info .student-photo img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
}

.analytics-chart-block {
    min-width: 100px;
    max-width: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

th.extra-collection-actions,
td.extra-collection-actions {
    text-align: right;
}

@media only screen and (max-width: 768px) {
    ul.nav.nav-sidebar-menu.sidebar-toggle-view {
        padding-top: 0;
    }

    .header-menu-one {
        position: fixed;
    }

    .wrap-student-header-and-stats {
        flex-direction: column;
    }

    .analytics-chart-block {
        min-width: 0;
    }
}

.form-control:focus {
    box-shadow: none;
}

.edit-profile-pic,
.edit-student-profile-pic {
    position: absolute;
    top: 40px;
    right: 16px;
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 4px;
}

.single-info-details {
    align-items: center;
}

.single-info-details img {
    border-radius: 500px;
    border: 1px solid rgb(221, 221, 221);
    box-shadow: 0px 10px 20px 0px rgb(148 148 148 / 75%);
    margin-right: 50px;
}

/* Sidebar Customization */
.list-group-item {
    font-size: 16px;
    padding: 15px;
}

.list-group-item i {
    margin-right: 10px;
    color: #646464;
    width: 20px;
    height: 20px;
    text-align: center;
}

.list-group-item-action:hover,
.list-group-item-action.active {
    background-color: #a6a6a63e;
    color: #646464;
}

.card-header {
    font-size: 18px;
    font-weight: bold;
}

/* Content Section Spacing */
.content-section {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Profile Image */
.media img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

h5 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: bold;
}

.custom-list {
    list-style-type: none;
    padding-left: 0;
}

.custom-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.custom-list li i {
    margin-right: 10px;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    color: #646464; /* Customize icon color */
}

.custom-list li strong {
    margin-right: 5px;
}

.single-info-details.staff-detail {
    align-items: flex-start;
}

.select2-container .select2-selection--single,
.new-added-form .form-group .form-control {
    height: 45px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 45px;
}

/* Enhanced Select2 styling to fix layout issues */
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection {
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    height: 45px !important;
    background-color: #f0f1f3 !important;
}

.select2-container .select2-selection--single {
    height: 45px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 43px !important;
    padding-left: 12px !important;
    color: #495057 !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 43px !important;
    right: 10px !important;
}

.select2-dropdown {
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    z-index: 9999 !important;
}

.select2-container--default .select2-results__option {
    padding: 8px 12px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #696969 !important;
    color: white !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da !important;
    padding: 8px 12px !important;
    border-radius: 0.25rem !important;
}

/* Fix for multi-column layouts with Select2 */
.row .form-group .select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure Select2 doesn't break responsive layouts */
.col-lg-3 .select2-container,
.col-lg-2 .select2-container,
.col-12 .select2-container {
    width: 100% !important;
}

/* Override Bootstrap form-control styles specifically for Select2 */
select.form-control.select2 {
    display: none !important; /* Hide the original select when Select2 takes over */
}

.form-group .select2-container {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

/* Ensure proper spacing in form groups */
.form-group .select2-container + .select2-container {
    margin-top: 10px;
}

/* Fix Select2 focus states to match Bootstrap */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
    outline: 0;
}

/* Improve Select2 appearance on mobile */
@media (max-width: 768px) {
    .select2-container .select2-selection--single {
        height: 50px !important;
    }
    
    .select2-container .select2-selection--single .select2-selection__rendered {
        line-height: 48px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    .select2-container .select2-selection--single .select2-selection__arrow {
        height: 48px !important;
    }
}

.student-tsmid {
    padding: 0 5px;
}

.attendance-cell {
    position: relative;
}

/* Style the date to appear as a watermark */
.attendance-cell .the-date {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 45px; /* Adjust the size as needed */
    font-weight: 100; /* Thin font weight */
    color: #00000011; /* Light color for watermark effect */
    z-index: 1; /* Place it behind the icons */
    pointer-events: none; /* Ensure it doesn't interfere with clicks */
}

/* Ensure icons appear above the date */
.attendance-cell i {
    position: relative;
    z-index: 2;
}

.wrap-attendance-button {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* 
 * Administrator Dashboard
 *
 * This section contains custom styles for the Administrator Dashboard
 */
.full-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full-screen-overlay .overlay-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    cursor: pointer;
    color: lightgray;
}

.full-screen-overlay .overlay-main-content {
    text-align: center;
}

.full-screen-overlay .overlay-main-content h1 {
    font-size: 80px;
    margin-bottom: 20px;
}

.full-screen-overlay .overlay-main-content .demography {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.full-screen-overlay .overlay-main-content .demography div {
    margin: 0 10px;
    text-align: center;
    flex: 1 1 200px;
}

.full-screen-overlay .overlay-main-content .demography div h3 {
    font-size: 24px;
}

.overlay-demography {
    display: flex;
    gap: 20px;
}

.overlay-total-count {
    font-family: "Archivo Black", sans-serif;
    font-size: 350px !important;
    color: #ffffff;
}

.overlay-demography .dashboard-summery-one {
    box-shadow: 0px 10px 20px 0px rgba(59, 59, 59, 0.38);
    width: 300px;
}

.full-screen-icon {
    position: absolute;
    top: -20px;
    left: -100px;
    font-size: 20px;
    color: #0f3695;
}

#full-screen-overlay .header-logo {
    width: 200px;
    position: absolute;
    left: 40px;
    top: 40px;
}

.schedule-action-button {
    display: flex;
    gap: 5px;
    justify-content: right;
}

.super-admin-grade-table,
.teacher-master-grade-table {
    overflow: scroll;
}

.student-name-teacher-master-grade {
    text-wrap: nowrap;
    padding: 0 15px 0 5px;
}

th.teacher-master-grade-numbering {
    padding: 15px !important;
}

td.teacher-master-grade-numbering {
    text-align: center;
}

#student-enrollment-form a {
    height: 45px;
    padding: 8px 35px;
    margin-top: 5px;
}

.averages.student-grade-field {
    padding: 5px 0 !important;
}

.dashboard-summery-one.parent-dashboard-selection {
    margin-bottom: 0;
}

td.expanse-action-wrap {
    display: flex;
    gap: 5px;
    align-items: baseline;
}

.student-grade-field.function {
    padding: 0;
}

.fraction-student-rank {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}
.fraction-student-rank .top {
    display: block;
    font-size: 0.7em;
    line-height: 1.5;
}
.fraction-student-rank .bottom {
    display: block;
    border-top: 1px solid #000;
    font-size: 0.7em;
    line-height: 1.5;
}
#periodic-expanded-grades {
    overflow-x: scroll;
}

.alert.alert-danger.mg-t-25.delete-staff,
.alert.alert-success.mg-t-25.delete-staff {
    margin-bottom: 0;
}

.traffic-table.table-responsive {
    height: 32rem;
}

#finances-report-widget {
    flex-direction: column;
    align-items: flex-start;
}

.profit-loss-date-field {
    align-content: end;
}

.profit-loss-date-field i {
    position: absolute;
    bottom: 15px;
    right: 25px;
}

.solid-right-line {
    border-right: 2px solid black !important;
}

.vertical-orientation {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    background-color: transparent !important;
    text-transform: capitalize;
    text-align-last: left;
}

.trimester-activities-headers {
    background-color: #eaeaea;
}

.student-trimester-grade-footer-wrap {
    display: flex;
    gap: 50px;
    justify-content: space-between;
    align-items: flex-end;
}

.student-trimester-grade-footer-wrap .signature-lines {
    width: 40%;
}

.student-trimester-grade-footer-wrap .signature-lines p,
.student-trimester-grade-footer-wrap .signature-lines hr {
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-style: italic;
    color: #111111;
    border-top: 1px solid #111111;
}

.student-trimester-grade-footer-wrap .grade-averages {
    width: 50%;
}

th.term-head-padding {
    padding: 7px 15px !important;
}

#super-admin-grades-buttons {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

table.tsm-teacher-grades .tsm-id {
    min-width: 5rem;
    padding: 0 1rem;
    text-align: left;
}

.passing-range {
    height: 4.5rem;
    width: 100%;
    padding: 0 1rem;
    border: 1px solid lightgray;
    border-radius: 0.4rem;
}

.wrap-student-grade-table {
    overflow-x: scroll;
    overflow-y: hidden;
    padding-bottom: 3rem;
}

.student-expanded-averages-bold-text input {
    font-weight: bold;
}
/* Chatbot styles */
#chatbot-wrapper {
    max-width: 1024px;
    margin: 0 auto;
}
.chat-container {
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 100%;
    height: 70vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#chatbot-log {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #fafafa;
}
.chat-message {
    margin: 0.3rem 0;
    padding: 0.6rem 0.8rem;
    border-radius: 1rem;
    max-width: 90%;
    font-size: 1rem;
    line-height: 1.4;
}
.chat-user {
    align-self: flex-end;
    background: #e1f5fe;
    color: #444;
}
.chat-bot {
    align-self: flex-start;
    background: #e8eaf6;
    color: #0053a3;
}
.chat-bot-error {
    align-self: flex-start;
    background: #ffebee;
    color: red;
}
.chatbot-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#voice-btn {
    background: none;
    border: none;
    color: #555;
    font-size: 1.2rem;
}
.chat-message.typing {
    font-style: italic;
    opacity: 0.7;
}
.chat-suggest {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}
.chat-suggest button {
    cursor: pointer;
    border-radius: 12px;
    font-size: 0.85rem;
}
.select2-selection.select2-selection--multiple {
    background: #f0f1f3 !important;
    border: 1px solid #e6e5e5 !important;
    padding-top: 4px;
}
a.notification-link {
    color: inherit;
}
.media-body {
    font-size: 13px;
    padding-bottom: 11px;
}

.progress-bar.progress-bar-striped.progress-bar-animated {
    font-size: 12px;
}

#resume h5 {
    border-bottom: 3px solid #0f0f0f;
}

.comm-container .comm-sidebar h2 {
    margin: 0;
    margin-bottom: 0.5rem;
    font-size: 3.5rem;
}

.compose-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    outline: none;
}

.compose-btn:focus {
    outline: none;
}

.compose-btn:hover {
    color: #0f3695;
}

/* Login error message */
.login-alert {
    white-space: normal;
    word-break: break-word;
}

/* Modern action buttons */
.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    height: 35px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
}
.billing-table .modern-btn {
    padding: 10px 12px;
}

.modern-btn:hover {
    opacity: 0.85;
    color: #fff;
    text-decoration: none;
}
.modern-btn i {
    font-size: 14px;
}
.btn-view {
    background: #17a2b8;
}
.btn-edit {
    background: #007bff;
}
.btn-enable,
.btn-disable {
    min-width: 80px;
    height: 100%;
}
.btn-enable {
    background: #28a745;
}
.btn-disable {
    background: #dc3545;
}
.btn-delete {
    background: #dc3545;
}

.btn-disable,
.btn-enable {
    height: 35px;
}

/* Wider button for saving billing so text doesn't wrap */
#save-billing {
    width: 140px;
}

/* Billing table field sizing */
.billing-table .form-control {
    font-size: 16px;
    height: 40px;
}
.billing-table .bill-view {
    font-size: 16px;
    line-height: 40px;
}

/* Summary table styling */
#summary-table {
    border: 1px solid #dee2e6;
}
#summary-table th,
#summary-table td {
    border: 1px solid #dee2e6;
}
#summary-table thead th,
.billing-table thead th {
    background-color: #f2f2f2;
}

#summary-table th.text-end,
#summary-table td.text-end {
    text-align: right;
}

.billing-table th.text-end,
.billing-table td.text-end {
    text-align: right;
}

/* Modal input sizing to match billing fields */
#type-modal .form-control {
    font-size: 16px;
    height: 40px;
}

.comm-container {
    display: flex;
    font-family: "Roboto", sans-serif;
    height: calc(100vh - 7rem);
}
.comm-sidebar {
    width: 380px;
    background: #fff;
    border-right: 1px solid #ddd;
    border-left: 1px solid #ddd;
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 7rem);
    overflow: hidden;
}
.comm-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.comm-search-wrap {
    position: relative;
    margin-bottom: 12px;
}
.comm-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1.2rem;
    pointer-events: none;
}
#comm-search {
    width: 100%;
    font-size: 15px;
    padding-left: 3rem;
}
.main-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}
.main-tabs button {
    flex: 1;
    padding: 6px;
    border: none;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}
.main-tabs button.active {
    background: #0f3695;
    color: #fff;
}
.comm-tabs button {
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border: none;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}
.comm-tabs button.active {
    background: #0f3695;
    color: #fff;
}
.main-section {
    display: none;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}
.main-section.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.comm-list {
    display: none;
    margin-top: 10px;
    flex: 1;
    overflow-y: auto;
}
.comm-list.active {
    display: block;
    flex: 1;
    overflow-y: auto;
}
.comm-item {
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}
.comm-item:hover {
    background: #eee;
}
.comm-item.selected {
    background: #f5f5f5;
}
.comm-item-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e3e3e3;
}
.comm-item-info {
    padding-bottom: 7px;
    width: 100%;
}
.comm-tags {
    font-size: 11px;
    display: flex;
    gap: 5px;
    align-items: center;
}
.comm-tag {
    font-size: 10px;
}
.comm-time {
    display: inline-block;
    font-size: 10px;
}
.comm-item.unread .comm-time {
    font-weight: 700;
}
.comm-chat {
    flex: 1;
    height: calc(100vh - 7rem);
    display: none;
    flex-direction: column;
}
.comm-chat.active {
    display: flex;
    flex-direction: column;
}
.comm-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.comm-chat-header .chat-title {
    margin: 0;
    font-weight: 700;
    color: #333;
    font-size: 1.5rem;
}
.comm-chat-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.comm-messages {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 0 3rem;
}
.comm-message {
    display: flex;
    align-items: flex-end;
    margin-bottom: 10px;
}
.comm-message.self {
    align-self: flex-end;
    justify-content: end;
}
.comm-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin: 0 6px;
}
.comm-bubble {
    padding: 12px 18px;
    border-radius: 18px;
    background: #dfdfdf;
    word-wrap: break-word;
    max-width: 70%;
}
.comm-message.self .comm-bubble {
    background: #e3eaff;
    color: #0f3695;
    border-bottom-right-radius: 4px;
    max-width: 60%;
}
.comm-message:not(.self) .comm-bubble {
    background: #dfdfdf;
    border-bottom-left-radius: 4px;
}
.comm-message a {
    color: #0f3695;
    text-decoration: underline;
}
.comm-compose-form {
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 500px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    border-top-left-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 15px;
    z-index: 1000;
}
.compose-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}
.chat-preview {
    margin-bottom: 5px;
}
.chat-preview img {
    max-height: 40px;
    display: block;
    margin-bottom: 5px;
}
.chat-preview .comm-file-attachment {
    margin: 4px 0;
    max-width: 200px;
}
.comm-attach-img {
    max-width: 100%;
    max-height: 50vh;
    border-radius: 4px;
}
.comm-attachments-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}
.comm-attachments-grid.single img {
    width: 100%;
    max-width: 300px;
}
.comm-attachments-grid.double img,
.comm-attachments-grid.multiple img {
    width: calc(50% - 2.5px);
}
.comm-attachments-grid.three img:last-child {
    width: 100%;
}
.comm-attachments-grid img {
    width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 8px;
    cursor: pointer;
    object-fit: contain;
}
.comm-more-img-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.comm-more-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 32px;
    pointer-events: none;
    /* top: 5px; */
    border-radius: 3px;
}
.img-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.img-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    margin: 5px;
}
.img-modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}
.img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: #fff;
    border: none;
    font-size: 40px;
    cursor: pointer;
}
.img-prev {
    left: 20px;
}
.img-next {
    right: 20px;
}
.chat-input {
    display: none;
    align-items: center;
    gap: 8px;
}
.chat-field {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}
.file-label {
    cursor: pointer;
    color: #0f3695;
    font-size: 18px;
}
.send-icon {
    background: #0f3695;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
}
.comm-form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}
/* File attachments */
.comm-file-attachment {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 8px;
    margin: 4px 0;
    max-width: 260px;
    text-decoration: none;
    color: inherit;
}
.comm-file-attachment:hover { background: rgba(0,0,0,0.1); }
.comm-file-icon {
    width: 40px; height: 40px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    margin-right: 8px;
    font-size: 12px; font-weight: bold; color: white;
}
.comm-file-icon.pdf { background: #dc3545; }
.comm-file-icon.doc { background: #2b579a; }
.comm-file-icon.xls { background: #107c41; }
.comm-file-icon.ppt { background: #d24726; }
.comm-file-icon.txt { background: #6c757d; }
.comm-file-icon.zip { background: #6f42c1; }
.comm-file-icon.default { background: #6c757d; }
.comm-file-info { flex: 1; overflow: hidden; }
.comm-file-name { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comm-file-size { font-size: 11px; opacity: 0.7; }
.comm-file-download { margin-left: 8px; color: #0f3695; }

.comm-form-group label {
    font-weight: 600;
    margin-bottom: 6px;
}
.comm-form-group input[type="text"],
.comm-form-group textarea,
.comm-form-group select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.comm-form-group textarea {
    resize: vertical;
    min-height: 150px;
}
#chat-file {
    display: none;
}
#individual-field {
    display: none;
}
.send-btn {
    padding: 10px 20px;
    background: #0f3695;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.send-btn:hover {
    background: #092c7a;
}

.comm-chat-header {
    background: white;
    padding: 1rem 3rem;
    border-bottom: 1px solid #ddd;
}

.comm-chat.active button#mic-btn {
    margin-bottom: 0;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #f5f5f5;
    color: #0f3695;
    fill: currentColor;
    text-align: center;
    line-height: 3.5rem;
    border-radius: 150px;
    border: none;
    transition: background 0.2s, color 0.2s;
}
.comm-chat.active button#mic-btn:hover {
    background-color: #e0e0e0;
    color: #092c7a;
}

.comm-chat.active label.file-label {
    margin-bottom: 0;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #f5f5f5;
    color: #0f3695;
    text-align: center;
    line-height: 3.5rem;
    border-radius: 150px;
    transition: background 0.2s, color 0.2s;
}
.comm-chat.active label.file-label:hover {
    background: #e0e0e0;
    color: #092c7a;
}

.comm-dot {
    margin: 0 4px;
    height: 17.6px;
    line-height: 17.6px;
    font-weight: bold;
    font-size: 18px;
    display: inline-block;
}

.student-details {
    display: flex;
    gap: 15px;
}

table.table.table-bordered.table-striped {
    line-height: 1.2;
}

div#payment-type-info {
    margin-top: -27px;
}

#student-details .student-profile {
    display: flex;
    flex-direction: column;
}

.wrap-student-header-and-stats {
  display: flex;
  justify-content: space-between;
}

.wrap-student-header-and-stats .analytics-chart-block {
  display: flex;
}

#student-financial-form .row {
  align-items: end;
}

.school-stats-grid {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}
.school-stats-grid > * {
    flex: 1 1 0;
}

.parent-action {
    display: flex;
    justify-content: end;
    gap: 5px;
}