/*
 * Ovule Application – Metronic 9 skin.
 * Loaded after the re-coloured Metronic 8 bundles (themes/metronic9/assets/css/*.bundle.css) when the Metronic 9 theme is on
 * (AppTheme). Everything is scoped to body.theme-m9 so the Metronic 8 theme is never affected.
 * Metronic 9 (demo1) design: Inter, page #fefefe, light 265px side menu, light 65px header, flat cards with a 1px border.
 */
body.theme-m9 {
    --m9-gray-100: #f9f9f9; --m9-gray-200: #f1f1f4; --m9-gray-300: #dbdfe9; --m9-gray-400: #c4cada; --m9-gray-500: #99a1b7;
    --m9-gray-600: #78829d; --m9-gray-700: #4b5675; --m9-gray-800: #252f4a; --m9-gray-900: #071437;
    --m9-brand: #e9a300; --m9-brand-hover: #fff8e6; --m9-brand-open: #fdefc8;
    --m9-primary: #1b84ff; --m9-primary-light: #eff6ff; --m9-border: #f1f1f4; --m9-input-border: #dbdfe9; --m9-light: #fcfcfc;
    font-family: Inter, Helvetica, "sans-serif";
    background-color: #fefefe !important;
    color: var(--m9-gray-700);
}
body.theme-m9, body.theme-m9 .btn, body.theme-m9 .form-control, body.theme-m9 .form-select, body.theme-m9 .menu, body.theme-m9 h1, body.theme-m9 h2,
body.theme-m9 h3, body.theme-m9 h4, body.theme-m9 h5, body.theme-m9 h6, body.theme-m9 .tooltip, body.theme-m9 .popover, body.theme-m9 .swal2-popup, body.theme-m9 .apexcharts-text {
    font-family: Inter, Helvetica, "sans-serif" !important;
}
body.theme-m9 .bg-body, body.theme-m9 .wrapper, body.theme-m9 .content { background-color: #fefefe; }

/* ---------- side menu (light) ---------- */
body.theme-m9 .aside { background-color: #fff; border-right: 1px solid var(--m9-border); box-shadow: none; }
body.theme-m9 .aside .aside-logo { background-color: #fff; border-bottom: 1px solid var(--m9-border); }
body.theme-m9 .aside .aside-toggle i { color: var(--m9-gray-500); }
body.theme-m9 .aside .aside-toggle:hover i { color: var(--m9-primary); }
body.theme-m9 .aside .separator { border-bottom-color: var(--m9-border); }
body.theme-m9 .aside .hover-scroll-overlay-y:hover::-webkit-scrollbar-thumb { background-color: var(--m9-gray-300); }
body.theme-m9 .aside-menu .menu-item .menu-link { padding-top: .55rem; padding-bottom: .55rem; margin: 1px .75rem; border-radius: .375rem; color: var(--m9-gray-800); }
body.theme-m9 .aside-menu .menu-item .menu-link .menu-title { color: var(--m9-gray-800); font-size: 13px; font-weight: 500; }
body.theme-m9 .aside-menu .menu-item .menu-link .menu-icon i { color: var(--m9-gray-500); font-size: 1.15rem; }
body.theme-m9 .aside-menu .menu-item .menu-link .menu-bullet .bullet { background-color: var(--m9-gray-400); }
body.theme-m9 .aside-menu .menu-item .menu-link .menu-arrow:after { filter: invert(.55); }
body.theme-m9 .aside-menu .menu-item .menu-link.active:after { display: none; }
body.theme-m9 .aside-menu .menu-item .menu-link.active { background-color: var(--m9-gray-100); }
body.theme-m9 .aside-menu .menu-item .menu-link.active .menu-title,
body.theme-m9 .aside-menu .menu-item .menu-link.active .menu-icon i { color: var(--m9-primary); font-weight: 600; }
body.theme-m9 .aside-menu .menu-item .menu-link.active .menu-bullet .bullet { background-color: var(--m9-primary); }
body.theme-m9 .aside-menu .menu-sub-accordion { border-left: 1px solid var(--m9-gray-200); margin-left: 1.95rem; }
body.theme-m9 .aside-menu .menu-sub-accordion .menu-link { margin-left: .4rem; }
body.theme-m9 .aside-menu .menu-section, body.theme-m9 .aside .menu-section { color: var(--m9-gray-500) !important; font-size: 11px !important; font-weight: 600; letter-spacing: .02em; }
body.theme-m9 .aside-menu .menu-content { padding-left: 1.6rem; }
body.theme-m9 .aside .btn-custom { background-color: var(--m9-gray-100); color: var(--m9-gray-700); }
body.theme-m9 .aside .text-white { color: var(--m9-gray-900) !important; }

/* ---------- header (light) ---------- */
@media (min-width: 992px) {
    body.theme-m9.header-fixed .header { background-color: #fefefe; box-shadow: none; border-bottom: 1px solid var(--m9-border); }
    body.theme-m9.toolbar-fixed .toolbar { background-color: #fefefe; box-shadow: none; border-bottom: 1px solid var(--m9-border); }
}
@media (max-width: 991.98px) {
    body.theme-m9 .header, body.theme-m9.header-tablet-and-mobile-fixed .header { background-color: #fff; box-shadow: none; border-bottom: 1px solid var(--m9-border); }
    body.theme-m9 .toolbar, body.theme-m9.toolbar-tablet-and-mobile-fixed .toolbar { background-color: #fefefe; box-shadow: none; border-bottom: 1px solid var(--m9-border); }
}
body.theme-m9 .header .text-white, body.theme-m9 .header .text-white-50, body.theme-m9 .header .text-gray-400 { color: var(--m9-gray-700) !important; }
body.theme-m9 .header .topbar-item i, body.theme-m9 .header .topbar .bi, body.theme-m9 .header .topbar .ki-filled, body.theme-m9 .header .topbar .ki-outline { color: var(--m9-gray-600) !important; }
body.theme-m9 .header .topbar-item:hover i { color: var(--m9-primary) !important; }
body.theme-m9 .header .svg-icon svg [fill]:not(.permanent):not(g) { fill: var(--m9-gray-600); }
body.theme-m9 .header .header-menu .menu-link .menu-title, body.theme-m9 .header .menu-lg-rounded > .menu-item > .menu-link .menu-title { color: var(--m9-gray-700); }
body.theme-m9 .header .form-control, body.theme-m9 .header input[type=text] { background-color: var(--m9-light) !important; border: 1px solid var(--m9-input-border) !important; color: var(--m9-gray-800) !important; }
body.theme-m9 .header .btn-active-light-primary { color: var(--m9-gray-600); }

/* ---------- page title / toolbar ---------- */
body.theme-m9 .toolbar .page-title h1, body.theme-m9 .page-title h1 { font-size: 18px !important; font-weight: 600 !important; color: var(--m9-gray-900) !important; }
body.theme-m9 .breadcrumb .breadcrumb-item { font-size: 12px; color: var(--m9-gray-500); }

/* ---------- cards ---------- */
body.theme-m9 .card { border: 1px solid var(--m9-border); border-radius: .75rem; box-shadow: 0 3px 4px 0 rgba(0, 0, 0, .03); background-color: #fff; }
body.theme-m9 .card.shadow-sm, body.theme-m9 .card.shadow { box-shadow: 0 3px 4px 0 rgba(0, 0, 0, .03) !important; }
body.theme-m9 .card .card-header { min-height: 56px; padding: 0 1.875rem; border-bottom: 1px solid var(--m9-border); }
body.theme-m9 .card.card-flush > .card-header { border-bottom: 0; }
body.theme-m9 .card .card-header .card-title, body.theme-m9 .card .card-header .card-title h3, body.theme-m9 .card .card-header .card-title .card-label { font-size: 1rem; font-weight: 600; color: var(--m9-gray-900); }
body.theme-m9 .card .card-body { padding: 1.875rem; }
body.theme-m9 .card.card-flush .card-body { padding-top: 1.25rem; }
body.theme-m9 .card .card-footer { border-top: 1px solid var(--m9-border); }
body.theme-m9 .border-primary.card { border-color: var(--m9-primary) !important; }

/* ---------- buttons ---------- */
body.theme-m9 .btn { border-radius: .375rem; font-weight: 500; }
body.theme-m9 .btn:not(.btn-sm):not(.btn-lg):not(.btn-icon) { font-size: 13px; }
body.theme-m9 .btn.btn-sm { font-size: 12px; border-radius: .375rem; }
body.theme-m9 .btn.btn-light { background-color: #fff; border: 1px solid var(--m9-input-border); color: var(--m9-gray-700); }
body.theme-m9 .btn.btn-light:hover { background-color: var(--m9-gray-100); color: var(--m9-gray-900); }

/* ---------- forms ---------- */
body.theme-m9 .form-control, body.theme-m9 .form-select { background-color: var(--m9-light); border: 1px solid var(--m9-input-border); border-radius: .375rem; color: var(--m9-gray-800); font-size: 13px; }
body.theme-m9 .form-control:focus, body.theme-m9 .form-select:focus { border-color: var(--m9-primary); background-color: #fff; box-shadow: 0 0 0 .2rem rgba(27, 132, 255, .12); }
body.theme-m9 .form-control.form-control-solid, body.theme-m9 .form-select.form-select-solid { background-color: var(--m9-light); border-color: var(--m9-input-border); }
body.theme-m9 .form-label { font-size: 13px; font-weight: 500; color: var(--m9-gray-900); }
body.theme-m9 .input-group-text { background-color: var(--m9-gray-100); border-color: var(--m9-input-border); }
body.theme-m9 .select2-container--bootstrap5 .select2-selection { background-color: var(--m9-light); border: 1px solid var(--m9-input-border); border-radius: .375rem; }

/* ---------- badges ---------- */
body.theme-m9 .badge { border-radius: .25rem; font-size: 11px; font-weight: 500; }
body.theme-m9 .badge.badge-circle { border-radius: 50%; }

/* ---------- tables ---------- */
body.theme-m9 .table > thead > tr > th, body.theme-m9 .table thead tr.fw-bolder, body.theme-m9 .table thead tr.fw-bold { background-color: var(--m9-light); color: var(--m9-gray-600) !important; font-weight: 500; font-size: 12px; text-transform: none; }
body.theme-m9 .table > thead > tr > th:first-child { border-top-left-radius: .375rem; }
body.theme-m9 .table > thead > tr > th:last-child { border-top-right-radius: .375rem; }
body.theme-m9 .table.table-row-dashed tr { border-bottom-style: solid; border-bottom-color: var(--m9-border); }
body.theme-m9 .table td { color: var(--m9-gray-800); font-size: 13px; }

/* ---------- tabs, dropdowns, modals ---------- */
body.theme-m9 .nav-line-tabs .nav-item .nav-link { color: var(--m9-gray-600); font-weight: 500; }
body.theme-m9 .nav-line-tabs .nav-item .nav-link.active, body.theme-m9 .nav-line-tabs .nav-item .nav-link:hover:not(.disabled) { color: var(--m9-primary); border-bottom-color: var(--m9-primary); }
body.theme-m9 .menu-sub-dropdown, body.theme-m9 .dropdown-menu { border: 1px solid var(--m9-border); border-radius: .75rem; box-shadow: 0 4px 12px 0 rgba(0, 0, 0, .09); }
body.theme-m9 .menu-sub-dropdown .menu-link, body.theme-m9 .menu-rounded .menu-link { border-radius: .375rem; font-size: 13px; }
body.theme-m9 .modal-content { border-radius: .75rem; border: 1px solid var(--m9-border); box-shadow: 0 10px 14px 0 rgba(15, 42, 81, .03); }
body.theme-m9 .modal-header { border-bottom: 1px solid var(--m9-border); padding: 1rem 1.875rem; }
body.theme-m9 .modal-footer { border-top: 1px solid var(--m9-border); }
body.theme-m9 .modal-title { font-size: 1rem; font-weight: 600; }
body.theme-m9 .alert { border-radius: .5rem; }
body.theme-m9 .separator { border-bottom-color: var(--m9-border); }
body.theme-m9 .footer { background-color: #fefefe !important; border-top: 1px solid var(--m9-border); }
body.theme-m9 .footer .text-dark { color: var(--m9-gray-700) !important; }
body.theme-m9 .text-gray-900, body.theme-m9 .text-dark { color: var(--m9-gray-900) !important; }

/* ---------- sign-in and error pages ---------- */
body.theme-m9 .w-lg-500px.bg-body.rounded.shadow-sm { background-color: #fff !important; border: 1px solid var(--m9-border); border-radius: .75rem !important; box-shadow: 0 3px 4px 0 rgba(0, 0, 0, .03) !important; }

/* ---------- menu hover: keep the text colour, Ovule gold (#E9A300) for the hover background ----------
   Applies to the side menu, the header menu and the drop-down menus (user menu, context menu). */
body.theme-m9 .menu .menu-item > .menu-link:hover:not(.disabled):not(.active),
body.theme-m9 .menu .menu-item.hover > .menu-link:not(.disabled):not(.active),
body.theme-m9 .header .header-menu .menu > .menu-item > .menu-link:hover:not(.disabled):not(.active),
body.theme-m9 .header .header-menu .menu > .menu-item.hover > .menu-link:not(.disabled):not(.active) {
    background-color: var(--m9-brand-hover) !important;
    color: inherit !important;
    box-shadow: inset 3px 0 0 var(--m9-brand);
}
body.theme-m9 .header .header-menu .menu > .menu-item > .menu-link:hover:not(.disabled):not(.active),
body.theme-m9 .header .header-menu .menu > .menu-item.hover > .menu-link:not(.disabled):not(.active) { box-shadow: inset 0 -2px 0 var(--m9-brand); }
/* the text, icon and bullet keep the colours they have when not hovered */
body.theme-m9 #kt_aside_menu .menu-item > .menu-link:hover:not(.disabled):not(.active) .menu-title,
body.theme-m9 #kt_aside_menu .menu-item.hover > .menu-link:not(.disabled):not(.active) .menu-title { color: var(--m9-gray-800) !important; }
body.theme-m9 .header .header-menu .menu > .menu-item > .menu-link:hover:not(.disabled):not(.active) .menu-title,
body.theme-m9 .header .header-menu .menu > .menu-item.hover > .menu-link:not(.disabled):not(.active) .menu-title { color: var(--m9-gray-700) !important; }
body.theme-m9 .menu-sub-dropdown .menu-item > .menu-link:hover:not(.disabled):not(.active),
body.theme-m9 .menu-sub-dropdown .menu-item > .menu-link:hover:not(.disabled):not(.active) .menu-title { color: var(--m9-gray-800) !important; }
body.theme-m9 .menu .menu-item > .menu-link:hover:not(.disabled):not(.active) .menu-icon i,
body.theme-m9 .menu .menu-item.hover > .menu-link:not(.disabled):not(.active) .menu-icon i { color: var(--m9-gray-500) !important; }
body.theme-m9 .menu .menu-item > .menu-link:hover:not(.disabled):not(.active) .menu-icon .svg-icon svg [fill]:not(.permanent):not(g) { fill: var(--m9-gray-500) !important; }
body.theme-m9 .menu .menu-item > .menu-link:hover:not(.disabled):not(.active) .menu-bullet .bullet { background-color: var(--m9-gray-400) !important; }
body.theme-m9 .menu .menu-item > .menu-link:hover:not(.disabled):not(.active) .menu-arrow:after { opacity: 1; }
/* an open menu (its drop-down or accordion showing) keeps a lighter shade of the same gold */
body.theme-m9 .header .header-menu .menu > .menu-item.show > .menu-link,
body.theme-m9 #kt_aside_menu .menu-item.show > .menu-link:not(.active) { background-color: var(--m9-brand-open) !important; }
body.theme-m9 .header .header-menu .menu > .menu-item.show > .menu-link .menu-title,
body.theme-m9 .header .header-menu .menu > .menu-item.here > .menu-link .menu-title { color: var(--m9-gray-900) !important; }
body.theme-m9 .header .header-menu .menu > .menu-item.here > .menu-link { background-color: transparent !important; }
body.theme-m9 #kt_aside_menu .menu-item.show > .menu-link .menu-title { color: var(--m9-gray-900) !important; }
