/*/*html{background:url(../images/top-h-bg.png) repeat-x top;}*/
*/

/* MODERN UI ENHANCEMENTS */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    color: var(--text-primary);
    background-color: var(--body-bg);
}

/* Modern Navbar */
.main-header.navbar {
    /* background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%)!important; */
    background: var(--navbar-bg);
    border-bottom: none;
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1rem;
}

.main-header.navbar .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-control:disabled {
    background-color: #e9ecef !important;
    opacity: 1;
}

.main-header.navbar .nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Modern Sidebar */
.main-sidebar {
    background: var(--sidebar-bg);
    box-shadow: var(--shadow-lg);
    border-right: 1px solid var(--border-color);
}

.sidebar-dark-primary .brand-link {
    /* background: linear-gradient(135deg,#5580e9,#84ceeb,#5ab8eb,#c1c8e4,#8860d0); */
    background: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    transition: all 0.3s ease;
}

.skin-blue .main-sidebar {
    /* background: linear-gradient(135deg,#5580e9,#84ceeb,#5ab8eb,#c1c8e4,#8860d0); */
    /* background: #002f58; */
    background: var(--primary-color);
}

.nav-link {
    padding-left: 5px !important;
}

.navbar-nav>.user-menu .user-image {
    background: #fff;
}

.brand-image {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background: #fff;
}

