:root {
    --emis-primary: #473B7B;
    --emis-primary-rgb: 71, 59, 123;
    --emis-accent: #30D2BE;
    --emis-accent-rgb: 48, 210, 190;
    --emis-ink: #172033;
    --emis-muted: #64748b;
    --emis-surface: #ffffff;
    --emis-soft: #f5f7fb;
    --emis-soft-2: #eef4f8;
    --emis-border: #dfe7f0;
    --emis-danger: #FF5370;
    --emis-radius-sm: 8px;
    --emis-radius: 12px;
    --emis-radius-lg: 18px;
    --emis-shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
    --emis-shadow: 0 14px 38px rgba(15, 23, 42, 0.09);
    --emis-focus: 0 0 0 0.18rem rgba(var(--emis-accent-rgb), 0.24);
    --emis-brand-gradient: linear-gradient(135deg, var(--emis-primary) 0%, #366ba0 52%, var(--emis-accent) 100%);
}

/* Icon-only buttons: hide send icon while global EMIS button loader is active */
button.emis-btn-loading-icon-only > i.feather,
button.emis-btn-loading-icon-only > .feather:not(.spinner-border),
button.emis-btn-loading.emis-lms-chat__send-btn > i.feather:not(.spinner-border) {
    display: none !important;
}

button.emis-btn-loading-icon-only .emis-btn-spinner,
button.emis-btn-loading.emis-lms-chat__send-btn .emis-btn-spinner {
    margin-right: 0 !important;
    vertical-align: middle !important;
}

body {
    color: var(--emis-ink);
    background: radial-gradient(circle at top left, rgba(var(--emis-accent-rgb), 0.12), transparent 34rem),
        linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
}

.public-dashboard-shell {
    background: radial-gradient(circle at top left, rgba(var(--emis-accent-rgb), 0.12), transparent 34rem),
        linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
}

.public-dashboard-shell .pcoded-navbar {
    display: none !important;
}

.public-dashboard-shell .pcoded-main-container {
    margin-left: 0 !important;
    padding-top: 124px !important;
    min-height: 100vh;
}

.public-dashboard-shell .pcoded-content {
    padding: 1.1rem 1.25rem 1.35rem;
}

.public-dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(var(--emis-primary-rgb), 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.public-dashboard-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: 0.45rem 1rem;
    gap: 0.85rem;
}

.public-dashboard-brand {
    display: flex;
    align-items: center;
}

.public-dashboard-brand__link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.public-dashboard-brand .logo {
    max-height: 48px;
    width: auto;
}

.public-dashboard-header__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.public-dashboard-header .drp-user .dropdown-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--emis-brand-gradient);
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(var(--emis-primary-rgb), 0.22);
}

.public-dashboard-header .topbar-user-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.public-dashboard-header .profile-notification .pro-head {
    display: flex;
    align-items: center;
    background: var(--emis-brand-gradient);
    color: #ffffff;
    padding: 0.95rem 1rem;
}

.public-dashboard-header .profile-notification .pro-body {
    list-style: none;
    margin: 0;
    padding: 0.45rem;
}

.public-dashboard-menu {
    background: var(--emis-brand-gradient);
    padding: 0.35rem 0.65rem;
}

.public-dashboard-menu__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.public-dashboard-menu__list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.43rem 0.7rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.public-dashboard-menu__list > li > a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.public-dashboard-menu__list > li.active > a {
    color: var(--emis-primary);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.public-dashboard-filter {
    margin-bottom: 1rem;
    padding: 0.95rem;
    border: 1px solid rgba(var(--emis-primary-rgb), 0.1);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--emis-shadow-sm);
}

.public-dashboard-filter .form-group {
    margin-bottom: 0;
}

.public-dashboard-filter .btn {
    min-width: 108px;
}

.public-dashboard-shell .chart-widget,
.public-dashboard-shell .facilities,
.public-dashboard-shell .dangerous-building {
    margin-bottom: 1rem;
}

.public-dashboard-shell .chart-widget .card,
.public-dashboard-shell .facilities .card,
.public-dashboard-shell .dangerous-building .card {
    height: 100%;
}

.public-dashboard-shell .chart-widget [id$="-chart"],
.public-dashboard-shell .chart-widget [id*="chart"] {
    min-height: 320px;
}

.public-dashboard-shell .card .card-body.bg-patern,
.public-dashboard-shell .card .card-body.bg-patern-white,
.public-dashboard-shell .card.bg-patern {
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%) !important;
}

.public-dashboard-shell .chart-widget .card {
    border: 1px solid rgba(var(--emis-primary-rgb), 0.1);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.public-dashboard-shell .card h2,
.public-dashboard-shell .card h3 {
    color: #0f172a;
}

.public-dashboard-shell .card span {
    color: #64748b;
    font-weight: 600;
}

.public-dashboard-shell .highcharts-title tspan,
.public-dashboard-shell .highcharts-subtitle tspan,
.public-dashboard-shell .highcharts-axis-title tspan {
    fill: #0f172a !important;
    font-weight: 700 !important;
}

.public-dashboard-shell .highcharts-axis-labels text,
.public-dashboard-shell .highcharts-legend-item text {
    fill: #475569 !important;
    font-weight: 600 !important;
}

.public-dashboard-shell .highcharts-grid-line {
    stroke: #e2e8f0 !important;
}

.public-dashboard-shell .highcharts-tooltip text {
    fill: #0f172a !important;
}

.public-dashboard-shell .table-responsive {
    overflow-x: auto;
}

@media (max-width: 991.98px) {
    .public-dashboard-shell .pcoded-main-container {
        padding-top: 142px !important;
    }

    .public-dashboard-menu__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.15rem;
    }

    .public-dashboard-menu__list > li {
        white-space: nowrap;
    }

    .public-dashboard-filter {
        padding: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .public-dashboard-header__top {
        min-height: 60px;
        padding: 0.4rem 0.7rem;
    }

    .public-dashboard-brand .logo {
        max-height: 40px;
    }

    .public-dashboard-shell .pcoded-content {
        padding: 0.8rem 0.75rem 1rem;
    }
}

a {
    color: var(--emis-primary);
}

a:hover {
    color: #2f2858;
}

.dashboard-stat-grid {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
    margin-bottom: 1.25rem;
}

.dashboard-stat-grid > .col {
    min-width: 190px;
}

.dashboard-stat-card {
    position: relative;
    min-height: 142px;
    overflow: hidden;
    border: 1px solid rgba(var(--emis-primary-rgb), 0.1);
    border-radius: var(--emis-radius-lg);
    background: var(--emis-surface);
    box-shadow: var(--emis-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background: var(--emis-brand-gradient);
    pointer-events: none;
}

.dashboard-stat-card::after {
    content: "";
    position: absolute;
    width: 132px;
    height: 132px;
    right: -42px;
    bottom: -48px;
    border-radius: 50%;
    background: rgba(var(--emis-accent-rgb), 0.18);
    pointer-events: none;
}

.dashboard-stat-card--clickable {
    cursor: pointer;
}

.dashboard-stat-card--clickable:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--emis-accent-rgb), 0.45);
    box-shadow: var(--emis-shadow);
}

.dashboard-stat-card .card-body {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.85rem;
    min-height: 142px;
    padding: 1.15rem;
}

.dashboard-stat-card__content {
    min-width: 0;
}

.dashboard-stat-card__label {
    display: block;
    color: var(--emis-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.dashboard-stat-card__value {
    display: block;
    margin-top: 0.45rem;
    color: var(--emis-ink);
    font-size: clamp(1.65rem, 2.5vw, 2.35rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.045em;
}

.dashboard-stat-card__hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--emis-muted);
    font-size: 0.83rem;
    line-height: 1.25;
}

.dashboard-stat-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 15px;
    color: #fff;
    background: var(--emis-brand-gradient);
    box-shadow: 0 12px 24px rgba(var(--emis-primary-rgb), 0.2);
}

.dashboard-stat-card__icon i {
    font-size: 1.15rem;
}

