.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;
    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; */
}

/* ==========================================================================
   SCOLARIO THEME -- clean / neutral / Apple-inspired
   Global visual reskin layered on top of the existing admin theme.
   Pure CSS overrides only -- no HTML structure or JS touched.
   ========================================================================== */

:root {
    --sco-accent: #5B4FE9;
    --sco-accent-dark: #4338CA;
    --sco-accent-soft: rgba(91, 79, 233, 0.08);
    --sco-success: #16C79A;
    --sco-danger: #FF5C7A;
    --sco-warning: #F5A623;
    --sco-info: #3AB0FF;
    --sco-sidebar-bg: #201A45;
    --sco-sidebar-hover: rgba(255, 255, 255, 0.06);
    --sco-sidebar-active: rgba(255, 255, 255, 0.14);
    --sco-surface: #FFFFFF;
    --sco-bg: #F5F5F7;
    --sco-border: rgba(0, 0, 0, 0.07);
    --sco-text: #1D1D1F;
    --sco-text-muted: #6E6E73;
    --sco-radius: 14px;
    --sco-radius-sm: 8px;
    --sco-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
    --sco-transition: all 0.18s ease;
}

/* Distinct accent per dashboard summary card, cycling through the palette */
.col-md-2-4:nth-of-type(5n+1) .custom-card-body img { background: var(--sco-accent); }
.col-md-2-4:nth-of-type(5n+2) .custom-card-body img { background: var(--sco-info); }
.col-md-2-4:nth-of-type(5n+3) .custom-card-body img { background: var(--sco-success); }
.col-md-2-4:nth-of-type(5n+4) .custom-card-body img { background: var(--sco-warning); }
.col-md-2-4:nth-of-type(5n+5) .custom-card-body img { background: var(--sco-danger); }

.custom-card-body img {
    border-radius: var(--sco-radius-sm);
    padding: 10px;
    width: 46px !important;
    height: 46px !important;
    box-sizing: border-box;
    object-fit: contain;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body,
.content-wrapper,
.form-control,
.btn,
.table {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

body {
    background: var(--sco-bg) !important;
    color: var(--sco-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.card-title,
.page-title {
    font-weight: 600 !important;
    color: var(--sco-text);
    letter-spacing: -0.01em;
}

/* ---------- Page fade-in (subtle) ---------- */
@keyframes scoFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.content-wrapper > * {
    animation: scoFadeIn 0.35s ease both;
}

/* ---------- Sidebar ---------- */
.sidebar,
.sidebar-offcanvas {
    background: var(--sco-sidebar-bg) !important;
    border: none !important;
}

.sidebar .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.68) !important;
    border-radius: var(--sco-radius-sm);
    margin: 1px 10px;
    transition: var(--sco-transition);
}

.sidebar .nav-item .nav-link:hover {
    background: var(--sco-sidebar-hover) !important;
    color: #fff !important;
}

.sidebar .nav-item.active > .nav-link,
.sidebar .nav-item .nav-link.active {
    background: var(--sco-accent) !important;
    color: #fff !important;
    font-weight: 500;
}

.sidebar .nav-item .nav-link .menu-icon,
.sidebar .nav-item .nav-link i {
    color: inherit !important;
}

/* ---------- Top navbar ---------- */
.navbar.default-layout-navbar {
    background: var(--sco-surface) !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--sco-border) !important;
}

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--sco-border) !important;
    border-radius: var(--sco-radius) !important;
    box-shadow: var(--sco-shadow) !important;
    transition: var(--sco-transition);
}

.card-title {
    font-size: 1rem !important;
}


/* ---------- Buttons ---------- */
.btn {
    border-radius: var(--sco-radius-sm) !important;
    font-weight: 500 !important;
    transition: var(--sco-transition) !important;
    border: none;
}

.btn-theme,
.btn-primary {
    background: var(--sco-accent) !important;
    color: #fff !important;
}

.btn-theme:hover,
.btn-primary:hover {
    background: var(--sco-accent-dark) !important;
}

.btn-gradient-info,
.btn-gradient-primary {
    background: var(--sco-accent) !important;
    color: #fff !important;
}

.btn-gradient-success,
.btn-gradient-dark {
    background: var(--sco-success) !important;
    color: #fff !important;
}

/* ---------- Badges / pills ---------- */
.badge {
    border-radius: 999px !important;
    padding: 0.35em 0.85em !important;
    font-weight: 500 !important;
}

.badge-success { background: rgba(31, 164, 99, 0.12) !important; color: var(--sco-success) !important; }
.badge-danger  { background: rgba(224, 72, 62, 0.12) !important; color: var(--sco-danger) !important; }
.badge-warning { background: rgba(185, 119, 14, 0.12) !important; color: var(--sco-warning) !important; }
.badge-info    { background: var(--sco-accent-soft) !important; color: var(--sco-accent) !important; }

/* ---------- Tables ---------- */
.table thead th {
    background: transparent !important;
    color: var(--sco-text-muted) !important;
    font-weight: 600 !important;
    border-bottom: 1px solid var(--sco-border) !important;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.table tbody tr {
    transition: var(--sco-transition);
}

.table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02) !important;
}

/* ---------- Forms ---------- */
.form-control,
.select2-selection {
    border-radius: var(--sco-radius-sm) !important;
    border: 1px solid var(--sco-border) !important;
    transition: var(--sco-transition) !important;
}

.form-control:focus {
    border-color: var(--sco-accent) !important;
    box-shadow: 0 0 0 3px var(--sco-accent-soft) !important;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
}

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

/* ---------- Links ---------- */
.text-theme,
a.text-theme {
    color: var(--sco-accent) !important;
}

/* ---------- Modals ---------- */
.modal-content {
    border: none !important;
    border-radius: var(--sco-radius) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16) !important;
}

/* ---------- Dashboard summary cards: fix rigid 20%-width grid that
   overflows once the sidebar eats into the available width; let cards
   wrap based on real available space instead of raw viewport size. ---------- */
.col-md-2-4 {
    flex: 1 1 210px !important;
    min-width: 210px !important;
    max-width: 100% !important;
}

/* End Scolario Theme */

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