/*@import url('https://fonts.googleapis.com/css2?family=Arvo:ital,wght@0,400;0,700;1,400;1,700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');*/


/* old green #0a5f72
old blue: #86D3E5 
old hover: #8DBAD0*/

/* ===== Brand palette ===== */

/* Global brand colour override */
:root{
  /* Primary */
  --bs-primary: #142B59;
  --bs-primary-rgb: 20, 43, 89;

  /* Optional: link colour to match */
  --bs-link-color: #142B59;
  --bs-link-hover-color: #0f2247; /* a touch darker */
}

/* Buttons use their own CSS vars, so set those too */
.btn-primary{
  --bs-btn-color: #fff;
  --bs-btn-bg: #142B59;
  --bs-btn-border-color: #142B59;
  --bs-btn-hover-bg: #0f2247;
  --bs-btn-hover-border-color: #0f2247;
  --bs-btn-active-bg: #0c1c3b;
  --bs-btn-active-border-color: #0c1c3b;
  --bs-btn-disabled-bg: #142B59;
  --bs-btn-disabled-border-color: #142B59;
}

.btn-outline-primary{
  --bs-btn-color: #142B59;
  --bs-btn-border-color: #142B59;
  --bs-btn-hover-bg: #142B59;
  --bs-btn-hover-border-color: #142B59;
  --bs-btn-active-bg: #0f2247;
  --bs-btn-active-border-color: #0f2247;
}

/* (Optional) tweak badges, pagination, etc., if you want tighter control */
.pagination .page-link{
  --bs-pagination-color: #142B59;
  --bs-pagination-border-color: #142B59;
  --bs-pagination-hover-color: #0f2247;
  --bs-pagination-hover-border-color: #0f2247;
}

:root{
  /* you already have these, included here for completeness */
  --bs-primary:        #142B59;  /* brand navy */
  --bs-primary-rgb:    20,43,89;
  --bs-link-color:     var(--bs-primary);
  --bs-link-hover-color:#0f2247;

  /* helpful extras */
  --bs-secondary:      #BF9075;  /* sand/tan accent */
  --bs-secondary-rgb:  191,144,117;

  /* ✅ your new choices */
  --bs-success:        #2AA198;  /* teal (replaces green) */
  --bs-success-rgb:    42,161,152;

  --bs-info:           #738CBF;  /* soft info blue */
  --bs-info-rgb:       115,140,191;

  --bs-danger:         #812828;  /* bright red */
  --bs-danger-rgb:     214,69,69;

  /* optional */
  --bs-dark:           #0B1C3B;
  --bs-dark-rgb:       11,28,59;
}

/* ===== Buttons (primary is already done) ===== */
.btn-success{
  --bs-btn-color:#fff;
  --bs-btn-bg:            var(--bs-success);
  --bs-btn-border-color:  var(--bs-success);
  --bs-btn-hover-bg:      #1F7D75;   /* deep teal */
  --bs-btn-hover-border-color:#1F7D75;
  --bs-btn-active-bg:     #1b6d66;
  --bs-btn-active-border-color:#1b6d66;
}
.btn-outline-success{
  --bs-btn-color:         var(--bs-success);
  --bs-btn-border-color:  var(--bs-success);
  --bs-btn-hover-bg:      var(--bs-success);
  --bs-btn-hover-border-color: var(--bs-success);
  --bs-btn-hover-color:#fff;
}

.btn-danger{
  --bs-btn-color:#fff;
  --bs-btn-bg:            var(--bs-danger);
  --bs-btn-border-color:  var(--bs-danger);
  --bs-btn-hover-bg:      #8B2635;   /* maroon hover */
  --bs-btn-hover-border-color:#8B2635;
  --bs-btn-active-bg:     #721d2a;
  --bs-btn-active-border-color:#721d2a;
}
.btn-outline-danger{
  --bs-btn-color:         var(--bs-danger);
  --bs-btn-border-color:  var(--bs-danger);
  --bs-btn-hover-bg:      var(--bs-danger);
  --bs-btn-hover-border-color: var(--bs-danger);
  --bs-btn-hover-color:#fff;
}

.btn-info{
  --bs-btn-color:#fff;
  --bs-btn-bg:            var(--bs-info);
  --bs-btn-border-color:  var(--bs-info);
  --bs-btn-hover-bg:      #5f77ad;
  --bs-btn-hover-border-color:#5f77ad;
}
.btn-outline-info{
  --bs-btn-color:         var(--bs-info);
  --bs-btn-border-color:  var(--bs-info);
  --bs-btn-hover-bg:      var(--bs-info);
  --bs-btn-hover-border-color: var(--bs-info);
  --bs-btn-hover-color:#fff;
}

/* ===== Alerts: subtle backgrounds that match your palette ===== */
.alert-success{ color:#0f4f49; background-color:#e6f4f3; border-color:#cde9e7; }
.alert-danger { color:#641822; background-color:#fde9ea; border-color:#f6c9ce; }
.alert-info   { color:#24365e; background-color:#eef2fb; border-color:#dfe6f8; }

/* ===== Badges (optional but keeps things consistent) ===== */
.badge.bg-success{ background-color:var(--bs-success)!important; }
.badge.bg-danger { background-color:var(--bs-danger)!important; }
.badge.bg-info   { background-color:var(--bs-info)!important; color:#fff; }

/* ===== Form accents (switches, checks) pick up teal ===== */
.form-check-input:checked{
  background-color:var(--bs-success);
  border-color:var(--bs-success);
}

/* ===== Navbar active state (from earlier ask) ===== */
.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"]{
  color:#BF9075 !important;   /* sand accent when current */
}



/* ELEMENTS */
html, body {
  font-family: 'Roboto', sans-serif;
  text-align: center;
  background-color: white;
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* .div {
outline: 2px solid red;
} */

/* .section {
outline: 2px solid red;
} */

.img-fluid {
  max-height: 400px;
  max-width: 400px;
  object-fit: cover;
}

.sil-text{
  padding-top: 30px;
}


/* Reusable elevation utilities (brand-tinted shadows) */
.elevate-1 { /* subtle */
  box-shadow: 0 6px 18px rgba(20,43,89,.06);
}

.elevate-2 { /* like your login screenshot */
  box-shadow:
    0 18px 48px rgba(20,43,89,.12),
    0 3px 10px  rgba(20,43,89,.06);
}

.elevate-3 { /* extra deep, rarely needed */
  box-shadow:
    0 28px 80px rgba(20,43,89,.16),
    0 6px 16px  rgba(20,43,89,.08);
}

/* When the card is focused, keep your ring AND the elevation */
.elevate-2:focus-within {
  box-shadow:
    0 18px 48px rgba(20,43,89,.12),
    0 3px 10px  rgba(20,43,89,.06),
    0 0 0 3px rgba(134,211,229,.22); /* your focus ring */
}

.h1{
  /* text-align: left; */
  font-family: var(--font-heading, inherit);
  font-weight: 700;
  letter-spacing: .2px;
  /* responsive but not gigantic */
  font-size: clamp(1.9rem, 2.2vw + 1rem, 2.6rem);
  color: #142B59;
}
.h2{
  /* text-align: left; */
  font-size: clamp(1.15rem, 1.2vw + .9rem, 1.6rem);
  margin-top: 1.75rem;
  margin-bottom: .5rem;
  color: #2a4278;
}

/* Tagline on white background */
.white-bg h2 {
  color: #142B59; /* clean, bold against white */
}


/* NAVBAR */

.brand-title {
  font-family: 'Russo One', sans-serif;
  color: #BF9075; /* your brand navy */
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}



/* Top nav only */
.navbar-main {
  background-color: #142B59; /* fallback */
  background-image: radial-gradient(ellipse at 20% 20%, #3c5b99, #0f2247);


}

/* Keep your shared navbar rules as-is, but remove the background-image from the generic .navbar */
.navbar {
  background-color: #142B59;   /* if you still want a color fallback for others */
  margin-bottom: 0 !important;
}

.navbar-brand {
  font-family: 'Russo One', sans-serif;
  color: #BF9075;
}

.navbar-nav .nav-link {
  color: white;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #86D3E5; /* your brand light blue */
}

/* Put these after Bootstrap */
.navbar .navbar-brand.brand {
  display: inline-block;   /* shrink-wrap to the text */
  line-height: 1.1;
}

.navbar .navbar-brand.brand .brand-title {
  display: block;          /* forces title on its own line */
}

.navbar .navbar-brand.brand .brand-tagline {
  display: block;          /* forces tagline on its own line */
  text-align: right;       /* right-align under the title */
  margin-top: 2px;         /* tiny gap */
  font-size: 0.875rem;     /* optional sizing */
}



/* Base colours */
.navbar .navbar-brand.brand .brand-title {
  color: #BF9075;           /* title */
  transition: color .2s ease;
}
.navbar .navbar-brand.brand .brand-tagline {
  color: #86D3E5;           /* tagline */
  display: block;
  text-align: right;
  margin-top: 2px;
  font-size: 0.875rem;
  transition: color .2s ease;
}

/* Stop Bootstrap/link states from overriding child span colours */
.navbar .navbar-brand.brand,
.navbar .navbar-brand.brand:link,
.navbar .navbar-brand.brand:visited,
.navbar .navbar-brand.brand:hover,
.navbar .navbar-brand.brand:focus {
  color: inherit !important;
  text-decoration: none;
}

/* On hover/focus, make both lines white */
.navbar .navbar-brand.brand:hover .brand-title,
.navbar .navbar-brand.brand:hover .brand-tagline,
.navbar .navbar-brand.brand:focus .brand-title,
.navbar .navbar-brand.brand:focus .brand-tagline {
  color: #ffffff !important;
}


/* HAMBURGER MENU ICON */
/* make hamburger lines white */
.navbar .navbar-toggler-icon{
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* (optional) lighten the toggler outline */
.navbar .navbar-toggler{ border-color:rgba(255,255,255,.25); }

/* --- Responsive toggler sizing & colour --- */

/* Base look */
.navbar .navbar-toggler{
  padding: .25rem .5rem;
  border-color: rgba(255,255,255,.35);
  box-shadow: none;
}

/* Icon colour = white (works even if you don't use .navbar-dark) */
.navbar .navbar-toggler-icon{
  /* scale the glyph with viewport: min 1rem, fluid, max 1.35rem */
  width:  clamp(1.00rem, 3.5vw, 1.35rem);
  height: clamp(1.00rem, 3.5vw, 1.35rem);
  background-size: 100% 100%;
  /* inline SVG so we control the stroke colour */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.92)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.navbar-main .container,
.navbar.bg-light.border-bottom .container {
max-width: 100%;
width: 100%;
padding-left: 1rem;
padding-right: 1rem;
}

/* Paragraphs */
p {
  font-family: 'Roboto', sans-serif;
  color: #142B59;
  font-size: 1rem;
  line-height: 1.6;
}

/* Links */
a {
  color: #142B59;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #142B59;         /* Dark blue on hover */
  text-decoration: underline;
}

/* ------------------------- FOOTER ---------------------------------------*/

.footer-section {
  background-color: #142B59;
}

.footer-link {
  color: #BF9075; /* match your warm accent */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #738CBF; /* soft hover blue */
  text-decoration: underline;
}

.footer-section i {
  margin-right: 8px;
  font-size: 1.1rem;
}


/* Make footer icons bigger */
.footer-icon i {
  font-size: 28px;        /* try 24–36px to taste */
  line-height: 1;         /* keeps them tidy vertically */
  vertical-align: middle; 
}

/* Optional: make the click target bigger too */
.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;            /* nicer touch target */
  height: 30px;
  text-decoration: none;  /* keep the underscore away */
}

/* Optional: subtle hover pop */
.footer-icon:hover i {
  transform: scale(1.07);
}

.footer .footer-icon{
  font-size: 1.25rem;
  line-height: 1;
  color: #1e52a7;             /* matches your brand blue accents */
  transition: transform .15s ease, color .15s ease;
}
.footer .footer-icon:hover{ color:#0d3f8a; transform: translateY(-1px); }

.footer .footer-link{
  color: #1e52a7;
  text-decoration: none;
}
.footer .footer-link:hover{ text-decoration: underline; }



ul {
  list-style-position: inside;
  list-style-type: square;
  margin: 1rem;
  padding: 0rem;
}

#calendar {
  min-height: 600px;
  padding: 1rem;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
}

.grecaptcha-badge { right: 12px !important; bottom: 12px !important; }


/* BLOG */
.ck-content figure.media.embed-narrow  { max-width: 480px; }
.ck-content figure.media.embed-medium  { max-width: 680px; }
.ck-content figure.media.embed-wide    { max-width: 900px; }
.ck-content figure.media,

.ck-content figure.media,
.ck-content .ck-media__wrapper,
.ck-content iframe {
  max-width: 680px;   /* choose 480/640/720/etc */
  margin: 1rem auto;
  display: block;
}
.ck-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 10px; /* optional */
}


/* SIDE BAR */

/* === DESKTOP SIDEBAR === */
#wrapper {
  display: flex;
  transition: all 0.3s ease-in-out;
}

#sidebar-wrapper {
  width: 250px;
  min-height: 100vh;
    /*overflow-y: auto;*/
  background-color: #212529;
  color: white;
  transition: transform 0.3s ease-in-out;
  transform: translateX(0); /* Visible by default */
}

#wrapper.toggled #sidebar-wrapper {
  transform: translateX(-100%); /* Slide out when toggled */
}

#page-content-wrapper {
  flex: 1;
  transition: margin-left 0.3s ease-in-out;
}

