/**
* Template Name: NiceAdmin
* Updated: Mar 09 2023 with Bootstrap v5.2.3
* Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/




/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
.searchIcon {
    background-color: #004170 !important;
    border-color: #004170 !important;
}

.searchIcon i {
    color: #fff !important;
}

.k-expander-indicator .k-svg-icon svg {
    fill: #004170 !important;
}

:root {
    scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", sans-serif;
    background: #f6f9ff;
    color: #444444;
}

a {
    color: #4154f1;
    text-decoration: none;
}

a:hover {
    color: #717ff5;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Nunito", sans-serif;
}

.settingBtn {
    font-size: 20px;
    margin-right: 22px;
    float: right;
    color: white;
}

.widget-header {
    background-color: #004170 !important;
    margin-bottom: 5px;
    margin-top: 5px;
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
    margin-top: 60px;
    padding: 20px 30px;
    transition: all 0.3s;
}

@media (max-width: 1199px) {
    #main {
        padding: 20px;
    }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
    margin-bottom: 10px;
}

.pagetitle h1 {
    font-size: 24px;
    margin-bottom: 0;
    font-weight: 600;
    color: #012970;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    background: #4154f1;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
}

.back-to-top i {
    font-size: 24px;
    color: #fff;
    line-height: 0;
}

.back-to-top:hover {
    background: #6776f4;
    color: #fff;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
    border-radius: 4px;
    padding: 10px 0;
    animation-name: dropdown-animate;
    animation-duration: 0.2s;
    animation-fill-mode: both;
    border: 0;
    box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
    text-align: center;
    font-size: 15px;
    padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
    color: #444444;
    text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
    text-decoration: none;
}

.dropdown-menu .dropdown-divider {
    color: #a5c5fe;
    margin: 0;
}

.dropdown-menu .dropdown-item {
    font-size: 14px;
    padding: 10px 15px;
    transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
    margin-right: 10px;
    font-size: 18px;
    line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f6f9ff;
}

@media (min-width: 768px) {
    .dropdown-menu-arrow::before {
        content: "";
        width: 13px;
        height: 13px;
        background: #fff;
        position: absolute;
        top: -7px;
        right: 20px;
        transform: rotate(45deg);
        border-top: 1px solid #eaedf1;
        border-left: 1px solid #eaedf1;
    }
}

@keyframes dropdown-animate {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }

    0% {
        opacity: 0;
    }
}

/* Light Backgrounds */
.bg-primary-light {
    background-color: #cfe2ff;
    border-color: #cfe2ff;
}

.bg-secondary-light {
    background-color: #e2e3e5;
    border-color: #e2e3e5;
}

.bg-success-light {
    background-color: #d1e7dd;
    border-color: #d1e7dd;
}

.bg-danger-light {
    background-color: #f8d7da;
    border-color: #f8d7da;
}

.bg-warning-light {
    background-color: #fff3cd;
    border-color: #fff3cd;
}

.bg-info-light {
    background-color: #cff4fc;
    border-color: #cff4fc;
}

.bg-dark-light {
    background-color: #d3d3d4;
    border-color: #d3d3d4;
}

