.remove-elective-subject {
    position: absolute;
    right: 20px;
    margin-top: 3px;
}

#external-events {
    z-index: 2;
    width: 150px;
    padding: 0 10px;
    border: 1px solid #ccc;
    background: #eee;
}

#external-events .fc-event {
    cursor: move;
    margin: 3px 0;
    height: 45px;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.fc-customButton-button {
    font-size: 13px !important;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateY(-50%);
}


.form-group {
    margin-bottom: 1rem;
}

.form-group > label {
    margin-bottom: 10px;
}

#delete-modal .modal-footer > .btn {

    border-radius: 3px !important;
    padding: 0 8px !important;
    font-size: 15px;
}

.fc-scroller {
    overflow-y: hidden !important;
}

.context-menu {
    position: absolute;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    padding: 5px;
}

.context-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.context-menu ul > li {
    display: block;;
    padding: 5px 15px;
    list-style-type: none;
    color: #333;
    cursor: pointer;
    margin: 0 auto;
    transition: 0.10s;
    font-size: 13px;
}

.context-menu ul > li:hover {
    color: #fff;
    background-color: #007bff;
    border-radius: 2px;
}

/*.fa, .fas {*/
/*    font-size: 13px;*/
/*    margin-right: 4px;*/
/*}*/

.no-header-toolbar .fc-header-toolbar.fc-toolbar {
    margin-top: 0;
    margin-bottom: 0;
}

.fc-h-event {
    border: none;
}

.remove-timetable {
    padding: 2px 3px;
}

.remove-timetable:hover {
    background: white;
    color: black;
    border-radius: 10px;
}

label.filter-menu {
    font-size: 13px;
    color: #7c7c7c;
    font-weight: 500;
    position: absolute;
    top: -8px;
    /*left: 27px;*/
    /*left: 1%;*/
    background: #fff;
    /*margin-bottom: 0;*/
    margin-left: 5px;
    padding: 0 5px;
    z-index: 99;
    border-radius: 20px;
}

/*.select2-container--default.select2-container--focus .select2-selection--multiple {*/
/*    height: 45px;*/
/*}*/

/*.select2-container .select2-selection--multiple {*/
/*    min-height: 45px;*/
/*}*/

.w-fit-content {
    width: fit-content;
}

.select2-container--default .select2-selection--single {
    padding: 0.94rem 0.6rem !important;
}

.select2-container--default .select2-selection--multiple {
    padding: 0.34rem 0.6rem !important;
}

.select2-search__field::placeholder {
    color: #444;
    font-size: 0.8125rem;
}

.asColorPicker-alpha {
    display: none;
}

.remove-number-increment::-webkit-inner-spin-button,
.remove-number-increment::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

.total_paidable_amount {
    background-color: lightgray;
}
.dashboard-description {
    font-size: 13px;
}
.v-scroll {
    height: 385px;
    overflow-y: scroll;
}
.custom-card-body {
    padding: 1.25rem !important;
}
.image-tile img {
    height: 200px;
    object-fit: cover;
}
.text-wrap div {
    white-space: normal !important;
}