.dashboard-stat-card--accent .dashboard-stat-card__icon {
    background: linear-gradient(135deg, #0f766e, var(--emis-accent));
}

.dashboard-stat-card--success .dashboard-stat-card__icon {
    background: linear-gradient(135deg, #15803d, #34d399);
}

.dashboard-stat-card--warning .dashboard-stat-card__icon {
    background: linear-gradient(135deg, #b45309, #fbbf24);
}

.dashboard-stat-card--info .dashboard-stat-card__icon {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
}

@media (max-width: 575.98px) {
    .dashboard-stat-grid > .col {
        flex: 0 0 100%;
    }
}

.emis-chart-card-stats {
    border-radius: var(--emis-radius-lg);
    border: 1px solid rgba(var(--emis-primary-rgb), 0.1);
    background: var(--emis-surface);
    box-shadow: var(--emis-shadow-sm);
    overflow: hidden;
}

.emis-chart-card-stats > .card-header {
    background: var(--emis-soft);
    border-bottom: 1px solid rgba(var(--emis-primary-rgb), 0.08);
}

#emis-data-entry-stats-chart {
    min-height: 360px;
}

.form-control.error {
    border-color: #FF5370;
}
label.error {
    color: #FF5370;
    margin-top: 3px;
}
.feather{
    font-size: 20px;
}
.dataTables_length {
    float: left;
}
.dataTables_length select {
    float: left;
    background: white;
    position: absolute;
    width: 100px;
    left: 98px;
    top: -2px
}
.dataTables_filter {
    float: right;
}
.dataTables_filter input {
    float: right;
    background-color: white;
    margin-top: -5px;
    margin-left: 5px;
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* DataTables + wide grids: default hidden overflow clips right-hand columns (e.g. Document). */
.teacher-edit-panel-body .dt-responsive.table-responsive,
.dt-responsive.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.pagination {
    float: right;
}

.theme-tbl table tr td:last-child {
    width: 14%;
}
/* .theme-tbl table tr td:last-child:has(.badge) {
    text-align: center;
} */
.datatable {
    margin: 0px !important;
}

/* DataTables: export / column visibility toolbar */
.dataTables_wrapper .dt-buttons {
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 6;
    overflow: visible;
}

<div.dt-button-collection,
div.dt-button-collection.emis-dt-colvis-menu {
    max-height: min(360px, 70vh) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    z-index: 2002;
}

div.dt-button-collection.emis-dt-colvis-menu {
    width: auto !important;
    min-width: 220px;
    max-width: min(280px, 92vw);
}

/* Listing cards: horizontal scroll via .dt-responsive (scrollX off for .user-profile-list tables). */
.user-profile-list .dt-responsive.table-responsive {
    overflow-x: auto !important;
    overflow-y: visible;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.user-profile-list .dt-responsive table.dataTable {
    width: auto !important;
    min-width: 100%;
    margin: 0;
}

.dataTables_wrapper .dt-buttons .btn,
.dataTables_wrapper .dt-buttons .dt-button {
    font-size: 0.78rem;
    padding: 0.28rem 0.55rem;
    border-radius: 8px;
}

div.dt-button-background {
    z-index: 2001;
}

.dataTables_wrapper > .emis-dt-column-filters-toolbar {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.75rem;
}

.emis-dt-column-filters-toolbar .emis-dt-column-filters-body {
    max-height: 220px;
    overflow-y: auto;
}

.emis-dt-column-filters-toolbar .emis-dt-col-filter-input {
    font-size: 0.8rem;
}

/* DataTables sort arrows (↑↓) — base glyphs from dataTables.bootstrap4.min.css */
table.dataTable > thead > tr > th.sorting,
table.dataTable > thead > tr > th.sorting_asc,
table.dataTable > thead > tr > th.sorting_desc,
table.dataTable > thead > tr > td.sorting,
table.dataTable > thead > tr > td.sorting_asc,
table.dataTable > thead > tr > td.sorting_desc {
    cursor: pointer;
    padding-right: 2rem !important;
}

table.dataTable > thead > tr > th.sorting_disabled,
table.dataTable > thead > tr > td.sorting_disabled {
    cursor: default;
    padding-right: 0.75rem !important;
}

table.dataTable > thead .sorting:before,
table.dataTable > thead .sorting:after,
table.dataTable > thead .sorting_asc:before,
table.dataTable > thead .sorting_asc:after,
table.dataTable > thead .sorting_desc:before,
table.dataTable > thead .sorting_desc:after {
    color: var(--emis-primary, #1e5f74);
    opacity: 0.4;
    font-size: 0.72rem;
    line-height: 1;
}

table.dataTable > thead .sorting_asc:before,
table.dataTable > thead .sorting_desc:after {
    opacity: 1;
    font-weight: 700;
}

.select2-container--default .select2-selection--single {
    height: 35px;
    color: #495057;
    background-color: #f6f7fb;
}

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

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 35px;
}
/* .select2-container {
    z-index: 99999;
}
*/ .select2-selection--multiple:before {
    content: "";
    position: absolute;
    right: 7px;
    top: 42%;
    border-top: 5px solid #888;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.select2-close-mask {
    z-index: 2099;
}

.select2-dropdown {
    z-index: 3051;
}
label.required-input:after {
    content: ' * ';
    color: #a94442;
}
/* .user-profile-list table tbody tr .overlay-edit {
	border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    opacity: 99999;
    background: none;
} */

.checkbox input[type=checkbox],
.radio input[type=radio] {
    display: inline-block !important;
    appearance: none;
    width: 0;
    appearance: none;
}
.radio input[type=radio] + .cr:after {
    top: 13.3px;
    left: 8.5px;
}

/* media query */
@media (max-width: 767px) {
    .table-responsive {
        overflow-x: auto;
    }
    .dataTables_length select {
        position: relative;
        float: none;
    }
    .dataTables_length, .dataTables_length {
        float: none;
    }

    .dataTables_filter input {
        float: none;
        background-color: white;
    }

    

}

/* School registration (create / edit) */
.school-master-hub-card {
    border-radius: 14px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}
.school-form-section {
    border-radius: 12px;
    border: 1px solid #e8ecf1;
    margin-bottom: 1.25rem;
    background: #fff;
    overflow: hidden;
}
.school-form-section .section-head {
    background: var(--emis-brand-gradient);
    color: #fff;
    padding: 0.65rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}
.school-form-section .section-body {
    padding: 1rem 1rem 0.25rem;
}
#schoolLocationMap {
    height: 320px;
    border-radius: 10px;
    border: 1px solid #dbeafe;
}
.cluster-field-hidden {
    display: none !important;
}

/* Sidebar: grouped labels inside Master tables submenu */
.pcoded-navbar .pcoded-submenu .master-submenu-group {
    margin: 10px 10px 6px;
    pointer-events: none;
}

.pcoded-navbar .pcoded-submenu .master-submenu-group span {
    display: block;
    padding: 5px 10px;
    border-radius: 6px;
    background: #2f4f6f;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Sidebar: nested label under a main group (CodeIgnitor-style sub-sub nav) */
.pcoded-navbar .pcoded-submenu .master-submenu-subgroup {
    margin: 6px 10px 2px 18px;
    pointer-events: none;
}

.pcoded-navbar .pcoded-submenu .master-submenu-subgroup span {
    display: block;
    padding: 3px 8px 2px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* Staff form modern grouped design */
.teacher-form-modern .teacher-form-hero {
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 1rem 1rem 0.9rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}

.teacher-form-modern .teacher-form-hero-note {
    color: #475569;
    font-size: 0.9rem;
}

.teacher-form-modern .teacher-form-section {
    border: 1px solid #e7edf5;
    border-radius: 14px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
}

.teacher-form-modern .teacher-form-section .section-head {
    background: linear-gradient(to right, #473B7B, #30D2BE);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.65rem 1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.teacher-form-modern .teacher-form-section .section-body {
    padding: 1rem 1rem 0.25rem;
}

.teacher-form-modern .teacher-form-section .section-body > .row,
.teacher-form-modern .teacher-form-section .section-body > .form-group.row,
.teacher-form-modern .teacher-form-api-group > .row,
.teacher-form-modern .teacher-form-api-group > .form-group.row,
.teacher-form-modern .teacher-avatar-top-row .row {
    --bs-gutter-y: 1rem;
    margin-bottom: 0;
}

.teacher-form-modern .form-group.row > [class*="col-"],
.teacher-form-modern .row > .form-group[class*="col-"] {
    margin-bottom: 0;
}

.teacher-form-modern .form-group.row {
    margin-bottom: 0;
}

.teacher-form-modern .row > .form-group[class*="col-"].mt-4 {
    margin-top: var(--bs-gutter-y) !important;
}

.teacher-form-modern .form-group.row > [class*="col-"] > .form-label,
.teacher-form-modern .row > .form-group[class*="col-"] > .form-label {
    margin-bottom: 0.35rem;
}

.teacher-form-modern label.error:empty {
    display: none;
    margin: 0;
}

@media (min-width: 992px) {
    .teacher-form-modern .form-group.row > .col-lg-3,
    .teacher-form-modern .row > .form-group.col-lg-3 {
        flex: 0 0 auto;
        width: 33.333333%;
    }
}

@media (min-width: 1200px) {
    .teacher-form-modern .teacher-avatar-top-row .col-lg-9 .col-xl-3 {
        flex: 0 0 auto;
        width: 33.333333%;
    }
}

.teacher-form-modern .teacher-form-subgroup-title {
    display: inline-block;
    margin: 0.7rem 0 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(71, 59, 123, 0.1);
    color: #473B7B;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.25px;
    text-transform: uppercase;
}

.teacher-form-modern .teacher-form-api-group {
    border: 1px solid rgba(71, 59, 123, 0.12);
    border-radius: 12px;
    margin: 0.35rem 0 1rem;
    padding: 0.75rem 0.75rem 0.15rem;
    background: rgba(48, 210, 190, 0.04);
    transition: opacity 0.15s ease, filter 0.15s ease;
}

.teacher-form-modern .teacher-form-api-group.is-loading {
    opacity: 0.55;
    filter: grayscale(0.2);
    pointer-events: none;
}

.teacher-form-modern .teacher-form-api-group.is-loading select[name=marital_status],
.teacher-form-modern .teacher-form-api-group.is-loading .spouse-government-servant-field {
    pointer-events: auto;
    opacity: 1;
    filter: none;
}

.teacher-form-modern .spouse-government-servant-field.is-disabled {
    opacity: 0.7;
}

/*
 * Teacher edit — Qualifications (and same layout): compact View / Edit / Delete in one row.
 * Global style.css uses 35×35px; we use slightly smaller controls and nowrap flex.
 */
.teacher-edit-section .user-profile-list table tbody tr .overlay-edit {
    flex-wrap: nowrap;
    gap: 0.2rem;
    padding: 0.2rem 0.35rem;
    justify-content: center;
}

.teacher-edit-section .user-profile-list table tbody tr .overlay-edit .btn,
.teacher-edit-section .user-profile-list table tbody tr .overlay-edit .btn.btn-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    font-size: 0.75rem;
    line-height: 1;
}

.teacher-edit-section .user-profile-list table tbody tr .overlay-edit .btn i {
    font-size: 0.85rem;
    line-height: 1;
}

/* Teacher edit tab datatables: compact typography and keep action column visible. */
.teacher-edit-section .user-profile-list .table.dataTable thead th {
    font-size: 0.78rem;
    white-space: nowrap;
    padding: 0.45rem 0.5rem;
}

.teacher-edit-section .user-profile-list .table.dataTable tbody td {
    font-size: 0.8rem;
    padding: 0.42rem 0.5rem;
    vertical-align: middle;
}

.teacher-edit-section .user-profile-list .table.dataTable thead th:last-child,
.teacher-edit-section .user-profile-list .table.dataTable tbody td:last-child {
    min-width: 116px;
    width: 116px;
    white-space: nowrap;
}

.teacher-edit-section .user-profile-list .table.dataTable tbody td:last-child {
    overflow: visible !important;
}

/* jQuery UI datepicker: above Bootstrap modal (1055) and Select2 dropdown (~3051). */
#ui-datepicker-div {
    z-index: 12000 !important;
}

/* Staff qualifications: document links use warning accent (see TeacherController datatable HTML). */
.qualification-doc-thumb__img {
    max-height: 52px;
    max-width: 88px;
    border-radius: 6px;
    border: 2px solid #f59e0b;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(180, 83, 9, 0.2);
}

.qualification-doc-btn {
    font-weight: 600;
}

/* Staff edit: vertical section navigation + content panel */
.teacher-edit-layout {
    min-height: 420px;
    background: #f1f5f9;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.teacher-edit-sidebar {
    background: linear-gradient(to bottom, rgb(71, 59, 123), rgb(48, 210, 190));
    color: #e2e8f0;
}

.teacher-edit-sidebar-inner {
    padding: 1.25rem 0.75rem 1.5rem;
}

@media (min-width: 992px) {
    .teacher-edit-sidebar-inner {
        position: sticky;
        top: 72px;
    }
}

.teacher-edit-sidebar-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0.65rem 0.75rem;
    padding: 0;
}

.teacher-edit-nav {
    gap: 0.2rem;
}

.teacher-edit-nav__link {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    line-height: 1.35;
}

.teacher-edit-nav__link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc !important;
}

.teacher-edit-nav__link.active {
    background: rgba(37, 99, 235, 0.35);
    border-color: rgba(96, 165, 250, 0.45);
    color: #fff !important;
    box-shadow: inset 3px 0 0 #60a5fa, 0 4px 14px rgba(0, 0, 0, 0.2);
}

.teacher-edit-main {
    background: #f8fafc;
}

/* Employee portal: section links live in the main sidebar (My employment); hide in-page nav column */
.teacher-edit-layout--employee-portal .teacher-edit-panel {
    border-left: none;
}

.teacher-edit-panel {
    margin: 0;
    min-height: 100%;
    background: #fff;
    border-left: 1px solid #e2e8f0;
}

@media (max-width: 991.98px) {
    .teacher-edit-panel {
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
}

.teacher-edit-panel-head {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid #e8ecf1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.teacher-edit-panel-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
}

.teacher-edit-panel-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0.35rem 0 0;
    max-width: 52rem;
}

.teacher-edit-panel-body {
    padding: 1.25rem 1.5rem 1.75rem;
}

.teacher-edit-panel-body .tab-content {
    padding: 0;
}

.teacher-edit-panel-body hr {
    border-color: #e2e8f0;
    opacity: 1;
}

.teacher-edit-panel-body .tab-pane > .btn,
.teacher-edit-panel-body .tab-pane > a.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.45rem 1rem;
}

.teacher-edit-panel-body .user-profile-list.card {
    border: 1px solid #e7edf5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
}

.teacher-edit-panel-body .user-profile-list .card-body-dd.theme-tbl {
    padding: 0.75rem 1rem 1rem;
}

/* DataTables: fill panel width; JS columns.adjust() runs after sidebar toggle. */
.teacher-edit-panel-body .theme-tbl .dataTables_wrapper,
.teacher-edit-panel-body .theme-tbl table.dataTable {
    width: 100% !important;
}

/* scrollX: horizontal scroll on wide DataTables (all app pages using create_datatables or scrollX defaults). */
.pcoded-main-container .emis-dt-scroll-x-host,
.teacher-edit-panel-body .theme-tbl .emis-dt-scroll-x-host {
    max-width: 100%;
}

.pcoded-main-container .emis-dt-scroll-x-host .dataTables_wrapper,
.teacher-edit-panel-body .theme-tbl .emis-dt-scroll-x-host .dataTables_wrapper {
    overflow: visible;
    max-width: 100%;
}

.pcoded-main-container .emis-dt-scroll-x-host .dataTables_scroll,
.teacher-edit-panel-body .theme-tbl .emis-dt-scroll-x-host .dataTables_scroll {
    overflow: visible;
    width: 100%;
    max-width: 100%;
}

.pcoded-main-container .emis-dt-scroll-x-host .dataTables_wrapper > .dt-buttons,
.pcoded-main-container .emis-dt-scroll-x-host .dataTables_wrapper > .dataTables_length,
.pcoded-main-container .emis-dt-scroll-x-host .dataTables_wrapper > .dataTables_filter,
.pcoded-main-container .emis-dt-scroll-x-host .dataTables_wrapper > .emis-dt-column-filters-toolbar,
.teacher-edit-panel-body .theme-tbl .emis-dt-scroll-x-host .dataTables_wrapper > .dt-buttons,
.teacher-edit-panel-body .theme-tbl .emis-dt-scroll-x-host .dataTables_wrapper > .dataTables_length,
.teacher-edit-panel-body .theme-tbl .emis-dt-scroll-x-host .dataTables_wrapper > .dataTables_filter,
.teacher-edit-panel-body .theme-tbl .emis-dt-scroll-x-host .dataTables_wrapper > .emis-dt-column-filters-toolbar {
    overflow: visible;
}

.pcoded-main-container .emis-dt-scroll-x-host .dataTables_scrollHead,
.teacher-edit-panel-body .theme-tbl .emis-dt-scroll-x-host .dataTables_scrollHead {
    overflow: hidden !important;
}

.pcoded-main-container .emis-dt-scroll-x-host .dataTables_scrollBody,
.teacher-edit-panel-body .theme-tbl .emis-dt-scroll-x-host .dataTables_scrollBody {
    overflow-x: auto !important;
    overflow-y: visible !important;
    width: 100% !important;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* scrollX: outer shell must not steal horizontal scroll from .dataTables_scrollBody. */
.pcoded-main-container .dt-responsive.table-responsive.emis-dt-scroll-x-host:has(.dataTables_scrollBody),
.teacher-edit-panel-body .dt-responsive.table-responsive.emis-dt-scroll-x-host:has(.dataTables_scrollBody) {
    overflow: visible;
}

/* Tables without scrollX split still scroll inside .dt-responsive wrapper. */
.pcoded-main-container .dt-responsive.table-responsive.emis-dt-scroll-x-host:not(:has(.dataTables_scrollBody)) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* DataTables: modern processing overlay (all tables using create_datatables or global defaults). */
.theme-tbl,
.dt-responsive.table-responsive,
.emis-dt-scroll-x-host {
    position: relative;
}

.dataTables_wrapper.emis-dt-processing-host {
    position: relative;
    min-height: 8rem;
}

.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper div.dataTables_processing.card {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 8rem;
    margin: 0 !important;
    padding: 0 !important;
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 40;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0.35rem;
    pointer-events: none;
}

.dataTables_wrapper.emis-dt-is-processing .dataTables_processing,
.dataTables_wrapper.emis-dt-is-processing div.dataTables_processing.card {
    display: flex !important;
}

.emis-dt-processing-panel {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1.75rem;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.emis-dt-processing-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 3px solid rgba(13, 110, 253, 0.18);
    border-top-color: #0d6efd;
    animation: emis-dt-spin 0.75s linear infinite;
}

.emis-dt-processing-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.01em;
}

@keyframes emis-dt-spin {
    to {
        transform: rotate(360deg);
    }
}

.teacher-edit-panel-body .theme-tbl .emis-verify-action.emis-btn-loading {
    opacity: 0.85;
    pointer-events: none;
}

.teacher-edit-panel-body .theme-tbl .emis-verify-action .emis-btn-spinner {
    margin-right: 0;
    vertical-align: middle;
}

/* Staff edit: consistent section blocks (listings + footers) */
.teacher-edit-section {
    max-width: 100%;
}

.teacher-edit-section--form {
    margin-top: 0;
}

.teacher-edit-section-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.teacher-edit-section-toolbar--split {
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.teacher-edit-subsection {
    margin-bottom: 0.25rem;
}

.teacher-edit-subsection .theme-tbl > .dataTables_wrapper {
    width: 100%;
}

.teacher-edit-subsection .dataTables_wrapper > .emis-dt-column-filters-toolbar {
    margin-bottom: 0.65rem;
}

.teacher-edit-subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}

.teacher-edit-subsection-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0 12%, #e2e8f0 88%, transparent);
    margin: 1.35rem 0;
    opacity: 1;
}