.brand-link:hover .brand-image {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Sidebar Navigation */
.nav-sidebar .nav-item>.nav-link {
    color: #cbd5e1;
    border-radius: 0.5rem;
    margin: 0.25rem 0.5rem;
    padding: 0.65rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.nav-sidebar .nav-item>.nav-link:hover {
    background: var(--sidebar-hover-bg);
    color: var(--text-sidebar-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.nav-sidebar .nav-item>.nav-link.active,
.nav-sidebar .nav-item.menu-open>.nav-link {
    /* background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%); */
    /* background: var(--secondary-color)!important; */
    color: #ffffff;
    box-shadow: none !important;
}

.nav-sidebar .nav-item.menu-open {
    background: var(--secondary-color) !important;
}

.nav-sidebar .nav-icon {
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.nav-sidebar .nav-item:hover .nav-icon {
    transform: scale(1.1);
}

/* Sidebar Treeview */
.nav-treeview {
    padding: 0.25rem 0;
}

.nav-treeview>.nav-item>.nav-link {
    padding-left: 2.5rem;
    color: #94a3b8;
    font-size: 0.8125rem;
}

.nav-treeview>.nav-treeview>.nav-item>.nav-link {
    padding-left: 3.5rem;
}

/* Search Box */
.form-control-sidebar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-control-sidebar:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

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

/* Content Wrapper */
.content-wrapper {
    background-color: var(--body-bg) !important;
    min-height: calc(100vh - 120px);
    padding: 0.5rem;
}

/* User Dropdown */
.user-menu .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 280px;
}

.user-header {
    background: var(--primary-color) !important;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 1.5rem !important;
}

.user-body a {
    color: var(--text-primary);
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 0.375rem;
    display: inline-block;
}

.user-body a:hover {
    background: var(--border-color);
    color: var(--primary-gradient-start);
}

.user-footer .btn {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.user-footer .btn-default {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.user-footer .btn-default:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Footer */
.main-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* Menu Toggle Button */
.nav-item.menu-toggler .nav-link {
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-item.menu-toggler .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

#menu-icon {
    transition: transform 0.3s ease;
}

/* User Image */
.user-image {
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Scrollbar Styling */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

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

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

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

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

/* Login Page Specific */
.skin-blue.layout-top-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.skin-blue.layout-top-nav .main-header.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.card-info:not(.card-outline)>.card-header {
    background-color: var(--primary-color) !important;
    color: #ffffff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 0.875rem 1.25rem;
    font-weight: 600;
}

.card-warning:not(.card-outline)>.card-header {
    background-color: #f59e0b !important;
    color: #ffffff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 0.875rem 1.25rem;
    font-weight: 600;
}

.card-scroll {
    max-height: 286px !important;
    overflow: scroll !important;
}

@supports not (backdrop-filter: blur(10px)) {
    .skin-blue.layout-top-nav .main-header.navbar {
        background: rgba(255, 255, 255, 0.98);
    }
}

.skin-blue.layout-top-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* Error States */
.has-error .control-label,
.has-error .help-block {
    color: #ef4444;
}

.has-error .form-control {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

@-moz-document url-prefix() {
    .flatpickr-calendar {
        z-index: 1056 !important;
    }
}

/* Fix flatpickr z-index to appear above Bootstrap modals globally */
.flatpickr-calendar {
    z-index: 999999 !important;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .nav-sidebar>.nav-item {
        animation: slideIn 0.3s ease forwards;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-header.navbar {
        padding: 0.5rem;
    }

    .nav-sidebar .nav-item>.nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
}


/* END MODERN UI ENHANCEMENTS */


body {
    font-size: 0.85rem;
}

.help-block {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.petra-logo {
    height: 50px !important;
}

.content-wrapper {
    background-color: var(--body-bg) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%) !important;
    border: none !important;
    padding: 0.375rem 0.875rem !important;
    margin: 0px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: var(--transition-base);
    box-shadow: 0 1px 3px rgba(68, 49, 141, 0.3);
    color: #fff!important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-gradient-end) 0%, var(--primary-gradient-start) 100%) !important;
    border: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(68, 49, 141, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(68, 49, 141, 0.3);
}

a {
    text-decoration: none;
}

.btn-link {
    color: var(--secondary-color);
}

.pointer {
    cursor: pointer;
}

.dropdown-item {
    color: #000 !important;
}

.petra-box {
    border: 1px solid var(--primary-color);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 20px;
    /* background-color: var(--card-bg-warning); */
}

.petra-box-active {
    background-color: var(--secondary-color);
    color: #fff;
}

.petra-box a p {
    font-size: 10px;
}

.petra-box a i {
    font-size: 30px;
    padding-top: 20px;
    margin-bottom: 10px;
}

.main-sidebar {
    scrollbar-width: none;
}

.main-sidebar::-webkit-scrollbar {
    display: none;
    /* Might be enough */
    background: transparent;
    visibility: hidden;
    width: 0px;
}

.navigation_wrapper_outer {
    position: relative;
    padding: 0px 0px 0px 0px;
    margin: 0px 0px 10px 0px;
    border-bottom: 1px #ddd solid;
    background: #F5F5F5;
}

.navrect {
    width: 100% !important;
    position: absolute;
    margin: 0px;
    padding: 0px;
    top: 0px;
    background-color: #428bca;
}

.navrect ul {
    margin: 0px;
    padding: 0px;
    list-style: none;
}

.navrect li {
    height: 75px;
    float: left;
    border-bottom: 1px solid #ddd;
}

.navrect li a {
    width: 100%;
    border-right: 1px solid #ddd;
    color: #fff;
    display: block;
    font-size: 11px;
    line-height: 27px;
    padding: 21px 0 0;
    text-align: center;
    text-transform: uppercase;
    margin-top: 1px;
}

.btn {
    padding: 0.3rem 0.75rem !important;
    margin: 0px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 500;
    transition: var(--transition-base);
}

.navrect li a:hover {
    color: #000;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.1);
}

.navrect li a.active {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.2);
    margin-top: 0px;
    height: 75px;
}

.navrect li.seperator {
    margin: 0px;
    padding: 1px 0px 0px 0px;
}

.navrect li a.disabled {
    pointer-events: none;
    cursor: default;
    color: #fff;
}

.buttons {
    padding: 5px 40px;
    display: inline-block;
}

.btn-width {
    width: 10em;
}



input[type="button"]:disabled {
    color: #888;
}

button[type="button"]:disabled {
    color: #888;
}

hr.style1 {
    border-top: 1px solid #8c8b8b;
}

hr.style8 {
    border-top: 1px solid #8c8b8b;
    border-bottom: 1px solid #fff;
}

hr.style8:after {
    content: '';
    display: block;
    margin-top: 2px;
    border-top: 1px solid #8c8b8b;
    border-bottom: 1px solid #fff;
}

hr.style18 {
    height: 30px;
    border-style: solid;
    border-color: #8c8b8b;
    border-width: 1px 0 0 0;
    border-radius: 20px;
}

hr.style18:before {
    display: block;
    content: "";
    height: 30px;
    margin-top: -31px;
    border-style: solid;
    border-color: #8c8b8b;
    border-width: 0 0 1px 0;
    border-radius: 20px;
}

.glyphicon {
    margin-right: 10px;
}

.p-panel-body {
    padding: 0px;
}

.p-panel-body table tr td {
    padding-left: 15px
}

.p-panel-body .table {
    margin-bottom: 0px;
}

.brand-link .brand-image {
    float: none;
}

legend.scheduler-border {
    float: none;
    width: auto;
    padding: 0.25rem 1rem;
    text-transform: uppercase;
    background: var(--body-bg);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.03em;
}

.petra-box a {
    color: var(--primary-color);
}

fieldset.scheduler-border {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border-bottom: none;
    position: relative;
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    overflow: visible !important;
}

.form-row-bottom {
    margin-bottom: 10px;
}

.card {
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    /* overflow: hidden REMOVED — clips selectpicker/dropdown menus (bug from b6138adc) */
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    cursor: pointer;
    border-radius: var(--radius-lg);
}

.petraSmallLoader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    border-bottom: 4px solid #3498db;
    width: 30px;
    height: 30px;
    -webkit-animation: spin 2s linear infinite;
    /* Safari */
    animation: spin 2s linear infinite;
}

.main-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
}

div.dt-container div.dt-length select,
.form-select-sm {
    width: 70px;
    display: inline-block;
    margin-right: 0.5em;
    border-radius: 6px;
    background-color: var(--data-table-filter-bg);
}

div.dt-container div.dt-search input,
.form-control-sm {
    margin-left: 0.5em;
    display: inline-block;
    width: auto;
    border-radius: 6px;
    background-color: var(--data-table-filter-bg);
}

.petra-table {
    border-radius: 15px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    background-color: var(--card-bg);
    width: 100%;
    /* overflow: hidden REMOVED — clips dropdown menus. Rounded corners kept via border-collapse */
    border-collapse: separate;
    border-spacing: 0;
}


.petra-table thead {
    background-color: var(--primary-color) !important;
    color: #ffffff;
    /* Assuming white text for primary background */
    border-radius: 15px 15px 0px 0px !important;
}

.petra-table thead tr {
    background-color: transparent;
    /* Inherit from thead */
    color: inherit;
}

.petra-table thead th {
    color: inherit;
    padding: 10px 15px;
    border: none;
    text-align: left !important;
    font-weight: 600;
}

.petra-table tfoot {
    background-color: #cddcf5 !important;
    color: #000000;
    border-radius: 15px 15px 0px 0px !important;
}

.table {
    --bs-table-bg: transparent !important;
}


.petra-table tfoot th {
    color: #000000;
    padding: 10px 15px;
    border: none;
    text-align: left !important;
}

.petra-table tbody td {
    background-color: var(--card-bg);
    color: #333;
    padding: 3px 10px;
    border: none;
    text-align: left !important;
}

.petra-table thead tr:first-child th:first-child {
    border-top-left-radius: 15px;
}

.petra-table thead tr:first-child th:last-child {
    border-top-right-radius: 15px;
}

.petra-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 15px;
}

.petra-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 15px;
}

.bootstrap-select {
    width: 100% !important;
    border: #dee2e6 solid 1px !important;
    position: relative;
}

.bootstrap-select .dropdown-menu {
    z-index: 9999 !important;
}

.selectpicker {
    width: 100% !important;
    border: #dee2e6 solid 1px !important;
}

/* Bootstrap-select renders its dropdown at <body> level when container:'body'
   is set (see app.blade.php global init).  The .bs-container element it
   creates must have a very high z-index so the menu always floats above
   data-tables, fieldsets, modals and any other stacked content. */
.bs-container.dropdown .dropdown-menu,
.bs-container.dropdown {
    z-index: 999999 !important;
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active,
.sidebar-light-primary .nav-sidebar>.nav-item>.nav-link.active {
    background-color: var(--primary-color) !important;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.navbar-primary {
    background: var(--primary-color);
}

input,
select,
button {
    font-size: 0.85rem !important;
}

.pager {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
    margin-top: 10px;
}

.pager li {
    display: inline-block;
    color: #fff;
}

.pager li a {
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 10px;
    background-color: var(--primary-color) !important;
}

.page-item .page-link {
    z-index: 3;
    color: var(--primary-color);
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}


/*
* FEBY
* background image for login page */
/* .bg-image {
background-image: url('{{ UtilityFacade::schoolWallpaperPath() }}');
background-size: cover;
background-position: center;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
} */
/* password strength checker */
.progress {
    height: 5px;
}

.password-strength-bar {
    height: 5px;
}

.password-requirements .requirement {
    display: flex;
    align-items: center;
}

.password-requirements .requirement .fa {
    margin-right: 10px;
}

.login_card {
    background-color: rgba(255, 255, 255, 0.7) !important;
    /* adjusted alpha channel to 0.7 */
    --bs-card-bg: rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

.login_card a {
    color: #fff;
    font-weight: bolder;
}

.login_card button {
    width: 100%;
    padding: 10px 0px !important;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    cursor: pointer;
    border-radius: var(--radius-lg);
}

.schoollogo {
    width: 120px;
}

/* for drop down select picker  */
.card-primary:not(.card-outline)>.card-header,
.card-primary:not(.card-outline)>.card-header a {
    color: #ffffff;
    background-color: var(--primary-color) !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 0.875rem 1.25rem;
    font-weight: 600;
}

.feeTable {
    border: 2px solid !important;
}

.feeTable td,
.feeTable th {
    border: 2px solid !important;
}

[class*="sidebar-dark-"] .nav-sidebar>.nav-item>.nav-treeview {
    /* background: #002f58; */
    /* background: #4139bc; */
    background-color: var(--secondary-color);
    ;
    /* border-left: 1px solid #fff; */
}

[class*="sidebar-dark-"] .nav-treeview>.nav-item>.nav-link.active,
[class*="sidebar-dark-"] .nav-treeview>.nav-item>.nav-link.active:hover,
[class*="sidebar-dark-"] .nav-treeview>.nav-item>.nav-link.active:focus {
    background-color: #00274900;
    color: #ffffff !important;
    border-left: 2px solid #fff;
    border-radius: 0;
    font-weight: bolder;
}

.settings-fieldset {
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-top: 20px;
    background-color: var(--card-bg);
}

.settings-fieldset legend {
    width: auto;
    padding: 0 15px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    background-color: var(--card-bg);
    margin-top: -25px;
}

/* .menu-toggler{
color: #002749!important;
padding: 12px;
background: #fff;
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
}
.menu-toggler a{
color: #002749!important;
} */
@media print {
    body {
        font-size: 11px;
    }

    .petra-table {
        font-size: 11px;
        border: 1px solid #ccc;
        /* Outer border for the table */
    }

    .petra-table td {
        border-bottom: 1px solid #ddd;
        /* Line after each row */
    }

    .petra-table th {
        /* background-color: #cddcf5 !important; /* Background color for header */
        padding: 5px 10px;
        /* Optional padding for header cells */
    }

    .row {
        display: flex;
        flex-wrap: wrap;
        max-width: 100%;
    }

    .col-md-9 {
        flex: 0 0 auto;
        width: 75%;
    }

    .col-md-8 {
        flex: 0 0 auto;
        width: 66.66%;
    }

    .col-md-7 {
        flex: 0 0 auto;
        width: 58.33%;
    }

    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-md-5 {
        flex: 0 0 auto;
        width: 41.66%;
    }

    .col-md-4 {
        flex: 0 0 auto;
        width: 33.33%;
    }

    .col-md-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .col-md-2 {
        flex: 0 0 auto;
        width: 16.66%;
    }

    .feeTable {
        border: 2px solid !important;
    }

    .feeTable td,
    .feeTable th {
        border: 2px solid !important;
    }

    .receipt-compact {
        font-size: 8px !important;
    }

    .receipt-compact .col-sm-6 {
        width: 100% !important;
        float: none !important;
    }

    .receipt-compact .receipt-slno {
        display: none !important;
    }

    .receipt-compact h4 {
        font-size: 11px !important;
        margin: 2px 0 !important;
    }

    .receipt-compact h5 {
        font-size: 9px !important;
        margin: 2px 0 !important;
    }

    .receipt-compact h6 {
        font-size: 8px !important;
        margin: 2px 0 !important;
    }

    .receipt-compact .table {
        font-size: 8px !important;
    }

    .receipt-compact .table th {
        font-size: 8px !important;
    }

    .receipt-compact .feeTable td,
    .receipt-compact .feeTable th {
        padding: 2px 3px !important;
        border: 1px solid !important;
    }

    .receipt-compact .table td {
        padding: 1px 3px !important;
    }

    .receipt-compact .img-fluid {
        max-height: 50px !important;
    }

    .receipt-compact .print-block {
        padding: 0 !important;
        margin: 0 !important;
    }

    .receipt-compact .row {
        margin: 0 !important;
        padding: 0 !important;
    }

    .receipt-compact .watermark p {
        font-size: 20px !important;
    }

    .receipt-compact .no-border td {
        padding: 1px 2px !important;
    }
}

/* Fallback for small pages when JS overflow detection is unavailable */
@media print and (max-width: 4in) {
    body {
        font-size: 8px !important;
    }

    .col-sm-6 {
        width: 100% !important;
        float: none !important;
    }

    .receipt-slno {
        display: none !important;
    }

    h4 {
        font-size: 11px !important;
        margin: 2px 0 !important;
    }

    h5 {
        font-size: 9px !important;
        margin: 2px 0 !important;
    }

    h6 {
        font-size: 8px !important;
        margin: 2px 0 !important;
    }

    .table {
        font-size: 8px !important;
    }

    .table th {
        font-size: 8px !important;
    }

    .feeTable td,
    .feeTable th {
        padding: 2px 3px !important;
        border: 1px solid !important;
    }

    .table td {
        padding: 1px 3px !important;
    }

    .img-fluid {
        max-height: 50px !important;
    }

    .print-block {
        padding: 0 !important;
        margin: 0 !important;
    }

    .row {
        margin: 0 !important;
        padding: 0 !important;
    }

    .watermark p {
        font-size: 20px !important;
    }

    .no-border td {
        padding: 1px 2px !important;
    }
}

/* ========== MODERN UI ENHANCEMENTS - GLOBAL ========== */

/* Modern Form Controls - scoped to content area to avoid Bootstrap conflicts */
.content-wrapper .form-control {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    transition: var(--transition-base);
    color: var(--text-primary);
}

.content-wrapper .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(68, 49, 141, 0.12);
    outline: none;
}

.content-wrapper .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    transition: var(--transition-base);
}

.content-wrapper .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(68, 49, 141, 0.12);
}

/* Modern Labels */
.control-label,
.form-label,
label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
}

/* Modern Alert Styles */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 0.875rem 1.25rem;
    font-weight: 500;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Modern Modal */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
    /* overflow: hidden REMOVED — clips selectpicker dropdowns inside modals (bug from b6138adc) */
    overflow: visible;
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.modal {
    z-index: 10600 !important;
}

.modal-backdrop.show{
    z-index: 10500 !important;
}

/* Modern Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

/* Modern Table Enhancements */
.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    border-bottom-width: 2px;
}

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

.table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: rgba(0, 0, 0, 0.015);
}

.table-hover>tbody>tr:hover>* {
    background-color: rgba(68, 49, 141, 0.04);
}

/* Modern Button Variants */
.btn-secondary {
    background-color: #6b7280;
    border-color: #6b7280;
    border-radius: var(--radius-sm);
}

.btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
    transform: translateY(-1px);
}

.btn-success {
    background-color: #10b981;
    border-color: #10b981;
    border-radius: var(--radius-sm);
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #ef4444;
    border-color: #ef4444;
    border-radius: var(--radius-sm);
}

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
}

