html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

header {
    display: block;
}

.header-logo {
    display: inline-block;
}

    .header-logo .header-logo__image {
        display: inline-block;
        width: 339px;
        height: 136px;
        background-size: cover;
        font-size: 0;
        line-height: 0;
    }

.header .header__entry {
    background-size: cover;
    background-position: center center;
}

.header .header__entry-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 100%;
    padding: 29px 0 32px 0;
    background-size: cover;
    background-position: center center;
}

.col-xs-2 {
    color: #FFF;
}

.col-half-offset {
    margin-left: 2.166666667%
}

.header .header__inner {
    display: inline-block;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 306px;
    flex: 0 0 306px;
    max-width: 306px;
    height: 127px;
    margin-top: 20px;
    padding: 14px 0 20px 2px;
    text-align: center;
}

.shell {
    max-width: 1360px;
    padding-left: 10px;
    padding-right: 10px;
    margin: auto;
}

input[type=text], select, textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
}

.bg-sage {
    background-color: #ced6bd;
}

.bg-forest {
    background-color: #144439;
    color: #fff;
}

/* Bootstrap-style table variant for sage green */
.table-sage {
    --bs-table-bg: #ced6bd;
    --bs-table-striped-bg: #c4ccb3;
    --bs-table-hover-bg: #bac2a9;
}

.text-forest {
    color: #144439;
}

.btn-forest {
    background-color: #144439;
    color: #fff;
}

    .btn-forest:hover {
        background-color: #0f332a;
        color: #fff;
    }

    .btn-forest:focus, .btn-forest:active {
        background-color: #0a2720;
        color: #fff;
    }

/* Style hospital dropdown caret to match form-select */
#hospitalDropdown::after {
    border: none;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 16px 12px;
    width: 16px;
    height: 12px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    /* Remove link styling - show as plain text */
    a {
        color: inherit !important;
        text-decoration: none !important;
    }
    
    /* Don't show URLs after links */
    a[href]:after {
        content: none !important;
    }
    
    /* Landscape orientation for wide tables */
    @page {
        size: landscape;
        margin: 0.5in;
    }
    
    /* Scale down table content to fit */
    .table-responsive {
        overflow: visible !important;
    }
    
    table {
        font-size: 9px !important;
        width: 100% !important;
    }
    
    table th,
    table td {
        padding: 2px 4px !important;
        min-width: auto !important;
    }
    
    /* Ensure page breaks don't split rows */
    tr {
        page-break-inside: avoid;
    }
    
    /* Remove shadows and borders that don't print well */
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    /* Ensure content fits on page */
    .container,
    .container-xl {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Hide modals in print */
    .modal {
        display: none !important;
    }
    
    /* Shrink charts to fit on printed page */
    canvas {
        max-height: 350px !important;
        width: 100% !important;
    }
    
    /* Override inline height styles on chart containers - use auto to fit content */
    div[style*="height: 400px"],
    div[style*="height: 500px"],
    div[style*="height: 600px"] {
        height: auto !important;
        min-height: 300px !important;
        max-height: 400px !important;
    }
    
    /* Reduce card body padding */
    .card-body {
        padding: 0.5rem !important;
    }
    
    /* Reduce margins on page content */
    .mt-5 {
        margin-top: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 0.5rem !important;
    }
    
    h3 {
        font-size: 1.2rem !important;
    }
}