#wrapper.toggled #page-content-wrapper {
  margin-left: 0;
}

/* Make the icon transformable and animate it */
.sidebar-toggle .bi{
  display:inline-block;         /* <-- critical */
  transition:transform .2s ease;
  will-change:transform;
}

/* If the button sits INSIDE #sidebar-wrapper, this will work */
#sidebar-wrapper.minimized .sidebar-toggle .bi{
  transform:rotate(180deg);
}

/* Extra path: if the button is OUTSIDE the sidebar, we'll toggle this class in JS */
.sidebar-toggle.rotated .bi{
  transform:rotate(180deg);
}

#sidebar-wrapper.minimized {
  width: 60px;
  overflow-x: hidden;
}

#sidebar-wrapper.minimized .list-group-item {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  justify-content: center;
  text-align: center;
}

#sidebar-wrapper.minimized .list-group-item span {
  display: none;
}

#sidebar-wrapper.minimized .form-label,
#sidebar-wrapper.minimized select,
#sidebar-wrapper.minimized #timezone-filter {
  display: none;
}

.sidebar-disabled {
    opacity: .55;
    pointer-events: none;   /* no clicks */
}



 /* Autocomplete for bootstrap modal */
.pac-container {
    z-index: 1051 !important;  /* Bootstrap modal is z-index 1050 */
}

#timezone {
  display: block !important;
}

/* CALENDAR BOOKING STYLES BASED ON BOOKING STATUS AND PAYMENT STATUS */

.fc-event:hover {
  filter: brightness(70%);
}

/* BUSINESS PERSONAL NAVIGATION */
.btn-sm.rounded-pill {
  font-weight: bold;
}


/* BACK BUTTON */
.back-btn-container {
    position: absolute;
    top: 80px;
    right: 10px;
    z-index: 1000;
}

.back-btn-container .btn {
    padding: 5px 10px;
}


/*-------------------------------------------------------------------------*/

/*BANNER STYLES */

.my-banner .page-title {
  color: #fff !important;
  font-family: 'Didact Gothic', sans-serif;
  /*text-transform: uppercase;*/
  letter-spacing: 0.5px;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .3px;
  margin: .1rem 0 0;
  padding-bottom: .5rem;
  text-shadow: 0 1px 0 rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.18);
  display: inline-block;
  position: relative;            /* <-- needed for the full-width underline */
}

/* .my-banner .page-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;                 
  height: 4px;
  background: #86D3E5;
  border-radius: 2px;
} */

.my-banner #greeting {
  color: #6c757d;                 /* visible on the navy banner */
  margin: 0 0 .25rem;
  text-align: left;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.0rem);
  line-height: 1.15;
}


.my-banner {
  width: 97%;
  margin-left: 0;
  background-color: #142B59;
  /* background-image: linear-gradient(135deg, #0f2247 0%, #2952a3 100%);
  background-image: radial-gradient(circle at center, #3c5b99 0%, #0f2247 100%); */
  background-image: radial-gradient(ellipse at 20% 20%, #3c5b99, #0f2247);

  color: white;
  padding: 4rem 2rem;
  border-top-right-radius: 0;
  border-bottom-right-radius: 5rem;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-top: 0 !important; /* Remove gaps around navbars */
  margin-bottom: 1rem !important; /* Tighten the banner spacing */
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.my-banner h1,
.my-banner h2,
.my-banner h3,
.my-banner h4,                  
.my-banner h5 {
  text-align: left;
}

/* Greeting fade-out */
#greeting {
  transition: opacity .4s ease, transform .4s ease;
  will-change: opacity, transform;
}
#greeting.greeting--hide {
  opacity: 0;
  transform: translateY(-6px);
}

/* Optional: small tagline under greeting */
#business-tagline {
  font-size: .9rem;
  color: #6c757d;
  margin-top: .25rem;
}

/* Underline pseudo-element (hidden by default) */
.my-banner .page-title {
  position: relative;
}

.my-banner .page-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: #86D3E5;
  border-radius: 2px;
  transform: scaleX(0);           /* start collapsed */
  transform-origin: left;
  opacity: 0;                     /* hidden until animating */
}

/* When this class is present, run the draw + fade animation */
.my-banner .page-title.is-animating::after {
  opacity: 1;
  animation: underline-draw 5s ease-out forwards;
}

/* 0–20% draw line, 20–80% hold, 80–100% fade out */
@keyframes underline-draw {
  0%   { transform: scaleX(0); opacity: 1; }
  20%  { transform: scaleX(1); opacity: 1; }
  80%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* Respect reduced motion preferences: show a static line briefly */
@media (prefers-reduced-motion: reduce) {
  .my-banner .page-title.is-animating::after {
    animation: none;
    transform: scaleX(1);
    opacity: 1;
  }
}



/*-------------------------------------------------------------------------*/
/* PAYMENT STYLES LABELS*/

.payment-status {
  padding: 0.4em 0.75em;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  display: inline-block;
}

/* Colour per status */
.payment-status.not-paid {
  background-color: #ffc107; /* Bootstrap warning */
  color: #212529;
}

.payment-status.paid {
  background-color: #198754; /* Bootstrap success */
  color: white;
}

.payment-status.overdue {
  background-color: #dc3545; /* Bootstrap danger */
  color: white;
}

.payment-status.refund {
  background-color: #6c757d; /* Bootstrap secondary */
  color: white;
}

.payment-status.write-off {
  background-color: #343a40; /* Bootstrap dark */
  color: white;
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto;
  max-height: 70vh;
}

  /* Optional image preview in dropdown */
  .staff-option {
    display: flex;
    align-items: center;
  }

  .staff-option img {
    border-radius: 50%;
    margin-right: 10px;
    width: 28px;
    height: 28px;
    object-fit: cover;
  }

.flatpickr-day.flatpickr-disabled.flatpickr-past-date {
  color: #ccc !important;
  background: #f9f9f9 !important;
  cursor: not-allowed;
}


#staff-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.staff-card {
  flex: 0 0 150px; /* ← minimum width */
  max-width: 150px;
}


.past-date {
  background-color: #f8f9fa;
  color: #999;
}


.staff-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}


/* Start booking date button */

