/* ===========================
   Dropdowns
   =========================== */
.file_dropdown {
  position: relative;
  display: inline-block;
}

.file_dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  padding: 12px 16px;
  z-index: 1;
}

.file_dropdown:hover .file_dropdown-content {
  display: block;
}

/* ===========================
   List Group Links
   =========================== */
.list-group a {
  color: #00ab46;              /* motif green */
  text-decoration: none;
  font-family: 'Merriweather', serif;
}

.list-group a:hover {
  color: #006400;              /* darker green on hover */
  text-decoration: underline;
}

/* ===========================
   Footer
   =========================== */
#footer {
  background-color: #00ab46;   /* motif green */
  color: #fff;
  font-family: 'Merriweather', serif;
}

#footer a {
  color: #fff;
  text-decoration: none;
}

#footer a:hover {
  color: #000000;              /* black on hover for contrast */
  text-decoration: underline;
}

#footer .credit {
  max-width: 75%;
  margin-left: 25%;
  display: flex;
  justify-content: right;
  margin: 0;
}

/* ===========================
   Page Offset (white band)
   =========================== */
.page-offset {
  height: 40px;                /* reserved band for logo */
  background-color: #fff;      /* white band */
  width: 100%;
  position: fixed;             /* lock to viewport */
  top: 0;
  left: 0;
  z-index: 999;                /* sits above content */
  
}

/* ===========================
   Navbar
   =========================== */
.navbar {
  background-color: #00ab46 !important; /* motif green */
  min-height: 40px;
  margin-top: 0 !important;
  padding: 0;
  border-bottom: 2px solid #fff;
  position: fixed;             /* lock navbar too */
  top: 40px;                   /* sit directly below .page-offset */
  left: 0;
  width: 100%;
  z-index: 1000;               /* above the white band */
}

.navbar-brand {
  position: relative;
  font-size: 2rem;
  font-weight: bold;
  font-family: "American Typewriter", serif;
}

.navbar-brand img {
  position: absolute;
  top: -55px;   /* overlap into white band */
  left: -120px; /* adjust for motif geometry */
}

/* Nav links */
.navbar-nav .nav-link {
  color: #fff;
  font-family: 'Merriweather', serif;
  padding-left: 1rem;
  padding-right: 1rem;
}
.navbar-nav .nav-link:hover {
  color: #f8f9fa;
}

/* Vertically center items */
.navbar .row.align-items-center {
  min-height: 80px;
}

/* Nudge nav items */
.navbar-nav {
  padding-left: 2rem;
}

/* Lane alignment */
.navbar-nav.nav-lane {
  width: 75%;        /* same as col-9 */
  margin-left: 25%;  /* same as offset-3 */
  display: flex;
  justify-content: flex-start;
}

/* ===========================
   Body Content Offset
   =========================== */
body {
  margin: 0;
  padding-top: 20px; /* 80px page-offset + 80px navbar */
}

/* Custom Bootstrap-style green button */
.btn-green {
  --bs-btn-color: #fff;
  --bs-btn-bg: #00ab46;              /* motif green background */
  --bs-btn-border-color: #00ab46;    /* motif green border */
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #006400;        /* darker green on hover */
  --bs-btn-hover-border-color: #006400;
  --bs-btn-focus-shadow-rgb: 0, 171, 70; /* motif green shadow */
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #006400;
  --bs-btn-active-border-color: #006400;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #00ab46;
  --bs-btn-disabled-border-color: #00ab46;
}

/* Base select styling */
.form-select-green {
  display: inline-block;
  width: auto;
  border: 1px solid #00ab46;   /* motif green border */
  background-color: #fff;      /* white background by default */
  color: #000;                 /* black text */
  font-family: 'Merriweather', serif;
}

/* Hover state */
.form-select-green:hover {
  background-color: #00ab46;   /* Bootstrap blue on hover */
  color: #fff;                 /* white text for contrast */
  border-color: #00ab46;
}

