/* ============================================================
   KEMMAF Admin Theme
   Matches the public website palette (public/css/style.css on
   kemmaf-app): deep navy, KEMMAF red and gold accents.
   Loaded after main.css - Section 1 is auto-generated from every
   main.css rule that used Vali's default teal, recoloured.
   ============================================================ */
:root {
    --kemmaf-dark: #1a1a2e;
    --kemmaf-mid: #16213e;
    --kemmaf-light: #0f3460;
    --kemmaf-red: #e94560;
    --kemmaf-red-dark: #b82d45;
    --kemmaf-gold: #f5a623;
    --kemmaf-gold-light: #f8d47a;
    --kemmaf-bg: #f3f4f8;
    --primary: #e94560;
}

/* ---------- Section 1: recoloured Vali teal rules ---------- */
a {
    color: #e94560;
}
.form-control:focus {
    border-color: #e94560;
}
.btn-primary {
    background-color: #e94560;
    border-color: #e94560;
}
.btn-primary:hover {
    border-color: #b82d45;
}
.btn-primary:focus,
.btn-primary.focus {
    -webkit-box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.5);
    box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.5);
}
.btn-primary.disabled,
.btn-primary:disabled {
    background-color: #e94560;
    border-color: #e94560;
}
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    background-color: #b82d45;
}
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
    -webkit-box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.5);
    box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.5);
}
.btn-outline-primary {
    color: #e94560;
    border-color: #e94560;
}
.btn-outline-primary:hover {
    background-color: #e94560;
    border-color: #e94560;
}
.btn-outline-primary:focus,
.btn-outline-primary.focus {
    -webkit-box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.5);
    box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.5);
}
.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
    color: #e94560;
}
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle {
    background-color: #e94560;
    border-color: #e94560;
}
.btn-outline-primary:not(:disabled):not(.disabled):active:focus,
.btn-outline-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-primary.dropdown-toggle:focus {
    -webkit-box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.5);
    box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.5);
}
.btn-link {
    color: #e94560;
}
.dropdown-item.active,
.dropdown-item:active {
    background-color: #e94560;
}
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #e94560;
}
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #e94560;
}
.custom-checkbox
    .custom-control-input:indeterminate
    ~ .custom-control-label::before {
    background-color: #e94560;
}
.custom-checkbox
    .custom-control-input:disabled:checked
    ~ .custom-control-label::before {
    background-color: rgba(233, 69, 96, 0.5);
}
.custom-checkbox
    .custom-control-input:disabled:indeterminate
    ~ .custom-control-label::before {
    background-color: rgba(233, 69, 96, 0.5);
}
.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #e94560;
}
.custom-radio
    .custom-control-input:disabled:checked
    ~ .custom-control-label::before {
    background-color: rgba(233, 69, 96, 0.5);
}
.custom-select:focus {
    border-color: #e94560;
    -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075),
        0 0 5px rgba(233, 69, 96, 0.5);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075),
        0 0 5px rgba(233, 69, 96, 0.5);
}
.custom-file-input:focus ~ .custom-file-label {
    border-color: #e94560;
}
.custom-file-input:focus ~ .custom-file-label::after {
    border-color: #e94560;
}
.custom-range::-webkit-slider-thumb {
    background-color: #e94560;
}
.custom-range::-moz-range-thumb {
    background-color: #e94560;
}
.custom-range::-ms-thumb {
    background-color: #e94560;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #e94560;
}
.page-link {
    color: #e94560;
}
.page-item.active .page-link {
    background-color: #e94560;
    border-color: #e94560;
}
.badge-primary {
    background-color: #e94560;
}
.badge-primary[href]:hover,
.badge-primary[href]:focus {
    background-color: #b82d45;
}
.progress-bar {
    background-color: #e94560;
}
.list-group-item.active {
    background-color: #e94560;
    border-color: #e94560;
}
.bg-primary {
    background-color: #e94560 !important;
}
a.bg-primary:hover,
a.bg-primary:focus,
button.bg-primary:hover,
button.bg-primary:focus {
    background-color: #b82d45 !important;
}
.border-primary {
    border-color: #e94560 !important;
}
.text-primary {
    color: #e94560 !important;
}
a.text-primary:hover,
a.text-primary:focus {
    color: #b82d45 !important;
}
.datepicker table tr td.active:focus,
.datepicker table tr td.active.highlighted:focus,
.datepicker table tr td.active.focus,
.datepicker table tr td.active.highlighted.focus {
    background-color: #e94560;
}
.datepicker table tr td.active:hover,
.datepicker table tr td.active.highlighted:hover {
    background-color: #e94560;
    border-color: #d63651;
}
.datepicker table tr td.active:active,
.datepicker table tr td.active.highlighted:active,
.datepicker table tr td.active.active,
.datepicker table tr td.active.highlighted.active,
.open > .dropdown-toggle.datepicker table tr td.active,
.open > .dropdown-toggle.datepicker table tr td.active.highlighted {
    background-color: #e94560;
    border-color: #d63651;
}
.datepicker table tr td.active:active:hover,
.datepicker table tr td.active.highlighted:active:hover,
.datepicker table tr td.active.active:hover,
.datepicker table tr td.active.highlighted.active:hover,
.open > .dropdown-toggle.datepicker table tr td.active:hover,
.open > .dropdown-toggle.datepicker table tr td.active.highlighted:hover,
.datepicker table tr td.active:active:focus,
.datepicker table tr td.active.highlighted:active:focus,
.datepicker table tr td.active.active:focus,
.datepicker table tr td.active.highlighted.active:focus,
.open > .dropdown-toggle.datepicker table tr td.active:focus,
.open > .dropdown-toggle.datepicker table tr td.active.highlighted:focus,
.datepicker table tr td.active:active.focus,
.datepicker table tr td.active.highlighted:active.focus,
.datepicker table tr td.active.active.focus,
.datepicker table tr td.active.highlighted.active.focus,
.open > .dropdown-toggle.datepicker table tr td.active.focus,
.open > .dropdown-toggle.datepicker table tr td.active.highlighted.focus {
    background-color: #d63651;
}
.datepicker table tr td span.active:focus,
.datepicker table tr td span.active:hover:focus,
.datepicker table tr td span.active.disabled:focus,
.datepicker table tr td span.active.disabled:hover:focus,
.datepicker table tr td span.active.focus,
.datepicker table tr td span.active:hover.focus,
.datepicker table tr td span.active.disabled.focus,
.datepicker table tr td span.active.disabled:hover.focus {
    background-color: #e94560;
}
.datepicker table tr td span.active:hover,
.datepicker table tr td span.active:hover:hover,
.datepicker table tr td span.active.disabled:hover,
.datepicker table tr td span.active.disabled:hover:hover {
    background-color: #e94560;
    border-color: #d63651;
}
.datepicker table tr td span.active:active,
.datepicker table tr td span.active:hover:active,
.datepicker table tr td span.active.disabled:active,
.datepicker table tr td span.active.disabled:hover:active,
.datepicker table tr td span.active.active,
.datepicker table tr td span.active:hover.active,
.datepicker table tr td span.active.disabled.active,
.datepicker table tr td span.active.disabled:hover.active,
.open > .dropdown-toggle.datepicker table tr td span.active,
.open > .dropdown-toggle.datepicker table tr td span.active:hover,
.open > .dropdown-toggle.datepicker table tr td span.active.disabled,
.open > .dropdown-toggle.datepicker table tr td span.active.disabled:hover {
    background-color: #e94560;
    border-color: #d63651;
}
.datepicker table tr td span.active:active:hover,
.datepicker table tr td span.active:hover:active:hover,
.datepicker table tr td span.active.disabled:active:hover,
.datepicker table tr td span.active.disabled:hover:active:hover,
.datepicker table tr td span.active.active:hover,
.datepicker table tr td span.active:hover.active:hover,
.datepicker table tr td span.active.disabled.active:hover,
.datepicker table tr td span.active.disabled:hover.active:hover,
.open > .dropdown-toggle.datepicker table tr td span.active:hover,
.open > .dropdown-toggle.datepicker table tr td span.active:hover:hover,
.open > .dropdown-toggle.datepicker table tr td span.active.disabled:hover,
.open
    > .dropdown-toggle.datepicker
    table
    tr
    td
    span.active.disabled:hover:hover,
