﻿:root {
    /*--bs-primary: #284868;*/
    --bs-primary: #004869;
    --bs-secondary: #51596C;
    --bs-success: #077C76;
    --bs-info: #334AC0;
    --bs-warning: #F1B980;
    --bs-danger: #692340;
    --bs-light: #F9FAFC;
    --bs-dark: #00221C;
    --bs-primary-rgb: 0, 72, 105;
    --bs-secondary-rgb: 81, 89, 108;
    --bs-success-rgb: 7, 124, 118;
    --bs-info-rgb: 51, 74, 192;
    --bs-warning-rgb: 241, 185, 128;
    --bs-danger-rgb: 105, 35, 64;
    --bs-light-rgb: 249, 250, 252;
    --bs-dark-rgb: 0, 34, 28;
    --bs-white-rgb: 255, 255, 255;
    --bs-black-rgb: 0, 0, 0;
    --bs-highlight-bg: #fcf1e6
}

::-moz-selection {
    color: #008060;
    background-color: rgba(0, 128, 96, .1)
}

::selection {
    color: #008060;
    background-color: rgba(0, 128, 96, .1)
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border: 0;
}
.text-primary {
    color: #004869 !important;
}
.text-warning {
    color: #edd73b !important;
}
.bg-soft-primary-light {
    background-color: rgba(40,72,104,.7) !important;
}

.navbar {
    --bs-navbar-hover-color: #007bb3;
}

.navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover {
    color: #004869;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #004869;
    --bs-btn-border-color: #004869;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #007bb3; /*#1b354e;*/
    --bs-btn-hover-border-color: #007bb3;
    --bs-btn-focus-shadow-rgb: 27,53,78;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #007bb3;
    --bs-btn-active-border-color: #007bb3;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #004869;
    --bs-btn-disabled-border-color: #004869;
}

.btn-check:focus + .btn-primary, .btn-primary:focus, .btn-primary:hover {
    box-shadow: 0 4px 11px rgba(0,123,175,.35);
}

.btn-check:focus + .btn-ghost-secondary.btn-no-focus:hover, .btn-ghost-secondary.btn-no-focus.focus:hover, .btn-ghost-secondary.btn-no-focus:focus:hover, .btn-ghost-secondary.btn-no-focus:hover:hover {
    color: #004869;
    background-color: rgba(40,72,104,.1);
    /*background-color: rgba(0,128,96,.1);*/
}

.btn-group-md > .btn-icon.btn, .btn-icon.btn-md {
    font-size: 1.6rem;
    width: 3.2rem;
    height: 3.2rem;
}

.btn-group-md > .btn-icon.btn > svg, .btn-icon.btn-md > svg {
    width: 1.6rem;
    height: auto
}

.btn-soft-light {
    /*color: #f9fafc; #2f2e41*/
    color: #f9d72b;
    background-color: rgba(249, 215, 43, 0);
    border-color: transparent
}

.btn-soft-light:focus,
.btn-soft-light:hover {
    color: #004869;
    background-color: #f9d72b;
}

.btn-soft-light.active,
.btn-soft-light:active,
.show > .btn-soft-light.dropdown-toggle {
    color: #f9d72b;
    background-color: #f9d72b;
    border-color: transparent
}

.btn-soft-light.disabled,
.btn-soft-light:disabled {
    color: #f9d72b;
    background-color: #f9d72b;
    border-color: transparent
}

.footer-border-top{
    border-top: 10px solid #f9d72b;
}

.text-cap{
    font-size:1rem;
}

.border-top-yellow {
    --bs-border-opacity: 1;
    border-color: rgba(249,215,43,1) !important;
}

.section-title {
    padding-left: 15px;
    color: #004869;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3em;
    letter-spacing: -1px;
    font-variant: small-caps;
    position: relative;
    margin: 15px 0 20px 0;
}

.section-title span {
    background-color: #F9FAFC;
    padding-right: 10px;
    position: relative;
    z-index:2;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50px;
    right: 0;
    height: 0.6em;
    border-top: 2px solid #004869;
   z-index: 1;
}

.section-title-md {
    padding-left: 15px;
    color: #004869;
    font-size: 1.375rem;
    font-variant: small-caps;
    position: relative;
    margin: 15px 0 20px 0;
}

.section-title-md span {
    background-color: #FFF;
    padding-right: 10px;
    position: relative;
    z-index: 2;
}

.section-title-md:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50px;
    right: 0;
    height: 0.6em;
    border-top: 2px solid #004869;
    z-index: 1;
}

.card-body .text-body {
    font-size: 0.85rem
}

.custom-card .text-body {
    font-size: 0.85rem
}