.teacher-edit-btn-add {
    font-weight: 600;
    border-radius: 10px;
    padding: 0.45rem 1.1rem;
}

.teacher-edit-section-footnote {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.75rem !important;
    margin-bottom: 0 !important;
    line-height: 1.45;
}

.teacher-edit-pane-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8ecf1;
}

.teacher-edit-pane-footer .btn {
    border-radius: 10px;
    font-weight: 600;
}

.teacher-edit-section-toolbar--split .teacher-edit-subsection-title {
    flex: 1;
    min-width: 0;
    padding-right: 0.5rem;
}

.teacher-edit-section--survey {
    margin-bottom: 0;
}

.teacher-edit-panel-body .tab-pane .modal-content {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}

.teacher-edit-panel-body .tab-pane .modal-header {
    background: linear-gradient(90deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    border-bottom: none;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.teacher-edit-panel-body .tab-pane .modal-header .modal-title {
    color: #fff;
    font-weight: 600;
}

.teacher-edit-panel-body .tab-pane .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.teacher-edit-panel-body .tab-pane .modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e8ecf1;
}

.training-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.training-form-panel {
    position: relative;
    min-width: 0;
    padding: 1.15rem;
    border: 1px solid rgba(var(--emis-primary-rgb), 0.12);
    border-radius: var(--emis-radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96));
    box-shadow: var(--emis-shadow-sm);
}

.training-form-panel--survey {
    border-color: rgba(var(--emis-accent-rgb), 0.3);
    background: linear-gradient(180deg, rgba(245, 255, 253, 0.96), rgba(255, 255, 255, 0.98));
}

.training-form-panel__head {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(var(--emis-primary-rgb), 0.1);
}

.training-form-panel__head h6 {
    margin: 0.15rem 0 0;
    color: var(--emis-ink);
    font-weight: 800;
}