.datepicker table tr td span.active:active:focus,
.datepicker table tr td span.active:hover:active:focus,
.datepicker table tr td span.active.disabled:active:focus,
.datepicker table tr td span.active.disabled:hover:active:focus,
.datepicker table tr td span.active.active:focus,
.datepicker table tr td span.active:hover.active:focus,
.datepicker table tr td span.active.disabled.active:focus,
.datepicker table tr td span.active.disabled:hover.active:focus,
.open > .dropdown-toggle.datepicker table tr td span.active:focus,
.open > .dropdown-toggle.datepicker table tr td span.active:hover:focus,
.open > .dropdown-toggle.datepicker table tr td span.active.disabled:focus,
.open
    > .dropdown-toggle.datepicker
    table
    tr
    td
    span.active.disabled:hover:focus,
.datepicker table tr td span.active:active.focus,
.datepicker table tr td span.active:hover:active.focus,
.datepicker table tr td span.active.disabled:active.focus,
.datepicker table tr td span.active.disabled:hover:active.focus,
.datepicker table tr td span.active.active.focus,
.datepicker table tr td span.active:hover.active.focus,
.datepicker table tr td span.active.disabled.active.focus,
.datepicker table tr td span.active.disabled:hover.active.focus,
.open > .dropdown-toggle.datepicker table tr td span.active.focus,
.open > .dropdown-toggle.datepicker table tr td span.active:hover.focus,
.open > .dropdown-toggle.datepicker table tr td span.active.disabled.focus,
.open
    > .dropdown-toggle.datepicker
    table
    tr
    td
    span.active.disabled:hover.focus {
    background-color: #d63651;
}
.sweet-alert input:focus {
    border-color: #e94560;
}
.sweet-alert button {
    background-color: #e94560 !important;
}
.sweet-alert button:active {
    background-color: #b82d45;
}
.select2-dropdown {
    border: 2px solid #e94560;
}
.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: #e94560;
}
.select2-container--default.select2-container--focus
    .select2-selection--multiple {
    border-color: #e94560;
}
.select2-container--default.select2-container--open.select2-container--above
    .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--above
    .select2-selection--multiple {
    border-color: #e94560;
}
.select2-container--default.select2-container--open.select2-container--below
    .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below
    .select2-selection--multiple {
    border-color: #e94560;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e94560;
}
.select2-container--default
    .select2-results__option--highlighted[aria-selected] {
    background-color: #e94560;
}
.select2-container--classic .select2-selection--single {
    border: 2px solid #e94560;
}
.select2-container--classic .select2-selection--single:focus {
    border: 1px solid #e94560;
}
.select2-container--classic.select2-container--open .select2-selection--single {
    border: 1px solid #e94560;
}
.select2-container--classic .select2-selection--multiple:focus {
    border: 1px solid #e94560;
}
.select2-container--classic.select2-container--open
    .select2-selection--multiple {
    border: 1px solid #e94560;
}
.select2-container--classic.select2-container--open .select2-dropdown {
    border-color: #e94560;
}
.fc-unthemed .fc-today {
    background: rgba(233, 69, 96, 0.2);
}
.fc-state-down,
.fc-state-active {
    background-color: #e94560;
}
.fc-event {
    border: 1px solid #e94560;
    background-color: #e94560;
}
::-moz-selection {
    background-color: #b82d45;
}
::selection {
    background-color: #b82d45;
}
.app-header {
    background-color: #e94560;
}
@media (min-width: 768px) {
    .app-header__logo {
        background-color: #d63651;
    }
}
.app-sidebar__toggle:focus,
.app-sidebar__toggle:hover {
    background-color: #b82d45;
}
.app-notification__title {
    background-color: rgba(233, 69, 96, 0.4);
}
.app-menu__item.active,
.app-menu__item:hover,
.app-menu__item:focus {
    border-left-color: #e94560;
}
.treeview.is-expanded [data-toggle="treeview"] {
    border-left-color: #e94560;
}
@media (min-width: 768px) {
    .sidebar-mini.sidenav-toggled .treeview:hover .app-menu__item {
        border-left-color: #e94560;
    }
}
.animated-checkbox input[type="checkbox"]:checked + .label-text:before {
    color: #e94560;
}
.animated-radio-button input[type="radio"]:checked + .label-text:before {
    color: #e94560;
}
.toggle input[type="checkbox"]:checked + .button-indecator:before {
    color: #e94560;
}
.toggle-flip input[type="checkbox"] + .flip-indecator:after {
    background-color: #e94560;
}
.material-half-bg .cover {
    background-color: #e94560;
}
.path {
    stroke: #e94560;
}
.widget-small.primary {
    background-color: #e94560;
}
.widget-small.primary.coloured-icon .icon {
    background-color: #e94560;
}
.messanger .messages .message.me .info {
    background-color: #e94560;
}
.messanger .messages .message.me .info:after {
    border-color: transparent #e94560 transparent transparent;
}
.messanger .sender input[type="text"] {
    border: 1px solid #e94560;
}
.user .user-tabs .nav-link.active {
    border-left-color: #e94560;
}