/* Card */
.card {
    margin-bottom: 30px;
    border: none;
    border-radius: 5px;
    box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.card-header,
.card-footer {
    border-color: #ebeef4;
    background-color: #fff;
    color: #798eb3;
    padding: 15px;
}

.card-title {
    padding: 20px 0 15px 0;
    font-size: 18px;
    font-weight: 500;
    color: #012970;
    font-family: "Poppins", sans-serif;
}

.card-title span {
    color: #899bbd;
    font-size: 14px;
    font-weight: 400;
}

.card-body {
    padding: 0 20px 20px 20px;
}

.card-img-overlay {
    background-color: rgba(255, 255, 255, 0.6);
}

/* Alerts */
.alert-heading {
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    font-size: 20px;
}

/* Close Button */
.btn-close {
    filter: brightness(0) invert(1);
    /* Keeps it white if needed */
    opacity: 1;
    /* Ensures full visibility */
    font-size: 0.7rem;
    /* Adjusts the size of the close icon */
    font-weight: bold;
    /* Makes the close icon bold */
    color: white;
    /* Ensures the close icon is white */
    line-height: 1;
    /* Ensures the close icon is vertically centered */
}

.btn-close:focus {
    outline: none;
    box-shadow: none;
}

/*Modal Header*/
.modal-header {
    background-color: #0275D8;
    padding: 0.5rem 1rem;
    min-height: 48px;
    color: white;
}

/* Accordion */
.accordion-item {
    border: 1px solid #ebeef4;
}

.accordion-button:focus {
    outline: 0;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    color: #012970;
    background-color: #f6f9ff;
}

.accordion-flush .accordion-button {
    padding: 15px 0;
    background: none;
    border: 0;
}

.accordion-flush .accordion-button:not(.collapsed) {
    box-shadow: none;
    color: #4154f1;
}

.accordion-flush .accordion-body {
    padding: 0 0 15px 0;
    color: #3e4f6f;
    font-size: 15px;
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 14px;
    font-family: "Nunito", sans-serif;
    color: #899bbd;
    font-weight: 600;
}

.breadcrumb a {
    color: #899bbd;
    transition: 0.3s;
}

.breadcrumb a:hover {
    color: #004170 !important;
}

.breadcrumb .breadcrumb-item::before {
    color: #899bbd;
}

.breadcrumb .active {
    color: #004170 !important;
    font-weight: 600;
}

/*breadcrumb header and Borrow Record Barcode and Print Button*/
.breadcrumb-headerbutton,
.barcode-print-button,
.update-bookDetail-bill {
    float: right !important;
    margin-left: 20px !important;
    border-color: #272F7A !important;
    color: #272F7A !important;
}

/*breadcrumb header and Borrow Record Barcode and Print Button on hover*/

.breadcrumb-headerbutton:hover,
.barcode-print-button:hover,
.update-bookDetail-bill:hover {
    color: #ffffff !important;
    background-color: #272F7A !important;
}

.breadcrumb-title {
    color: #212529 !important;
}

/* Bordered Tabs */
.nav-tabs-bordered {
    border-bottom: 2px solid #ebeef4;
}

.nav-tabs-bordered .nav-link {
    margin-bottom: -2px;
    border: none;
    color: #2c384e;
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
    color: #4154f1;
}

.nav-tabs-bordered .nav-link.active {
    background-color: #fff;
    color: #4154f1;
    border-bottom: 2px solid #4154f1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
    line-height: 1;
}

@media (min-width: 1200px) {
    .logo {
        width: 280px;
    }
}

/*.logo img {
  max-height: 26px;
  margin-right: 6px;
}*/

.logo span {
    font-size: 26px;
    font-weight: 700;
    color: #012970;
    font-family: "Nunito", sans-serif;
}

.header {
    transition: all 0.5s;
    z-index: 997;
    height: 60px;
    box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
    background-color: #fff;
    padding-left: 20px;
    padding-right: 20px;
    /* Ensure space on the right so elements do not clip */
}

.header .toggle-sidebar-btn {
    font-size: 32px;
    padding-left: 10px;
    cursor: pointer;
    color: #012970;
}

/* Mobile Responsive Header Adjustments */
@media (max-width: 575px) {
    .header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .logo img {
        max-width: 110px !important;
        /* Constrain logo width to fit on mobile */
        height: auto !important;
    }

    .header .toggle-sidebar-btn {
        font-size: 26px !important;
        padding-left: 6px !important;
    }

    .header-nav .nav-profile img {
        max-height: 28px !important;
    }
}

.header .search-bar {
    min-width: 360px;
    padding: 0 20px;
}

@media (max-width: 1199px) {
    .header .search-bar {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        padding: 20px;
        box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
        background: white;
        z-index: 9999;
        transition: 0.3s;
        visibility: hidden;
        opacity: 0;
    }

    .header .search-bar-show {
        top: 60px;
        visibility: visible;
        opacity: 1;
    }
}

.header .search-form {
    width: 100%;
}

.header .search-form input {
    border: 0;
    font-size: 14px;
    color: #012970;
    border: 1px solid rgba(1, 41, 112, 0.2);
    padding: 7px 38px 7px 16px;
    border-radius: 44px;
    transition: 0.3s;
    width: 100%;
}

.header .search-form input:focus,
.header .search-form input:hover {
    outline: none;
    box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
    border: 1px solid rgba(1, 41, 112, 0.3);
}

.header .search-form button {
    border: 0;
    padding: 0;
    margin-left: -30px;
    background: none;
}

.header .search-form button i {
    color: #012970;
}


/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
    list-style: none;
}