.custom-card .card-title-sm {
    font-size: 1rem;
    font-weight: bold;
}

.spacer-top {
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
}

.spacer-top-dashboard {
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
    position: relative;
    height: 100vh; 
}

.dashboard-wrapper {
    /*position: absolute;*/
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 55px);
}

.bg-primary-blue {
    --bs-bg-opacity: 1;
    background-color: #004869 !important;
}

.bg-gray-200 {
    background-color: #eaecf4 !important;
}

fieldset {
    border: 1px solid #c5c5c5;
    display: block;
    margin-inline-start: 2px;
    margin-inline-end: 2px;
    padding-block-start: 0.35em;
    padding-inline-start: 0.75em;
    padding-inline-end: 0.75em;
    padding-block-end: 0.625em;
    min-inline-size: min-content;
    margin-bottom:20px;
}

legend {
    float: unset;
    font-size: 0.85rem;
    width:auto;
    padding: 0 5px;
}

.display-sm {
    font-size: 0.85em;
}

.display-md {
    font-size: 1em;
}

.display-lg {
    font-size: 1.2em;
}

.display-xl {
    font-size: 1.5em;
}
.pg-title {
    font-size: calc(1.5rem + 3vw);
    font-weight: 600;
    line-height: 1.2
}
.pg-subtitle {
    font-size: calc(1.375rem + 1.5vw);
    font-weight: 500;
    line-height: 1.2
}
.pg-header{

}
.form-group {
    margin-bottom: 0.3rem;
}

.nav-header-title {
    display: block;
    word-wrap:normal;
    width: 190px;
    white-space: normal;
}

/*html, body {
    height: 100%;
    margin: 0;
}*/

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-right: 0 !important;
    overflow: auto !important;
}

main {
    background-color: #F9FAFC;
    flex: 1; /* This will make main take up the remaining space */
    /*height: 100%;
    padding: 20px;
    background-color: #f1f1f1;*/
}

header {
    border-bottom: 5px solid #004869;
    /*background-color: #4CAF50;
    padding: 20px;
    text-align: center;
    color: white;*/
}

/*footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}*/

.card-w {
    width:320px;
}

.page-instruction {
    font-size: 1.375rem;
}

.label-instruction {
    font-size: 14px;
    color: #7f7f7f;
    font-weight:600;
    font-style: italic;
}

.custom-card {
    border: 2px solid #ddd;
    border-radius: 0.5rem;
    max-width: 100%;
    margin: auto;
}


.hidden {
    display: none;
}

.separator {
    display: flex;
    font-family: 'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana;
    align-items: center;
    text-align: center;
    font-variant: small-caps;
    font-weight: 200;
    font-size: 26px;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #000;
}

.separator:not(:empty)::before {
    margin-right: .25em;
}

.separator:not(:empty)::after {
    margin-left: .25em;
}



.separator-sm {
    display: flex;
    font-family: 'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana;
    align-items: center;
    text-align: center;
    font-variant: small-caps;
    font-weight: 700;
    font-size: 18px;
}

.separator-sm::before,
.separator-sm::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #000;
}

.separator-sm:not(:empty)::before {
    margin-right: .25em;
}

.separator-sm:not(:empty)::after {
    margin-left: .25em;
}

.min-vh-60 {
    min-height: 60vh !important;
}

.min-vh-80 {
    min-height: 80vh !important;
}

.min-vh-95 {
    min-height: 95vh !important;
}

.min-vh-100 {
    min-height: 100vh !important;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #004869;
    margin-top:20px;
}

.form-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: left;
}

.form-section .row {
    align-items: start;
}

.btn-container {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.card-header-2 {
    padding: .75rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, .08);
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    font-size: 1.375rem;
}

.card-2 {
    border-width: 1px;
    box-shadow: 0 0.375rem 1.5rem 0 rgba(140, 152, 164, 0.125);
}

.card-body-dashboard {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    /*padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);*/
    color: var(--bs-card-color);
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 0.5rem;
    color: #6c757d;
}

.row-sm {
    height: 38px;
}

/* === Full-screen loader === */
.app-loader {
    position: fixed;
    inset: 0;
    z-index: 2147483000; /* above modals/toasts */
    display: none; /* hidden by default */
}

.app-loader.is-active {
    display: block;
}

.app-loader__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.35); /* subtle dim */
    backdrop-filter: blur(2px);
}

.app-loader__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.app-loader__text {
    font-weight: 600;
    font-size: .95rem;
}

/* Prevent background scroll when loader is active */
body.loader-locked {
    overflow: hidden;
}
/* === End Full-screen loader === */