@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@600;700;800&display=swap');

/* SAN PEDRO EXECUTIVE 2.0 GLOBAL LIGHT THEME SYSTEM (Pillars 1-7 Standard) */
body, page, .page, .main, .content {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background-color: #f8fafc !important;
    color: #1e293b !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

* {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Global Executive Card Containers */
.card, .panel, .box, .data-card, .dashboard-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    color: #1e293b !important;
}

/* Global Executive Tables */
table, .table, .data-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

th, .table th, table th {
    background: #f8fafc !important;
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 16px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    text-align: left !important;
}

td, .table td, table td {
    padding: 12px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #1e293b !important;
    font-size: 14px !important;
}

tr:hover td, .table tr:hover td {
    background-color: #f8fafc !important;
}

/* Mobile Blazor Reconnection Styling */
#components-reconnect-modal {
    position: fixed !important;
    top: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 10000 !important;
    display: none !important;
    background: #0284c7 !important;
    color: #ffffff !important;
    padding: 10px 18px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2) !important;
}

#components-reconnect-modal.components-reconnect-show {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

div, input, textarea, select {
    box-sizing: border-box;
}

input[type="date"] {
    min-height: 38px;
    min-width: 120px;
    /*box-sizing: content-box;*/
}

/* NEW STUFF START */

.timeline-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.timeline-table th, .timeline-table td {
    border-bottom: 1px solid #ccc;
    padding: 8px;
}

.timeline-container {
    position: relative;
    width: 100%;
    height: 60px;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #ccc;
}

.timeline-marker {
    position: absolute;
    top: calc(50% - 12px);
    width: 24px;
    height: 24px;
    background-color: #555;
    border-radius: 50%;
    text-align: center;
    color: #fff;
    line-height: 24px;
    font-size: 14px;
    cursor: pointer;
}

.timeline-marker-green {
    background-color: green;
}

.timeline-marker-blue {
    background-color: blue;
}

.timeline-marker-red {
    background-color: red;
}

.timeline-label {
    position: absolute;
    top: -20px;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: nowrap;
    text-align: center;
}

.timeline-tooltip {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 5px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    display: none;
}

.timeline-marker:hover .timeline-tooltip {
    display: block;
}

.highlight-row {
    background-color: #ffe5e5;
}

.patient-info {
    font-size: 16px;
    font-weight: bold;
}

.patient-id {
    font-size: 14px;
    color: #777;
}

/* NEW STUFF END */

.dropdown-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 22px;
}

.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    position: absolute;
    right: -5px;
    background-color: transparent;
    border: none;
    padding: 0;
    font-size: 12px;
    cursor: pointer;
}

.dropdown-button-x {
    position: absolute;
    right: -6px;
    background-color: transparent;
    border: none;
    padding: 0;
    font-size: 12px;
    cursor: pointer;
}

.dropdown-button.fa {
    font-size: 12px;
}

.dropdown-button-x.fa {
    font-size: 12px;
}

.dropdown-arrow {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 12px;
    cursor: pointer;
}

.column-button {
    background-color: transparent;
    border: none;
    padding: 0;
    font-size: 12px;
    cursor: pointer;
}

.column-button.fa {
    font-size: 12px;
}

.arrow-icon {
    font-size: 12px;
    margin-left: 4px;
}

.next-arrow-icon {
    position: absolute;
    /*left: 100%;*/
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    font-size: 18px;
}

.dropdown-wrapper +.dropdown-wrapper {
    margin-left: 20px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

select {
    font-family: Manrope;
}

.nav-links-td {
    vertical-align: top;
    /*border-bottom: 1px solid #DEE1E6;*/
    margin: 0;
    padding: 0;
}

.nav-links {
    font-size: 14px;
}

.saved-views {
    font-size: 14px;
}

.custom-dropdown {
    position: relative;
    display: inline-block;
    font-family: Manrope;
    font-size: 14px;
}

.dropdown-header {
    padding: 8px 30px 8px 8px; /* Adjust padding to make room for the arrow */
    border: 0px solid #ccc;
    border-radius: 0;
    font-family: Manrope;
    user-select: none;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #333;
    background-image: url('arrow-dropdown.svg'); /* Added icon */
    background-size: 16px 16px; /* Resize the icon properly */
    background-repeat: no-repeat;
    background-position: right 8px center; /* Position the icon */
}

.dropdown-header:hover {
    background-color: #ddd;
}

.dropdown-header-open {
    padding: 8px 30px 8px 8px; /* Adjust padding to make room for the arrow */
    border: 0px solid #ccc;
    border-radius: 0;
    font-family: Manrope;
    user-select: none;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #333;
    position: relative; /* Add this to create a new stacking context */
}

.dropdown-header-open::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%) scaleY(-1); /* Flip the image upside down */
    background-image: url('arrow-dropdown.svg');
    background-size: 16px 16px;
    width: 16px;
    height: 16px;
}