.header-nav>ul {
    margin: 0;
    padding: 0;
}

.header-nav .nav-icon {
    font-size: 22px;
    color: #012970;
    margin-right: 25px;
    position: relative;
}

.header-nav .nav-profile {
    color: #012970;
}

.header-nav .nav-profile img {
    max-height: 36px;
}

.header-nav .nav-profile span {
    font-size: 14px;
    font-weight: 600;
}

.header-nav .badge-number {
    position: absolute;
    inset: -2px -5px auto auto;
    font-weight: normal;
    font-size: 12px;
    padding: 3px 6px;
}

.header-nav .notifications {
    inset: 8px -15px auto auto !important;
}

.header-nav .notifications .notification-item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    transition: 0.3s;
}

.header-nav .notifications .notification-item i {
    margin: 0 20px 0 10px;
    font-size: 24px;
}

.header-nav .notifications .notification-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
    font-size: 13px;
    margin-bottom: 3px;
    color: #919191;
}

.header-nav .notifications .notification-item:hover {
    background-color: #f6f9ff;
}

.header-nav .messages {
    inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
    padding: 15px 10px;
    transition: 0.3s;
}

.header-nav .messages .message-item a {
    display: flex;
}

.header-nav .messages .message-item img {
    margin: 0 20px 0 10px;
    max-height: 40px;
}

.header-nav .messages .message-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444444;
}

.header-nav .messages .message-item p {
    font-size: 13px;
    margin-bottom: 3px;
    color: #919191;
}

.header-nav .messages .message-item:hover {
    background-color: #f6f9ff;
}

.header-nav .profile {
    min-width: 240px;
    padding-bottom: 0;
    top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
    font-size: 18px;
    margin-bottom: 0;
    font-weight: 600;
    color: #444444;
}

.header-nav .profile .dropdown-header span {
    font-size: 14px;
}

.header-nav .profile .dropdown-item {
    font-size: 14px;
    padding: 10px 15px;
    transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
    margin-right: 10px;
    font-size: 18px;
    line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
    background-color: #f6f9ff;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 320px;
    z-index: 996;
    transition: all 0.3s;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #aab7cf transparent;
    box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
    background-color: #fff;
}

@media (max-width: 1199px) {
    .sidebar {
        left: -320px;
    }
}

.sidebar::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #aab7cf;
}

@media (min-width: 1200px) {

    #main,
    #footer {
        margin-left: 300px;
    }
}

@media (max-width: 1199px) {
    .toggle-sidebar .sidebar {
        left: 0;
    }
}

@media (min-width: 1200px) {

    .toggle-sidebar #main,
    .toggle-sidebar #footer {
        margin-left: 0;
    }

    .toggle-sidebar .sidebar {
        left: -300px;
    }
}

.sidebar-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav .nav-item {
    margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
    font-size: 11px;
    text-transform: uppercase;
    color: #899bbd;
    font-weight: 600;
    margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3;
    padding: 10px 15px;
    border-radius: 4px;
}

.sidebar-nav .nav-link i {
    font-size: 16px !important;
    margin-right: 10px;
}

.sidebar-nav .nav-link.collapsed {
    color: #000000 !important;
    background: #fff;
}