.btn-warning {
    background-color: #f59e0b;
    border-color: #f59e0b;
    border-radius: var(--radius-sm);
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
    transform: translateY(-1px);
}

.btn-info {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--radius-sm);
    color: #fff;
}

.btn-info:hover {
    background-color: var(--primary-color-hover);
    border-color: var(--primary-color-hover);
    transform: translateY(-1px);
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--radius-sm);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
}

/* Smooth List Group */
.list-group-item {
    border-color: var(--border-color);
    transition: var(--transition-base);
}

.list-group-item:hover {
    background-color: rgba(68, 49, 141, 0.03);
}

/* Modern Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
}

/* Page Header */
.content-header h1 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Pagination Modern */
.pagination .page-link {
    border-radius: var(--radius-sm);
    margin: 0 2px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-base);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* DataTable Modern Styling */
div.dt-container .dt-paging .dt-paging-button {
    border-radius: var(--radius-sm) !important;
}

/* Card Header Title */
.card-header .card-title {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

/* Modern Spinner */
.fa-spinner.fa-spin {
    color: var(--primary-color);
}

/* Modal large icon */
.modal-icon-lg {
    font-size: 2.5rem;
}

/* Section spacing */
.section-content {
    padding: 1.5rem;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth loading overlay */
.loadingoverlay {
    border-radius: var(--radius-lg);
}

/* Modern select/dropdown */
.bootstrap-select {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-color) !important;
}

.bootstrap-select .dropdown-toggle {
    border-radius: var(--radius-sm) !important;
}

/* Form group spacing */
.form-group {
    margin-bottom: 1rem;
}

/* Card body padding consistency */
.card-body {
    padding: 1.25rem;
}

/* Modern checkbox/radio */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(68, 49, 141, 0.15);
    border-color: var(--primary-color);
}

