.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: 10;
    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;
    margin-right: 0.75rem !important;
    width: 20px !important;
    text-align: center;
    flex-shrink: 0;
}

.sidebar .nav .nav-item {
    padding: 0 0.875rem !important;
    /* Reduced from 1.25rem for better spacing */
}

/* Ensure parent nav-links remain visible when expanded */
.sidebar .nav .nav-item>.nav-link[data-toggle="collapse"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.sidebar .nav .nav-item .nav-link[aria-expanded="true"] {
    font-weight: 500;
}

/* Better alignment for nav links */
.sidebar .nav .nav-item .nav-link {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Menu title spacing */
.sidebar .nav .nav-item .nav-link .menu-title {
    flex: 1;
    white-space: nowrap;
    /* overflow: hidden; */
    text-overflow: ellipsis;
}

/* Menu arrow positioning */
.sidebar .nav .nav-item .nav-link i.menu-arrow {
    margin-left: auto;
    flex-shrink: 0;
}

/* Sidebar search padding reduction */
.sidebar-search {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

/* CRITICAL: Ensure collapse divs are visible when they have 'show' class */
.sidebar .nav .nav-item .collapse.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Active state styling for menu items */
.sidebar .nav .nav-item.active>.nav-link,
.sidebar .nav .nav-item .nav-link.active {
    background-color: rgba(0, 123, 255, 0.1) !important;
    color: #007bff !important;
    font-weight: 500;
}

.sidebar .nav .nav-item.active>.nav-link i.menu-icon,
.sidebar .nav .nav-item .nav-link.active i.menu-icon {
    color: #007bff !important;
}

/* Parent group active state when child is active */
.sidebar .nav .nav-item.parent-active>.nav-link[data-toggle="collapse"] {
    font-weight: 600;
    color: #007bff !important;
}

/* Ensure sub-menu is visible when parent has active child - but only the direct path */
.sidebar .nav .nav-item.parent-active>.collapse {
    display: block !important;
}

/* ============================================
   MODERN SIDEBAR - PERMANENT FIXES
   ============================================ */

/* Single scrollbar for entire sidebar */
.sidebar {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: calc(100vh - 70px) !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Remove all nested scrollbars */
.sidebar .nav,
.sidebar .nav.sub-menu,
.sidebar .nav .nav-item .collapse {
    overflow: visible !important;
    max-height: none !important;
}

/* Remove bottom margin that causes empty space */
.sidebar .nav {
    margin-bottom: 0 !important;
    padding-bottom: 1rem !important;
    /* Small padding for visual breathing room */
}

/* Smooth collapse animations */
.sidebar .nav .nav-item .collapse {
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease !important;
    -webkit-transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease !important;
    -moz-transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease !important;
    -ms-transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease !important;
}

.sidebar .nav .nav-item .collapse:not(.show) {
    /* display: block !important; */
    height: 0 !important;
    opacity: 0;
}

/* CRITICAL: Prevent nested collapses from auto-expanding */
.sidebar .nav .nav-item .collapse.show .collapse:not(.show) {
    height: 0 !important;
    opacity: 0;
}

/* Menu arrow smooth rotation */
.sidebar .nav .nav-item .nav-link i.menu-arrow {
    transition: transform 0.25s ease !important;
}

.sidebar .nav .nav-item .nav-link[aria-expanded="true"] i.menu-arrow {
    transform: rotate(90deg);
}

@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;
}

.payment-card-container {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: var(--bg-light);
    min-height: 80vh;
}

.payment-card {
    background: white;
    width: 100%;
    max-width: 700px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.payment-header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.payment-header h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.payment-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.back-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.back-btn:hover {
    opacity: 1;
    color: white;
}

/* Body */
.payment-body {
    padding: 2rem;
}

.form-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

/* Interactive Fee Row */
.fee-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.fee-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
    opacity: 1;
}

.fee-item:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
}

.fee-item.selected {
    background-color: #f0f2ff;
    border-color: var(--primary-color);
}

.fee-item.fade-out {
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
}

.fee-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fee-name {
    font-weight: 600;
    color: #374151;
}

.fee-price {
    font-weight: 700;
    color: #111827;
    font-size: 1.1rem;
}

/* Checkbox styling */
.custom-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Remove Button Styling */
.remove-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s;
    background: transparent;
    border: none;
}

.remove-btn:hover {
    background-color: var(--danger-soft);
    color: var(--danger-color);
}

.remove-btn i {
    transition: transform 0.2s;
}

.remove-btn:hover i {
    transform: scale(1.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    border: 2px dashed #e5e7eb;
    border-radius: 8px;
    display: none;
    /* Hidden by default */
}

/* Payment Mode Tiles */
.mode-selection {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mode-tile {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.mode-tile input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

.mode-tile.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(75, 73, 172, 0.3);
}

.mode-tile span {
    font-weight: 600;
    display: block;
}

/* Inputs */
.form-control-custom {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(75, 73, 172, 0.1);
}

/* Pay Button */
.btn-pay {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-pay:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-pay:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-pay:not(:disabled):active {
    transform: translateY(0);
}

/* Total Section */
.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.total-label {
    font-weight: 600;
    color: #6b7280;
}

.total-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}