/* ---------- Section 2: KEMMAF layout styling ---------- */

body,
.app-content {
    font-family: 'Montserrat', "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.tile-title,
.app-title h1 {
    font-family: 'Oswald', 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

.app-content {
    background-color: var(--kemmaf-bg);
}

/* Header */
.app-header {
    background-color: var(--kemmaf-mid);
    border-bottom: 3px solid var(--kemmaf-red);
}
.app-header__logo {
    background-color: var(--kemmaf-dark);
    color: var(--kemmaf-gold);
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 2px;
}
.app-header__logo:hover,
.app-header__logo:focus {
    color: var(--kemmaf-gold-light);
}
.app-sidebar__toggle,
.app-nav__item {
    color: #ffffff;
}
.app-sidebar__toggle:hover,
.app-sidebar__toggle:focus,
.app-nav__item:hover,
.app-nav__item:focus {
    background-color: rgba(233, 69, 96, 0.25);
    color: var(--kemmaf-gold);
}

/* Sidebar */
.app-sidebar {
    background-color: var(--kemmaf-dark);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.25);
}
.app-menu__item {
    color: #d7d9e4;
}
.app-menu__item.active,
.app-menu__item:hover,
.app-menu__item:focus {
    background: var(--kemmaf-mid);
    border-left-color: var(--kemmaf-red);
    color: #ffffff;
}
.app-menu__item.active .app-menu__icon,
.app-menu__item:hover .app-menu__icon {
    color: var(--kemmaf-gold);
}
.treeview.is-expanded [data-toggle="treeview"] {
    background: var(--kemmaf-mid);
    border-left-color: var(--kemmaf-red);
}
.treeview-menu {
    background: #121226;
}
.treeview-item {
    color: #c9ccd9;
}
.treeview-item.active,
.treeview-item:hover,
.treeview-item:focus {
    background: var(--kemmaf-mid);
    color: var(--kemmaf-gold);
}
.app-sidebar__heading {
    color: var(--kemmaf-gold);
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 15px 4px;
    margin: 0;
    opacity: 0.85;
}

/* Page title + tiles */
.app-title {
    background-color: #ffffff;
    border-left: 4px solid var(--kemmaf-red);
}
.app-title h1 {
    color: var(--kemmaf-dark);
}
.tile {
    border-radius: 6px;
    border-top: 3px solid var(--kemmaf-dark);
}
.tile .tile-title {
    color: var(--kemmaf-dark);
}

/* Tables */
.table thead th,
table.dataTable thead th {
    background-color: var(--kemmaf-dark);
    color: #ffffff;
    border-color: var(--kemmaf-mid);
}
.page-item.active .page-link {
    background-color: var(--kemmaf-red);
    border-color: var(--kemmaf-red);
}

/* Secondary accent buttons */
.btn-kemmaf-gold {
    background-color: var(--kemmaf-gold);
    border-color: var(--kemmaf-gold);
    color: var(--kemmaf-dark);
    font-weight: 600;
}
.btn-kemmaf-gold:hover {
    background-color: #e0951a;
    border-color: #e0951a;
    color: var(--kemmaf-dark);
}
.btn-kemmaf-dark {
    background-color: var(--kemmaf-dark);
    border-color: var(--kemmaf-dark);
    color: #ffffff;
}
.btn-kemmaf-dark:hover {
    background-color: var(--kemmaf-light);
    color: #ffffff;
}
.text-kemmaf-gold { color: var(--kemmaf-gold) !important; }
.text-kemmaf-red { color: var(--kemmaf-red) !important; }
.bg-kemmaf-dark { background-color: var(--kemmaf-dark) !important; color: #fff; }

/* Widgets (dashboard) */
.widget-small.primary.coloured-icon .icon { background-color: var(--kemmaf-red); }
.widget-small.info.coloured-icon .icon { background-color: var(--kemmaf-light); }
.widget-small.warning.coloured-icon .icon { background-color: var(--kemmaf-gold); }
.widget-small.danger.coloured-icon .icon { background-color: var(--kemmaf-dark); }

/* Login screens */
.material-half-bg {
    background-color: var(--kemmaf-bg);
}
.material-half-bg .cover {
    background-color: var(--kemmaf-dark);
    background-image: linear-gradient(135deg, var(--kemmaf-dark) 0%, var(--kemmaf-mid) 55%, var(--kemmaf-light) 100%);
    border-bottom: 4px solid var(--kemmaf-red);
}
.login-content .logo {
    color: #ffffff;
    text-align: center;
}
.login-content .logo h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--kemmaf-gold);
}
.login-content .logo img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 3px solid var(--kemmaf-gold);
    margin-bottom: 10px;
    background: #fff;
}
.login-content .logo small {
    display: block;
    color: #d7d9e4;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 12px;
}
.login-content .login-box {
    border-top: 4px solid var(--kemmaf-red);
    border-radius: 6px;
}
.login-content .login-head {
    color: var(--kemmaf-dark);
    border-bottom-color: #e6e7ef;
    font-family: 'Oswald', sans-serif;
}