/* ========== END MODERN UI ENHANCEMENTS - GLOBAL ========== */

/* ========== HOME SCREEN ANIMATIONS ========== */

/* Card entrance animation - staggered fade-in from below */
/* NOTE: transform omitted from 'to' — same reason as contentSlideIn above */
@keyframes cardFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        /* transform intentionally omitted */
    }
}

/* Subtle pulse for loading spinners */
@keyframes subtlePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Counter value count-up feel */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        /* transform intentionally omitted */
    }
}

/* Smooth content wrapper entrance */
/* IMPORTANT: transform is completely removed from these keyframes.
Even having transform only in 'from' causes browsers to compute an identity
matrix(1,0,0,1,0,0) as the animated final value, which DOES create a stacking
context. Only opacity is animated here to guarantee no stacking context. */
@keyframes contentSlideIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {

    /* Animate dashboard cards on load with stagger */
    .content-wrapper .card {
        animation: cardFadeInUp 0.4s ease-out both;
    }

    .content-wrapper .row>[class*="col-"]:nth-child(1)>.card {
        animation-delay: 0.05s;
    }

    .content-wrapper .row>[class*="col-"]:nth-child(2)>.card {
        animation-delay: 0.1s;
    }

    .content-wrapper .row>[class*="col-"]:nth-child(3)>.card {
        animation-delay: 0.15s;
    }

    .content-wrapper .row>[class*="col-"]:nth-child(4)>.card {
        animation-delay: 0.2s;
    }

    .content-wrapper .row>[class*="col-"]:nth-child(5)>.card {
        animation-delay: 0.25s;
    }

    .content-wrapper .row>[class*="col-"]:nth-child(6)>.card {
        animation-delay: 0.3s;
    }

    /* Fieldset entrance */
    .content-wrapper fieldset.scheduler-border {
        animation: contentSlideIn 0.5s ease-out both;
    }

    /* Alert entrance */
    .content-wrapper .alert {
        animation: cardFadeInUp 0.35s ease-out both;
    }

    /* Smooth loading spinner pulse */
    .card-body .fa-spinner {
        animation: subtlePulse 1.2s ease-in-out infinite, spin 1s linear infinite;
    }
}