.training-form-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(var(--emis-primary-rgb), 0.08);
    color: var(--emis-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.training-form-panel--survey .training-form-panel__eyebrow {
    background: rgba(var(--emis-accent-rgb), 0.18);
    color: #08776c;
}

.training-form-panel .form-group.row {
    row-gap: 1rem;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
    margin-bottom: 1rem;
}

.training-form-panel .form-group.row:last-child {
    margin-bottom: 0;
}

.training-form-panel .form-group.row > [class*="col-"] {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.training-form-panel > .form-group.row > .col-lg-4,
.training-form-panel > .form-group.row > .col-lg-6,
.training-form-panel > .form-group.row > .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.training-form-panel .radio {
    display: inline-flex !important;
    align-items: center;
    margin-top: 0.25rem;
}

.training-form-panel .radio input[type=radio] + .cr {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    line-height: 22px;
}

.training-form-panel .radio input[type=radio] + .cr:before {
    flex: 0 0 22px;
    vertical-align: middle;
}

.training-form-panel .radio input[type=radio] + .cr:after {
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
}

.add-training-modal .select2-container:not(.select2-container--open) {
    width: 100% !important;
}

.select2-container--open,
.select2-container--open .select2-dropdown,
.select2-dropdown {
    z-index: 99999 !important;
}

/*
 * Select2: body-appended open container must not clip the dropdown (no fixed height)
 * or stretch a full-width white panel behind the search field.
 */
body > .select2-container.select2-container--open {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    max-width: min(95vw, 520px) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body > .select2-container.select2-container--open > .select2-dropdown {
    display: block;
    box-sizing: border-box;
}

.select2-container--open .select2-search.select2-search--dropdown {
    display: block;
    width: 100%;
    padding: 6px 8px;
    box-sizing: border-box;
}

.select2-container--open .select2-search--dropdown .select2-search__field {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid var(--emis-border);
    border-radius: 8px;
    background: #fff;
}

.select2-results__options {
    max-height: 280px;
}

/* Trainings modal: keep two columns (details | survey) until narrow phones; plain .training-form-grid is also used at ~tablet width. */
@media (max-width: 767.98px) {
    .training-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern application shell */
.pcoded-main-container {
    background: transparent;
}

.pcoded-header.headerpos-fixed ~ .pcoded-main-container {
    padding-top: 64px;
}

.pcoded-content {
    padding: 22px 24px;
}

.page-header {
    margin-bottom: 1.25rem;
    border-radius: var(--emis-radius-lg);
    border: 1px solid rgba(var(--emis-primary-rgb), 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 255, 0.9));
    box-shadow: var(--emis-shadow-sm);
}

.page-header .page-header-title h5,
.page-header h5 {
    color: var(--emis-ink);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.breadcrumb,
.page-header .breadcrumb {
    background: transparent;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: var(--emis-muted);
}

.breadcrumb-item.active {
    color: var(--emis-primary);
    font-weight: 700;
}

/* Modern topbar */
.pcoded-header.header-indigogreen,
.pcoded-header {
    min-height: 64px;
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--emis-ink);
    border-bottom: 1px solid rgba(var(--emis-primary-rgb), 0.08);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.pcoded-header .m-header {
    height: 64px;
    width: 248px;
    padding: 0 18px;
    background: var(--emis-brand-gradient);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.14);
    transition: width 0.15s ease-in-out, padding 0.15s ease-in-out;
}

.pcoded-header .m-header .mobile-menu {
    z-index: 2;
    height: 64px;
    right: 0.85rem;
}

.pcoded-header .m-header .logo {
    max-height: 44px;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.18));
}

.pcoded-header .m-header .logo-thumb {
    max-height: 36px;
}

.pcoded-header a,
.pcoded-header .input-group .input-group-text,
.pcoded-header dropdown-toggle {
    color: var(--emis-primary);
}

.pcoded-header a:hover,
.pcoded-header .input-group .input-group-text:hover,
.pcoded-header dropdown-toggle:hover {
    color: var(--emis-accent);
}

.pcoded-header .mobile-menu span,
.pcoded-header .mobile-menu span:after,
.pcoded-header .mobile-menu span:before {
    background: #ffffff;
}

.pcoded-header .mob-toggler,
.pcoded-header .full-screen {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(var(--emis-primary-rgb), 0.08);
    color: var(--emis-primary) !important;
    transition: all 0.16s ease;
}

.pcoded-header .mob-toggler:hover,
.pcoded-header .full-screen:hover {
    background: rgba(var(--emis-accent-rgb), 0.16);
    color: var(--emis-primary) !important;
    transform: translateY(-1px);
}

.pcoded-header .mob-toggler {
    display: none !important;
}

.pcoded-header .navbar-nav > li {
    line-height: 64px;
}

.pcoded-header .dropdown .dropdown-toggle {
    line-height: 64px;
}

.topbarDropdown {
    width: 150px;
    min-height: 38px;
    margin-right: 10px;
    padding: 0.45rem 2rem 0.45rem 0.9rem;
    color: var(--emis-ink);
    background-color: #ffffff;
    border: 1px solid var(--emis-border);
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.topbarDropdown:focus {
    border-color: rgba(var(--emis-accent-rgb), 0.8);
    box-shadow: var(--emis-focus);
}

.pcoded-header .drp-user .dropdown-toggle {
    width: 42px;
    height: 42px;
    margin: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--emis-brand-gradient);
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(var(--emis-primary-rgb), 0.22);
    line-height: 1;
    padding: 0;
    box-sizing: border-box;
}

.pcoded-header .topbar-user-icon {
    font-size: 1.7rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
}

.pcoded-header .profile-notification {
    overflow: hidden;
    border: 1px solid rgba(var(--emis-primary-rgb), 0.1);
    border-radius: 16px;
    box-shadow: var(--emis-shadow);
}

/* Solid dark header (name / school); theme gradient is used on top-bar chips instead */
.pcoded-header .dropdown .profile-notification .pro-head {
    background: #434582 !important;
    color: #ffffff;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.pcoded-header .dropdown .profile-notification .pro-head span,
.pcoded-header .dropdown .profile-notification .pro-head i {
    color: #ffffff;
}

.pcoded-header .profile-notification .pro-body {
    padding: 0.45rem;
    background: #ffffff;
}

.pcoded-header .profile-notification .pro-body .dropdown-item {
    border-radius: 10px;
    color: var(--emis-ink);
    padding: 0.65rem 0.75rem;
}

/* style.css uses li:hover with #4099ff — solid brand hover color */
.pcoded-header .dropdown .profile-notification .pro-body li.active,
.pcoded-header .dropdown .profile-notification .pro-body li:active,
.pcoded-header .dropdown .profile-notification .pro-body li:focus,
.pcoded-header .dropdown .profile-notification .pro-body li:hover {
    background: #31b8b6 !important;
    box-shadow: none !important;
}

.pcoded-header .dropdown .profile-notification .pro-body li.active > a,
.pcoded-header .dropdown .profile-notification .pro-body li:active > a,
.pcoded-header .dropdown .profile-notification .pro-body li:focus > a,
.pcoded-header .dropdown .profile-notification .pro-body li:hover > a {
    color: #ffffff !important;
    background: transparent !important;
}

.pcoded-header .dropdown .profile-notification .pro-body li.active > a i,
.pcoded-header .dropdown .profile-notification .pro-body li:active > a i,
.pcoded-header .dropdown .profile-notification .pro-body li:focus > a i,
.pcoded-header .dropdown .profile-notification .pro-body li:hover > a i {
    color: #ffffff !important;
}

/* Link stays transparent; row background is on li — force white text (beats Bootstrap .dropdown-item:hover #1e2125) */
.pcoded-header .dropdown .profile-notification .pro-body .dropdown-item:hover,
.pcoded-header .dropdown .profile-notification .pro-body .dropdown-item:focus,
.pcoded-header .dropdown .profile-notification .pro-body a.dropdown-item:hover,
.pcoded-header .dropdown .profile-notification .pro-body a.dropdown-item:focus {
    background: transparent !important;
    color: #ffffff !important;
}

.pcoded-header .dropdown .profile-notification .pro-body li:hover a.dropdown-item,
.pcoded-header .dropdown .profile-notification .pro-body li:focus-within a.dropdown-item,
.pcoded-header .dropdown .profile-notification .pro-body li:active a.dropdown-item {
    color: #ffffff !important;
}

.pcoded-header .dropdown .profile-notification .pro-body li:hover a.dropdown-item i,
.pcoded-header .dropdown .profile-notification .pro-body li:focus-within a.dropdown-item i,
.pcoded-header .dropdown .profile-notification .pro-body a.dropdown-item:hover i,
.pcoded-header .dropdown .profile-notification .pro-body a.dropdown-item:focus i {
    color: #ffffff !important;
}

/* ── Top bar: in-app notifications (matches profile card / brand tokens) ── */
/* Keep notification + profile chips on one optical row (mixed inline-flex vs flex skews alignment). */
.pcoded-header .navbar-nav.ms-auto > li .emis-notif-dropdown-wrap,
.pcoded-header .navbar-nav.ms-auto > li .emis-msg-dropdown-wrap,
.pcoded-header .navbar-nav.ms-auto > li .drp-user {
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    align-self: center !important;
    height: 42px;
    line-height: 0;
}

.pcoded-header .navbar-nav.ms-auto > li .drp-user {
    gap: 0;
}

.pcoded-header .emis-notif-bell {
    width: 42px;
    height: 42px;
    margin: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none !important;
    color: #ffffff !important;
    /* Match profile chip; translucent was often invisible against some header themes */
    background: var(--emis-brand-gradient);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 22px rgba(var(--emis-primary-rgb), 0.22);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.pcoded-header .emis-notif-bell:hover,
.pcoded-header .emis-notif-bell:focus-visible {
    color: #ffffff !important;
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 12px 26px rgba(var(--emis-primary-rgb), 0.28);
}

.pcoded-header .emis-notif-bell.dropdown-toggle::after {
    display: none;
}

.pcoded-header .emis-notif-bell-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/*
 * style.css forces `.pcoded-header .dropdown .dropdown-toggle` to line-height:56px + inline-block
 * and `.navbar-nav > li .dropdown-toggle > i` to 16px — breaks 42px circles and shrinks icons.
 */
.pcoded-header .navbar-nav > li .emis-notif-dropdown-wrap .emis-notif-bell.dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: var(--emis-brand-gradient) !important;
}

.pcoded-header .navbar-nav > li .emis-notif-dropdown-wrap .emis-notif-bell.dropdown-toggle > .emis-notif-bell-icon {
    font-size: 1.55rem !important;
    line-height: 1 !important;
    width: 1.55rem;
    height: 1.55rem;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pcoded-header .navbar-nav > li .drp-user .dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.pcoded-header .navbar-nav > li .drp-user .dropdown-toggle > .topbar-user-icon {
    font-size: 1.7rem !important;
    line-height: 1 !important;
    width: 1.7rem;
    height: 1.7rem;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Theme hides all badges when any .dropdown is open; keep notification count visible when relevant */
.pcoded-header .navbar-nav > li .emis-notif-dropdown-wrap.dropdown.show .emis-notif-badge.is-visible,
.pcoded-header .navbar-nav > li .emis-msg-dropdown-wrap.dropdown.show .emis-msg-badge.is-visible {
    display: inline-block !important;
}

.pcoded-header .navbar-nav > li .emis-notif-dropdown-wrap .emis-notif-bell .emis-notif-badge {
    top: -3px !important;
    right: -3px !important;
    left: auto !important;
}

.pcoded-header .emis-notif-badge,
.pcoded-header .emis-msg-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 0.62rem;
    padding: 2px 5px;
    min-width: 1.1rem;
    line-height: 1.1;
    display: none;
}

/* Messages top bar — same treatment as notifications bell */
.pcoded-header .emis-msg-bell {
    width: 42px;
    height: 42px;
    margin: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none !important;
    color: #ffffff !important;
    background: var(--emis-brand-gradient);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 22px rgba(var(--emis-primary-rgb), 0.22);
}

.pcoded-header .navbar-nav > li .emis-msg-dropdown-wrap .emis-msg-bell.dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    background: var(--emis-brand-gradient) !important;
}

.pcoded-header .navbar-nav > li .emis-msg-dropdown-wrap .emis-msg-bell.dropdown-toggle > .emis-msg-bell-icon {
    font-size: 1.55rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pcoded-header .emis-msg-menu {
    width: min(400px, calc(100vw - 1.5rem));
    max-width: 400px;
}

.pcoded-header .emis-msg-preview-item {
    text-decoration: none !important;
    color: inherit !important;
}

.pcoded-header .emis-msg-preview-item:hover,
.pcoded-header .emis-msg-preview-item:focus {
    color: inherit !important;
}

.pcoded-header .emis-msg-preview-item .emis-notif-item-icon {
    background: rgba(var(--emis-primary-rgb), 0.1);
    color: var(--emis-primary);
}

.pcoded-header .emis-msg-preview-item.emis-notif-item--unread .emis-notif-item-icon {
    background: rgba(var(--emis-accent-rgb), 0.2);
    color: var(--emis-primary);
}

.pcoded-header .emis-notif-badge.is-visible {
    display: inline-block;
}

.pcoded-header .emis-notif-menu {
    width: min(400px, calc(100vw - 1.5rem));
    max-width: 400px;
    margin-top: 0.5rem !important;
    border: 1px solid rgba(var(--emis-primary-rgb), 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--emis-shadow);
    background: #fff;
    overflow-x: hidden;
}

.pcoded-header .emis-notif-panel {
    max-height: min(520px, 72vh);
}

.pcoded-header .emis-notif-head {
    padding: 0.85rem 1rem;
    background: var(--emis-brand-gradient);
    color: #fff;
}

.pcoded-header .emis-notif-head-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 1rem;
}

.pcoded-header .emis-notif-head-icon i {
    font-size: 1.2rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pcoded-header .emis-notif-head-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.1;
}

.pcoded-header .emis-notif-head-sub {
    font-size: 0.72rem;
    opacity: 0.88;
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

/* Title + subtitle only (do not use .min-w-0 alone — the row wrapper also has min-w-0). */
.pcoded-header .emis-notif-head-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1;
}

.pcoded-header .emis-notif-head-actions .emis-notif-link {
    font-size: 0.72rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none !important;
}

.pcoded-header .emis-notif-head-actions .emis-notif-link:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.pcoded-header .emis-notif-head-actions .emis-notif-link-danger {
    color: rgba(255, 220, 220, 0.98) !important;
}

.pcoded-header .emis-notif-list {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 120px;
    max-height: 360px;
    background: #fafbfc;
}

.pcoded-header .emis-notif-empty {
    padding: 2rem 1.25rem;
    color: var(--emis-muted);
}

.pcoded-header .emis-notif-empty-icon {
    font-size: 2rem;
    opacity: 0.35;
}

.pcoded-header .emis-notif-empty-text {
    font-size: 0.82rem;
}

.pcoded-header .emis-notif-loading {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--emis-muted);
}

.pcoded-header .emis-notif-loading-spinner {
    width: 2.25rem;
    height: 2.25rem;
}

.pcoded-header .emis-notif-loading-label {
    font-size: 0.8rem;
}

.pcoded-header .emis-notif-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(var(--emis-primary-rgb), 0.06);
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    gap: 0.65rem;
    overflow-x: hidden;
    border-radius: 12px;
    margin: 0.45rem 0.55rem;
    border: 1px solid rgba(var(--emis-primary-rgb), 0.08);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.pcoded-header .emis-notif-item:last-child {
    border-bottom: 1px solid rgba(var(--emis-primary-rgb), 0.06);
}

.pcoded-header .emis-notif-item:hover {
    background: linear-gradient(180deg, #ffffff, #f4f8ff);
    box-shadow: 0 8px 20px rgba(var(--emis-primary-rgb), 0.16);
    transform: translateY(-1px);
}

.pcoded-header .emis-notif-item.emis-notif-item--unread {
    background: linear-gradient(180deg, rgba(var(--emis-accent-rgb), 0.12), #ffffff 75%);
    box-shadow: inset 3px 0 0 0 rgba(var(--emis-accent-rgb), 0.85), 0 4px 12px rgba(var(--emis-primary-rgb), 0.12);
}

.pcoded-header .emis-notif-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--emis-primary);
    background: rgba(var(--emis-accent-rgb), 0.12);
    border: 1px solid rgba(var(--emis-primary-rgb), 0.12);
}

.pcoded-header .emis-notif-item--unread .emis-notif-item-icon {
    background: linear-gradient(145deg, rgba(var(--emis-accent-rgb), 0.2), rgba(var(--emis-primary-rgb), 0.06));
    color: #173b88;
}

.pcoded-header .emis-notif-item-top {
    min-width: 0;
}

.pcoded-header .emis-notif-item-top > .d-flex.align-items-center.gap-2.min-w-0 {
    flex-wrap: wrap;
    row-gap: 0.3rem;
}

.pcoded-header .emis-notif-item-msg {
    font-size: 0.8rem;
    line-height: 1.42;
    color: var(--emis-ink);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    font-weight: 500;
}

.pcoded-header .emis-notif-item-meta {
    font-size: 0.68rem;
    margin-top: 0.35rem;
}

.pcoded-header .emis-notif-item-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.18rem 0.48rem;
    border-radius: 999px;
    background: rgba(var(--emis-primary-rgb), 0.08);
    color: var(--emis-primary);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    min-width: 0;
    flex: 0 1 auto;
    border: 1px solid rgba(var(--emis-primary-rgb), 0.15);
}

