body {
    background-color: white;
}

.watermark-wrapper {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center; /* Vertically centers content */
    justify-content: center; /* Horizontally centers content */
}

.watermark-bg {
    position: absolute;
    inset: 0;
    background-image: url("../icons/bi/house-modified-xS2WOvp.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 1.0;
    z-index: 0;
    pointer-events: none;
}

.form-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px; /* Prevent form from getting too wide */
}


/* extension of front's theme.css display-n styling, which goes up to display-6 only
* display-1 to display-6 style text is too large
*/
.display-7 {
    font-size: calc(1.325rem + 0.9vw);
    font-weight: 600;
    line-height: 1.2
}
@media (min-width:1200px){
    .display-7{
		font-size:2.0rem
	}
}
.display-8{
    font-size:calc(1.275rem + 0.3vw);
    font-weight:600;
    line-height:1.2
}
@media (min-width:1200px){
    .display-8{
		font-size:1.5rem
	}
}

.footer_fixed_bottom {
	position:fixed;
	bottom:0;
	width:100%;
}

.content-space-1{
    padding-top:2rem!important;
    padding-bottom:0rem!important
}


/**************************************************************************************/
/* Following added to css because CSP blocks inline version */

/* set login window width. need to do it here becasue CSP policy reject inline defs */
.login-form-width-28-rem {
	max-width: 28rem;
}

.login-form-width-38-rem {
	max-width: 38rem;
}

.bg-img-start-with-style {
    background-size:cover;
    background-repeat:no-repeat;
    background-position:top center;
	background-image:url("../icons/card-11-H2J_pAV.svg")
}

.position-absolute-style-top-right {
	width:10rem;
	position:absolute;
	top:0;
	right:0
}

.position-absolute-style-top-left {
	width:10rem;
	position:absolute;
	top:0;
	left:0
}

.position-absolute-style-bottom-left {
	width:10rem;
	position:absolute;
	bottom:0;
	left:0
}

.position-absolute-style-bottom-right {
	width:10rem;
	position:absolute;
	bottom:0;
	right:0
}


.btn-width-100 {
  width: 100px;
}

.btn-width-150 {
  width: 150px;
}

.btn-width-200 {
  width: 200px;
}

.btn-width-250 {
  width: 250px;
}

.btn-width-300 {
  width: 300px;
}

.btn-width-350 {
  width: 350px;
}


.thead-custom-green {
  /*background-color: #a8d5ba !important; *//* Soft Green Hex Code */
  background-color: #D8FBF5 !important; /* Soft Green Hex Code */
  color: #333; /* Ensure text is readable against the green */
}

/**************************************************************************************/
/* circles */

progress {
	appearance: none;
}

/**************************************************************************************/
/* SVG circles */

.mycircle {
	display: flex;
	align-items: center;
	justify-content: center;
}


.mycircle svg {
	transform: rotate(-90deg);
}

.mycircle svg circle {
	fill: transparent;
	stroke:brown;
	stroke-width: 10;
	stroke-dasharray: 500;
	stroke-dashoffset: 500;
	animation: stroke 2s steps(500) forwards;
}

.mycircle .counter {
	position: absolute;
}

.mycircle .counter span {
	font-size: 25px;
	color: brown;
}

/*
@keyframes stroke {
	100%{
		stroke-dashoffset: 0
	}
}
*/

@keyframes circle-blue {
	100%{
		stroke-dashoffset: 0
	}
}
.mycircle .mycircle-blue svg circle {
	fill: transparent;
	stroke:#377dff;
	stroke-width: 10;
	stroke-dasharray: 500;
	stroke-dashoffset: 500;
	animation-name: circle-blue;
	/*animation: stroke 2s steps(500) forwards;*/
	animation-duration: 2s;
}
.mycircle .counter-blue {
	position: absolute;
}
.mycircle .counter-blue span {
	font-size: 25px;
	color: #377dff;
}