.date-button {
    padding: 10px 15px;
    margin: 5px;
    border-radius: 8px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.date-button.selected {
    background: #0056b3;
    font-weight: bold;
}

.date-button.unavailable {
    background: #ccc;
    cursor: not-allowed;
    color: #666;
}

/* End booking date button */

/* General Blog Section Styling */
.blog-section {
    padding: 40px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;  /* ✅ Ensures everything inside is centered */
}

/* White Section: Centering Text */
.section-white {
    background-color: #ffffff;
}

/* Grey Section: Standard Layout */
.section-grey {
    background-color: #f8f8f8;
}

/* Blog Content Wrapper */
.blog-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* Image Left, Text Right */
.blog-content img {
    width: 40%;
    max-width: 300px;
    border-radius: 8px;
}

/* Ensure all sections follow image-left, text-right */
.section-white .blog-content,
.section-grey .blog-content {
    flex-direction: row; /* Ensures image is on the left, text is on the right */
    text-align: left; /* Align text properly */
}

/* Ensure text container fills space */
.blog-content .text {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* Centers text vertically */
    width: 55%;
}

/* Ensure heading is on top */
.text h2 {
    margin-bottom: 10px;
    order: -1; /* Moves heading above the text */
}

/* Center the first section */
.intro-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    padding: 60px 20px;
    background-color: #f8f8f8;
}

.intro-section .text {
    max-width: 700px;
    font-size: 1.2em;
}


.icon-white {
  color: white;
}



/* CLASS */
.form-check-padding {
  padding-top: 1rem;
}
.form-button-padding {
  margin-top: 1rem;
}
.ndis-list {
  list-style-position: outside;
}

.section-h2 {
  color: #FFFFFF;
}
.section-h3 {
  color: #FFFFFF;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  background-color: #FFFFFF;
}


/* Container section */
.container-fluid {
  padding: 4% 4% 5%;
  flex: 1;
}
#services .container-fluid {
  padding: 4% 2% 1%;
}
.ndis-container-fluid {
  padding: 2% 12%;
}
.next-step {
  padding: 2rem 0rem;
}
#title .container-fluid {
  padding: 2% 14%;
}



.banner-section {
  background-color: #142B59;
  background-image: url('https://troubleshootit.sirv.com/hero/hero.svg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  min-height: 400px; /* adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 60px 20px;
}

.banner-content h1,
.banner-content h2 {
  margin: 0;
  line-height: 1.2;
}


/* Sections */
.section-heading {
  line-height: 1.5;
  font-size: 3rem;
}
.coloured-section {
  background-color: #0a5f72;
}
.coloured-section h3, 
.coloured-section p, 
.coloured-section li {
  color: white;
}

.white-section {
  background-color: #FFFFFF;
}
.off-white-section {
  background-color: #F7F9F9;
}
/* BLOG SECTION */

/* Blog Font */
/* .blog-container h1 {
  font-size: 2.5rem;
  color: #643c2d;
} */

/* .blog-container {
  font-family: 'Segoe UI', sans-serif;
  color: #333;
} */

/* .blog-container h1,
.blog-container h2,
.blog-container h3 {
  color: #643c2d;
} */


/* .blog-container p{
  color: #333c4d;
  font-size: 1.2rem;
} */

/* .blog-section {
  padding: 2rem 0;
} */

/* .blog-image {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
} */

.text {
  line-height: 1.7;
  color: #444;
}

.intro-section .text {
  font-style: italic;
  color: #555;
}

section.bg-light {
  background-color: #f8f9fa;
}



.blog-container h1 {
  font-size: 4rem; /* Adjust this to your desired size */

}

/* BLOG CARDS */

/* Blog Card Styling */
.blog-card {
  max-width: 250px;
  min-height: 300px;
  border-radius: 8px;
  overflow: hidden;
  margin: auto;
}

.blog-card-img {
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}

.blog-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0a5f72;
}

/* 🧩 Space between rows */
.row.g-4 {
  margin-bottom: 2rem;
}

/* 🧍‍♀️ Center section headers */
h3.text-center, h5 {
  text-align: center;
}

.text-left {
  text-align: left;
}
/* Optional: add spacing below each card */
.blog-card .card-body {
  padding-bottom: 1rem;
}
/*BUTTONS*/

.standard-btn {
  background-color: #142B59;
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  font-weight: 400;
  border-radius: 6px;
  transition: all 0.4s ease-in-out;
  text-align: center;
  white-space: nowrap;
}


.standard-btn:hover {
  background-color: #ccc;
  color: #142B59;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #142B59;
  box-shadow: 0 0 10px rgba(115, 140, 191, 0.5);
}


#booking-form label {
  font-weight: 600;
  margin-top: 10px;
  display: block;
}

#booking-form input[type="text"],
#booking-form input[type="date"],
#booking-form .form-control {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* Staff and date buttons */
#staff-list .staff-member {
  margin-bottom: 15px;
}


/* Default state for all buttons */
.date-button,
.time-button,
.date-btn,
.time-btn {
  background-color: #E0E0E0;
  color: #142B59;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 400;
  transition: all 0.3s ease-in-out;
  margin: 4px;
}

/* Hover state */
.date-button:hover,
.time-button:hover,
.date-btn:hover,
.time-btn:hover {
  background-color: #142B59;
  color: #FFFFFF;
  cursor: pointer;
}

/* Selected state */
.date-button.selected,
.time-button.selected,
.date-btn.selected,
.time-btn.selected,
.date-btn.active,
.time-btn.active {
  background-color: #142B59 !important;
  color: #FFFFFF !important;
}


.cancel-btn {
  background-color: #C0392B; /* Rich red */
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  font-weight: 400;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
  text-align: center;
}

.cancel-btn:hover {
  background-color: #922B21;
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(192, 57, 43, 0.4);
  cursor: pointer;
}


.status-badge {
  font-size: 0.85rem;
  padding: 0.4em 0.8em;
  border-radius: 50px;
  font-weight: 600;
}

.status-pending {
  background-color: #f0ad4e; /* Bootstrap warning */
}

.status-confirmed {
  background-color: #0d6efd; /* Bootstrap primary */
}

.status-completed {
  background-color: #198754; /* Bootstrap success */
}

.status-cancelled {
  background-color: #dc3545; /* Bootstrap danger */
}

.status-no-show {
  background-color: #6c757d; /* Bootstrap secondary/dark */
}


.payment-badge {
  font-size: 0.85rem;
  padding: 0.4em 0.8em;
  border-radius: 50px;
  font-weight: 600;
}
.payment-not-paid {
  background-color: #dc3545; /* red = danger */
}

.payment-paid {
  background-color: #198754; /* green = success */
}

.payment-pending {
  background-color: #f0ad4e; /* orange = warning */
}

.payment-refunded {
  background-color: #6c757d; /* grey = secondary */
}


/*MY BOOKING FILTER*/

.filter-active {
  background-color: #142B59;
  color: #FFFFFF;
  border: 1px solid #142B59;
  font-weight: 500;
}

.filter-inactive {
  background-color: transparent;
  color: #142B59;
  border: 1px solid #142B59;
  font-weight: 400;
}

.filter-inactive:hover {
  background-color: #142B59;
  color: #FFFFFF;
}


/*MY BOOKING GRID*/

.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.booking-card {
  width: 100%;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}

.booking-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  justify-items: center;
  padding: 20px 0;
}

.service-card {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
}

.service-card:hover {
  transform: scale(1.02);
}


.Sirv {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0px;
  object-fit: cover; /* Ensure the image covers the entire area */
}

.tile-hover {
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease;
}

.tile-hover:hover {
  box-shadow: 0 0 0.75rem rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Watermark - service agreement */

.watermark {
  position: fixed;
  top: 35%;
  left: 35%;
  font-size: 6rem;
  color: rgba(0, 0, 0, 0.1);
  transform: rotate(-30deg);
  z-index: 9999;
  pointer-events: none;
  user-select: none;
  font-weight: bold;
}

.watermark.approved {
  color: rgba(0, 128, 0, 0.15); /* green tint */
}


.page-break {
  page-break-before: always;
}



/* --- Print Styles --- */

@media print {
  .no-print {
    display: none !important;
  }
}

/* Service Agreement view */
/* --- Scoped styles for service_agreement_details only --- */
.agreement-pdf p,
.agreement-pdf div,
.agreement-pdf td,
.agreement-pdf li {
  text-align: justify !important;
  text-justify: inter-word;
}

.agreement-pdf h1,
.agreement-pdf h2,
.agreement-pdf h3,
.agreement-pdf h4,
.agreement-pdf h5,
.agreement-pdf h6,
.agreement-pdf strong,
.agreement-pdf b {
  text-align: left !important;
}

.agreement-pdf th {
  text-align: center !important;
}

.agreement-pdf td {
  text-align: justify !important;
  text-justify: inter-word;
}


/* ------------------------------------ CHARTS -------------------------------- */
.chart-box{ height:320px; }
.chart-box--square{ width:320px; height:320px; }


/* ------------------------------------ TABLES -------------------------------- */
/* Smooth horizontal scroll on mobile */
.table-responsive{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges; /* keeps layout from jumping */
}

/* Keep controls compact; allow text to wrap sensibly */
.table td { word-break: break-word; }
.table .btn, .table .badge { white-space: nowrap; }


/* ---------- Responsive brand sizing (append at end) ---------- */

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #greeting {
    transition: none;
  }
}

@media (min-width: 992px){
  .navbar .navbar-nav .nav-link.active{
    background: transparent;
    color: #86D3E5;
  }
}