.pcoded-header .emis-notif-item-badge--module {
    background: rgba(var(--emis-primary-rgb), 0.1);
    color: #17408f;
}

.pcoded-header .emis-notif-item-badge--event {
    background: rgba(var(--emis-accent-rgb), 0.16);
    color: #5e3ab8;
    border-color: rgba(var(--emis-accent-rgb), 0.26);
}

.pcoded-header .emis-notif-item-time {
    font-size: 0.66rem;
    font-weight: 600;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
}

.pcoded-header .emis-notif-item-actions .btn {
    opacity: 0.85;
    transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
    border-radius: 8px;
    border: 1px solid rgba(var(--emis-primary-rgb), 0.14);
    background: rgba(var(--emis-primary-rgb), 0.05);
    color: #3559a5;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pcoded-header .emis-notif-item:hover .emis-notif-item-actions .btn {
    opacity: 1;
    transform: translateY(-1px);
}

.pcoded-header .emis-notif-item-actions .btn:hover {
    background: rgba(var(--emis-primary-rgb), 0.12);
}

.pcoded-header .emis-notif-item-actions .emis-notif-delete-btn {
    color: #cb2f45 !important;
    border-color: rgba(203, 47, 69, 0.24);
    background: rgba(203, 47, 69, 0.08);
}

.pcoded-header .emis-notif-item-actions .emis-notif-delete-btn:hover {
    background: rgba(203, 47, 69, 0.16);
}

.pcoded-header .emis-notif-foot {
    padding: 0.45rem 0.65rem;
    background: #fff;
    border-top: 1px solid rgba(var(--emis-primary-rgb), 0.08);
}

.pcoded-header .emis-notif-load-more {
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--emis-primary);
    border: 1px solid rgba(var(--emis-primary-rgb), 0.2);
    background: rgba(var(--emis-accent-rgb), 0.06);
}

.pcoded-header .emis-notif-load-more:hover {
    background: rgba(var(--emis-accent-rgb), 0.14);
    color: var(--emis-primary);
    border-color: rgba(var(--emis-primary-rgb), 0.28);
}

.pcoded-header .emis-notif-load-more--loading,
.pcoded-header .emis-notif-load-more:disabled {
    opacity: 0.92;
    cursor: wait;
    pointer-events: none;
}

.pcoded-header .emis-notif-load-more-busy {
    font-size: 0.78rem;
    font-weight: 600;
}

.pcoded-header .emis-notif-load-more-spinner {
    width: 0.95rem;
    height: 0.95rem;
    border-width: 0.14em;
    color: var(--emis-primary);
}

/* Modern sidebar */
.pcoded-navbar {
    width: 248px;
    height: calc(100% - 64px);
    margin-top: 64px;
    background: var(--emis-brand-gradient);
    color: rgba(255, 255, 255, 0.78);
    box-shadow: 12px 0 34px rgba(var(--emis-primary-rgb), 0.18);
}

.pcoded-navbar:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 8%, rgba(255, 255, 255, 0.16), transparent 16rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22rem);
}

.pcoded-navbar .navbar-wrapper,
.pcoded-navbar .navbar-content {
    position: relative;
}

.pcoded-navbar .pcoded-inner-navbar {
    padding: 0.85rem 0.75rem 1.25rem;
}

.pcoded-navbar .pcoded-inner-navbar li > a {
    margin: 0.14rem 0;
    padding: 0.46rem 0.62rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8125rem;
    line-height: 1.35;
    transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.pcoded-navbar .pcoded-inner-navbar li > a:before {
    display: none;
}

.pcoded-navbar .pcoded-inner-navbar li > a > .pcoded-micon {
    width: 28px;
    height: 28px;
    margin-right: 0.48rem;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.88rem;
    line-height: 28px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pcoded-navbar .pcoded-inner-navbar li > a > .pcoded-micon i,
.pcoded-navbar .pcoded-inner-navbar li > a > .pcoded-micon svg {
    font-size: 0.88rem;
    width: 0.88rem;
    height: 0.88rem;
}

.pcoded-navbar .pcoded-inner-navbar li > a .pcoded-mtext {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.pcoded-navbar .pcoded-inner-navbar li.active > a,
.pcoded-navbar .pcoded-inner-navbar li.pcoded-trigger > a,
.pcoded-navbar .pcoded-inner-navbar li:focus > a,
.pcoded-navbar .pcoded-inner-navbar li:hover > a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.17);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 12px 22px rgba(18, 28, 56, 0.12);
}

.pcoded-navbar .pcoded-inner-navbar > li:hover > a {
    transform: translateX(2px);
}

.pcoded-navbar .pcoded-inner-navbar li.active > a > .pcoded-micon,
.pcoded-navbar .pcoded-inner-navbar li.pcoded-trigger > a > .pcoded-micon,
.pcoded-navbar .pcoded-inner-navbar li:hover > a > .pcoded-micon {
    background: #ffffff;
    color: var(--emis-primary);
}

.pcoded-navbar .pcoded-inner-navbar li.pcoded-hasmenu > a:after {
    top: 0.82rem;
    right: 0.72rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}

/* Section headers (Platform Hub, HRM, …) */
.pcoded-navbar .pcoded-inner-navbar li.emis-sidebar-section-caption.pcoded-menu-caption {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.42);
    padding: 0.85rem 0.55rem 0.28rem;
    margin-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
}

.pcoded-navbar .pcoded-inner-navbar li.emis-sidebar-section-caption.pcoded-menu-caption:first-child {
    margin-top: 0;
    padding-top: 0.15rem;
    border-top: none;
}

.pcoded-navbar .pcoded-inner-navbar li.emis-sidebar-section-caption.pcoded-menu-caption > label {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

.pcoded-navbar .pcoded-submenu {
    margin: 0.18rem 0 0.32rem 0.85rem;
    padding: 0.22rem 0 0.28rem 0.38rem;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
}

.pcoded-navbar .pcoded-inner-navbar li.pcoded-hasmenu .pcoded-submenu:after,
.pcoded-navbar .pcoded-inner-navbar li.pcoded-hasmenu .pcoded-submenu li:after,
.pcoded-navbar .pcoded-inner-navbar li.pcoded-hasmenu .pcoded-submenu li > a:before {
    display: none;
}

.pcoded-navbar .pcoded-inner-navbar li.pcoded-hasmenu .pcoded-submenu li > a {
    padding: 0.36rem 0.52rem;
    margin: 0.04rem 0;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
}

/* Collapsible subgroup label inside a submenu (e.g. Academic → Class & section) */
.pcoded-navbar .pcoded-inner-navbar li.pcoded-hasmenu .pcoded-submenu > li.pcoded-hasmenu > a {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.76);
    padding: 0.38rem 0.52rem;
}