@keyframes circle-red {
	100%{
		stroke-dashoffset: 0
	}
}
.mycircle .mycircle-red svg circle {
	fill: transparent;
	stroke:#de4437;
	stroke-width: 10;
	stroke-dasharray: 500;
	stroke-dashoffset: 500;
	animation-name: circle-red;
	/*animation: stroke 2s steps(500) forwards;*/
	animation-duration: 2s;
}
.mycircle .counter-red {
	position: absolute;
}
.mycircle .counter-red span {
	font-size: 25px;
	color: #de4437;
}


@keyframes circle-blue {
	100%{
		stroke-dashoffset: 0
	}
}
.mycircle .mycircle-green svg circle {
	fill: transparent;
	stroke:#00c9a7;
	stroke-width: 10;
	stroke-dasharray: 500;
	stroke-dashoffset: 500;
	animation-name: circle-blue;
	/*animation: stroke 2s steps(500) forwards;*/
	animation-duration: 2s;
}
.mycircle .counter-green {
	position: absolute;
}
.mycircle .counter-green span {
	font-size: 25px;
	color: #00c9a7;
}

/*****************************************************************/

.progress{
    display:flex;
    height: 20px;
    overflow:hidden;
    font-size:0.75rem;
    background-color:#e7eaf3;
    border-radius:0.5rem;
}

.progress-bar{
    display:flex;
    flex-direction:column;
    justify-content:center;
    overflow:hidden;
    color:#fff;
    text-align:center;
    white-space:nowrap;
    background-color:#377dff;
    transition:width 0.6s ease;
	width: 100%;
}

/*****************************************************************/
/* for the transaction controller */


.hidden {
    display: none;
}


/* Highlighted row during edit */
/* Override the Bootstrap default table-info background color */
.table-info {
    /* background-color: #add8e6; *//* Light blue for editing rows */
	/* --bs-table-bg: lightblue; */
	--bs-table-bg: #cce5ff;
}

.icon-color-red {
  color: red;
}

.icon-color-blue {
  color: blue;
}

/*****************************************************************/
/* special width used only for Bootstrap Cards on Dashboard */
.card-w-19-rem {
	width: 19rem;
}

.card-w-17-rem {
	width: 17rem;
}


.update-table-box {
	max-height: 700px;
}

.obligations-table-box {
	max-height: 500px;
}

.ledger-table-box {
	max-height: 600px;
}


.table-row-hide {
	display:none;
}

.table-row-show {
	display:table-row;
}

.custom-btn {
	background-color: #EB3324;
	filter: brightness(100%);
	color: #fff;
}


.input-amount-width {
	width: 90px;
}


.sticky-header {
	position:sticky;
    top: 0;
}


/*****************************************************************/
/* Overrides Bootstrap card-title color for better contrast */
.card-title {
  color: #343a40; /* This is a dark gray that passes WCAG AA easily */
}

.card-text {
  color: #343a40; /* This is a dark gray that passes WCAG AA easily */
}



.lead {
  color: #343a40; /* This is a dark gray that passes WCAG AA easily */
}

/* Override Bootstrap Link Color for Accessibility */
:root {
  --bs-link-color: #1e60d9;      /* Standard links */
  --bs-link-hover-color: #164ab3; /* Darken slightly on hover for extra contrast */
}

/* Optional: Ensure visited links are also dark enough */
:root {
  --bs-link-visited-color: #0d47a1;
}

/* Override paragraph/body text color for accessibility */
p {
  color: #343a40; /* Dark gray that passes WCAG AA/AAA */
}

/* Or override body globally to affect all text */
body {
  color: #343a40;
}

/* Override list text color */
ul li, ol li {
  color: #343a40; /* Matches your accessible body/paragraph text */
}


/* Make the main H1 smaller and match your design */
.main-title {
  font-size: 1.7rem; /* Adjust this value until it looks right to you */
  font-weight: 700;  /* Keep it bold if needed */
  margin-bottom: 1rem;

  /* Optional: Reset Bootstrap's default huge margins */
  margin-top: 0;
}

.text-danger-accessible {
  color: #b02a37 !important;
}


/* Custom high-contrast primary text for light backgrounds */
.text-primary-dark {
    /* This hex code (#0045b8) is a deep blue that contrasts well with bg-light (#f8f9fa) */
    /* Ratio is approx 6.5:1, which passes AA for normal text */
    color: #0045b8 !important;
}