/* Focus (when clicked or tabbed into) */
.form-select-green:focus {
  background-color: #fff;   /* motif green background */
  color: #000;                 /* white text for contrast */
  border-color: #00ab46;
  
}

.green {
	color: #00ab46;
}

/* Sidebar shadow box */
.sidebar-box {
  background-color: #fdfdfd;       /* slightly off-white for texture */
  border: 1px solid #e0e0e0;       /* subtle border for definition */
  border-radius: 8px;              /* soften corners */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 3D shadow */
  padding: 1rem;                   /* breathing room inside */
  margin-bottom: 1.5rem;           /* spacing below */
}

/* General shadowed card */
.shadow-box {
  background-color: #fff;            /* keep motif colors inside rows */
  border-radius: 10px;               /* rounded corners */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 1rem;
  
}

/* Variant for warning/alert sections */
.shadow-box-warning {
  background-color: #F98F74;         /* pale red */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

/* Variant for error/critical sections */
.shadow-box-error {
  background-color: #f77c5c;         /* pale red */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

/* Orange shadow box (resource edit) */
.shadow-box-orange {
  background-color: #ffb84d;   /* your current orange */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

/* Yellow shadow box (facility edit) */
.shadow-box-yellow {
  background-color: #ffdb4d;   /* your current yellow */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.shadow-box-green {
  background-color: #66c282; /* your current tasking green */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.table thead th {
  background-color: #00ab46 !important;
  color: #fff !important;
  text-align: center;
}
.table thead th:first-child {
  text-align: left;
}

/* Custom motif green overrides */
h2.text-success {
  color: #00ab46 !important;
}

i.bi {
  color: #00ab46 !important;
}

.btn-success {
  background-color: #00ab46 !important;
  border-color: #00ab46 !important;
}

.btn-success:hover {
  background-color: #00963d !important; /* slightly darker for hover */
  border-color: #00963d !important;
}

.dashboard-header-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: stretch;
    width: 100%;
}

.dashboard-header-main {
    flex: 1 1 auto;
}

.dashboard-header-messages {
    flex: 0 0 160px;
}

<style>
.badge {
    display:inline-block;
    padding:3px 8px;
    border-radius:12px;
    font-size:11px;
    font-weight:600;
    margin-left:8px;
    font-family:American Typewriter, serif;
}

.badge-green {
    border:1px solid #00ab46;
    color:#00ab46;
    background:white;
}

.badge-gray {
    border:1px solid #777;
    color:#777;
    background:white;
}

.badge-red {
    background:#ED4C16;
    color:white;
    border:1px solid #ED4C16;
}
</style>

/* ===========================
   MGMT LOG — Restore Original Look + Unified Geometry
   =========================== */

.mlog-input,
.mlog-date,
.mlog-select {
    height: 27px;                     /* matches your original input height */
    padding: 4px 8px;                 /* matches your original spacing */
    font-family: "American Typewriter", serif;
    color: #00ab46;                   /* motif green text */
    background: #fff;
    border: none;                     /* your original style */
    border-bottom: 1px solid #00ab46; /* subtle motif underline */
    box-sizing: border-box;
}

.mlog-date {
	height: 27px;
    width: 160px;                     /* keeps date inputs aligned */
}

.mlog-select {
	height: 27px;
    width: 120px;                     /* matches your billable dropdown */
}
/* Force motif styling to override Bootstrap */
select.mlog-select,
input.mlog-input,
input.mlog-date,
textarea.mlog-input {
    color: #00ab46 !important;
    background: #fff !important;
    border: 1px solid #00ab46!important;
    
    font-family: "American Typewriter", serif !important;
}

/* Prevent filter tile rows from stretching inputs too wide */
.mlog-row {
    max-width: 420px;   /* matches the Add tile’s natural row width */
}

.green-shadow-box {
    background-color: #00ab46;      /* motif green */
    color: #ffffff;                 /* white type */
    padding: 15px 20px;             /* comfortable spacing */
    border-radius: 8px;             /* motif rounded corners */
    box-shadow: 0 0 10px rgba(0,0,0,0.15); /* soft drop shadow */
    font-family: American Typewriter, serif;
    font-size: 16px;
    text-align: center;
    margin: 20px 0;                 /* vertical spacing */
}

.facility-name-wrapper {
    height: 60px;          /* two lines */
    text-align: center;
    overflow: hidden;
    display: block;        /* allow natural multi-line flow */
}

.facility-name-wrapper h3 {
    margin: 0;
    font-size: clamp(20px, 3vw, 30px); /* grows aggressively */
    line-height: 1.1;                  /* tighter lines = bigger look */
    color: #00ab46 !important;
}

.monthly-message-container {
    position: relative;
}

.msg-toggle {
    display: none;
}

.monthly-message-wrapper {
    font-size: 14px;
    line-height: 18px;

    height: 36px;          /* always exactly 2 lines of vertical space */
    overflow: hidden;
    cursor: pointer;
    text-align: center;
	margin-top:10px; 
	margin-bottom:5px;
}

/* Expanded state when clicked */
.msg-toggle:checked + .monthly-message-wrapper {
    height: auto;          /* grow to fit full text */
}

/* Darker checkbox border */
.form-check-input {
    border-color: #222 !important;
    background-color: #fff !important;
}

/* Motif green when checked */
.form-check-input:checked {
    background-color: #00ab46 !important;
    border-color: #007a32 !important;
}

/* ===========================
   Legal Page Styling (Safe, Non-Overlapping)
   =========================== */

.legal-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  background-color: #ffffff;
  font-family: 'Merriweather', serif;
}

.legal-wrapper h1,
.legal-wrapper h2,
.legal-wrapper h3,
.legal-wrapper h4 {
  color: #104e3b;
  margin-top: 2rem;
}

.legal-wrapper h2 {
  border-bottom: 1px solid #e0e3eb;
  padding-bottom: 0.25rem;
}

.legal-wrapper p {
  margin: 0.5rem 0 1rem;
}

.legal-wrapper ul {
  margin: 0.5rem 0 1.25rem 1.5rem;
}

.legal-section-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
  margin-bottom: 0.25rem;
}