.sidebar-nav .nav-link:hover {
    background: #f6f9ff;
    color: #ffffff !important;
    background-color: #004170 !important;
    font-family: Roboto, sans-serif !important
}

.sidebar-nav .nav-link:hover i {
    color: #ffffff !important;
    font-family: Roboto, sans-serif !important
}

.sidebar-nav .nav-link .bi-chevron-down {
    margin-right: 0;
    transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
    transform: rotate(180deg);
}

.sidebar-nav .nav-content {
    padding: 5px 0 0 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav .nav-content a {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #012970;
    transition: 0.3;
    padding: 10px 0 10px 40px;
    transition: 0.3s;
}

.sidebar-nav .nav-content a i {
    font-size: 6px;
    margin-right: 8px;
    line-height: 0;
    border-radius: 50%;
}


/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
/* Filter dropdown */
.dashboard .filter {
    position: absolute;
    right: 0px;
    top: 15px;
}

.dashboard .filter .icon {
    color: #aab7cf;
    padding-right: 20px;
    padding-bottom: 5px;
    transition: 0.3s;
    font-size: 16px;
}

.dashboard .filter .icon:hover,
.dashboard .filter .icon:focus {
    color: #4154f1;
}

.dashboard .filter .dropdown-header {
    padding: 8px 15px;
}

.dashboard .filter .dropdown-header h6 {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #aab7cf;
    margin-bottom: 0;
    padding: 0;
}

.dashboard .filter .dropdown-item {
    padding: 8px 15px;
}

/* Info Cards */
.dashboard .info-card {
    padding-bottom: 10px;
}

.dashboard .info-card h6 {
    font-size: 28px;
    color: #012970;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

.dashboard .card-icon {
    font-size: 32px;
    line-height: 0;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    flex-grow: 0;
}

.dashboard .sales-card .card-icon {
    color: #4154f1;
    background: #f6f6fe;
}

.dashboard .revenue-card .card-icon {
    color: #2eca6a;
    background: #e0f8e9;
}

.dashboard .customers-card .card-icon {
    color: #ff771d;
    background: #ffecdf;
}

/* Activity */
.dashboard .activity {
    font-size: 14px;
}

.dashboard .activity .activity-item .activite-label {
    color: #888;
    position: relative;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 64px;
}

.dashboard .activity .activity-item .activite-label::before {
    content: "";
    position: absolute;
    right: -11px;
    width: 4px;
    top: 0;
    bottom: 0;
    background-color: #eceefe;
}

.dashboard .activity .activity-item .activity-badge {
    margin-top: 3px;
    z-index: 1;
    font-size: 11px;
    line-height: 0;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid #fff;
    flex-grow: 0;
}

.dashboard .activity .activity-item .activity-content {
    padding-left: 10px;
    padding-bottom: 20px;
}

.dashboard .activity .activity-item:first-child .activite-label::before {
    top: 5px;
}

.dashboard .activity .activity-item:last-child .activity-content {
    padding-bottom: 0;
}

/* News & Updates */
.dashboard .news .post-item+.post-item {
    margin-top: 15px;
}

.dashboard .news img {
    width: 80px;
    float: left;
    border-radius: 5px;
}

.dashboard .news h4 {
    font-size: 15px;
    margin-left: 95px;
    font-weight: bold;
    margin-bottom: 5px;
}

.dashboard .news h4 a {
    color: #012970;
    transition: 0.3s;
}

.dashboard .news h4 a:hover {
    color: #4154f1;
}

.dashboard .news p {
    font-size: 14px;
    color: #777777;
    margin-left: 95px;
}

/* Recent Sales */
.dashboard .recent-sales {
    font-size: 14px;
}

.dashboard .recent-sales .table thead {
    background: #f6f6fe;
}

.dashboard .recent-sales .table thead th {
    border: 0;
}

.dashboard .recent-sales .dataTable-top {
    padding: 0 0 10px 0;
}

.dashboard .recent-sales .dataTable-bottom {
    padding: 10px 0 0 0;
}

/* Top Selling */
.dashboard .top-selling {
    font-size: 14px;
}

.dashboard .top-selling .table thead {
    background: #f6f6fe;
}

.dashboard .top-selling .table thead th {
    border: 0;
}

.dashboard .top-selling .table tbody td {
    vertical-align: middle;
}

.dashboard .top-selling img {
    border-radius: 5px;
    max-width: 60px;
}

/*--------------------------------------------------------------
# Icons list page
--------------------------------------------------------------*/
.iconslist {
    display: grid;
    max-width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    padding-top: 15px;
}

.iconslist .icon {
    background-color: #fff;
    border-radius: 0.25rem;
    text-align: center;
    color: #012970;
    padding: 15px 0;
}

.iconslist i {
    margin: 0.25rem;
    font-size: 2.5rem;
}

.iconslist .label {
    font-family: var(--bs-font-monospace);
    display: inline-block;
    width: 100%;
    overflow: hidden;
    padding: 0.25rem;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #666;
}

/*--------------------------------------------------------------
# Profie Page
--------------------------------------------------------------*/
.profile .profile-card img {
    max-width: 120px;
}

.profile .profile-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c384e;
    margin: 10px 0 0 0;
}

.profile .profile-card h3 {
    font-size: 18px;
}

.profile .profile-card .social-links a {
    font-size: 20px;
    display: inline-block;
    color: rgba(1, 41, 112, 0.5);
    line-height: 0;
    margin-right: 10px;
    transition: 0.3s;
}

.profile .profile-card .social-links a:hover {
    color: #012970;
}

.profile .profile-overview .row {
    margin-bottom: 20px;
    font-size: 15px;
}

.profile .profile-overview .card-title {
    color: #012970;
}

.profile .profile-overview .label {
    font-weight: 600;
    color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit label {
    font-weight: 600;
    color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit img {
    max-width: 120px;
}

/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
.faq .basic h6 {
    font-size: 18px;
    font-weight: 600;
    color: #4154f1;
}

.faq .basic p {
    color: #6980aa;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
    padding: 28px 30px;
}

.contact .info-box i {
    font-size: 38px;
    line-height: 0;
    color: #4154f1;
}

.contact .info-box h3 {
    font-size: 20px;
    color: #012970;
    font-weight: 700;
    margin: 20px 0 10px 0;
}

.contact .info-box p {
    padding: 0;
    line-height: 24px;
    font-size: 14px;
    margin-bottom: 0;
}

.contact .php-email-form .error-message {
    display: none;
    color: #fff;
    background: #ed3c0d;
    text-align: left;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
}

.contact .php-email-form .sent-message {
    display: none;
    color: #fff;
    background: #18d26e;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
}

.contact .php-email-form .loading {
    display: none;
    background: #fff;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
}

.contact .php-email-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid #18d26e;
    border-top-color: #eee;
    animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
    border-radius: 0;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
    border-color: #4154f1;
}

.contact .php-email-form input {
    padding: 10px 15px;
}

.contact .php-email-form textarea {
    padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
    background: #4154f1;
    border: 0;
    padding: 10px 30px;
    color: #fff;
    transition: 0.4s;
    border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
    background: #5969f3;
}

@keyframes animate-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
    padding: 30px;
}

.error-404 h1 {
    font-size: 180px;
    font-weight: 700;
    color: #4154f1;
    margin-bottom: 0;
    line-height: 150px;
}

.error-404 h2 {
    font-size: 24px;
    font-weight: 700;
    color: #012970;
    margin-bottom: 30px;
}

.error-404 .btn {
    background: #51678f;
    color: #fff;
    padding: 8px 30px;
}

.error-404 .btn:hover {
    background: #3e4f6f;
}

@media (min-width: 992px) {
    .error-404 img {
        max-width: 50%;
    }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
    padding: 20px 0;
    font-size: 14px;
    transition: all 0.3s;
    border-top: 1px solid #cddfff;
}

.footer .copyright {
    text-align: center;
    color: #012970;
}

.footer .credits {
    padding-top: 5px;
    text-align: center;
    font-size: 13px;
    color: #012970;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
span.rfvSpan {
    color: red;
    font-weight: normal;
    font-size: medium;
}

.width25 {
    min-width: 25px !important;
}

.width50 {
    min-width: 50px !important;
}

.width75 {
    min-width: 75px !important;
}

.width100 {
    min-width: 100px !important;
}

.width125 {
    min-width: 125px !important;
}

.width150 {
    min-width: 150px !important;
}

.width175 {
    min-width: 175px !important;
}

.width200 {
    min-width: 200px !important;
}

.width225 {
    min-width: 225px !important;
}

.width250 {
    min-width: 250px !important;
}

.width300 {
    min-width: 300px !important;
}

.square-container {
    background-color: rgba(103, 102, 102, 0.2);
    backdrop-filter: blur(1.2px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    text-align: center;
    display: none;
}

.nav-item.active > .nav-link {
    color: #4154f1 !important;
    background-color: #eef3ff !important;
    font-family: Roboto, sans-serif !important
}

.nav-content.show {
    display: block !important;
}

.tooltip-inner {
    background-color: #f6f9ff !important;
    /* Update with your background color */
    color: #012970 !important;
    /* Update with your text color */
    max-width: 300px;
    /* Adjust the width as needed */
    white-space: pre-wrap;
    /* Allow the text to wrap */
}

.tooltip-arrow {
    border-top-color: #f6f9ff !important;
    /* Update with your background color */
}

/*--------------------------------------------------------------
# Reminder Toast
--------------------------------------------------------------*/
@media (min-width: 480px) {

    .notyf {
        display: flex !important;
        position: fixed !important;
        align-items: center !important;
        justify-content: flex-start !important;
        top: -3rem !important;
    }

    .notyf__toast {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        background-color: none !important;
        color: white !important;
        border: none !important;
        box-shadow: none !important;
    }

    .notyf__toast--show,
    .notyf__toast--disappear {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .notyf {
        top: 3rem !important;
        /* or whatever value works for mobile */
        justify-content: flex-start !important;
        left: 5rem !important;
        width: 60% !important;
    }
}

@media (max-width: 700px)and (min-width: 480px) {
    .notyf {
        left: 10rem !important;
        justify-content: flex-start !important;
        width: 50% !important;
    }
}


html,
body {
    height: 100%;
    margin: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main {
    flex-grow: 1;
}


span.select2-selection.select2-selection--single {
    height: 38px !important;
    border-radius: 9px !important;
}

span.select2-selection__arrow {
    height: 37px !important;
}

span#select2-RoleId-container {
    line-height: 30px !important;
    padding-left: 2px !important;
}

/*--------------------------------------------------------------
# Button Color
--------------------------------------------------------------*/
/*UPLOAD FILE BUTTON and BOOK BOOK DETAIL POPUP and BORROW RECORD SAVE BUTTON and VIEW FILE IN ADD DIGITAL BOOK MODULE*/
.upload-file-upload,
.book-detail-save,
.borrow-record-save,
.viewfile-add-digitalbook {
    opacity: 0.9 !important;
    background-color: #004170 !important;
    color: #ffffff !important
}

.upload-file-upload:hover,
.book-detail-save:hover,
.borrow-record-save:hover,
.viewfile-add-digitalbook:hover {
    opacity: 1 !important;
    background-color: #004170 !important;
    color: #ffffff !important
}

/*CHANGING CHEKCBOX COLOR FOR ALL MODULES*/
.form-check input.form-check-input:checked {
    background-color: #004170 !important;
}

/*SAVE BUTTON FOR ALL THE MODULES*/
button[type="submit"] {
    opacity: 0.9 !important;
    background-color: #004170 !important;
    color: #ffffff !important
}

button[type="submit"]:hover {
    opacity: 1 !important;
    background-color: #004170 !important;
    color: #ffffff !important
}

/*MODAL HEADER COLOR FOR ALL THE MODULES*/
.modal-dialog .modal-content .modal-header {
    background-color: #004170 !important;
    color: #ffffff !important
}

.custom-btn {
    margin-bottom: 10px;
    border-color: #272F7A !important;
    color: #272F7A !important;
}

.custom-btn:hover {
    color: #ffffff !important;
    background-color: #004170 !important;
}

.custom-card {
    border-radius: 12px;
    /* smooth rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    /* soft shadow */
    margin-bottom: 0px;
}


/*select2 dropdown clear button alignment*/
.select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute;
    right: 25px !important;
    /* Force to right side, next to arrow */
    top: 45%;
    transform: translateY(-50%);
    margin-right: 0 !important;
    line-height: normal;
    width: auto;
    height: auto;
    z-index: 1;
}

/* Fix for Select2 Selected Item Text Color */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e4e4e4 !important;
    border: 1px solid #aaa !important;
    color: #333 !important;
    /* Ensure text is dark */
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #999 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #333 !important;
}

/* Fix for Select2 Multi-Select Search Input to prevent textarea look */
.select2-container--default .select2-selection--multiple .select2-search__field {
    height: 28px !important;
    margin-top: 5px !important;
    line-height: 28px !important;
    resize: none;
    box-sizing: border-box !important;
    width: auto !important;
    /* Allow it to grow but not force 100% inappropriately */
    min-width: 150px;
    /* Ensure some visible space */
    border: none !important;
    /* Remove border */
    outline: none !important;
    /* Remove focus outline */
    /* Remove box shadow */
}

/* Password Toggle Icon */
.password-toggle-icon {
    position: absolute;
    right: 25px;
    /* Adjust horizontally */
    top: 38px;
    /* Center vertically relative to input (approx) */
    cursor: pointer;
    color: #6c757d;
    z-index: 10;
}

/* Fix for multi-select choice padding */
.select2-container .select2-selection--multiple .select2-selection__choice { padding-left: 30px !important; }

/* Fix for Select2 long text - prevents UI breaking */
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__rendered span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 100% !important;
}

.select2.select2-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Fix for flex containers */
.d-flex .flex-grow-1 {
    min-width: 0 !important;
}

/*--------------------------------------------------------------
# Kendo Grid Pager Styling
--------------------------------------------------------------*/
/* Page size dropdown - give more space for larger numbers like 200 */
.k-pager .k-pager-sizes .k-dropdown,
.k-pager .k-pager-sizes .k-dropdownlist,
.k-pager-sizes .k-dropdown,
.k-pager-sizes .k-dropdownlist {
    min-width: 70px !important;
    width: auto !important;
}

.k-pager .k-pager-sizes .k-input-inner,
.k-pager-sizes .k-input-inner {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* Ensure pager has proper spacing */
.k-pager {
    padding: 8px 12px !important;
}

.k-pager-sizes {
    margin-right: 8px !important;
}

/* Fix dropdown button width */
.k-pager .k-dropdown-wrap,
.k-pager .k-picker-wrap {
    min-width: 65px !important;
}

/* Ensure the dropdown value is visible with padding */
.k-pager .k-pager-sizes .k-dropdown .k-input,
.k-pager-sizes .k-dropdown .k-input,
.k-pager-sizes .k-input-value-text {
    padding-left: 8px !important;
    padding-right: 24px !important;
}

/*--------------------------------------------------------------
# Select2 Accessibility
--------------------------------------------------------------*/
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus-within,
.select2-container--default .select2-selection--single:focus {
    border-color: #80BDFF;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
/*--------------------------------------------------------------
# Kendo DateTimePicker Icons
--------------------------------------------------------------*/
/* Force clock icon to be blue (#012970) to match the Calendar icon and Primary Theme */
.k-datetimepicker .k-select .k-button .k-i-clock,
.k-datetimepicker .k-select .k-link .k-i-clock,
.k-datetimepicker .k-icon.k-i-clock,
.k-datetimepicker .k-input-button .k-icon.k-i-clock,
.k-filter-menu .k-datetimepicker .k-i-clock,
.k-filter-menu .k-datetimepicker .k-svg-i-clock,
.k-i-clock,
.k-i-time,
.k-svg-i-clock,
.k-svg-i-clock path {
    color: #012970 !important;
    fill: #012970 !important;
    stroke: #012970 !important;
}

/*--------------------------------------------------------------
# Select2 Ellipsis Fix
--------------------------------------------------------------*/
.select2-container .select2-selection--single .select2-selection__rendered {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding-right: 20px !important;
    display: block !important;
}

.select2-container--default .select2-results__option {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

/* Ensure container has width to allow ellipsis calculation */
.select2-container {
    max-width: 100% !important;
}


/* Override Z-Indexes as requested */

/* Title Bar - Assuming it uses standard Bootstrap fixed-top class or similar */
.header.fixed-top,
.header,
.sticky-top {
    z-index: 1061 !important;
}

/* Targeting the offcanvas specifically */
.offcanvas.offcanvas-end,
.offcanvas {
    --bs-offcanvas-zindex: 1071 !important;
    z-index: 1071 !important;
}

/* Ensure backdrop is below offcanvas but above title bar if needed */
.offcanvas-backdrop {
    z-index: 1070 !important;
}

/* Override Modal Z-Index as requested */
.modal {
    z-index: 1071 !important;
}

/* Ensure Modal Backdrop is just below the modal */
.modal-backdrop {
    z-index: 1070 !important;
}
/* Ensure Kendo Grid utilizes full container width even with resizable columns or hidden columns */
.k-grid table {
    width: 100% !important;
}

/* === Responsive Select2 & Quick Add Button Alignments === */
.input-group {
    flex-wrap: nowrap !important;
}

.input-group > div {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.input-group .select2.select2-container {
    width: 100% !important;
}

/* Align and scale the quick add button height with select2 container */
.input-group .btn.custom-btn {
    height: 38px !important; /* Force matching Select2 height */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    margin-bottom: 0 !important;
}

/* Focus highlighting for accordion items during keyboard navigation */
.accordion .accordion-item:focus-within {
    border-color: #80BDFF !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
    overflow: visible !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.accordion-button:focus {
    border-color: #80BDFF !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
    outline: 0 !important;
}

/* Global Keyboard Focus Visibility Overrides */
.form-control:focus,
.form-select:focus,
textarea:focus,
select:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="time"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
.form-check-input:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
.btn:focus,
button:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--single:focus-within,
.select2-container--default .select2-selection--multiple:focus,
.select2-container--default .select2-selection--multiple:focus-within {
    border-color: #80BDFF !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

/* Maintain Red Focus highlights for fields with validation errors */
.is-invalid:focus,
.was-validated :invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Global Select2 Overrides for Modal Stacking */
.select2-container--open {
    z-index: 995 !important;
}
.select2-dropdown {
    z-index: 995 !important;
    max-width: calc(100vw - 20px) !important;
    box-sizing: border-box !important;
}

/* Select2 inside a modal or offcanvas should render above modal/offcanvas contents and backdrops */
.modal .select2-container--open,
.offcanvas .select2-container--open {
    z-index: 1080 !important;
}
.modal .select2-dropdown,
.offcanvas .select2-dropdown {
    z-index: 1080 !important;
}

/* Preserve multiple spaces in Kendo Grid cells on listing pages only */
#main .k-grid td {
    white-space: pre-wrap !important;
}

/* Override inline white-space nowrap with pre to keep spaces without wrapping */
#main .k-grid [style*="white-space"][style*="nowrap"] {
    white-space: pre !important;
}

/* Prevent cells containing buttons, links, inputs, or selected status icons from rendering raw layout whitespace/newlines */
#main .k-grid td:has(.btn, button, a, input, .bi-check-circle-fill),
#main .k-grid td.k-command-cell {
    white-space: normal !important;
}

/* Reset button and link text to prevent wrapping */
#main .k-grid td :is(.btn, button, a, .k-button) {
    white-space: nowrap !important;
}