.dropdown-header-open:hover {
    background-color: #ddd;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: block;
    padding-right: 36px;
    padding-top: 8px;
    padding-bottom: 8px;
    margin: 0.125rem 0 0;
    font-size: 14px;
    color: #171A1FFF;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.dropdown-item {
    display: block;
    user-select: none;
    width: 100%;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 12px;
    padding-right: 12px;
    clear: both;
    font-family: Manrope;
    font-weight: 400;
    color: #171A1FFF;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-item:hover {
    background-color: #ddd;
}

.dropdown-item input[type="checkbox"] {
    margin-right: 5px;
}

.saved-views-td {
    vertical-align: top;
    margin: 0;
    padding: 0;
}

.sidebar, td.sidebar, .sidebar-td {
    background-color: #fff;
    border-right: 1px solid #DEE1E6;
    width: 256px;
    padding: 20px;
    vertical-align: top;
    position: relative !important;
    z-index: 999999 !important;
    overflow: visible !important;
}

.header {
    background-color: #F3F4F6;
    padding: 10px 0px 8px 49px;
}

.header-tr {
    border-bottom: 1px solid #DEE1E6;
}

.main-content, td.main-content {
    vertical-align: top;
    padding: 0px 0px 0px 49px;
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
}

.data-display {
    background-color: #f1f1f1;
    height: 300px;
    width: 90%;
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-table-display.sticky {
    padding-top: 40px;
}

.sticky-header.stuck {
    top: 75px;
    outline: 10px solid #fff;
}

.sticky-dropdowns.stuck {
    top: 1px;
    outline: 10px solid #fff;
}

.sticky-dropdowns {
    position: sticky;
    top: 1px; /* adjust this value to match the padding-top of the parent container */
    background-color: #fff;
    z-index: 20;
}

/*.data-table-display.sticky {
    padding-top: 77px;
}

.sticky-header.stuck {
    top: 55px;
    outline: 10px solid #fff;
}

.sticky-dropdowns.stuck {
    top: 38px;
    outline: 10px solid #fff;
}

.sticky-dropdowns {
    position: sticky;
    top: 1px; !* adjust this value to match the padding-top of the parent container *!
    background-color: #fff;
    z-index: 20;
}

.sticky-selectedgroups-bar.stuck {
    top: 1px;
    outline: 10px solid #fff;
}

.sticky-selectedgroups-bar {
    position: sticky;
    top: 1px; !* adjust this value to match the padding-top of the parent container *!
    z-index: 20;
}*/

.sticky-header {
    position: sticky;
    top: 1px; /* adjust this value to match the padding-top of the parent container */
    background-color: #fff;
    z-index: 10;
}

.sticky-header-housing-manager {
    position: sticky;
    top: 1px; /* adjust this value to match the padding-top of the parent container */
    background-color: #F3F4F6;
    outline: 1px solid #F3F4F6;
    z-index: 10;
}

.data-table-display {
    background-color: #f1f1f1;
    height: 300px;
    width: 90%;
    padding-top: 1px;
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: 18px;
    /*    margin-bottom: 10px;*/
    padding: 0;
    margin: 0;
}

.controls select, .controls button {
    margin-right: 10px;
}

/* Styling for dropdowns */
select {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #171A1FFF;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    margin-right: 10px;
    cursor: pointer;
    outline: none;
}

.header-container {
    display: flex;
    align-items: center;
    /*here*/
    width: 100%;
}

.header-dropdown, .button-group, .date-range {
    margin-right: 10px;
}

.header-dropdown select {
    padding: 8px 30px 8px 8px; /* Adjust padding to make room for the arrow */
    border: 0px solid #ccc;
    height: 36px !important;
    border-radius: 0;
    background-color: #fff;
    border-bottom: 1px solid #333;
    background-image: url('arrow-dropdown.svg'); /* Added icon */
    background-size: 16px 16px; /* Resize the icon properly */
    background-repeat: no-repeat;
    background-position: right 8px center; /* Position the icon */
}

.header-dropdown select:hover {
    background-color: #ddd;
}

.date-range input {
    width: 100px;
    height: 19px;
    /*padding: 9px;*/
    user-select: none;
    border: 1px solid #333;
    border-radius: 0;
    background-color: #fff;
    outline: none;
}

input[type="datetime-local"] {
    position: relative;
}

input[type="datetime-local"]::after {
    content: "\25BC"; /* Unicode character for down arrow */
    color: #555;
    padding: 0 5px;
    user-select: none;
    position: absolute;
    top: 50%;
    right: 6px;
    height: 17px;
    transform: translateY(-50%);
    pointer-events: none; /* So the arrow doesn't interfere with clicks */
}

/* change color of symbol on hover */
input[type="datetime-local"]:hover:after {
    color: #bf1400;
}

/* make the native calendar & time picker indicator invisible */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 170px;
    height: 60px;
    color: transparent;
    background: transparent;
}

