/* Souktrain brand layer on top of Adminox. Navy #150d4f, green #3aa635, orange #f28c1a. */
:root {
    --bs-primary: #150d4f;
    --bs-primary-rgb: 21, 13, 79;
    --bs-primary-text-emphasis: #150d4f;
    --bs-primary-bg-subtle: #e8e7ee;
    --bs-primary-border-subtle: #b9b6ca;
    --bs-success: #3aa635;
    --bs-success-rgb: 58, 166, 53;
    --bs-warning: #f28c1a;
    --bs-warning-rgb: 242, 140, 26;
    --bs-link-color: #150d4f;
    --bs-link-color-rgb: 21, 13, 79;
    --bs-link-hover-color: #3aa635;
    --bs-link-hover-color-rgb: 58, 166, 53;
    --bs-logo-lg-height: 36px;
    --bs-logo-sm-height: 36px;
}

:root[data-menu-color=dark] {
    --bs-menu-bg: #150d4f;
    --bs-menu-item-color: rgba(255, 255, 255, .72);
    --bs-menu-item-hover-color: #fff;
    --bs-menu-item-hover-bg: rgba(255, 255, 255, .08);
    --bs-menu-item-active-color: #fff;
    --bs-menu-item-active-bg: rgba(255, 255, 255, .1);
}

:root[data-topbar-color=light] {
    --bs-topbar-item-hover-color: #150d4f;
}

.btn-primary {
    --bs-btn-bg: #150d4f;
    --bs-btn-border-color: #150d4f;
    --bs-btn-hover-bg: #241a6e;
    --bs-btn-hover-border-color: #241a6e;
    --bs-btn-active-bg: #0f0a3b;
    --bs-btn-active-border-color: #0f0a3b;
    --bs-btn-disabled-bg: #150d4f;
    --bs-btn-disabled-border-color: #150d4f;
    --bs-btn-focus-shadow-rgb: 21, 13, 79;
}

.form-control:focus {
    border-color: #3aa635;
    box-shadow: 0 0 0 .15rem rgba(58, 166, 53, .2);
}

.form-check-input:checked {
    background-color: #3aa635;
    border-color: #3aa635;
}

/* The logo is a JPG on white, so it sits on a white strip at the top of the navy sidebar. */
.sidenav-menu .logo {
    background: #fff;
}

.user-initial {
    align-items: center;
    background: #150d4f;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-weight: 600;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.auth-page {
    background: #150d4f;
}

.auth-page .card {
    border-top: 4px solid #3aa635;
}

.auth-logo {
    height: auto;
    max-width: 100%;
    width: 280px;
}

/* Registration */
.reg-section {
    border-bottom: 1px solid var(--bs-border-color);
    color: #150d4f;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    margin: 1.75rem 0 1rem;
    padding-bottom: .5rem;
    text-transform: uppercase;
}

.reg-fee {
    background: #e5f4e4;
    border-radius: .375rem;
    color: #256b22;
    font-size: .875rem;
    padding: .4rem .75rem;
}