.pcoded-navbar .pcoded-inner-navbar li.pcoded-hasmenu .pcoded-submenu li > a:hover,
.pcoded-navbar .pcoded-inner-navbar li.pcoded-hasmenu .pcoded-submenu li.active > a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

/* Nested collapsible subgroups (e.g. Academic → Class & section): theme stacks default left margin on each ul.pcoded-submenu — tighten the inner level */
.pcoded-navbar .pcoded-inner-navbar > li.pcoded-hasmenu .pcoded-submenu > li.pcoded-hasmenu > .pcoded-submenu {
    margin-left: 0.35rem;
    margin-top: 0.12rem;
    margin-bottom: 0.2rem;
    padding-left: 0.2rem;
    border-left: none;
}

.pcoded-navbar .pcoded-inner-navbar > li.pcoded-hasmenu .pcoded-submenu > li.pcoded-hasmenu .pcoded-submenu > li > a {
    padding-left: 0.52rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.62);
}

.pcoded-navbar .pcoded-submenu .master-submenu-group {
    margin: 0.55rem 0.2rem 0.28rem;
}

.pcoded-navbar .pcoded-submenu .master-submenu-group span {
    padding: 0.22rem 0.52rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pcoded-navbar .pcoded-submenu .master-submenu-subgroup {
    margin: 0.32rem 0.2rem 0.12rem 0.55rem;
}

.pcoded-navbar .pcoded-submenu .master-submenu-subgroup span {
    padding: 0.16rem 0.42rem;
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.38);
}

.pcoded-navbar.navbar-collapsed .pcoded-inner-navbar li.emis-sidebar-section-caption.pcoded-menu-caption {
    display: none;
}

.pcoded-navbar a {
    color: rgba(255, 255, 255, 0.78);
}

.pcoded-navbar.navbar-collapsed {
    width: 72px;
}

.pcoded-navbar.navbar-collapsed .pcoded-inner-navbar {
    padding: 0.85rem 0.5rem 1.25rem;
}