/* adjust increase/decrease button */
input[type="datetime-local"]::-webkit-inner-spin-button {
    z-index: 1;
}

/* adjust clear button */
input[type="datetime-local"]::-webkit-clear-button {
    z-index: 1;
}

input[type="date"] {
    position: relative;
}

input[type="date"]::after {
    content: "\25BC"; /* Unicode character for down arrow */
    color: #555;
    padding: 0 5px;
    user-select: none;
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    pointer-events: none; /* So the arrow doesn't interfere with clicks */
}

/* change color of symbol on hover */
input[type="date"]:hover:after {
    color: #bf1400;
}

/* make the native arrow invisible and stretch it over the whole field so you can click anywhere in the input field to trigger the native datepicker*/
input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100px;
    height: 60px;
    color: transparent;
    background: transparent;
}

/* adjust increase/decrease button */
input[type="date"]::-webkit-inner-spin-button {
    z-index: 1;
}

/* adjust clear button */
input[type="date"]::-webkit-clear-button {
    z-index: 1;
}

.custom-checkbox {
    cursor: pointer;
}

.custom-checkbox:hover {
    outline: 1px solid #333;
}

.custom-option-row {
    cursor: pointer;
    height: 27.72px;
}

.custom-option-row:hover {
    outline: 2px solid #333;
    border-radius: 10px;
    background-color: #ddd;
}

.custom-option-row-x {
    cursor: pointer;
}

.custom-option-row-x:hover {
    outline: 2px solid #333;
    border-radius: 10px;
}

.hover-color-gray:hover {
    outline: 1px solid #333;
    border-radius: 4px;
    color: white !important;
    background-color: black !important;
    background: black !important;
}

.hover-color-border:hover {
    border: 1px solid #333 !important;
    color: #333 !important;
}

.drug-sceening-day-color-block:hover {
    outline: 2px solid #333;
    border-radius: 5px;
    z-index: 10;
}

.dosing-dosed-day-color-block:hover {
    outline: 2px solid #333;
    z-index: 10;
}

.date-range input:hover {
    background-color: #ddd;
}

.date-range input:active {
    border-radius: 0;
}

.button-group {
    display: flex;
    margin-right: 20px;
}

.button-group button {
    padding: 10px 20px;
    border: 0px solid #333;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
    margin-right: -1px;
}

/*hr {*/
/*    border: none;*/
/*    height: 1px;*/
/*    !* Set the hr color *!*/
/*    color: #333;  !* old IE *!*/
/*    background-color: #333;  !* Modern Browsers *!*/
/*    linearGradient: none;*/
/*}*/

.hr1 {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1), rgba(0, 0, 0, 1));
}

.applied-sorting-options {
    padding-bottom: 4px;
}