@media (max-width: 991.98px){  
  
    /* White sheet under the navy bar */
  .navbar .navbar-collapse{
    background: #fff;
    border: 1px solid #e6eef7;
    border-radius: 12px;
    margin-top: .5rem;
    padding: .25rem .5rem;
    box-shadow: 0 8px 24px rgba(20,43,89,.10);
  }

  /* Dropdown menu matches the sheet and sits close to trigger */
  .navbar .dropdown-menu{
    background: #fff;
    border: 1px solid #e6eef7;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(20,43,89,.10);
    margin-top: .2rem;
  }

  /* Make the user dropdown trigger look like a row */
  .navbar .dropdown > .nav-link{
    display: block;
    width: 100%;
    background: #eef2fb;       /* selected-row look */
    border-radius: 10px;
    padding: .75rem 1rem;
    color: #142B59;
  }

  /* Left-aligned, full-width tappable rows */
  .navbar .navbar-nav .nav-link{
    color: #142B59;
    text-align: left;
    padding: .78rem 1rem;      /* ~46px tap target */
    border-radius: 10px;
  }

  /* Hover/active rows */
  .navbar .navbar-nav .nav-link:hover,
  .navbar .navbar-nav .nav-link.active,
  .navbar .navbar-nav .nav-link[aria-current="page"]{
    background: #eef2fb;       /* light blue */
    color: #142B59;
    text-decoration: none;
  }

  /* Dropdown items match the rows */
  .navbar .dropdown-item{
    padding: .78rem 1rem;
    border-radius: 10px;
    color: #142B59;
  }
  .navbar .dropdown-item:hover,
  .navbar .dropdown-item:focus,
  .navbar .dropdown-item.active{
    background: #eef2fb;
    color: #142B59;
  }
  .navbar .dropdown-item.text-danger{ color: #dc3545; }
  .navbar .dropdown-item.text-danger:hover{ background: #fff3f3; }

  /* Accessible focus ring */
  .navbar a.nav-link:focus-visible,
  .navbar .dropdown-item:focus-visible{
    outline: 2px solid #86D3E5;
    outline-offset: 2px;
  }
  
  .chart-box{ 
    height:240px; 
  }
  .chart-box--square{ 
    width:240px; height:240px; 
  }
}


/* ===== Desktop layout (fix minimized width) ===== */
@media (min-width: 769px){
  #wrapper{ display:flex; }

  #sidebar-wrapper{
    position: relative;
    width: 260px;
    flex: 0 0 260px;             /* normal width allocation */
    transition: width .2s ease;
  }

  /* When minimized, shrink BOTH width and flex-basis */
  #sidebar-wrapper.minimized{
    width: 56px;                 /* or 60px – just be consistent */
    flex-basis: 56px;            /* <-- key line that removes the gap */
    overflow-x: hidden;
  }

  #page-content-wrapper{
    flex: 1 1 auto;
    margin-left: 0 !important;   /* ensure no old margin-left */
  }

  /* (optional) hide labels when minimized */
  #sidebar-wrapper.minimized .list-group-item span{ 
    display:none; 
  }
}



@media (max-width: 768px){
  :root { --footer-safe: 64px; }        /* your footer/icon bar height */
  /* Lift the badge above the footer and nudge in from the edge */
  .grecaptcha-badge{
    right: 12px !important;             /* or set left:12px; right:auto; if left is better */
    bottom: calc(var(--footer-safe) + 12px) !important;
    transform: scale(.9);                /* optional: shrink a touch */
    transform-origin: right bottom;
  }
  .navbar .brand-title   {
    font-size: 1.6rem; letter-spacing: 0.3px; 
  }
  .navbar .brand-tagline {
    font-size: 0.78rem; 
  }

  .page-title {
    font-size: 1.5rem; 
  } 

}

/* Smaller on phones */
@media (max-width: 576px){

  .navbar .navbar-toggler{ 
    padding: .2rem .4rem; 
  }

  /* Accessible focus ring that suits your navy */
  .navbar .navbar-toggler:focus{
    box-shadow: 0 0 0 .15rem rgba(255,255,255,.25);
  }

  .navbar .navbar-brand.brand{
  max-width: 70%;
  white-space: normal;
  }

  .navbar .brand-title   { 
    font-size: 1.25rem; letter-spacing: 0.2px; line-height: 1.05; 
  }
  .navbar .brand-tagline { 
    font-size: 0.70rem; margin-top: 1px; 
  }
  .card-body { 
    padding-bottom: 40px; /* space so the badge doesn’t cover last controls */
  } 

  .table td, .table th { padding: .4rem .5rem; }
}


/* Extra-small: hide the tagline if space is tight */
@media (max-width: 360px){
  .navbar .brand-tagline { display: none; }
}

/* Keep badge above other UI */
.grecaptcha-badge { z-index: 500; }

/* ----- Mobile layout fixes ----- */
/* Height of your bottom icon footer (tweak if needed) */




/* Ultra-small phones: shrink a bit more */
@media (max-width: 380px){
  .grecaptcha-badge{
    transform: scale(.65);
  }
}


/* Staff picker cards */
/* .staff-card-label { cursor: pointer; } */

.staff-card {
  border: 2px solid transparent;
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease-in-out;
}
/* .staff-card:hover {
  border-color: rgba(20,43,89,.25);
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,.06);
} */
/* .staff-radio:checked + .staff-card {
  border-color: #0d6efd;       
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
} */

/* Tiny typography helpers */
/* .xsmall { font-size: .75rem; } */

/* Keep names from blowing out the card */
.staff-card .text-truncate { max-width: 100%; }



/* Some template packs accidentally put .form-control on wrappers as well as inputs.
   This strips borders ONLY from non-input/select/textarea elements carrying .form-control. */
.booking-form .form-control:where(:not(input):not(select):not(textarea)) {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Keep a clean single border on the actual controls */
.booking-form input.form-control,
.booking-form select.form-select,
.booking-form textarea.form-control {
  box-shadow: none;
}

/* Optional: make each field block look clean */
.booking-form .mb-3,
.booking-form .form-group {
  background: transparent;
  border: 0;
  box-shadow: none;
}


/* Collapsible notes styling */
.notes-summary{
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--bs-primary);
}
.notes-summary::marker{ content: ""; } /* hide default marker (Firefox/Chromium) */
.notes-summary::after{
  content: "▾";
  transition: transform .2s ease;
  font-size: .9em;
}
.notes-details[open] .notes-summary::after{
  transform: rotate(180deg);
}

/* Optional: hide the label inside the panel if you prefer a cleaner look */
.notes-details .form-label{
  display: none;
}


/* Staff cards: centered, inline, with a selectable border */
.staff-card-label {
  cursor: pointer;
  display: inline-block;
}

.staff-card {
  width: 180px;                     /* nice compact width */
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease, transform .05s ease;
}

.staff-card:hover {
  border-color: var(--bs-primary);
}

.staff-radio:focus + .staff-card {
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb, 13,110,253), .2);
}

.staff-radio:checked + .staff-card {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb, 13,110,253), .15);
}

/* Avatar container (optional tweak) */
.staff-avatar { width: 56px; height: 56px; }

/* Tiny helper so the two-line text looks balanced */
.xsmall { font-size: .75rem; }

/* Make disabled options read as unavailable */
#id_time_slot option:disabled {
  color: var(--bs-secondary-color, #6c757d);
}


/* Card phases */
.card-await-quote { 
  background: #f0f7ff; 
  border-left: 4px solid #0d6efd;
}
.card-quote-sent { 
  background: #fff8e6; 
  border-left: 4px solid #f59f00; /* amber */
}
.card-sub-active { 
  background: #eefcf2; 
  border-left: 4px solid #17a34a; /* green */
}
.card-past { 
  opacity: .85;
}

/* Tiny pill badges with outline feel */
.badge-soft {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #e5e7eb;
}

/* Legal pages: readable column + tidy type */
.legal-page{
  max-width: 860px;
}
.legal-page h1{
  text-align: left;
  font-family: var(--font-heading, inherit);
  font-weight: 700;
  letter-spacing: .2px;
  font-size: clamp(1.9rem, 2.2vw + 1rem, 2.6rem);
  color: #142B59;
}
.legal-page h2{
  text-align: left;
  font-size: clamp(1.15rem, 1.2vw + .9rem, 1.6rem);
  margin-top: 1.75rem;
  margin-bottom: .5rem;
  color: #2a4278;
}
.legal-page p{
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.6;
  color: #2b2f36;
  margin-bottom: .9rem;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}