.text-success-dark {
    /* A darker green that passes 4.5:1 on white/light backgrounds */
	/* color: #0f5132 !important; */
	/* color: #117a40 !important; */
	color: #0d6e36 !important;
}

.text-info-accessible {
	color: #117a8b !important;
}



.border-danger {
  border-color: #b02a37 !important;
}


/* === Solid primary — WCAG AA verified === */
/* Overrides Bootstrap's own .btn-primary via its variable hooks */
.btn-primary {
  --bs-btn-color: #ffffff;              /* 8.0:1 on bg ✓ AA (4.5:1) */
  --bs-btn-bg: #0045b8;
  --bs-btn-border-color: #0045b8;       /* 8.0:1 vs white page ✓ 1.4.11 (3:1) */

  --bs-btn-hover-color: #ffffff;        /* ~11:1 on hover bg ✓ */
  --bs-btn-hover-bg: #00338d;
  --bs-btn-hover-border-color: #00338d;

  /* Active/pressed — added; your original skipped it */
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #002d7a;
  --bs-btn-active-border-color: #002d7a;

  /* Focus ring — your colour was already correct here */
  --bs-btn-focus-shadow-rgb: 0, 69, 184;

  --bs-btn-disabled-color: #ffffff;
  --bs-btn-disabled-bg: #0045b8;
  --bs-btn-disabled-border-color: #0045b8;
  --bs-btn-disabled-opacity: 0.75;
}


/* === Button primary — WCAG AA verified === */
.btn-primary-accessible {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #0052cc;
  --bs-btn-border-color: #0052cc;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #0040a0;
  --bs-btn-hover-border-color: #0040a0;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #003893;
  --bs-btn-active-border-color: #003893;
  --bs-btn-focus-shadow-rgb: 0, 82, 204;      /* powers the .25rem focus ring */
  --bs-btn-disabled-color: #ffffff;
  --bs-btn-disabled-bg: #0052cc;
  --bs-btn-disabled-border-color: #0052cc;
  --bs-btn-disabled-opacity: 0.75;            /* subtle "busy" dimming */
}

/* === Solid success — WCAG AA verified === */
/* Overrides Bootstrap's own .btn-success via its variable hooks */
.btn-success {
  --bs-btn-color: #ffffff;              /* 5.1:1 on bg ✓ AA (4.5:1) */
  --bs-btn-bg: #1e7e34;
  --bs-btn-border-color: #1e7e34;       /* 5.1:1 vs white page ✓ 1.4.11 (3:1) */

  --bs-btn-hover-color: #ffffff;        /* 6.7:1 on hover bg ✓ */
  --bs-btn-hover-bg: #176a27;
  --bs-btn-hover-border-color: #176a27;

  --bs-btn-active-color: #ffffff;       /* 8.8:1 on active bg ✓ */
  --bs-btn-active-bg: #13561f;
  --bs-btn-active-border-color: #13561f;

  /* Focus ring — your original never defined one, so it was
     silently falling back to Bootstrap's default green */
  --bs-btn-focus-shadow-rgb: 30, 126, 52;

  --bs-btn-disabled-color: #ffffff;
  --bs-btn-disabled-bg: #1e7e34;
  --bs-btn-disabled-border-color: #1e7e34;
  --bs-btn-disabled-opacity: 0.75;
}

/* === Solid danger — WCAG AA verified === */
/* Overrides Bootstrap's own .btn-danger via its variable hooks */
.btn-danger {
  --bs-btn-color: #ffffff;              /* 6.5:1 on bg ✓ AA (4.5:1) */
  --bs-btn-bg: #b02a37;
  --bs-btn-border-color: #b02a37;       /* 6.5:1 vs white page ✓ 1.4.11 (3:1) */

  --bs-btn-hover-color: #ffffff;        /* 8.7:1 on hover bg ✓ */
  --bs-btn-hover-bg: #902a37;
  --bs-btn-hover-border-color: #902a37;

  --bs-btn-active-color: #ffffff;       /* ~9.5:1 on active bg ✓ */
  --bs-btn-active-bg: #7d2430;
  --bs-btn-active-border-color: #7d2430;

  /* Focus ring — CORRECTED to the red, not the primary blue */
  --bs-btn-focus-shadow-rgb: 176, 42, 55;

  --bs-btn-disabled-color: #ffffff;
  --bs-btn-disabled-bg: #b02a37;
  --bs-btn-disabled-border-color: #b02a37;
  --bs-btn-disabled-opacity: 0.75;
}