.form-text.is-ok { color: #2d8a29; }
.form-text.is-bad { color: var(--bs-danger); }

.btn-success {
    --bs-btn-bg: #3aa635;
    --bs-btn-border-color: #3aa635;
    --bs-btn-hover-bg: #31902d;
    --bs-btn-hover-border-color: #31902d;
    --bs-btn-active-bg: #2a7d27;
    --bs-btn-active-border-color: #2a7d27;
}

.reg-done-icon {
    align-items: center;
    background: #e5f4e4;
    border-radius: 50%;
    color: #3aa635;
    display: inline-flex;
    height: 56px;
    justify-content: center;
    width: 56px;
}

/* Stat cards that act as filters */
a.stat-card { color: inherit; transition: box-shadow .15s, border-color .15s; border: 1px solid transparent; }
a.stat-card:hover { box-shadow: 0 2px 10px rgba(21, 13, 79, .12); }
a.stat-card.is-active { border-color: #3aa635; }
.font-monospace { letter-spacing: .04em; }

.pagination {
    --bs-pagination-active-bg: #150d4f;
    --bs-pagination-active-border-color: #150d4f;
    --bs-pagination-color: #150d4f;
}

/* Genealogy tree */
.gt-tree {
    max-height: 640px;
    overflow: auto;
}

.gt-tree.jstree-default .jstree-wholerow-clicked {
    background: #e8e7ee;
}

.gt-tree.jstree-default .jstree-wholerow-hovered {
    background: #f3f3f7;
}

.gt-tree .jstree-themeicon-custom {
    color: #150d4f;
    font-size: 18px;
}

.gt-user {
    color: #150d4f;
    font-weight: 600;
}

.gt-name {
    color: #6c757d;
}

.gt-level,
.gt-count {
    border-radius: 10px;
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    margin-left: 4px;
    padding: 0 6px;
}

.gt-level {
    background: #fdeedd;
    color: #b8650c;
}

.gt-count {
    background: #e3f2e2;
    color: #2b7d27;
}

.gt-results {
    background: #f8f9fb;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
}

/* Naira amounts in dashboard tiles: smaller so ₦1,234,567 fits beside the icon. */
.stat-money {
    font-size: 1.25rem;
    white-space: nowrap;
}

/* E-Store */
.store-cats a {
    color: #495057;
    display: block;
    padding: 4px 0;
}

.store-cats a:hover,
.store-cats a.active {
    color: #150d4f;
    font-weight: 600;
}

.product-img {
    align-items: center;
    aspect-ratio: 1 / 1;
    background: #f6f6f9;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.product-img img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.product-card {
    transition: box-shadow .15s;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(21, 13, 79, .1);
}

.product-card .product-img {
    border-radius: var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0;
}

.product-name {
    color: #343a40;
    display: -webkit-box;
    font-weight: 500;
    line-height: 1.35;
    min-height: 2.7em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-price {
    color: #150d4f;
    font-weight: 700;
}

.product-description {
    color: #495057;
    line-height: 1.6;
}

.cart-thumb {
    background: #f6f6f9;
    border-radius: 4px;
    flex-shrink: 0;
    height: 44px;
    object-fit: contain;
    width: 44px;
}

/* Receipt: print only the receipt card */
@media print {
    .sidenav-menu,
    .app-topbar,
    .page-title-box,
    .footer,
    .alert-dismissible {
        display: none !important;
    }

    .page-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    .receipt {
        border: 0;
        box-shadow: none;
    }
}

/* E-Library */
.lib-cover {
    align-items: center;
    aspect-ratio: 3 / 4;
    background: #f6f6f9;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.lib-cover img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.lib-card {
    color: inherit;
}

.lib-card .lib-cover {
    border-radius: var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0;
}

.lib-cover-blank {
    background: linear-gradient(160deg, #150d4f 0%, #2a1f7a 100%);
    border-left: 6px solid #f28c1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    padding: 18px 14px;
    text-align: center;
    width: 100%;
}

.lib-cover-blank .mdi {
    color: #3aa635;
    font-size: 30px;
    margin-bottom: 8px;
}

.lib-cover-title {
    display: -webkit-box;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.lib-cover-author {
    font-size: 12px;
    margin-top: 6px;
    opacity: .75;
}

/* News */
.news-card {
    color: inherit;
    overflow: hidden;
}

.news-img {
    aspect-ratio: 16 / 9;
    background: #f6f6f9;
    overflow: hidden;
}

.news-img img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.news-title {
    color: #150d4f;
    line-height: 1.35;
}

.news-hero {
    max-height: 380px;
    object-fit: cover;
}

.news-body {
    color: #343a40;
    font-size: 15px;
    line-height: 1.7;
}

.news-body h2,
.news-body h3 {
    color: #150d4f;
    margin: 1.2em 0 .5em;
}

.news-body blockquote {
    border-left: 4px solid #3aa635;
    color: #495057;
    margin: 1em 0;
    padding: .25em 0 .25em 1em;
}

.news-editor {
    min-height: 280px;
}

.news-editor .ql-editor {
    font-size: 15px;
    min-height: 280px;
}

.faq-accordion .accordion-button {
    font-weight: 600;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: #f4f3fa;
    color: #150d4f;
}

.faq-answer-preview {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