.legal-page ul{
  padding-left: 1.2rem;
  text-align: left;
}
.legal-page li{
  margin-bottom: .35rem;
}
.legal-page .legal-updated{
  font-size: .95rem;
  color: #6c7a91;
  margin: 0 0 1rem;
}
.legal-page hr{
  border: 0;
  height: 1px;
  background: linear-gradient(to right, #e6eef7, #d9e5fb, #e6eef7);
  margin: 1rem 0 1.25rem;
}

.legal-page h3,
.legal-page h4,
.legal-page h5,
.legal-page h6 {
  text-align: left;
  font-weight: 600;
  letter-spacing: .3px;
  color: #2b3d63;
  margin-top: 1.4rem;
  margin-bottom: .6rem;
}

/* Optionally tighten list spacing under headings */
.legal-page h4 + ul,
.legal-page h4 + p {
  margin-top: .25rem;
}

@media (max-width: 576px){
  .legal-page h1{ margin-bottom: .6rem; }
  .legal-page h2{ margin-top: 1.25rem; }
}

@media (max-width: 480px){
  .legal-page p{ text-align: left; hyphens: manual; }
}


/* Brand navy for headers */
.bg-brand-navy{ background-color:#142B59 !important; }

/* Card polish */
.contact-card{ overflow:hidden; }
.contact-card .card-header{ border-bottom:1px solid #e6eef7; }

/* Form controls: rounder corners + brand focus ring */
.contact-card .form-control,
.contact-card .form-select{
  border-radius:.6rem;
}
.contact-card .form-control:focus,
.contact-card .form-select:focus{
  border-color:#86D3E5;
  box-shadow:0 0 0 .2rem rgba(134,211,229,.25);
}

/* Radio/checkbox spacing */
.contact-card .form-check{ margin-bottom:.35rem; }
.contact-card .form-check-input:focus{
  box-shadow:0 0 0 .2rem rgba(134,211,229,.25);
  border-color:#86D3E5;
}

/* Primary button in your palette */
.btn-primary{
  background-color:#1e52a7;
  border-color:#1e52a7;
}
.btn-primary:hover{
  background-color:#0d3f8a;
  border-color:#0d3f8a;
}

/* Keep form readable on huge screens */
@media (min-width: 1400px){
  .contact-card{ max-width: 860px; margin-inline:auto; }
}

/* ---------- Radios & checkboxes: tighter, next to label ---------- */
.contact-card fieldset { border: 0; }   /* crispy often wraps radios in fieldset */

.contact-card legend.col-form-label,
.contact-card .form-label{
  text-align: left;
  width: 100%;
}

.contact-card .form-check{
  display: flex;              /* put input right next to label */
  align-items: center;
  gap: .5rem;
  padding-left: 0;            /* remove Bootstrap indent */
  margin-bottom: .35rem;
}
.contact-card .form-check-input{
  float: none;
  margin: 0;
}
.contact-card .form-check-input:focus{
  box-shadow: 0 0 0 .2rem rgba(134,211,229,.25);
  border-color: #86D3E5;
}
.contact-card .form-check-label{ margin: 0; }

/* ---------- Card boundary & header ---------- */
.contact-card{
  border: 1.5px solid #b7c6df;            /* clearer edge */
  border-radius: 16px;
  overflow: hidden;                       /* rounds header too */
  box-shadow: 0 10px 26px rgba(20,43,89,.08);
  background: #fff;
}

/* Keep header divider subtle (10px looked like a bug) */
.contact-card .card-header{
  border-bottom: 1px solid #b7c6df;
}

/* Whole-card highlight when any field inside is focused */
.contact-card:focus-within{
  border-color: #86D3E5;
  box-shadow: 0 0 0 3px rgba(134,211,229,.22);
}

/* ---------- Labels & help text ---------- */
.contact-card label{
  color: #243B6B;
  font-weight: 600;
}
.contact-card .form-text,
.contact-card .help-block{
  color: #6c7a91;
}

/* ---------- Inputs: clearer borders + gentle tint ---------- */
.contact-card .form-control,
.contact-card .form-select,
.contact-card textarea{
  background: #fbfdff;                     /* faint blue-white */
  border: 1.25px solid #d7e1ee;
  border-radius: .65rem;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.contact-card .form-control:hover,
.contact-card .form-select:hover,
.contact-card textarea:hover{
  border-color: #bfcce0;
}
.contact-card .form-control:focus,
.contact-card .form-select:focus,
.contact-card textarea:focus{
  background: #fff;                        /* crisp when active */
  border-color: #86D3E5;
  box-shadow: 0 0 0 .2rem rgba(134,211,229,.25);
}

/* Placeholder readability */
.contact-card ::placeholder{
  color: #9aa6bb;
  opacity: 1;
}

/* ---------- Required + validation ---------- */
.contact-card .asteriskField{ color: #c13b3b; margin-left: .15rem; }

.contact-card .is-invalid{ border-color: #dc3545; }
.contact-card .is-invalid:focus{
  box-shadow: 0 0 0 .2rem rgba(220,53,69,.15);
}

/* ---------- Submit row divider (optional) ---------- */
.contact-card .submit-row{
  border-top: 1px solid #e6eef7;
  margin-top: 1rem;
  padding-top: 1rem;
}
/* Stronger, rounder boundary */
.contact-card{
  border: 1.5px solid #b7c6df;      /* darker than #d7e1ee */
  border-radius: 16px;
  overflow: hidden;                  /* rounds the header too */
  box-shadow: 0 10px 26px rgba(20,43,89,.08);
}


/* ===== Blog list (news style) ===== */
.post-list { 
  max-width: 980px; 
  margin-inline: auto; 
}

.post-row { 
  position: relative;                 /* for .stretched-link */
  border-bottom: 1px solid rgba(0,0,0,.075);
}

.post-row:last-child { border-bottom: 0; }

.post-thumb-link { 
  flex: 0 0 auto; 
  display: block; 
}

.post-thumb {
  width: 240px; 
  height: 135px;                      /* 16:9 */
  object-fit: cover; 
  border-radius: .5rem; 
  display: block;
}

/* Text bits */
.post-kicker {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .75rem;
  font-weight: 700;
  opacity: .75;
  margin-bottom: .25rem;
}

.post-title { 
  font-size: 1.35rem; 
  line-height: 1.25; 
  margin: 0; 
}

.post-title a {
  color: inherit; 
  text-decoration: none;
}

.post-title a:hover { text-decoration: underline; }

.post-meta { 
  font-size: .9rem; 
  color: #6c757d; 
  margin-top: .4rem; 
}

/* Spacing (align with your Bootstrap rhythm) */
.post-row { 
  padding: 1.25rem 0;                 /* py-4-ish */
}

.post-row .gap-3 { gap: 1rem !important; }

/* Responsive */
@media (max-width: 992px) {
  .post-thumb { width: 220px; height: 124px; }
}
@media (max-width: 768px) {
  .post-thumb { 
    width: 36vw; 
    height: calc(36vw * 9 / 16);      /* maintain 16:9 */
  }
}

/* Accessibility: visible focus for links/images */
.post-thumb-link:focus-visible,
.post-title a:focus-visible {
  outline: 3px solid rgba(0,123,255,.6);
  outline-offset: 2px;
  border-radius: .4rem;
}

/* Optional: subtle hover lift on image */
.post-thumb-link:hover .post-thumb {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* Optional dark-mode tweaks */
@media (prefers-color-scheme: dark) {
  .post-row { border-color: rgba(255,255,255,.12); }
  .post-meta { color: rgba(255,255,255,.65); }
}


/* Force left alignment inside blog list rows */
.post-list,
.post-row,
.post-row .post-kicker,
.post-row .post-title,
.post-row .post-meta {
  text-align: left !important;
}


/* ===== Responsive type/spacing for blog list ===== */

/* Make titles/kickers/meta scale smoothly on all screens */
.post-title { font-size: clamp(1.05rem, 1.8vw + .6rem, 1.35rem); line-height: 1.25; }
.post-kicker  { font-size: clamp(.7rem, .3vw + .65rem, .75rem); }
.post-meta    { font-size: clamp(.85rem, .2vw + .8rem, .9rem); }

/* Limit very long titles to 2 lines on small screens */
@media (max-width: 768px) {
  .post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Tighten layout on phones */
@media (max-width: 576px) {
  .post-row { padding: .9rem 0; }         /* was ~1.25rem */
  .post-row .gap-3 { gap: .75rem !important; }
  .post-thumb { width: 32vw; height: calc(32vw * 9 / 16); }  /* slightly smaller image */
}

/* Slightly tighter on small tablets */
@media (min-width: 577px) and (max-width: 768px) {
  .post-row { padding: 1rem 0; }
  .post-thumb { width: 34vw; height: calc(34vw * 9 / 16); }
}


/* --- Blog detail fixes (append at end of styles.css) --- */

/* Left-align headings and text inside blog pages */
.blog-container h1,
.blog-container h2,
.blog-container h3,
.blog-container p,
.blog-container li {
  text-align: left !important;
}

/* Match H3 colour to the H2 brand heading */
.blog-container h2,
.blog-container h3 {
  color: #2a4278; /* same as your .h2 brand tone */
}

/* Let blog images actually fill the content width */
.blog-container .img-fluid,
.blog-container .blog-image {
  max-width: 100% !important;   /* override the global 400px cap */
  width: 100%;
  height: auto;
  border-radius: 10px;          /* keep your current polish */
}

/* Optional: if you use a “hero” image and want a fixed-height crop */
.blog-container .blog-image.hero {
  height: clamp(180px, 28vw, 420px);
  object-fit: cover;            /* nice 16:9 crop feel */
  display: block;
}

/* Left-align Django CheckboxSelectMultiple for Booking intent */
#id_booking_intent { 
  list-style: none; 
  padding-left: 0; 
  text-align: left; 
  margin: 0;
}
#id_booking_intent li { 
  margin-bottom: .25rem; 
}
#id_booking_intent label {
  display: flex;               /* keeps box + text on one line nicely */
  align-items: center;
  gap: .5rem;
  justify-content: flex-start;  /* ensure left alignment */
}


/* ===== Subscription Quote: Core + Add-ons ===== */

/* --- CORE (radio) --- */
#div_id_core_offering { text-align: center; }

#div_id_core_offering .form-check {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin: .25rem .75rem;
  padding: .3rem .5rem;
  border-radius: .375rem;
  transition: background-color .15s ease, box-shadow .15s ease;
}

#div_id_core_offering .form-check:hover {
  background: #f7f9fc;
}

#div_id_core_offering .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: #0d6efd; /* matches Bootstrap primary */
}

#div_id_core_offering .form-check-label {
  margin: 0;
  line-height: 1.2;
  font-size: 1rem;
  font-weight: 500;
}

/* --- ADD-ONS (checkboxes) --- */
#div_id_addons { text-align: center; }

#div_id_addons .form-check {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin: .25rem .75rem;
  padding: .3rem .5rem;
  border-radius: .375rem;
  transition: background-color .15s ease, box-shadow .15s ease;
}

#div_id_addons .form-check:hover {
  background: #f7f9fc;
}

#div_id_addons .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: #0d6efd;
}

#div_id_addons .form-check-label {
  margin: 0;
  line-height: 1.2;
  font-size: 1rem;
}

/* Make each option a bit wider on larger screens */
@media (min-width: 576px) {
  #div_id_core_offering .form-check,
  #div_id_addons .form-check {
    min-width: 220px;
  }
}

/* Optional: subtle focus ring for accessibility */
#div_id_core_offering .form-check-input:focus,
#div_id_addons .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .25);
}

/* Remove spacing between the two navbars */
.navbar + .navbar {
    margin-top: 0 !important;
    border-top: none;
}

/* Optional: Make the second navbar stick better to the first */
.navbar-light.bg-light.border-bottom {
    border-top: none !important;
    margin-top: -1px; /* Overlap borders slightly */
}

/* Remove extra spacing on main content */
main.flex-fill {
    margin-top: 0 !important;
    padding-top: 1rem;
}