.legal-meta {
  font-size: 0.9rem;
  color: #555;
}

.legal-divider {
  margin: 3rem 0;
  border: 0;
  border-top: 1px solid #e0e3eb;
}

.legal-footer {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

/* ============================================================
   Facility Documents Single-Row Table Bar (Clean + Tight)
   ============================================================ */

.facility-doc-wrapper {
    border: 1px solid #00ab46;
    border-radius: 6px;
    overflow: hidden; /* ensures rounded corners apply */
    margin-bottom: 10px;
    padding: 0; /* CRITICAL: no white gap */
}

.facility-doc-table {
    width: 100%;
    border-collapse: collapse; /* removes spacing between cells */
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.facility-doc-table td {
    padding: 6px 10px;
    white-space: nowrap;
    border-right: 1px solid #00ab46;
}

.facility-doc-table td:last-child {
    border-right: none;
}

.facility-doc-green {
    background: #00ab46;
    color: white;
    font-weight: bold;
    text-align: center;
}

.facility-doc-white {
    background: white;
    color: #00ab46;
}

/* Width tuning */
.facility-doc-col-docs { width: 16%; }
.facility-doc-col-name { width: 44%; }  /* larger white area */
.facility-doc-col-status-label { width: 10%; }
.facility-doc-col-status-dot { width: 8%; text-align:center; }
.facility-doc-col-link-label { width: 10%; }
.facility-doc-col-link { width: 12%; text-align:center; }

.facility-doc-link a {
    color: #00ab46;
    font-weight: bold;
}

.facility-doc-col-status-dot span {
    vertical-align: middle;
}