.pcoded-navbar.navbar-collapsed .pcoded-inner-navbar > li > a {
    width: 48px;
    min-height: 48px;
    margin: 0.18rem auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcoded-navbar.navbar-collapsed .pcoded-inner-navbar > li > a > .pcoded-micon {
    width: 32px;
    height: 32px;
    margin-right: 0;
    font-size: 0.9rem;
    line-height: 32px;
}

.pcoded-navbar.navbar-collapsed .pcoded-inner-navbar > li > a > .pcoded-mtext,
.pcoded-navbar.navbar-collapsed .pcoded-inner-navbar > li.pcoded-hasmenu > a:after {
    display: none;
}

.pcoded-navbar.navbar-collapsed:not(:hover) .pcoded-inner-navbar > li.pcoded-hasmenu > .pcoded-submenu {
    display: none !important;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
}

.pcoded-navbar.navbar-collapsed ~ .pcoded-main-container {
    margin-left: 72px;
}

.pcoded-navbar.navbar-collapsed ~ .pcoded-header .m-header {
    width: 72px;
    padding: 0;
}

.pcoded-navbar.navbar-collapsed ~ .pcoded-header .m-header .mobile-menu {
    right: 50%;
    transform: translateX(50%);
}

.pcoded-navbar.navbar-collapsed ~ .pcoded-header .m-header .b-brand {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.pcoded-navbar.navbar-collapsed:hover ~ .pcoded-header .m-header {
    width: 248px;
    padding: 0 18px;
}

.pcoded-navbar.navbar-collapsed:hover ~ .pcoded-header .m-header .mobile-menu {
    right: 0.85rem;
    transform: none;
}

.pcoded-navbar.navbar-collapsed:hover ~ .pcoded-header .m-header .b-brand {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.pcoded-navbar.navbar-collapsed:hover {
    width: 248px !important;
}

.pcoded-navbar.navbar-collapsed:hover .pcoded-inner-navbar {
    padding: 0.85rem 0.75rem 1.25rem;
}

.pcoded-navbar.navbar-collapsed:hover .pcoded-inner-navbar > li > a {
    width: auto;
    min-height: auto;
    margin: 0.18rem 0;
    padding: 0.55rem 0.75rem;
    display: block;
}

.pcoded-navbar.navbar-collapsed:hover .pcoded-inner-navbar > li > a > .pcoded-micon {
    width: 28px;
    height: 28px;
    margin-right: 0.48rem;
    font-size: 0.88rem;
    line-height: 28px;
}

.pcoded-navbar.navbar-collapsed:hover .pcoded-inner-navbar > li > a > .pcoded-mtext {
    display: inline;
    opacity: 1;
    transform: none;
    position: relative;
    top: 0;
}

.pcoded-navbar.navbar-collapsed:hover .pcoded-inner-navbar > li.pcoded-hasmenu > a:after {
    display: block;
}

.pcoded-navbar.navbar-collapsed:hover .pcoded-inner-navbar > li.pcoded-hasmenu.pcoded-trigger > .pcoded-submenu,
.pcoded-navbar.navbar-collapsed:hover .pcoded-inner-navbar > li.pcoded-hasmenu.active > .pcoded-submenu {
    display: block;
    height: auto;
    margin: 0.25rem 0 0.45rem 1rem;
    padding: 0.35rem 0 0.35rem 0.45rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    overflow: visible;
}

@media (min-width: 992px) {
    .pcoded-navbar:not(.navbar-collapsed) ~ .pcoded-main-container {
        margin-left: 248px;
    }
}

@media (max-width: 991.98px) {
    .pcoded-header .m-header {
        width: 100%;
    }

    .pcoded-header .collapse.d-flex {
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid var(--emis-border);
        box-shadow: var(--emis-shadow-sm);
    }

    .topbarDropdown {
        width: 100%;
        margin: 0.35rem 0;
    }
}

/* Modern shared components */
.card,
.card-custom,
.user-profile-list,
.example.example-compact {
    border: 1px solid rgba(var(--emis-primary-rgb), 0.08);
    border-radius: var(--emis-radius-lg);
    background: var(--emis-surface);
    box-shadow: var(--emis-shadow-sm);
}

.card-header,
.card .card-header {
    border-bottom: 1px solid rgba(var(--emis-primary-rgb), 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.card-title,
.card .card-title,
.card h5,
.card .h5 {
    color: var(--emis-ink);
    font-weight: 800;
    letter-spacing: -0.015em;
}

.card-body,
.card-body-dd {
    color: var(--emis-ink);
}

.btn {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

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

.btn:focus,
.btn.focus,
.btn-check:focus + .btn {
    box-shadow: var(--emis-focus);
}

.btn-primary,
.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary.active,
.show > .btn-outline-primary.dropdown-toggle {
    color: #ffffff;
    border-color: transparent;
    background: var(--emis-brand-gradient);
    box-shadow: 0 10px 22px rgba(var(--emis-primary-rgb), 0.22);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    border-color: transparent;
    background: linear-gradient(135deg, #3f3470 0%, #2bbfab 100%);
    box-shadow: 0 14px 28px rgba(var(--emis-primary-rgb), 0.26);
}

.btn-outline-primary {
    color: var(--emis-primary);
    border-color: rgba(var(--emis-primary-rgb), 0.35);
    background: rgba(var(--emis-primary-rgb), 0.03);
}

.btn-outline-danger {
    color: var(--emis-danger);
    border-color: rgba(255, 83, 112, 0.42);
    background: rgba(255, 83, 112, 0.05);
}

.btn-outline-danger:hover,
.btn-danger {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #ff5370 0%, #e33f5d 100%);
    box-shadow: 0 10px 22px rgba(255, 83, 112, 0.24);
}

.btn-secondary,
.btn-outline-secondary:hover {
    border-color: transparent;
    background: #e8eef6;
    color: var(--emis-ink);
}

.form-label,
label {
    color: #334155;
    font-weight: 700;
}

.form-control,
.form-select,
select.form-control,
select.form-select {
    min-height: 38px;
    color: var(--emis-ink);
    border: 1px solid var(--emis-border);
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-control:focus,
.form-select:focus,
select.form-control:focus,
select.form-select:focus {
    border-color: rgba(var(--emis-accent-rgb), 0.85);
    box-shadow: var(--emis-focus);
    background-color: #ffffff;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control.error,
.form-select.error,
.select2-container--default .select2-selection--single.error {
    border-color: var(--emis-danger);
}

label.required-input:after {
    color: var(--emis-danger);
}

.input-group .form-control {
    border-radius: 10px 0 0 10px;
}

.input-group .btn {
    border-radius: 0 10px 10px 0;
}

.select2-container--default,
.select2-container--default .select2-selection--single {
    min-height: 38px;
    height: 38px;
    color: var(--emis-ink);
    border-color: var(--emis-border);
    border-radius: 10px;
    background: #ffffff;
}

.select2-container--default .select2-selection--single {
    border: 1px solid var(--emis-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: rgba(var(--emis-accent-rgb), 0.85);
    box-shadow: var(--emis-focus);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    color: var(--emis-ink);
    padding-left: 0.8rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 0.35rem;
}

.select2-container--default .select2-selection--multiple {
    min-height: 38px;
    border: 1px solid var(--emis-border);
    border-radius: 10px;
    background: #ffffff;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    border: 0;
    border-radius: 999px;
    background: rgba(var(--emis-primary-rgb), 0.1);
    color: var(--emis-primary);
    font-weight: 700;
}

.select2-container--readonly .select2-selection {
    background: var(--emis-soft-2) !important;
    cursor: not-allowed;
}

.select2-dropdown {
    border: 1px solid rgba(var(--emis-primary-rgb), 0.12);
    border-radius: 12px;
    box-shadow: var(--emis-shadow);
    overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--emis-primary);
}

.dropdown-menu {
    border: 1px solid rgba(var(--emis-primary-rgb), 0.1);
    border-radius: 14px;
    box-shadow: var(--emis-shadow);
}

.dropdown-item {
    border-radius: 9px;
    color: var(--emis-ink);
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--emis-primary);
    background: rgba(var(--emis-accent-rgb), 0.12);
}

.table-responsive {
    border-radius: var(--emis-radius);
}

.theme-tbl,
.card-body-dd.theme-tbl {
    padding: 1rem;
}

.table,
table.dataTable {
    color: var(--emis-ink);
    border-color: var(--emis-border);
}

.table thead th,
table.dataTable thead th {
    color: var(--emis-primary);
    background: linear-gradient(180deg, #f8fbff 0%, #eef7f7 100%);
    border-bottom: 1px solid rgba(var(--emis-primary-rgb), 0.12) !important;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.table tbody td,
table.dataTable tbody td {
    border-color: rgba(226, 232, 240, 0.85);
    vertical-align: middle;
}

.table tbody tr,
table.dataTable tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover,
table.dataTable tbody tr:hover {
    background: rgba(var(--emis-accent-rgb), 0.06);
}

.dataTables_wrapper {
    color: var(--emis-muted);
}

/* App shell: DataTables sets an inline pixel width on first draw; without this the table stays narrow
 * when the sidenav collapses/expands while controls (search/pager) already span the row. Applies
 * anywhere `.pcoded-main-container` wraps content (main app, embed, public-dashboard pages). */
.pcoded-main-container .dataTables_wrapper,
.pcoded-main-container .dt-responsive.table-responsive {
    width: 100%;
    max-width: 100%;
}

.pcoded-main-container table.dataTable {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* scrollX tables must grow wider than the viewport so .dataTables_scrollBody can scroll. */
.pcoded-main-container .emis-dt-scroll-x-host table.dataTable,
.pcoded-main-container .emis-dt-scroll-x-host .dataTables_scrollHeadInner table.dataTable,
.pcoded-main-container .emis-dt-scroll-x-host .dataTables_scrollBody table.dataTable,
.teacher-edit-panel-body .theme-tbl .emis-dt-scroll-x-host table.dataTable,
.teacher-edit-panel-body .theme-tbl .emis-dt-scroll-x-host .dataTables_scrollHeadInner table.dataTable,
.teacher-edit-panel-body .theme-tbl .emis-dt-scroll-x-host .dataTables_scrollBody table.dataTable {
    width: auto !important;
    min-width: 100%;
    max-width: none;
}

.dataTables_length,
.dataTables_filter {
    margin-bottom: 0.85rem;
}

.dataTables_length select,
.dataTables_filter input {
    min-height: 38px;
    border: 1px solid var(--emis-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--emis-ink);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.dataTables_length select {
    position: static;
    width: auto;
    min-width: 76px;
    margin: 0 0.35rem;
}

.dataTables_filter input {
    margin-top: 0;
    padding: 0.45rem 0.9rem;
}

.dataTables_length select:focus,
.dataTables_filter input:focus {
    border-color: rgba(var(--emis-accent-rgb), 0.85);
    box-shadow: var(--emis-focus);
    outline: none;
}

.page-item .page-link,
.pagination .page-link {
    margin: 0 0.12rem;
    color: var(--emis-primary);
    border-color: rgba(var(--emis-primary-rgb), 0.12);
    border-radius: 999px;
}

.page-item.active .page-link,
.pagination .active .page-link {
    border-color: transparent;
    background: var(--emis-brand-gradient);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(var(--emis-primary-rgb), 0.22);
}

.badge {
    border-radius: 999px;
    font-weight: 800;
}

.modal-content {
    border: 1px solid rgba(var(--emis-primary-rgb), 0.1);
    border-radius: 18px;
    box-shadow: var(--emis-shadow);
}

.modal-header {
    border-bottom: 1px solid rgba(var(--emis-primary-rgb), 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.modal-footer {
    border-top: 1px solid rgba(var(--emis-primary-rgb), 0.08);
    background: #f8fafc;
}

.staff-listing-filter-card {
    border-radius: var(--emis-radius-lg);
    border: 1px solid rgba(var(--emis-primary-rgb), 0.1);
    box-shadow: var(--emis-shadow-sm);
}

.staff-listing-filter-card .card-header {
    border-radius: var(--emis-radius-lg) var(--emis-radius-lg) 0 0;
}

.staff-listing-filters .select2-container {
    width: 100% !important;
}

.staff-listing-filters .form-label {
    color: var(--emis-muted);
    font-weight: 600;
}

/* DataTables (and inline tables): compact icon-only row actions */
.emis-dt-actions,
.emis-sm-dt-actions {
    gap: 0.2rem;
}

.emis-dt-actions .btn.btn-icon,
.emis-sm-dt-actions .btn.btn-icon {
    width: 1.65rem;
    height: 1.65rem;
    min-width: 1.65rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 0.35rem;
}

.emis-dt-actions .btn.btn-icon .feather,
.emis-dt-actions .btn.btn-icon i[class^="icon-"],
.emis-dt-actions .btn.btn-icon i[class*=" icon-"],
.emis-sm-dt-actions .btn.btn-icon .feather,
.emis-sm-dt-actions .btn.btn-icon i[class^="icon-"],
.emis-sm-dt-actions .btn.btn-icon i[class*=" icon-"] {
    width: 0.85rem;
    height: 0.85rem;
    font-size: 0.85rem;
    line-height: 1;
}

/* Class timetable grid: horizontal scroll + bounded cells so long Select2 labels do not crush Sun–Sat */
.emis-class-timetable-scroll {
    overflow-x: auto;
    overflow-y: visible;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.emis-class-timetable-grid {
    table-layout: fixed;
    width: max(100%, calc(7.5rem + 7 * 10.75rem));
    min-width: calc(7.5rem + 7 * 10.75rem);
}

.emis-class-timetable-grid col.emis-ct-col-period {
    width: 7.5rem;
}

.emis-class-timetable-grid col.emis-ct-col-day {
    width: 10.75rem;
}

.emis-class-timetable-grid thead th:first-child,
.emis-class-timetable-grid tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 4;
    background: #ffffff;
    box-shadow: 2px 0 6px rgba(15, 23, 42, 0.08);
    vertical-align: middle;
}

.emis-class-timetable-grid tbody td:first-child {
    z-index: 3;
}

.emis-class-timetable-grid thead th:not(:first-child),
.emis-class-timetable-grid tbody td:not(:first-child) {
    vertical-align: middle;
}

.emis-class-timetable-scroll .select2-container {
    width: 100% !important;
    max-width: 100%;
}

.emis-class-timetable-scroll .select2-container .select2-selection--single {
    min-height: calc(1.45em + 0.65rem);
    height: auto;
}

.emis-class-timetable-scroll .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.35;
    padding-top: 0.32rem;
    padding-bottom: 0.32rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* School management — student registration: keep compact cells but allow horizontal scrollX. */
.theme-tbl .dt-responsive:has(#smStudents) {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.theme-tbl #smStudents_wrapper .dataTables_scrollHead {
    overflow: hidden !important;
}

.theme-tbl #smStudents_wrapper .dataTables_scrollBody {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
}

/* Force a wide grid footprint so horizontal scrollbar is available. */
.theme-tbl #smStudents {
    min-width: 1500px;
}

.theme-tbl #smStudents.dataTable.nowrap td,
.theme-tbl #smStudents.dataTable.nowrap th {
    white-space: normal;
    vertical-align: middle;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.theme-tbl #smStudents tbody td,
.theme-tbl #smStudents thead th {
    font-size: 0.8125rem;
    line-height: 1.35;
    padding: 0.32rem 0.42rem;
}

.theme-tbl #smStudents .badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2em 0.55em;
}

.theme-tbl #smStudents tr td:last-child {
    width: 1%;
    min-width: 10.5rem;
    max-width: 16rem;
    white-space: normal;
    vertical-align: middle;
}

.theme-tbl #smStudents .emis-sm-students-dt-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.22rem;
}

.theme-tbl #smStudents .emis-sm-students-dt-actions-row {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
}

.theme-tbl #smStudents .emis-sm-students-dt-actions .btn.btn-icon {
    padding: 0;
    line-height: 1;
    width: 1.55rem;
    height: 1.55rem;
    min-width: 1.55rem;
    min-height: 1.55rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 0.3rem;
}

.theme-tbl #smStudents .emis-sm-students-dt-actions .btn.btn-icon i,
.theme-tbl #smStudents .emis-sm-students-dt-actions .btn.btn-icon .feather {
    width: 0.85rem;
    height: 0.85rem;
    font-size: 0.82rem;
}

#smStudents_wrapper .dataTables_length,
#smStudents_wrapper .dataTables_filter {
    margin-bottom: 0.5rem;
}

#smStudents_wrapper .dataTables_length select,
#smStudents_wrapper .dataTables_filter input {
    min-height: 32px;
    font-size: 0.8125rem;
    padding-top: 0.28rem;
    padding-bottom: 0.28rem;
}

#smStudents_wrapper .dt-buttons .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.45rem;
}

/* --------------------------------------------------------------------------
   Profile avatars: square crop on upload; circular display via CSS where needed
   -------------------------------------------------------------------------- */
.teacher-avatar-editor__wrap {
    position: relative;
    width: 112px;
    height: 112px;
    flex-shrink: 0;
}

.teacher-avatar-editor__frame,
.teacher-avatar-editor__circle {
    width: 112px;
    height: 112px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid #e2e8f0;
    background: #f1f5f9;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.teacher-avatar-editor__frame img,
.teacher-avatar-editor__circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.teacher-avatar-editor__fab {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.teacher-avatar-editor__fab:hover {
    background: #1d4ed8;
    color: #fff;
}

.teacher-avatar-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    background: #f8fafc;
    transition: border-color 0.15s, background 0.15s;
}

.teacher-avatar-dropzone.is-dragover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1e40af !important;
}

.teacher-avatar-croppie-wrap {
    width: 100%;
    max-width: 320px;
    min-height: 300px;
}

.teacher-avatar-croppie-wrap .cr-boundary {
    border-radius: 8px;
}

.emis-avatar-invalid .teacher-avatar-editor__frame,
.emis-avatar-invalid .teacher-avatar-editor__circle {
    box-shadow: 0 0 0 3px #dc3545;
}

.emis-avatar--round {
    border-radius: 50% !important;
    overflow: hidden;
}

.emis-avatar--round img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   Portal dashboards (student + employee): identity hero + KPI strip
   -------------------------------------------------------------------------- */
.emis-portal-dashboard .emis-student-dash-identity {
    position: relative;
    border-radius: var(--emis-radius-lg);
    background: linear-gradient(125deg, #1e1b4b 0%, var(--emis-primary) 38%, #2563eb 72%, #0f766e 100%);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.emis-portal-dashboard .emis-student-dash-identity__bg {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.55), transparent 42%),
        radial-gradient(circle at 88% 10%, rgba(48, 210, 190, 0.45), transparent 38%),
        radial-gradient(circle at 70% 88%, rgba(255, 255, 255, 0.2), transparent 40%);
    pointer-events: none;
}

.emis-portal-dashboard .emis-student-dash-eyebrow {
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
}

.emis-portal-dashboard .emis-student-dash-enroll-pill {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    vertical-align: middle;
}

.emis-portal-dashboard .emis-student-dash-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.emis-portal-dashboard .emis-student-dash-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.emis-portal-dashboard .emis-student-dash-avatar__initials {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.04em;
}

.emis-portal-dashboard .emis-student-dash-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
}

.emis-portal-dashboard .emis-student-dash-chip i {
    font-size: 0.78rem;
}

.emis-portal-dashboard .emis-student-dash-chip--ok {
    background: rgba(22, 163, 74, 0.28);
    border-color: rgba(74, 222, 128, 0.45);
}

.emis-portal-dashboard .emis-student-dash-chip--bad {
    background: rgba(220, 38, 38, 0.28);
    border-color: rgba(252, 165, 165, 0.45);
}

.emis-portal-dashboard .emis-student-dash-chip--warn {
    background: rgba(234, 179, 8, 0.22);
    border-color: rgba(253, 224, 71, 0.45);
    color: #fffbeb;
}

.emis-portal-dashboard .emis-student-dash-chip--accent {
    background: rgba(48, 210, 190, 0.22);
    border-color: rgba(45, 212, 191, 0.45);
}

.emis-portal-dashboard .emis-student-dash-kpi {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--emis-radius);
    background: var(--emis-surface);
    border: 1px solid var(--emis-border);
    box-shadow: var(--emis-shadow-sm);
    min-height: 76px;
    height: 100%;
}

.emis-portal-dashboard .emis-student-dash-kpi__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1.05rem;
    background: rgba(var(--emis-primary-rgb), 0.12);
    color: var(--emis-primary);
}