/* Agreement items table (inside .legal-page) */
.legal-page .agreement-items{
  width: 100%;
  border: 1px solid #e6eef7;
  border-radius: 8px;
  border-collapse: separate;   /* keep radius */
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
  background: #fff;
}
.legal-page .agreement-items thead th{
  background: #f7f9ff;
  color: #2a4278;
  border-bottom: 2px solid #d9e5fb;
  padding: .65rem .8rem;
  font-weight: 700;
}
.legal-page .agreement-items tbody td{
  padding: .6rem .8rem;
  border-bottom: 1px solid #eef3fb;
  color: #2b2f36;
}
.legal-page .agreement-items tbody tr:nth-child(even){
  background: #fbfdff;
}
.legal-page .agreement-items tfoot th{
  padding: .7rem .8rem;
  border-top: 2px solid #d9e5fb;
}
.legal-page .agreement-items tfoot tr:last-child th{
  background: #f2f6ff;
  font-weight: 800;
}
.legal-page .agreement-items th:first-child,
.legal-page .agreement-items td:first-child{
  text-align: left;
}
.legal-page .agreement-items th:not(:first-child),
.legal-page .agreement-items td:not(:first-child){
  text-align: right;           /* numbers right aligned */
}
.legal-page .agreement-items thead th:first-child{ border-top-left-radius: 8px; }
.legal-page .agreement-items thead th:last-child{ border-top-right-radius: 8px; }
.legal-page .agreement-items tbody tr:last-child td:first-child{ border-bottom-left-radius: 8px; }
.legal-page .agreement-items tbody tr:last-child td:last-child{ border-bottom-right-radius: 8px; }