.package-type-badge {
    position: absolute;
    left: auto;
    right: -10px;
    clip-path: polygon(50% 0%,100% 0%,100% 100%,0% 100%,14% 52%,0% 0%);
    width: 130px;
    height: 38px;
    top: 8px;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.package-type-badge{
    right: -2px;
}

.postpaid-color {
    background: var(--primary-color);
}
.prepaid-color {
    background: var(--secondary-color);
}

.addon-border-primary {
    overflow: hidden;
}
.addon-ribbon {
    font: bold 15px sans-serif;
    color: #333;
    text-align: center;
    -webkit-transform: rotate(-45deg);
    -moz-transform:    rotate(-45deg);
    -ms-transform:     rotate(-45deg);
    -o-transform:      rotate(-45deg);
    position: absolute;
    padding: 7px 0;
    top: 15px;
    left: -30px;
    width: 120px;
    background-color: #ff0000;
    color: #fff;
}
.sidebar .nav .nav-item .nav-link i.menu-icon {
    margin-left: 5px !important;
    width: 30px;
}
.sidebar .nav .nav-item {
    padding: 0 1.25rem !important;
}
@media (min-width: 992px) {
    .sidebar-icon-only .sidebar .nav .nav-item {
        position: relative;
        padding: 0 !important;
    }
}
.sidebar .nav .nav-item .nav-link i.menu-arrow {
    font-size: 1.5rem !important;
}
.student-id-card-demo {
    position: fixed;
    width: -webkit-fill-available;
    margin-right: 20px;
}

.action-column-dropdown-menu {
    left: -2rem !important;
}
.action-column-menu {

    /* position: absolute; */
    /* transform: translate(-50%, -50%); */

    /* position: absolute;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 1000; */

    /* top: 50%;
    left: 50%; */
}

.action-td-cell {
    /* position: absolute; */
    /* border: 0px !important; */
    /* top: 40px; */
}

.dropdown .dropdown-menu .dropdown-item:hover {
    background-color: #007bff !important;
    color: #fff !important;
}

/* ==========================================================================
   MODERN & CREATIVE ADMIN PANEL DESIGN SYSTEM
   ========================================================================== */

body, .main-panel, .content-wrapper, .sidebar, .navbar, h1, h2, h3, h4, h5, h6, p, span, a, input, button, select, textarea, .table {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

body {
    background-color: #f4f6fb !important;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.content-wrapper {
    background: #f4f6fb !important;
    padding: 1.75rem 2rem !important;
    min-height: calc(100vh - 70px);
}

/* --- Top Navbar (Glassmorphic & Sleek) --- */
.navbar.default-layout-navbar {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.04) !important;
    height: 70px;
    transition: all 0.3s ease;
}

.navbar .navbar-brand-wrapper {
    background: #0f172a !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    height: 70px !important;
}

.navbar .navbar-brand-wrapper .brand-logo img {
    height: 38px !important;
    width: auto !important;
}

.navbar .navbar-menu-wrapper {
    background: transparent !important;
}

.navbar .navbar-menu-wrapper .navbar-toggler {
    color: #475569 !important;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar .navbar-menu-wrapper .navbar-toggler:hover {
    background: #f1f5f9;
    color: #0f172a !important;
}

.cache-clear .btn {
    border-radius: 9999px !important;
    padding: 5px 16px !important;
    font-weight: 600;
    font-size: 0.78rem !important;
    letter-spacing: 0.02em;
    background: rgba(34, 87, 122, 0.08) !important;
    color: var(--theme-color, #22577a) !important;
    border: 1px solid rgba(34, 87, 122, 0.2) !important;
    transition: all 0.2s ease;
}

.cache-clear .btn:hover {
    background: var(--theme-color, #22577a) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 87, 122, 0.25);
}

.nav-profile .nav-profile-img img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-profile .nav-profile-text p {
    font-weight: 600 !important;
    color: #0f172a !important;
    font-size: 0.9rem;
}

.dropdown-menu.navbar-dropdown {
    border-radius: 16px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06) !important;
    padding: 8px !important;
    overflow: hidden;
}

.dropdown-menu.navbar-dropdown .dropdown-item {
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155 !important;
    transition: all 0.15s ease;
    border-bottom: none !important;
}

.dropdown-menu.navbar-dropdown .dropdown-item:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    transform: translateX(4px);
}

/* --- Sleek Dark Sidebar --- */
.sidebar {
    background: linear-gradient(180deg, #0b1120 0%, #0f172a 50%, #1e293b 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    padding-top: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar .sidebar-search input.menu-search {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 9px 14px !important;
    font-size: 0.85rem !important;
    transition: all 0.25s ease;
}

.sidebar .sidebar-search input.menu-search::placeholder {
    color: #64748b !important;
}

.sidebar .sidebar-search input.menu-search:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08) !important;
}

.sub-category {
    padding: 14px 18px 6px 18px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    border-left: none !important;
}

.sidebar .nav .nav-item {
    padding: 0 !important;
    margin: 3px 12px !important;
}

.sidebar .nav .nav-item .nav-link {
    border-radius: 10px !important;
    padding: 10px 14px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    font-size: 0.88rem !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex;
    align-items: center;
}

.sidebar .nav .nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