/*
 * EE / MMGM button base (legacy name: search-button).
 *
 * ROOT CAUSE of "buttons/tiles overlapping" (Paul 2026-08-06, Brandon Build report
 * + census toolbar, fleet-wide): this class used to have margin-right: -30px so a
 * single Search button could tuck under an adjacent input in Daniel-era layouts.
 * Agents reused the class for multi-button toolbars / chip rows / flex wraps →
 * every pair of buttons stacked ~25px into each other. HousingManager, Providers,
 * etc. already fought it with margin-right:0 !important.
 *
 * RULE: never use negative horizontal margin on multi-control toolbars.
 * Prefer .ee-btn for new EE UI. .search-button stays for legacy pages but must
 * NOT reintroduce margin-right < 0.
 */
.search-button {
    padding: 10px 20px;
    border: 0px solid #333;
    background-color: #333;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    margin-right: 6px;   /* was -30px — caused fleet-wide button pile-up */
    margin-bottom: 3px;
    margin-left: 0;
    border: 0px solid #333;
    /*transform: translateY(-1px);*/
}

/* Paul 2026-08-06: never white text on pale blue. Default .search-button is
   dark-bg + white text. If a page needs a "selected" fill on a light surface,
   use this class (or set color:#1a202c explicitly). Do NOT only change
   background to #bee3f8 / #90cdf4 / #ebf8ff while leaving color:#fff. */
.search-button-light-selected {
    background-color: #ebf8ff !important;
    border: 1px solid #2b6cb0 !important;
    color: #1a202c !important;
}

.search-button-disabled {
    padding: 10px 20px;
    border: 0px solid #333;
    background-color: #333;
    color: #fff;
    cursor: default;
    font-size: 14px;
    margin-right: 6px;   /* was -30px — same overlap bug */
    margin-bottom: 3px;
    margin-left: 0;
    border: 0px solid #333;
    opacity: 0.5;
}

.groups-button {
    padding: 10px 20px;
    border: 0px solid #333;
    background-color: #333;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    margin-right: 6px;   /* was -30px — same overlap bug */
    margin-bottom: 3px;
    margin-left: 0;
    border: 0px solid #333;
    /*transform: translateY(-1px);*/
}