/* Print-friendly */
@media print{
  .legal-page .agreement-items thead th{
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}


/* === Dashboard KPI widgets (moved from templates) === */
/* .kpi-widget {
  border-radius: 12px;
  padding: 18px 16px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  position: relative;
  overflow: hidden;
  min-height: 106px;
}
.kpi-widget h6 {
  letter-spacing: .2px;
  opacity: .95;
  font-weight: 600;
  margin-bottom: .35rem;
}
.kpi-value {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
}
.kpi-subvalue {
  font-size: .9rem;
  font-weight: 600;
  opacity: .9;
}
.kpi-widget i {
  font-size: 2.25rem;
  opacity: .9;
} */

/* KPI gradients used across dashboards */
/* .kpi-w-bookings { background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%); }
.kpi-w-quotes   { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.kpi-w-drafts   { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.kpi-w-awaiting { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.kpi-w-approval { background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%); }
.kpi-w-invoices { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); } 

/* Helpers */
/* .active-glow { box-shadow: 0 0 0 .25rem rgba(25,135,84,.15) !important; } */

/* Business dashboard avatar */
.biz-avatar { position: relative; width: 64px; height: 64px; }
.biz-avatar-img { width: 64px; height: 64px; object-fit: cover; display: block; }
.biz-avatar-fallback { width: 64px; height: 64px; font-weight: 700; }

/* Business KPI widgets (moved from template) */
/* .active-glow { box-shadow: 0 0 0 .25rem rgba(25,135,84,.15) !important; } */
/* .biz-widget {
  border-radius: 12px; padding: 18px 16px; color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.08); position: relative; overflow: hidden;
} */
/* .biz-widget h6 { letter-spacing: .2px; opacity: .95; font-weight: 600; }
.biz-value { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.biz-subvalue { font-size: .95rem; font-weight: 600; }
.biz-widget i { font-size: 2.25rem; opacity: .9; } */

/* .biz-w-staff { background: linear-gradient(135deg, #6c757d 0%, #95a0a9 100%); }
.biz-w-clients { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.biz-w-agreements { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.biz-w-invoices { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.biz-w-quotes { background: linear-gradient(135deg, #0d6efd 0%, #66a6ff 100%); } */

/* Agreements panel tweaks */
/* .agreements-section .card { border-color: var(--bs-secondary) !important; }
.agreements-section .card-header {
  background: linear-gradient(135deg, #6c757d 0%, #8a949c 100%) !important;
  color: #fff !important; text-align: end;
} */
/* .agreements-section .card-header .mb-0,
.agreements-section .card-header h4,
.agreements-section .card-header h5 { margin-left: auto; } */

/* Generic avatar (used on personal dashboard) */
.avatar { position: relative; width: 64px; height: 64px; }
.avatar-img { width: 64px; height: 64px; object-fit: cover; display: block; }
.avatar-fallback { width: 64px; height: 64px; font-weight: 700; }


/* ===== Testimonials polish ===== */
.ts-section--pop{
  background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.ts-section--pop::before{
  /* faint pattern mist */
  content:"";
  position:absolute; inset:-40px;
  background:
    radial-gradient(1200px 600px at -10% -10%, rgba(20,43,89,.05), transparent 60%),
    radial-gradient(900px 500px at 110% 120%, rgba(115,140,191,.06), transparent 55%);
  pointer-events:none;
}

.ts-carousel{ overflow: visible; }

.ts-card{
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e6eef7;
}
.ts-card-pop{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ts-card-pop:hover{
  transform: translateY(-3px);
  /* deeper brand-tinted lift (pairs with elevate-2 base) */
  box-shadow:
    0 28px 80px rgba(20,43,89,.16),
    0 6px 16px  rgba(20,43,89,.08);
  border-color: #d1dcf3;
}
.ts-card-pop:focus-within{
  /* keep your focus ring + elevation */
  box-shadow:
    0 18px 48px rgba(20,43,89,.12),
    0 3px 10px  rgba(20,43,89,.06),
    0 0 0 3px rgba(134,211,229,.22);
}

.ts-quote{
  font-size: clamp(1.05rem, .5vw + 1rem, 1.3rem);
  line-height: 1.75;
  color: #24365e;
}
.ts-quote-icon{
  color: var(--bs-primary);
  opacity: .28;
  filter: drop-shadow(0 2px 6px rgba(20,43,89,.12));
}

.ts-avatar, .ts-avatar-fallback{
  width: 56px; height: 56px; font-weight: 700;
  box-shadow: 0 0 0 3px rgba(20,43,89,.06);
}
.ts-avatar-fallback{
  border: 0; background: #142B59; color: #fff;
  display:flex; align-items:center; justify-content:center;
}

.ts-stars i{ font-size: .95rem; }

/* Carousel dots and arrows in brand tone */
.ts-carousel .carousel-indicators [data-bs-target]{
  width: 10px; height: 10px; border-radius: 50%;
  background-color: rgba(20,43,89,.28);
}
.ts-carousel .carousel-indicators .active{
  background-color: rgba(20,43,89,.95);
}
.ts-carousel .carousel-control-prev-icon,
.ts-carousel .carousel-control-next-icon{
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

/* Navbar avatar styles */
.avatar-nav{
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-color: rgba(255,255,255,0.6) !important;
}

.avatar-nav-fallback{
  width: 28px;
  height: 28px;
  font-size: .85rem;
  font-weight: 700;
  background: #ffffff;            /* white badge for contrast on navy */
  color: #142B59;                 /* brand navy text */
  border: 1px solid rgba(255,255,255,0.6);
}

    /* Fix dropdown menu width and scrolling issues */
    .dropdown-menu {
        min-width: 200px !important;
        max-height: none !important;
        overflow: visible !important;
        white-space: nowrap;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }
    
    .dropdown-item i {
        width: 16px;
        text-align: center;
    }
    
    /* Make sure the table doesn't constrain the dropdown */
    .table td {
        position: relative;
    }
    
    /* Ensure dropdown appears above other elements */
    .dropdown {
        position: static;
    }
    
    .dropdown-menu {
        position: absolute;
        z-index: 1050;
    }

    /* Remove height restrictions and allow natural expansion */
    .card {
        min-height: auto;
    }
    
    .card-body {
        min-height: auto;
        height: auto;
    }
    
    .table-responsive {
        max-height: none !important;
        overflow-x: auto;
        overflow-y: visible;
    }
    
    /* Ensure the main container expands */
    .container-fluid,
    .container {
        min-height: auto;
    }
    
    /* Action buttons styling */
    .action-buttons {
        min-width: 200px;
    }
    
    .btn-group .btn {
        border-radius: 0;
    }
    
    .btn-group .btn:first-child {
        border-top-left-radius: 0.375rem;
        border-bottom-left-radius: 0.375rem;
    }
    
    .btn-group .btn:last-child {
        border-top-right-radius: 0.375rem;
        border-bottom-right-radius: 0.375rem;
    }


    /* Circular count badges for sidebar */
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;   /* 24px */
  height: 1.5rem;  /* 24px */
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

/* Positioning container for the + bubble */
.badge-wrapper {
  position: relative;
  display: inline-block;
}


#sidebar-wrapper .list-group-label {
  padding: .5rem .75rem .25rem .75rem;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #000000; /* changed from #6c757d to black */
  font-weight: 600;
  text-align: left;
}

  .kpi-w-contacts {
    background: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%); /* red to orange gradient */
  }
  

   /* KPI gradient widgets */
  .kpi-widget {
    border-radius: 12px;
    padding: 18px 16px;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    position: relative;
    overflow: hidden;
  }
  .kpi-widget h6 {
    letter-spacing: .2px;
    opacity: .95;
    font-weight: 600;
  }
  .kpi-value {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
  }
  .kpi-subvalue {
    font-size: .95rem;
    font-weight: 600;
  }
  .kpi-widget i {
    font-size: 2.25rem;
    opacity: .9;
  }

  /* Individual widget gradients */
  .kpi-w-bookings {
    background: linear-gradient(135deg, #667eea 0%, #081b85 100%); /* purple */
  }
  .kpi-w-quotes {
    background: linear-gradient(135deg, #0d6efd 0%, #66a6ff 100%); /* blue gradient */
  }
  .kpi-w-drafts {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%); /* green */
  }
  .kpi-w-agreements {
    background: linear-gradient(135deg, #6c757d 0%, #95a0a9 100%); /* grey */
  }
  .kpi-w-contacts {
    background: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%); /* red to orange */
  }
  .kpi-w-approval {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%); /* cyan to purple */
  }

  .kpi-w-tickets {
  background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%); /* cyan to blue */
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
/* option.slot-overlap { background:#ffdddd; color:#900; }
option.slot-gap     { background:#fff1d6; color:#b36a00; }
option.slot-muted   { opacity:.6; } */


/* Personal dashboard: feature cards (two white, two blue) */
.feature-row { margin-top: .25rem; }

.feature-card {
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: 0 12px 28px rgba(20,43,89,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(20,43,89,.12);
}
.feature-card .card-body { padding: 2rem; }
.feature-card .card-title { font-weight: 700; color: #142B59; }
.feature-card .card-text { color: #6c7a8a; }

.feature-icon {
  font-size: 3rem;
  color: #142B59; /* brand blue */
}

/* Filled blue variant (replace previous teal/green) */
.feature-card--filled {
  background: linear-gradient(180deg, #142B59 0%, #4e6dacff 100%);
  color: #fff;
}
.feature-card--filled .card-title { color: #fff; }
.feature-card--filled .card-text  { color: rgba(255,255,255,.92); }
.feature-card--filled .feature-icon { color: #fff; }

/* Buttons on filled cards: white outline with subtle hover */
.feature-card--filled .btn {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255,255,255,.85);
  --bs-btn-hover-bg: rgba(255,255,255,.12);
  --bs-btn-hover-border-color: rgba(255,255,255,1);
}

/* Nicer hover ring using your soft blue #738CBF */
.feature-card--filled:hover {
  box-shadow:
    0 18px 44px rgba(20,43,89,.22),
    0 0 0 3px rgba(115,140,191,.25);
}

/* Force high-contrast white text and accents inside filled feature cards */
.feature-card--filled {
  background: linear-gradient(180deg, #142B59 0%, #4e6dacff 100%);
  color: #fff;
}

/* Make essentially everything inside read as white */
.feature-card--filled,
.feature-card--filled .card-body,
.feature-card--filled h1,
.feature-card--filled h2,
.feature-card--filled h3,
.feature-card--filled h4,
.feature-card--filled h5,
.feature-card--filled h6,
.feature-card--filled p,
.feature-card--filled span,
.feature-card--filled small,
.feature-card--filled strong,
.feature-card--filled .text-muted,
.feature-card--filled .text-secondary,
.feature-card--filled .text-dark {
  color: #fff !important;
  opacity: 1 !important;
}

/* Icons and links */
.feature-card--filled i[class^="bi"] { color: #fff !important; opacity: .95; }
.feature-card--filled a:not(.btn) {
  color: #fff !important;
  text-decoration: underline;
}
.feature-card--filled a:not(.btn):hover { text-decoration: none; }

/* Horizontal rule / borders on filled cards */
.feature-card--filled hr { border-color: rgba(255,255,255,.25) !important; opacity: 1; }
.feature-card--filled .border { border-color: rgba(255,255,255,.25) !important; }

/* Badges: use translucent white pills for legibility */
.feature-card--filled .badge {
  background-color: rgba(255,255,255,.15) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.28);
}
/* Normalize “subtle” variants that Bootstrap may apply */
.feature-card--filled .badge.bg-light,
.feature-card--filled .badge.bg-warning,
.feature-card--filled .badge.bg-info,
.feature-card--filled .badge.bg-warning-subtle,
.feature-card--filled .badge.bg-secondary-subtle,
.feature-card--filled .badge.bg-info-subtle,
.feature-card--filled .badge.bg-danger-subtle,
.feature-card--filled .badge.bg-light.text-dark {
  background-color: rgba(255,255,255,.15) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.28);
}

/* Buttons inside filled cards: white-outline look for any outline variant */
.feature-card--filled .btn {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255,255,255,.85);
  --bs-btn-hover-bg: rgba(255,255,255,.12);
  --bs-btn-hover-border-color: #fff;
}
.feature-card--filled .btn-outline-primary,
.feature-card--filled .btn-outline-secondary,
.feature-card--filled .btn-outline-success,
.feature-card--filled .btn-outline-danger,
.feature-card--filled .btn-outline-dark,
.feature-card--filled .btn-outline-info {
  color: #fff !important;
  border-color: rgba(255,255,255,.85) !important;
}
.feature-card--filled .btn-outline-primary:hover,
.feature-card--filled .btn-outline-secondary:hover,
.feature-card--filled .btn-outline-success:hover,
.feature-card--filled .btn-outline-danger:hover,
.feature-card--filled .btn-outline-dark:hover,
.feature-card--filled .btn-outline-info:hover {
  background-color: rgba(255,255,255,.12) !important;
  border-color: #fff !important;
}

/* Slight focus/hover ring using your soft blue */
.feature-card--filled:hover {
  box-shadow:
    0 18px 44px rgba(20,43,89,.22),
    0 0 0 3px rgba(115,140,191,.25);
}


/* KPI widgets — unified dark-blue gradients + white content */
.kpi-widget,
.kpi-w-bookings,
.kpi-w-quotes,
.kpi-w-drafts,
.kpi-w-agreements,
.kpi-w-contacts,
.kpi-w-approval {
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 0;
}

/* Use your brand blues:
   #142B59 (brand navy), #0f2247 (deep navy), #0c1c3b (dark navy), #738CBF (soft info blue) */
.kpi-w-bookings {
  background: linear-gradient(135deg, #142B59 0%, #0c1c3b 100%);
}
.kpi-w-quotes {
  background: linear-gradient(135deg, #142B59 0%, #738CBF 100%);
}
.kpi-w-drafts {
  background: linear-gradient(135deg, #0f2247 0%, #475063 100%);
}
.kpi-w-agreements {
  background: linear-gradient(135deg, #0c1c3b 0%, #b7bbc4 100%);
}
.kpi-w-contacts {
  background: linear-gradient(135deg, #142B59 0%, #0f2247 100%);
}
.kpi-w-approval {
  background: linear-gradient(135deg, #2b3a5a 0%, #738CBF 100%);
}

/* Ensure links, badges, and buttons stay legible on dark gradients */
.kpi-w-bookings a,
.kpi-w-quotes a,
.kpi-w-drafts a,
.kpi-w-agreements a,
.kpi-w-contacts a,
.kpi-w-approval a {
  color: rgba(255, 255, 255, 0.9);
}
.kpi-w-bookings a:hover,
.kpi-w-quotes a:hover,
.kpi-w-drafts a:hover,
.kpi-w-agreements a:hover,
.kpi-w-contacts a:hover,
.kpi-w-approval a:hover {
  color: #fff;
  text-decoration: underline;
}

.kpi-w-bookings .badge,
.kpi-w-quotes .badge,
.kpi-w-drafts .badge,
.kpi-w-agreements .badge,
.kpi-w-contacts .badge,
.kpi-w-approval .badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.kpi-w-bookings .btn,
.kpi-w-quotes .btn,
.kpi-w-drafts .btn,
.kpi-w-agreements .btn,
.kpi-w-contacts .btn,
.kpi-w-approval .btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.kpi-w-bookings .btn:hover,
.kpi-w-quotes .btn:hover,
.kpi-w-drafts .btn:hover,
.kpi-w-agreements .btn:hover,
.kpi-w-contacts .btn:hover,
.kpi-w-approval .btn:hover {
  border-color: #fff;
}

/* Soft focus ring that matches your palette */
.kpi-w-bookings:focus-within,
.kpi-w-quotes:focus-within,
.kpi-w-drafts:focus-within,
.kpi-w-agreements:focus-within,
.kpi-w-contacts:focus-within,
.kpi-w-approval:focus-within {
  box-shadow: 0 0 0 0.25rem rgba(115, 140, 191, 0.35);
}

/* Optional: tiny hover lift without changing colors */
.kpi-w-bookings:hover,
.kpi-w-quotes:hover,
.kpi-w-drafts:hover,
.kpi-w-agreements:hover,
.kpi-w-contacts:hover,
.kpi-w-approval:hover {
  filter: brightness(1.03);
}

/* Unify KPI badges to pill (oval) shape, matching header badges */
.kpi-widget .badge,
.kpi-widget .count-badge,
/* .kpi-widget .plus-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  padding: 0.25rem 0.6rem !important;
  border-radius: 9999px !important;
  line-height: 1 !important;
  font-weight: 700;
  font-size: 0.8rem;
} */

/* Make sure the sidebar-style “+ bubble” doesn’t position absolutely inside widgets */
/* .kpi-widget .plus-badge {
  position: static !important;
  top: auto !important;
  right: auto !important;
  box-shadow: none;
} */

/* Optional: consistent translucency for KPI badges on dark tiles (keeps your current palette) */
.kpi-widget .badge,
.kpi-widget .count-badge,
/* .kpi-widget .plus-badge {
  background-clip: padding-box;
} */


.active-glow { box-shadow: 0 0 0 .25rem rgba(25,135,84,.15) !important; }

/* Business KPI widgets (match staff KPI look) */
.biz-widget {
  border-radius: 12px;
  padding: 18px 16px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  position: relative;
  overflow: hidden;
  border: 0;
}
.biz-widget h6 { letter-spacing: .2px; opacity: .95; font-weight: 600; }
.biz-value { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.biz-subvalue { font-size: .95rem; font-weight: 600; }
.biz-widget i { font-size: 2.25rem; opacity: .9; }

/* Links on dark tiles */
.biz-widget a:not(.btn) { color: rgba(255,255,255,.92); }
.biz-widget a:not(.btn):hover { color: #fff; text-decoration: underline; }

/* Unify badges to pill (oval) with legible contrast on dark backgrounds */
.biz-widget .badge,
.biz-widget .count-badge,
/* .biz-widget .plus-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .25rem .6rem !important;
  border-radius: 9999px !important;
  line-height: 1 !important;
  font-weight: 700;
  font-size: .8rem;
} */
/* Give “light” variants a translucent white look so they pop on navy */
.biz-widget .badge.bg-light,
.biz-widget .badge.bg-warning,
.biz-widget .badge.bg-info,
.biz-widget .badge.bg-dark-subtle,
.biz-widget .badge.bg-secondary-subtle,
.biz-widget .badge.bg-light.text-dark {
  background-color: rgba(255,255,255,.18) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.28);
}

/* Brand dark-blue gradients (variations for visual interest) */
.biz-w-staff     { background: linear-gradient(135deg, #142B59 0%, #0f2247 100%); }
.biz-w-clients   { background: linear-gradient(135deg, #0f2247 0%, #738CBF 100%); }
.biz-w-agreements{ background: linear-gradient(135deg, #0c1c3b 0%, #0f2247 100%); }
.biz-w-invoices  { background: linear-gradient(135deg, #142B59 0%, #738CBF 100%); }
.biz-w-quotes    { background: linear-gradient(135deg, #142B59 0%, #4e6dac 100%); }
.biz-w-upcoming  { background: linear-gradient(135deg, #142B59 0%, #0c1c3b 100%); }
/* .kpi-w-invoices { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }  */
.kpi-w-invoices { background: linear-gradient(135deg, #142B59 0%, #738CBF 100%);} 

/* Soft focus ring for accessibility */
.biz-widget:focus-within {
  box-shadow: 0 0 0 .25rem rgba(115,140,191,.35);
}

/* Optional tiny hover lift */
.biz-widget:hover { filter: brightness(1.03); }

/* Agreements section headers keep their look (unchanged), but you can remove these if not needed */
.agreements-section .card { border-color: var(--bs-secondary) !important; }
.agreements-section .card-header {
  background: linear-gradient(135deg, #6c757d 0%, #8a949c 100%) !important;
  color: #fff !important;
  text-align: end;
}
.agreements-section .card-header .mb-0,
.agreements-section .card-header h4,
.agreements-section .card-header h5 { margin-left: auto; }

/* ================== Nav pill mobile spacing ================== */
@media (max-width: 576px){
  /* Give second navbar internal vertical padding */
  .navbar + .navbar{
    padding-top: .55rem;
    padding-bottom: .55rem;
  }

  /* Space pills vertically if they wrap */
  .navbar + .navbar .btn.rounded-pill{
    margin-top: .35rem;
    margin-bottom: .35rem;
  }

  /* If they sit inside a flex container, add horizontal gap */
  .navbar + .navbar .d-flex,
  .navbar + .navbar .btn-group{
    gap: .6rem;
    flex-wrap: wrap;
  }
}


/* === KPI visibility: only show on large desktop (≥1366px) === */
.dashboard-avatar-row,
.kpi-row,
.biz-kpi-row,
.feature-section-row{
  display: none !important;
}

/* Show again only on wide desktop (> iPad Pro landscape) */
@media screen and (min-width: 1367px){
  .dashboard-avatar-row{ display: flex !important; }   /* it's a flex row */
  .kpi-row,
  .biz-kpi-row{ display: flex !important; }            /* Bootstrap rows are flex */
  .feature-section-row{ display: block !important; }   /* container block */
}

/* === Second navbar: mobile-friendly behavior === */
@media (max-width: 768px) {
  /* Make the second navbar area horizontally scrollable */
  .navbar + .navbar .container,
  .navbar + .navbar .container-fluid {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
    padding-bottom: .25rem; /* breathing room under chips */
  }

  /* Keep items in a single row; let the user scroll horizontally */
  .navbar + .navbar .nav,
  .navbar + .navbar .d-flex,
  .navbar + .navbar .btn-group {
    flex-wrap: nowrap !important;
    gap: .5rem;
  }

  /* Tighter chip styling on small screens */
  .navbar + .navbar .btn.rounded-pill,
  .navbar + .navbar .nav-link.rounded-pill {
    padding: .375rem .65rem;
    font-size: .875rem;
    line-height: 1.1;
    border-radius: 999px;
  }

  /* Optional: subtle fade at edges to indicate scroll (supported in modern browsers) */
  .navbar + .navbar .container,
  .navbar + .navbar .container-fluid {
    /* Remove this block if you don’t want the fade */
    mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
  }
}

/* Slightly larger phones/tablets: allow wrapping again if you prefer (optional) */
@media (min-width: 576px) and (max-width: 992px) {
  .navbar + .navbar .nav,
  .navbar + .navbar .d-flex,
  .navbar + .navbar .btn-group {
    flex-wrap: wrap !important;
  }
}

/* Sidebar dashboard: flush banner */
body.has-sidebar .my-banner{
  margin-bottom: 0 !important;
  /* Optional: slightly reduce bottom padding so KPIs sit closer */
  padding-bottom: 1.5rem;
}
body.has-sidebar main.flex-fill{
  padding-top: 0 !important;
}
body.has-sidebar #page-content-wrapper > .container.pb-4,
body.has-sidebar #page-content-wrapper > .container.py-4{
  padding-top: 0 !important;
}


/* Sidebar: hide label headings when collapsed */
/* === Invoice Dashboard (widgets + charts) === */
/* .chart-box {
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  padding: 20px;
  position: relative;
}
.chart-box h6 { margin-bottom: .75rem; font-weight: 700; color: #142B59; }
.chart-box--revenue { height: 300px; min-height: 300px; max-height: 300px; }
.chart-box--square  { height: 300px; min-height: 300px; max-height: 300px; }
.chart-container    { position: relative; height: 250px; width: 100%; } */

/* Match KPI/Biz look for the top summary tiles */
/* .financial-widget {
  background: linear-gradient(135deg, #142B59 0%, #738CBF 100%);
  border-radius: 12px;
  padding: 18px 16px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  border: 0;
  margin-bottom: 20px;
}
.financial-widget h6   { opacity: .95; margin-bottom: .25rem; font-weight: 600; }
.financial-widget .value { font-size: 2rem; font-weight: 800; margin-bottom: .25rem; } */

/* Invoice type badges: pill, brand tint */
/* .invoice-type-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 600;
  margin-right: 6px;
  background-color: rgba(20,43,89,.07);
  color: #142B59;
  border: 1px solid rgba(20,43,89,.12);
}
.badge-ndis         { background-color: rgba(13,110,253,.12); color: #0d6efd; }
.badge-personal     { background-color: rgba(25,135,84,.12); color: #198754; }
.badge-business     { background-color: rgba(255,193,7,.18); color: #f57c00; }
.badge-subscription { background-color: rgba(220,53,69,.12); color: #c2185b; }

/* Mobile polish: hide charts, tighten spacing, reduce gap below table */
/* @media (max-width: 991.98px) {
  #invoice-charts { display: none !important; margin: 0 !important; padding: 0 !important; }
  .dashboard-page .container.py-4,
  .dashboard-page .container.pb-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  .dashboard-page .row.mb-4 { margin-bottom: 1rem !important; }
  #page-content-wrapper .card:last-of-type { margin-bottom: .5rem; }
}
  display: none !important;
}  */

/* Optional: tighten item spacing while collapsed */
#sidebar-wrapper.minimized .list-group-item{
  padding-top: .5rem;
  padding-bottom: .5rem;
}

/* .chart-box {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 20px;
  position: relative;
}
.chart-box--revenue {
  height: 300px;
  min-height: 300px;
  max-height: 300px;
}
.chart-box--square {
  height: 300px;
  min-height: 300px;
  max-height: 300px;
}
.chart-container {
  position: relative;
  height: 250px;
  width: 100%;
} */
/* .financial-widget {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 20px;
  color: white;
  margin-bottom: 20px;
}
.financial-widget h6 {
  opacity: 0.9;
  margin-bottom: 10px;
}
.financial-widget .value {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 5px;
} */
/* .invoice-type-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 5px;
} */
/* .badge-ndis { background-color: #e3f2fd; color: #1976d2; }
.badge-personal { background-color: #e8f5e8; color: #2e7d32; }
.badge-business { background-color: #fff3e0; color: #f57c00; }
.badge-subscription { background-color: #fce4ec; color: #c2185b; } */

/* === Invoice Dashboard (widgets + charts) === */
.chart-box {
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  padding: 20px;
  position: relative;
}
.chart-box h6 { margin-bottom: .75rem; font-weight: 700; color: #142B59; }
.chart-box--revenue { height: 300px; min-height: 300px; max-height: 300px; }
.chart-box--square  { height: 300px; min-height: 300px; max-height: 300px; }
.chart-container    { position: relative; height: 250px; width: 100%; }

/* Match KPI/Biz look for the top summary tiles */
.financial-widget {
  background: linear-gradient(135deg, #142B59 0%, #738CBF 100%);
  border-radius: 12px;
  padding: 18px 16px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  border: 0;
  margin-bottom: 20px;
}
.financial-widget h6   { opacity: .95; margin-bottom: .25rem; font-weight: 600; }
.financial-widget .value { font-size: 2rem; font-weight: 800; margin-bottom: .25rem; }

/* Invoice type badges: pill, brand tint */
.invoice-type-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 600;
  margin-right: 6px;
  background-color: rgba(20,43,89,.07);
  color: #142B59;
  border: 1px solid rgba(20,43,89,.12);
}
.badge-ndis         { background-color: rgba(13,110,253,.12); color: #0d6efd; }
.badge-personal     { background-color: rgba(25,135,84,.12); color: #198754; }
.badge-business     { background-color: rgba(255,193,7,.18); color: #f57c00; }
.badge-subscription { background-color: rgba(220,53,69,.12); color: #c2185b; }

/* Mobile polish: hide charts, tighten spacing, reduce gap below table */
/* @media (max-width: 991.98px) {
  #invoice-charts { display: none !important; margin: 0 !important; padding: 0 !important; }
  .dashboard-page .container.py-4,
  .dashboard-page .container.pb-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  .dashboard-page .row.mb-4 { margin-bottom: 1rem !important; }
  #page-content-wrapper .card:last-of-type { margin-bottom: .5rem; }
} */


/* Mobile polish: hide charts, tighten spacing, reduce gap below table */
@media (max-width: 991.98px) {
  #invoice-charts { display: none !important; margin: 0 !important; padding: 0 !important; }
  .dashboard-page .container.py-4,
  .dashboard-page .container.pb-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  .dashboard-page .row.mb-4 { margin-bottom: 1rem !important; }
  #page-content-wrapper .card:last-of-type { margin-bottom: .5rem; }

  /* NEW: hide dashboard widgets on phones */
  .financial-widget { display: none !important; }
  #invoice-overdue-widgets { display: none !important; }
  .fy-selector { display: none !important; }
}