.sidebar .nav .nav-item.active > .nav-link,
.sidebar .nav .nav-item .nav-link.active {
    background: linear-gradient(135deg, var(--theme-color, #22577a) 0%, #38a3a5 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(34, 87, 122, 0.45) !important;
}

.sidebar .nav .nav-item .nav-link i.menu-icon {
    font-size: 1rem !important;
    color: inherit !important;
    margin-right: 12px !important;
    width: 20px !important;
    text-align: center;
    opacity: 0.85;
}

.sidebar .nav.sub-menu {
    background: rgba(0, 0, 0, 0.25) !important;
    border-radius: 10px;
    padding: 6px 0 !important;
    margin: 4px 0 6px 16px !important;
    border-left: 2px solid rgba(255, 255, 255, 0.12) !important;
}

.sidebar .nav.sub-menu .nav-item .nav-link {
    padding: 7px 14px !important;
    font-size: 0.82rem !important;
    color: #94a3b8 !important;
}

.sidebar .nav.sub-menu .nav-item .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

/* --- Page Header & Titles --- */
.page-header {
    margin-bottom: 1.75rem !important;
}

.page-title {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.page-title-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--theme-color, #22577a) 0%, #38a3a5 100%) !important;
    box-shadow: 0 4px 14px rgba(34, 87, 122, 0.35) !important;
    font-size: 0.95rem !important;
}

/* --- Modern Cards & KPI Stat Blocks --- */
.card {
    border-radius: 18px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    background: #ffffff !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.08), 0 6px 12px -2px rgba(15, 23, 42, 0.03) !important;
    transform: translateY(-3px);
}

.card .card-body {
    padding: 1.5rem !important;
}

.card .card-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem !important;
}

/* KPI Counter Block */
.stretch-card .card h3 {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.03em;
    margin-top: 0.35rem !important;
    margin-bottom: 0 !important;
}

.stretch-card .card .ms-3 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b !important;
}

.stretch-card .card img {
    width: 52px;
    height: 52px;
    padding: 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(34, 87, 122, 0.08) 0%, rgba(56, 163, 165, 0.12) 100%);
    transition: all 0.3s ease;
}

.stretch-card .card:hover img {
    transform: scale(1.08) rotate(3deg);
}

/* --- Buttons & Action Controls --- */
.btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.01em;
    padding: 9px 18px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

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

.btn-theme, .btn-primary {
    background: linear-gradient(135deg, var(--theme-color, #22577a) 0%, #2e7d9b 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(34, 87, 122, 0.3) !important;
}

.btn-theme:hover, .btn-primary:hover {
    box-shadow: 0 8px 20px rgba(34, 87, 122, 0.45) !important;
    background: linear-gradient(135deg, #1b4763 0%, #22577a 100%) !important;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.btn-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3) !important;
}

/* --- Form Controls & Inputs --- */
.form-control, .form-select, select {
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 9px 14px !important;
    font-size: 0.88rem !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.form-control:focus, .form-select:focus, select:focus {
    border-color: var(--theme-color, #22577a) !important;
    box-shadow: 0 0 0 3px rgba(34, 87, 122, 0.12) !important;
    background-color: #ffffff !important;
}

/* --- Modern Badges --- */
.badge {
    border-radius: 9999px !important;
    padding: 5px 12px !important;
    font-weight: 600 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.02em;
}

.badge-success {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #dc2626 !important;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-info {
    background: rgba(14, 165, 233, 0.12) !important;
    color: #0284c7 !important;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

/* --- Tables & Data Grids --- */
.table, .bootstrap-table table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table thead th, .bootstrap-table thead th {
    background: #f8fafc !important;
    color: #64748b !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    border-top: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 12px 16px !important;
}

.table tbody td, .bootstrap-table tbody td {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 14px 16px !important;
    vertical-align: middle !important;
    font-size: 0.88rem !important;
    color: #334155 !important;
}

.table tbody tr:hover, .bootstrap-table tbody tr:hover {
    background-color: #f8fafc !important;
}

/* --- Scrollbars --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

/* --- Hide Disabled / Locked / Inaccessible Menu Items --- */
[data-access="false"],
.nav-item:has(> [data-access="false"]),
.nav-item:has(> .disabled),
.nav-item:has(> .locked),
.nav-item:has(> [data-locked="true"]),
.nav-item:has(> [data-disabled="true"]),
.nav-item:has(> [disabled]),
.nav-item:has(> [aria-disabled="true"]),
.nav-item.disabled,
.nav-item.locked,
.nav-item[data-access="false"],
.nav-item[data-locked="true"],
.nav-item[data-disabled="true"],
.nav-item[disabled],
.nav-item[aria-disabled="true"],
.dropdown-item[data-access="false"],
.dropdown-item.disabled,
.dropdown-item.locked,
.dropdown-item[disabled] {
    display: none !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}