/* Preferred EE control buttons for new toolbars / chips (no negative margins). */
.ee-btn {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    background: #fff;
    color: #2d3748;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    white-space: nowrap;
}
.ee-btn:hover { background: #edf2f7; }
.ee-btn:disabled { opacity: .45; cursor: not-allowed; }
.ee-btn-primary { background: #2b6cb0; border-color: #2b6cb0; color: #fff; }
.ee-btn-primary:hover { background: #2c5282; }
.ee-btn-success { background: #2f855a; border-color: #2f855a; color: #fff; }
.ee-btn-success:hover { background: #276749; }
.ee-btn-on {
    background: #ebf8ff !important;
    border-color: #2b6cb0 !important;
    color: #1a365d !important;
}
.ee-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.button-group button.active {
    background-color: #333;
    color: #fff;
    cursor: default;
    pointer-events: none;
}

.button-group button.activepointer {
    background-color: #333;
    color: #fff;
    cursor: pointer;
}

.view-button {
    padding: 2px 25px;
    border: 0px solid #333;
    background-color: #333;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    margin-right: 5px;
    margin-left: 5px;
    border-radius: 5px;
}

@keyframes pulseColor {
    0%, 100% { color: white; }
    50%      { color: black; }
}
.pulse-icon {
    animation: pulseColor 1s infinite;
}

.logout-div {
    margin-bottom: 20px;
    width: 100%;
    align-content: center;
    align-items: center;
    position: fixed;
    bottom: 40px;
    left: 0;
    margin: 0;
    width: 240px;
    height: 36px;
}

.logout-collapsed-div {
    margin-bottom: 20px;
    width: 100%;
    align-content: center;
    align-items: center;
    position: fixed;
    bottom: 40px;
    left: 0;
    margin: 0;
    height: 36px;
}

.logout-button {
    display: inline-flex;
    margin-left: 16px;
    align-self: center;
    align-items: center;
    justify-content: center;
    background-color: #F3F4F6;
    padding: 10px 20px;
    cursor: pointer;
    border: 0;
    font-size: 14px;
    color: #565E6D;
    width: 224px;
    height: 36px;
}

.logout-button:hover {
    background-color: #ddd;
    color: #000;
}

.logout-button .icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

.logout-button .text {
    line-height: 20px; /* same as icon height for perfect vertical alignment */
    vertical-align: middle;
}

.button-group button:not(.active):hover {
    background-color: #ddd;
    color: black;
}

.button-group button:not(.activepointer):hover {
    background-color: #ddd;
    color: black;
}

.button-group button:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.button-group button:last-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.date-range {
    border: 0px solid #333;
    display: flex;
    align-items: center;
}

.comparison-container {
    display: flex;
    align-items: end;
    margin: 10px 0 10px 0;
}

.comparison-container .label {
    font-family: Lexend !important;
    font-size: 20px;
    line-height: 30px;
    font-weight: 700;
    color: #171A1FFF;
    margin-right: 20px;
}

.comparison-container .dropdown select {
    box-sizing: border-box;
    margin-right: 15px;
    height: 36px;
    border-radius: 0;
    padding: 8px 30px 8px 8px; /* Adjust padding to make room for the arrow */
    border: 1px solid #333;
    background-color: #fff;
    background-image: url('arrow-dropdown.svg');
    background-size: 16px 16px; /* Resize the icon properly */
    background-repeat: no-repeat;
    background-position: right 8px center; /* Position the icon */
}

.comparison-container .dropdown select:hover {
    background-color: #ddd;
}

.comparison-container .save-view {
    display: flex;
    align-items: center;
    margin-right: 15px;
    height: 36px;
    padding: 8px 8px 8px 36px; /* Adjust padding to make room for the icon */
    border: 1px solid #333;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    background-image: url('save-for-later.svg');
    background-size: 16px 16px; /* Resize the icon properly */
    background-repeat: no-repeat;
    background-position: 8px center; /* Position the icon */
    user-select: none; /* Prevent text selection */
}

.comparison-container .save-view:hover {
    background-color: #ddd;
}

/* LOGIN PAGE */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

.login-form {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 0px;
    width: 300px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #171A1FFF;
}

.patient-list-tr-item {

}

.patient-list-tr-item:hover {
    outline: 2px solid #333;
}

.login-input-text {
    /* top | right | bottom | left */
    text-indent: 16px; /* add 16px of indentation to the text */
    padding: 8px 0 8px 0;
    border: 1px solid #333;
    border-radius: 0;
    background-color: #fff;
    font-size: 14px;
    color: #171A1FFF;
    width: 100%;
    outline: none; /* add this to remove the blue outline */
}

.search-filter-input-text {
    /* top | right | bottom | left */
    text-indent: 16px; /* add 16px of indentation to the text */
    padding: 8px 0 8px 0;
    border: 0px solid #fff;
    border-bottom: 1px solid #333;
    border-radius: 0;
    background-color: #fff;
    font-size: 14px;
    color: #171A1FFF;
    width: 200px;
    outline: none; /* add this to remove the blue outline */
}

.newgroup-input-text {
    /* top | right | bottom | left */
    text-indent: 16px; /* add 16px of indentation to the text */
    padding: 8px 0 8px 0;
    margin-right: 15px;
    border: 1px solid #333;
    border-radius: 0;
    background-color: #fff;
    font-size: 14px;
    color: #171A1FFF;
    width: 100%;
    outline: none; /* add this to remove the blue outline */
}

.login-button {
    padding: 10px 20px;
    border: 0px solid #333;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    width: 100%;
    background-color: #333;
    color: #fff;
}

.login-button:hover {
    background-color: #ddd;
    color: #000;
}

.login-button-disabled {
    padding: 10px 20px;
    border: 0px solid #333;
    font-size: 14px;
    color: #fff;
    width: 100%;
    opacity: 0.5;
    background-color: #333;
    color: #fff;
}

/*
.login-button-disabled:hover {
    background-color: #ddd;
    color: #000;
}*/

.otphelp-container {
    background-color: white;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.otphelp-headerbar {
    background-color: #333;
    color: white;
    padding: 10px;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

.otphelp-content {
    margin-top: 20px;
}

.otphelp-section {
    margin-bottom: 20px;
}

.otphelp-title {
    font-size: 18px;
    color: #333;
}

.otphelp-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.otphelp-image {
    text-align: center;
    margin: 20px 0;
}

.otphelp-link:hover {
    text-decoration: underline;
}

.otphelp-footer {
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
    color: #777;
}

/* Position therapy hour blocks relatively to allow for absolute positioning of the triangles */
.dosing-dosed-day-color-block {
    position: relative;
}

/* Position therapy hour blocks relatively to allow for absolute positioning of the triangles */
.dosing-dosed-day-color-block {
    position: relative;
}

/* Black triangle for the first warning */
.therapy-warning-removed::before {
    content: "";
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid #2ecc71;
    z-index: 5;
}

/* Black triangle for the first warning */
.therapy-warning-first::before {
    content: "";
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid black;
    z-index: 5;
}

/* Black triangle for the second (last) warning */
.therapy-warning-last::before {
    content: "";
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid red;
    z-index: 5;
}

.dose-stable {
    box-shadow: 0 0 0 2px #FFF8E1;
}

.sticky-header {
    position: sticky;
    top: 0;
    background-color: #F5F5F5;
    z-index: 10;
}

.sticky-column {
    position: sticky;
    background-color: inherit;
    z-index: 90;
}

.sticky-corner {
    position: sticky;
    top: 0;
    z-index: 110;
    background-color: #F5F5F5;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}
/* === MMGM MIRROR banner (2026-07-15) — permanent, all pages, always visible === */
#mmgm-mirror-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 36px;
    z-index: 2147483000; /* above nav, modals, plotly overlays */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: repeating-linear-gradient(-45deg, #d97706, #d97706 22px, #b45309 22px, #b45309 44px);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    pointer-events: none; /* never blocks clicks on app chrome beneath the edge */
    user-select: none;
}

#mmgm-mirror-banner button,
#mmgm-mirror-banner a {
    pointer-events: auto !important;
}

#mmgm-mirror-banner .mmgm-mirror-word {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 6px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

#mmgm-mirror-banner .mmgm-mirror-sub {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.95;
}

/* push page content below the fixed banner so nothing is hidden underneath */
body {
    padding-top: 36px !important;
}

/* ============================================================
   ADR-2081 — shared clickable-card tiles (promoted from the
   Home.razor inline <style> block so RcmHub + every hub page
   gets the same MMGM card language). Whole card is the click
   target; hover lift + border highlight signal clickability.
   ============================================================ */
.home-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    flex-basis: 250px;
    flex-grow: 1;
    max-width: 300px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #ffffff;
    min-height: 140px;
    user-select: none;
    text-decoration: none !important;
}

.home-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
    border-color: #007bff;
}

.home-card:active {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.10);
}

/* wide data tiles (signing debt, re-consent burndown): left-aligned, full row */
.home-card.wide {
    text-align: left;
    align-items: stretch;
    flex-basis: 100%;
    max-width: 720px;
    min-height: 0;
}

.home-card.wide .card-icon {
    margin-bottom: 4px;
}

.card-icon {
    font-size: 36px;
    color: #007bff;
    margin-bottom: 12px;
}

.card-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.card-description {
    margin: 0;
    font-size: 12px;
    color: #666;
    flex-grow: 1;
}

/* Explicit high-contrast white text ONLY for colored hero gradient tiles */
.home-card.hero-tile .card-title,
.home-card.hero-tile h4 {
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.home-card.hero-tile .card-description,
.home-card.hero-tile p {
    color: #f1f5f9 !important;
    font-weight: 500 !important;
}

/* All normal white cards retain dark high-contrast text */
.home-card.ee-card:not(.hero-tile) .card-title,
.home-card.ee-card:not(.hero-tile) h4 {
    color: #1e293b !important;
}

.home-card.ee-card:not(.hero-tile) .card-description,
.home-card.ee-card:not(.hero-tile) p {
    color: #475569 !important;
}

.category-header {
    width: 100%;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    margin-top: 24px;
    padding-bottom: 4px;
    border-bottom: 2px solid #e0e0e0;
}

.category-header:first-of-type {
    margin-top: 0;
}

/* ============================================================
   ADR-2080 — EE-addition markers (carter-mirror only).
   Amber family deliberately matches the MIRROR banner (#d97706/#b45309)
   so the visual language reads "EE addition, not stock MGM".
   ============================================================ */

/* Small header chip shown on every EE-only page */
.ee-chip {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 3px 9px;
    border-radius: 10px;
    background: #fef3c7;
    border: 1px solid #d97706;
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    vertical-align: middle;
    white-space: nowrap;
    user-select: none;
}

/* EE-only tile marker: amber left accent + faint amber wash + corner EE badge */
.ee-card:not(.hero-tile) {
    position: relative;
    border-left: 4px solid #d97706 !important;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 65%) !important;
}

.ee-card.hero-tile {
    position: relative;
}

.ee-card::after {
    content: "EE";
    position: absolute;
    top: 6px;
    right: 8px;
    background: #fef3c7;
    border: 1px solid #d97706;
    color: #92400e;
    border-radius: 8px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* ── EE TABLE STANDARD (2026-08-03) — EeTable.razor skin. Light theme, EOC design
   language, big tap targets, sticky header, pure-CSS (the component ships zero JS). ── */
.eet-wrap { position: relative; width: 100%; }
.eet-scroll { overflow: auto; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.eet-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.eet-th {
    /* z 55 > .eet-overlay (50): the popover lives inside the sticky th's stacking
       context, so the header layer must sit above the click-outside sheet or the
       sheet swallows every popover click (found by probe_eetable.js, 2026-08-03). */
    position: sticky; top: 0; z-index: 55;
    background: #f7fafc; border-bottom: 2px solid #e2e8f0;
    padding: 0; text-align: left; vertical-align: top;
}
.eet-th-actions { padding: 10px 12px; font-size: 13px; color: #4a5568; }
.eet-thbtn {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    width: 100%; min-height: 44px; padding: 10px 12px;
    background: none; border: none; cursor: pointer;
    font-size: 13px; font-weight: 700; color: #2d3748; text-align: left;
}
.eet-thbtn:hover { background: #edf2f7; }
.eet-thbtn.eet-filtered { color: #2b6cb0; }
.eet-title { flex: 1; }
.eet-icons { display: inline-flex; gap: 4px; align-items: center; }
.eet-sort-ind { color: #2b6cb0; font-size: 12px; }
.eet-funnel { color: #a0aec0; font-size: 12px; }
.eet-thbtn.eet-filtered .eet-funnel { color: #2b6cb0; }
.eet-pop {
    position: absolute; z-index: 60; left: 4px; top: 100%;
    min-width: 220px; max-width: 90vw;
    background: #fff; border: 1px solid #cbd5e0; border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 10px;
    font-weight: 400;
}
.eet-pop-row { display: flex; gap: 8px; margin: 4px 0; align-items: center; }
.eet-btn {
    min-height: 40px; padding: 8px 14px; border: 1px solid #cbd5e0; border-radius: 8px;
    background: #fff; color: #2d3748; font-size: 13.5px; cursor: pointer;
}
.eet-btn:hover { background: #edf2f7; }
.eet-btn.eet-on { background: #ebf5ff; border-color: #2b6cb0; color: #2b6cb0; font-weight: 700; }
.eet-btn.eet-clear { color: #c53030; border-color: #fc8181; }
.eet-input, .eet-select {
    width: 100%; min-height: 40px; padding: 8px 10px; font-size: 14px;
    border: 1px solid #cbd5e0; border-radius: 8px; background: #fff; color: #2d3748;
}
.eet-dates input { flex: 1; }
.eet-overlay { position: fixed; inset: 0; z-index: 4; background: transparent; }
.eet-tr { border-bottom: 1px solid #edf2f7; }
.eet-tr:hover { background: #f7fafc; }
.eet-td { padding: 10px 12px; border-bottom: 1px solid #edf2f7; vertical-align: top; }
.eet-actions { white-space: nowrap; }
.eet-empty { text-align: center; color: #718096; padding: 24px; }
.eet-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 8px 4px 0; color: #718096; font-size: 12.5px; flex-wrap: wrap;
}
@media (max-width: 720px) {
    .eet-pop { position: fixed; left: 5vw; right: 5vw; top: 15vh; min-width: 0; max-width: 90vw; }
    .eet-table { font-size: 13px; }
}


/* EE page-shell layout tables — NOT data tables
   Global `table { overflow: hidden }` clips full-viewport sidebar shells
   (Telehealth etc.) and can trap operators with no visible Back/Home. */
table.ee-page-shell,
table.ee-page-shell > tbody > tr > td,
.ee-page-shell {
    overflow: visible !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}
.ee-back-header {
    position: sticky;
    top: 0;
    z-index: 9999;
}