/* === Solid info — WCAG AA verified === */
/* Overrides Bootstrap's own .btn-info via its variable hooks */
.btn-info {
  --bs-btn-color: #ffffff;              /* 4.7:1 on bg ✓ AA (4.5:1) — thin margin */
  --bs-btn-bg: #0c7d9d;
  --bs-btn-border-color: #0c7d9d;       /* 4.7:1 vs white page ✓ 1.4.11 (3:1) */

  --bs-btn-hover-color: #ffffff;        /* 6.1:1 on hover bg ✓ */
  --bs-btn-hover-bg: #096b85;
  --bs-btn-hover-border-color: #096b85;

  --bs-btn-active-color: #ffffff;       /* 7.7:1 on active bg ✓ */
  --bs-btn-active-bg: #085a72;
  --bs-btn-active-border-color: #085a72;

  /* Focus ring — never defined in your original (fell back to theme default) */
  --bs-btn-focus-shadow-rgb: 12, 125, 157;

  --bs-btn-disabled-color: #ffffff;
  --bs-btn-disabled-bg: #0c7d9d;
  --bs-btn-disabled-border-color: #0c7d9d;
  --bs-btn-disabled-opacity: 0.75;
}


/* === Soft primary — WCAG AA verified === */
.btn-soft-primary {
  --bs-btn-color: #0045b8;              /* 7.6:1 on base bg  ✓ AA (4.5:1) */
  --bs-btn-bg: #eef6fc;
  --bs-btn-border-color: #0045b8;       /* 8.3:1 vs white page ✓ 1.4.11 (3:1) */

  --bs-btn-hover-color: #00338d;        /* 9.7:1 on hover bg  ✓ */
  --bs-btn-hover-bg: #e2f0fb;
  --bs-btn-hover-border-color: #00338d;

  --bs-btn-active-color: #00338d;       /* 9.2:1 on active bg ✓ */
  --bs-btn-active-bg: #d6eaf9;
  --bs-btn-active-border-color: #00338d;

  --bs-btn-focus-shadow-rgb: 0, 69, 184;

  --bs-btn-disabled-color: #0045b8;
  --bs-btn-disabled-bg: #eef6fc;
  --bs-btn-disabled-border-color: #0045b8;
  --bs-btn-disabled-opacity: 0.65;
}


/* === Soft success — WCAG AA verified === */
.btn-soft-success {
  --bs-btn-color: #00656d;              /* 6.2:1 on base bg   ✓ */
  --bs-btn-bg: #e6f7f4;
  --bs-btn-border-color: #00656d;       /* 6.8:1 vs white page ✓ 1.4.11 */

  --bs-btn-hover-color: #004d52;        /* 9.1:1 on hover bg  ✓ */
  --bs-btn-hover-bg: #e8fdf9;
  --bs-btn-hover-border-color: #004d52;

  --bs-btn-active-color: #004d52;       /* 8.5:1 on active bg ✓ */
  --bs-btn-active-bg: #ddf6f0;
  --bs-btn-active-border-color: #004d52;

  --bs-btn-focus-shadow-rgb: 0, 133, 109;

  --bs-btn-disabled-color: #00656d;
  --bs-btn-disabled-bg: #e6f7f4;
  --bs-btn-disabled-border-color: #00656d;
  --bs-btn-disabled-border-opacity: 1;  /* see note below */
  --bs-btn-disabled-opacity: 0.65;
}


