/* ==========================================================================
   HEARTS Institute of Nursing and Health Sciences (HINHS) theme
   Palette and fonts taken from https://hinhs.edu.pk/
   Loaded LAST in _DashboardMain, _DashboardParent, _TestLayout and Login,
   so it overrides the base stylesheets.
   ========================================================================== */

:root {
    --hinhs-red: #ec1c24;        /* brand primary / call-to-action */
    --hinhs-red-dark: #c4141b;
    --hinhs-navy: #1e3e77;       /* brand secondary */
    --hinhs-navy-dark: #152c55;
    --hinhs-navy-deep: #10234a;
    --hinhs-ink: #26262c;        /* body text */
    --hinhs-muted: #76767f;
    --hinhs-light: #f6f7fd;      /* page background */
    --hinhs-sky: #bfd1ff;        /* soft accent */
}

/* ---------- Typography ---------- */
body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--hinhs-ink);
    background-color: var(--hinhs-light) !important;
}

h1, h2, h3,
.page-title h3,
.x_title h2 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    color: var(--hinhs-navy);
}

a { color: var(--hinhs-navy); }
a:hover, a:focus { color: var(--hinhs-red); }

/* ---------- Top header ---------- */
.demo-layout .mdl-layout__header-row {
    background: var(--hinhs-navy) !important;
    border-bottom: 3px solid var(--hinhs-red);
}

.top_nav .user-profile,
.top_nav .user-profile label,
.top_nav .user-profile .fa {
    color: #fff !important;
}

/* ---------- Sidebar (drawer) ---------- */
.demo-drawer.mdl-layout__drawer,
.demo-drawer .demo-navigation {
    background-color: var(--hinhs-navy-dark) !important;
}

.demo-drawer-header {
    background: #fff;
    padding: 14px 16px;
    border-bottom: 3px solid var(--hinhs-red);
    align-items: center;
}

    .demo-drawer-header img {
        max-width: 100%;
        height: auto !important;
        max-height: 54px;
    }

.nav.side-menu > li:hover {
    background-color: var(--hinhs-navy);
}

.nav.side-menu > li.current-page,
.nav.side-menu > li.active {
    border-right: 5px solid var(--hinhs-red);
}

    .nav.side-menu > li.active > a {
        color: #fff !important;
        background: var(--hinhs-navy);
    }

li.current-page a {
    color: var(--hinhs-sky) !important;
}

.child_menu,
.child {
    background-color: var(--hinhs-navy-deep);
}

body.nav-sm ul.nav.child_menu {
    background: var(--hinhs-navy);
}

.nav.child_menu li:hover {
    background-color: var(--hinhs-navy);
}

.nav.child_menu li:before {
    background: var(--hinhs-red);
}

.nav.child_menu li:after {
    border-left-color: rgba(191, 209, 255, 0.35);
}

.badge.bg-red,
.bg-red {
    background-color: var(--hinhs-red) !important;
}

/* ---------- Buttons ---------- */
.btn-primary {
    background-color: var(--hinhs-navy);
    border-color: var(--hinhs-navy-dark);
    color: #fff;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active,
    .btn-primary.active,
    .open > .dropdown-toggle.btn-primary {
        background-color: var(--hinhs-navy-dark);
        border-color: var(--hinhs-navy-deep);
        color: #fff;
    }

.btn-danger {
    background-color: var(--hinhs-red);
    border-color: var(--hinhs-red-dark);
}

    .btn-danger:hover,
    .btn-danger:focus,
    .btn-danger:active {
        background-color: var(--hinhs-red-dark);
        border-color: var(--hinhs-red-dark);
    }

/* ---------- Forms ---------- */
.form-control:focus {
    border-color: var(--hinhs-navy);
    box-shadow: 0 0 0 3px rgba(191, 209, 255, 0.6);
}

input:checked + .slider {
    background-color: var(--hinhs-navy);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--hinhs-navy);
}

/* ---------- Panels, tables, modals ---------- */
.x_panel {
    border-top: 3px solid var(--hinhs-navy);
}

.x_title {
    border-bottom-color: rgba(30, 62, 119, 0.15);
}

.modal-header {
    border-bottom: 3px solid var(--hinhs-red);
}

    .modal-header .modal-title,
    .modal-header .close {
        color: #fff;
        opacity: 1;
    }

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: var(--hinhs-light);
}

.table-hover > tbody > tr:hover {
    background-color: rgba(191, 209, 255, 0.35);
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--hinhs-navy) !important;
    border-color: var(--hinhs-navy) !important;
    color: #fff !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    border-top: 3px solid var(--hinhs-red);
    color: var(--hinhs-navy);
}

/* ==========================================================================
   Login page
   ========================================================================== */
.invision-logo.hinhs-logo {
    width: auto;
    height: auto;
    padding: 10px 16px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    font-size: inherit;
    color: inherit;
}

    .invision-logo.hinhs-logo img {
        display: block;
        height: 44px;
        width: auto;
    }

@media (max-width: 786px) {
    .invision-logo.hinhs-logo img {
        height: 34px;
    }
}

.feature-panel--enterprise {
    background: linear-gradient(160deg, rgba(30, 62, 119, 0.92), rgba(16, 35, 74, 0.96)),
                url(../Images/enterprise-panel-photo.jpg) center / cover no-repeat;
}

.enterprise-panel__subheader {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0.3px;
}

    .enterprise-panel__subheader:after {
        content: "";
        display: block;
        width: 56px;
        height: 3px;
        margin: 18px auto 0;
        background: var(--hinhs-red);
    }

.enterprise-panel__caption {
    font-family: 'Roboto', Arial, sans-serif;
    font-style: normal;
    font-size: 17px;
    line-height: 26px;
    color: rgba(255, 255, 255, 0.9);
}

.enterprise-panel__footer__lead,
.enterprise-panel__footer__lead > a {
    color: rgba(255, 255, 255, 0.85);
}

.main-panel__heading {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--hinhs-navy);
}

.form__label {
    color: var(--hinhs-ink);
}

.form__input:focus {
    border-color: var(--hinhs-navy);
}

.form__help {
    color: var(--hinhs-navy);
}

    .form__help:hover,
    .form__help:focus {
        color: var(--hinhs-red);
    }

.form__button {
    background: var(--hinhs-red);
    border-radius: 4px;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

    .form__button:hover,
    .form__button:focus {
        background: var(--hinhs-red-dark);
    }

/* Developer footer on every printed page (Scripts/print-footer.js covers DataTables Print/PDF) */
.print-footer { display: none; }
@media print {
    .print-footer {
        display: block !important;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        text-align: center;
        font: bold 11px Arial, sans-serif;
        color: #000 !important;
        background: #fff;
        z-index: 99999;
    }
    body { padding-bottom: 22px; }
}