.emis-portal-dashboard .emis-student-dash-kpi__icon--violet {
    background: #ede9fe;
    color: #5b21b6;
}

.emis-portal-dashboard .emis-student-dash-kpi__icon--teal {
    background: rgba(var(--emis-accent-rgb), 0.18);
    color: #0f766e;
}

.emis-portal-dashboard .emis-student-dash-kpi__icon--amber {
    background: #ffedd5;
    color: #c2410c;
}

.emis-portal-dashboard .emis-student-dash-kpi__label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    color: var(--emis-muted);
}

.emis-portal-dashboard .emis-student-dash-kpi__value {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--emis-ink);
}

.emis-portal-dashboard .emis-student-dash-row1 .emis-student-dash-kpi__value {
    font-size: 1.05rem;
}

.emis-portal-dashboard .emis-student-dash-institute-full .dashboard-stat-card__value {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.15;
}

.emis-portal-dashboard .emis-student-dash-institute-full .card-body {
    min-height: 142px;
}

.emis-portal-dashboard .emis-student-dash-promo-icon {
    background: linear-gradient(135deg, rgba(var(--emis-primary-rgb), 0.12), rgba(var(--emis-accent-rgb), 0.18));
    color: var(--emis-primary);
    font-size: 1.35rem;
}

/* Attendance month grid on student dashboard (slightly larger tap targets) */
.emis-portal-dashboard .emis-att-scope .emis-att-cell {
    min-height: 72px;
}

.emis-portal-dashboard .emis-att-scope .emis-att-month-title {
    font-size: 1.05rem;
}

.emis-employee-dashboard.emis-portal-dashboard .emis-student-dash-identity {
    background: linear-gradient(125deg, #0f172a 0%, #1e40af 40%, #0f766e 72%, #14532d 100%);
}

/* Employees index (/teachers): compact DataTable, smaller badges and row actions */
.emis-teachers-index-dt .dt-responsive table.dataTable thead th,
.emis-teachers-index-dt .dt-responsive table.dataTable tbody td {
    font-size: 0.8125rem;
    padding: 0.38rem 0.45rem;
    vertical-align: top;
}

.emis-teachers-index-dt .emis-staff-dt-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2em 0.45em;
    line-height: 1.2;
}

.emis-teachers-index-dt .emis-sm-dt-actions .btn.btn-icon {
    width: 1.4rem;
    height: 1.4rem;
    min-width: 1.4rem;
    padding: 0;
    border-radius: 0.3rem;
}

.emis-teachers-index-dt .emis-sm-dt-actions .btn.btn-icon .feather,
.emis-teachers-index-dt .emis-sm-dt-actions .btn.btn-icon i[class^="icon-"],
.emis-teachers-index-dt .emis-sm-dt-actions .btn.btn-icon i[class*=" icon-"] {
    width: 0.78rem;
    height: 0.78rem;
    font-size: 0.78rem;
    line-height: 1;
}

.emis-teachers-index-dt .emis-staff-dt-name-cell .text-muted.small {
    font-size: 0.72rem;
}

.emis-teachers-index-dt .emis-teachers-dt-status-cell {
    min-width: 5.5rem;
}

/* Global spotlight / command palette */
.emis-spotlight-sidebar-wrap {
    position: relative;
    margin: 0.85rem 0.75rem 0.65rem;
    padding: 0;
}

.emis-spotlight-sidebar-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8125rem;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.emis-spotlight-sidebar-trigger:hover,
.emis-spotlight-sidebar-trigger:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--emis-accent-rgb), 0.22);
}

.emis-spotlight-sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.15rem;
    opacity: 0.9;
}

.emis-spotlight-sidebar-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.85;
}

.emis-spotlight-sidebar-kbd,
.emis-spotlight-kbd {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.15);
    font-size: 0.68rem;
    font-family: inherit;
    line-height: 1.3;
    color: inherit;
}

.emis-spotlight-root {
    position: fixed;
    inset: 0;
    z-index: 10900;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh 1rem 2rem;
    pointer-events: none;
}

.emis-spotlight-root.is-open {
    display: flex;
    pointer-events: auto;
}

body.emis-spotlight-open {
    overflow: hidden;
}

.emis-spotlight-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}

.emis-spotlight-panel {
    position: relative;
    width: min(640px, 100%);
    max-height: min(70vh, 520px);
    display: flex;
    flex-direction: column;
    background: var(--emis-surface);
    border: 1px solid var(--emis-border);
    border-radius: var(--emis-radius-lg);
    box-shadow: var(--emis-shadow);
    overflow: hidden;
}

.emis-spotlight-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--emis-border);
}

.emis-spotlight-header-icon {
    color: var(--emis-muted);
    font-size: 1.1rem;
}

.emis-spotlight-input {
    flex: 1;
    border: 0;
    outline: none;
    font-size: 1rem;
    color: var(--emis-ink);
    background: transparent;
}

.emis-spotlight-input::placeholder {
    color: var(--emis-muted);
}

.emis-spotlight-panel .emis-spotlight-kbd {
    border-color: var(--emis-border);
    background: var(--emis-soft);
    color: var(--emis-muted);
}

.emis-spotlight-results {
    flex: 1;
    overflow-y: auto;
    padding: 0.35rem;
}

.emis-spotlight-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--emis-radius-sm);
    color: var(--emis-ink);
    text-decoration: none;
    transition: background 0.12s ease;
}

.emis-spotlight-result:hover,
.emis-spotlight-result.is-active {
    background: var(--emis-soft-2);
    color: var(--emis-ink);
    text-decoration: none;
}

.emis-spotlight-result-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(var(--emis-primary-rgb), 0.08);
    color: var(--emis-primary);
    flex-shrink: 0;
}

.emis-spotlight-result-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.emis-spotlight-result-label {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emis-spotlight-result-label mark {
    background: rgba(var(--emis-accent-rgb), 0.25);
    color: inherit;
    padding: 0;
}

.emis-spotlight-result-group {
    font-size: 0.75rem;
    color: var(--emis-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emis-spotlight-result-hint {
    color: var(--emis-muted);
    opacity: 0;
    font-size: 0.85rem;
    transition: opacity 0.12s ease;
}

.emis-spotlight-result.is-active .emis-spotlight-result-hint,
.emis-spotlight-result:hover .emis-spotlight-result-hint {
    opacity: 1;
}

.emis-spotlight-empty {
    padding: 1.25rem 1rem;
    text-align: center;
    color: var(--emis-muted);
    font-size: 0.9rem;
}

.emis-spotlight-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    padding: 0.55rem 1rem;
    border-top: 1px solid var(--emis-border);
    background: var(--emis-soft);
    font-size: 0.72rem;
    color: var(--emis-muted);
}

.emis-spotlight-footer kbd {
    display: inline-block;
    margin-right: 0.15rem;
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
    border: 1px solid var(--emis-border);
    background: var(--emis-surface);
    font-size: 0.68rem;
    font-family: inherit;
}

.emis-spotlight-sidebar-kbd {
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.12rem 0.35rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.12);
    font-size: 0.62rem;
    font-family: inherit;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.75);
}

/* Collapsed sidebar: icon-only search affordance */
.pcoded-navbar.navbar-collapsed .emis-spotlight-sidebar-text,
.pcoded-navbar.navbar-collapsed .emis-spotlight-sidebar-kbd {
    display: none;
}

.pcoded-navbar.navbar-collapsed .emis-spotlight-sidebar-trigger {
    justify-content: center;
    padding: 0.55rem;
}

.pcoded-navbar.navbar-collapsed .emis-spotlight-sidebar-wrap {
    margin: 0.65rem 0.5rem 0.5rem;
}

/* Dashboard / notice board (school calendar events) */
.emis-notice-board-list__row {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--emis-border, rgba(0, 0, 0, 0.08));
}

.emis-notice-board-list__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.emis-notice-board-list--widget .emis-notice-board-list__row:first-child {
    padding-top: 0;
}

.emis-notice-board-item--compact .emis-notice-board-rich {
    font-size: 0.875rem;
}

.emis-notice-board-read-more {
    font-weight: 600;
}

.emis-dashboard-notice-board .emis-lms-rich-content,
.emis-notice-board-page .emis-lms-rich-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--emis-ink, #172033);
    word-break: break-word;
}

.emis-dashboard-notice-board .emis-lms-rich-content img,
.emis-notice-board-page .emis-lms-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.emis-dashboard-notice-board .emis-lms-rich-content table,
.emis-notice-board-page .emis-lms-rich-content table {
    max-width: 100%;
    font-size: 0.85rem;
}

.emis-dashboard-notice-board .card-header h6,
.emis-notice-board-page .card-header h6 {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.emis-dashboard-notice-board .card-header h6 > .feather,
.emis-notice-board-page .card-header h6 > .feather {
    font-size: 1.05rem;
    width: 1.05rem;
    height: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
}

.emis-dashboard-notice-board .border-top a,
.emis-notice-board-page .border-top a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.emis-notice-board-item .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    vertical-align: middle;
}

.emis-notice-board-item .badge .feather {
    font-size: 0.85em;
    width: 0.85em;
    height: 0.85em;
    line-height: 1;
    flex-shrink: 0;
}

.emis-notice-board-item .small.text-muted {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.65rem;
}

.emis-notice-board-item .small.text-muted > span {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.emis-notice-board-item .small.text-muted .feather,
.emis-dashboard-notice-board .border-top a .feather,
.emis-notice-board-page .border-top a .feather {
    font-size: 0.95em;
    width: 0.95em;
    height: 0.95em;
    line-height: 1;
    flex-shrink: 0;
}