/* === Soft info — WCAG AA verified === */
.btn-soft-info {
  /* Base state: near-white surface, deep blue text/border */
  --bs-btn-color: #0056b3;              /* 6.9:1 on base bg  ✓ AA (4.5:1) */
  --bs-btn-bg: #efffff;
  --bs-btn-border-color: #0056b3;       /* 7.0:1 vs white page ✓ 1.4.11 (3:1) */

  /* Hover: darken text, off-white background */
  --bs-btn-hover-color: #004494;        /* 8.6:1 on hover bg  ✓ */
  --bs-btn-hover-bg: #f0f7ff;
  --bs-btn-hover-border-color: #004494;

  /* Active/pressed */
  --bs-btn-active-color: #004494;       /* ~9:1 on active bg ✓ */
  --bs-btn-active-bg: #e2eeff;
  --bs-btn-active-border-color: #004494;

  /* Focus ring colour (raw RGB triplet) */
  --bs-btn-focus-shadow-rgb: 0, 86, 179;

  /* Disabled state (exempt from contrast; kept recognisable) */
  --bs-btn-disabled-color: #0056b3;
  --bs-btn-disabled-bg: #efffff;
  --bs-btn-disabled-border-color: #0056b3;
  --bs-btn-disabled-border-opacity: 1;
  --bs-btn-disabled-opacity: 0.65;
}

/* === Soft danger — WCAG AA verified === */
.btn-soft-danger {
  /* Base state: white surface, deep red text/border */
  --bs-btn-color: #b02a37;              /* 6.5:1 on base bg ✓ AA (4.5:1) */
  --bs-btn-bg: #ffffff;
  --bs-btn-border-color: #b02a37;       /* 6.5:1 vs white page ✓ 1.4.11 (3:1) */

  /* Hover: darken text (visible feedback), keep light background */
  --bs-btn-hover-color: #8f2230;        /* 8.2:1 on hover bg ✓ */
  --bs-btn-hover-bg: #fff7ff;
  --bs-btn-hover-border-color: #8f2230;

  /* Active/pressed */
  --bs-btn-active-color: #8f2230;       /* ~8:1 on active bg ✓ */
  --bs-btn-active-bg: #fbeef0;
  --bs-btn-active-border-color: #8f2230;

  /* Focus ring colour — CORRECTED to the red, not info-blue */
  --bs-btn-focus-shadow-rgb: 176, 42, 55;

  /* Disabled state (exempt from contrast; kept recognisable) */
  --bs-btn-disabled-color: #b02a37;
  --bs-btn-disabled-bg: #ffffff;
  --bs-btn-disabled-border-color: #b02a37;
  --bs-btn-disabled-border-opacity: 1;
  --bs-btn-disabled-opacity: 0.65;
}


/* After the variable block, same selector as the theme's rule */
.btn-soft-primary,
.btn-soft-success,
.btn-soft-info,
.btn-danger,
.btn-success,
.btn-info,
.btn-primary,
.btn-primary-accessible {
  color: var(--bs-btn-color);
  border-color: var(--bs-btn-border-color);
  background-color: var(--bs-btn-bg);
}



.btn-soft-primary:focus-visible,
.btn-soft-success:focus-visible,
.btn-soft-info:focus-visible,
.btn-soft-danger:focus-visible,
.btn-danger:focus-visible,
.btn-success:focus-visible,
.btn-info:focus-visible,
.btn-primary:focus-visible,
.btn-primary-accessible:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), 0.45) !important;
}



/* Foundation */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem; /* Resizable base size */
  min-width: 600px; /* Prevents horizontal squeeze at small widths */
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  line-height: 1.5;
}


td {
  color: #000000 !important;
}



.alert-success {
	/* color: #0f5132 !important; */
	/* color: #117a40 !important; */
	background-color: #117a40 !important;
	border-color: #117a40 !important;
}

.alert-primary {
	background-color: #0056b3 !important;
	border-color: #0056b3 !important;
}

.alert-danger {
	background-color: #b02a37 !important;
	border-color: #b02a37 !important;
}




.bg-success {
	background-color: #117a40 !important;
}


.bg-info {
    /* Deep blue for maximum contrast against white */
    background-color: #0056b3 !important;
}


.do-not-wrap {
	white-space:nowrap;
}