/* Card hover lift - more prominent for dashboard */
.content-wrapper .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.content-wrapper .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Card header icon animation on hover */
.card-header .card-title i {
    transition: transform 0.3s ease;
}

.card:hover .card-header .card-title i {
    transform: scale(1.15);
}

/* Smooth transitions for AJAX-loaded content */
.card-body {
    transition: opacity 0.3s ease;
}

/* Favorite list item hover animation */
.list-group-item {
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.list-group-item:hover {
    transform: translateX(4px);
    background-color: rgba(68, 49, 141, 0.03);
    box-shadow: var(--shadow-sm);
}

/* Smooth sidebar open/close transition */
.main-sidebar {
    transition: margin-left 0.3s ease, width 0.3s ease, transform 0.3s ease;
}

.content-wrapper {
    transition: margin-left 0.3s ease;
}

/* Menu toggle icon rotation */
#menu-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-collapse #menu-icon {
    transform: rotate(180deg);
}

/* Dropdown menu animation */
.dropdown-menu {
    animation: cardFadeInUp 0.2s ease-out;
}

/* Table row hover glow */
.petra-table tbody tr {
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.petra-table tbody tr:hover {
    background-color: rgba(68, 49, 141, 0.04);
}

/* Pager link hover animation */
.pager li a {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pager li a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Button press animation */
.btn {
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:active {
    transform: scale(0.97);
}

/* Nav link active indicator animation */
.nav-sidebar .nav-item>.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #fff;
    border-radius: 0 2px 2px 0;
    animation: fadeInScale 0.3s ease-out;
}

.nav-sidebar .nav-item>.nav-link {
    position: relative;
}

/* Tooltip fade animation */
.tooltipq .tooltiptext {
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(5px);
}

.tooltipq:hover .tooltiptext {
    opacity: 1;
    transform: translateY(0);
}

/* Session timer warning pulse */
@keyframes timerPulse {

    0%,
    100% {
        color: white;
    }

    50% {
        color: #fbbf24;
    }
}

#session-timer.warning {
    animation: timerPulse 1s ease-in-out infinite;
}

/* Smooth page transition for content area */
.content>.container-fluid {
    animation: contentSlideIn 0.3s ease-out;
}

/* ========== END HOME SCREEN ANIMATIONS ========== */

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*Media Quries*/
@media(max-width: 451px) {
    .navigation_wrapper_outer {
        width: 100%;
        height: 1200px;
    }

    .navrect li {
        width: 100%;
    }

    .petra-table {
        font-size: 0.8rem;
    }
}

@media(min-width: 451px) and (max-width: 540px) {
    .navigation_wrapper_outer {
        width: 100%;
        height: 600px;
    }

    .navrect li {
        width: 50%;
    }
}

@media(min-width: 541px) and (max-width: 767px) {
    .navigation_wrapper_outer {
        width: 100%;
        height: 600px;
    }

    .navrect li {
        width: 50%;
    }
}

/*from 768 to 991*/
@media(min-width: 768px) and (max-width: 991px) {
    .navigation_wrapper_outer {
        width: 100%;
        height: 300px;
    }

    .navrect li {
        width: 25%;
    }
}

@media(min-width: 992px) and (max-width: 1199px) {
    .navigation_wrapper_outer {
        width: 100%;
        height: 300px;
    }

    .navrect li {
        width: 25%;
    }

    .navrect li a {
        width: 275.5px;
    }
}

@media(min-width: 1200px) {
    .navigation_wrapper_outer {
        width: 100%;
        height: 150px;
    }

    .navrect li {
        width: 12.5%;
    }
}