/* ============================================
   Sorted Column Styles (inbox/submitted lists)
   ============================================ */
.sortedColumnStyle {
    float: left;
    width: 10px;
    height: 10px;
    margin-top: 3px;
    background-repeat: no-repeat;
}

.sortedColumnStyle.desc {
    background-image: url(../images/arrowDown60.png);
}

.sortedColumnStyle.asc {
    background-image: url(../images/arrowUp60.png);
}

/* ============================================
   List Display Styles
   ============================================ */
.txtCenter {
    text-align: center;
}

.priority {
    color: var(--color-state-warning);
    font-weight: 900;
}

/* ============================================
   Error Pages
   ============================================ */
.errorSection {
    margin-top: 10px;
    margin-left: 10px;
    color: var(--color-state-error);
    width: 800px;
}

.errorTitle {
    font-size: 20px;
    font-weight: bold;
}

.errorDetails {
    font-size: 14px;
}

/* ============================================
   Links (login, forget password)
   ============================================ */
a:hover {
    text-decoration: underline;
}

/* ============================================
   Login Form
   ============================================ */
.login-row {
    height: calc(100vh);
}

#loginFormWrapper {
    background-color: var(--color-brand-secondary);
}

.login-header {
    padding: 2rem;
}

.login-header img {
    max-width: 200px;
    height: auto;
}

.login-footer {
    padding: 2rem;
    text-align: center;
}

.login-footer p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--color-black-2);
}

.floating-label-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-label-group input {
    padding: 1rem 0.75rem 0.5rem 0.75rem;
}

.floating-label-group label {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-brand-secondary);
    padding: 0 0.25rem;
    transition: all 0.2s ease;
    pointer-events: none;
    color: var(--color-gray-1) !important;
}

.floating-label-group input:focus + label,
.floating-label-group input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.75rem;
    color: var(--color-gray-1) !important;
    background-color: var(--color-white);
}

.floating-label-group input:focus {
    border-color: var(--color-state-info);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(28, 101, 218, 0.25);
}

.login-background {
    background: url('../images/login-bg_v2.png') center center no-repeat;
    background-size: cover;
    padding: 0 !important;
}

/* ============================================
   Message Table Links
   ============================================ */
.alink {
    cursor: pointer;
    color: var(--color-state-info);
}

.alink:hover {
    text-decoration: underline;
}

/* ============================================
   Message View Dialog
   ============================================ */
#messageViewDialog {
    font-size: 0.8em;
}

#messageViewDialog #messageViewLabel {
    color: var(--color-state-warning);
}

#messageViewDialog label {
    font-weight: bold;
}

/* ============================================
   Record Activity Dialog
   ============================================ */
.tabTitle {
    font-weight: bold;
    color: var(--color-gray-2);
    border-bottom: 3px solid var(--color-gray-5);
	padding: 5px;

}

.tabTitle.active {
    color: var(--color-black-1);
    border-bottom: 3px solid var(--color-brand-primary);
}

.tab-content {
    padding-top: 30px;
}

/* ============================================
   Patient Wizard / Search Forms
   ============================================ */

.search-fields-area {
    box-sizing: border-box;
    font-size: 0.8em;
    padding:  50px 20px 20px 20px;
    max-width: 100%;
    overflow-x: hidden;
}

/* Override for testUserFinder which needs larger width */
#testUserFinder .search-fields-area {
    max-width: 1000px;
    font-size: 1.0em;
}

.requiredField {
    font-size: 1.0em;
    color: var(--color-state-error);
}

.errMsg {
    font-size: 1.1em;
    font-weight: 550;
    color: var(--color-state-error);
}

.was-validated .form-control:valid {
    border-color: var(--color-gray-4);
    padding-right: .75rem;
    background: none;
}

/* ============================================
   Common Button Overrides (overrides Bootstrap)
   ============================================ */
.btn {
	padding: 1em 5em;
	font-size: 0.9375rem;
	font-weight: 500;
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.2s ease;
	min-width: 100px;
}

.btn-primary {
	background-color: var(--color-state-info);
	color: var(--color-white);
}

.btn-primary:hover {
	background-color: var(--color-button-primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(31, 112, 242, 0.3);
}

.btn-primary:disabled {
	background-color: var(--color-gray-4);
	color: var(--color-white);
	cursor: not-allowed;
	box-shadow: none;
}

.btn-secondary {
	background-color: var(--color-black-2);
	color: var(--color-white);
	border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
	background-color: var(--color-button-secondary-hover);
    transform: translateY(-1px);
	box-shadow: 0 4px 12px var(--color-gray-4);
}

.btn-secondary:disabled {
	background-color: var(--color-gray-4);
	color: var(--color-white);
	cursor: not-allowed;
	box-shadow: none;
}

/* ============================================
   Dropdown Options Styling
   ============================================ */
select option {
	color: var(--color-black-2);
	background-color: var(--color-white);
}

/* ============================================
   Referral View Menu Container
   ============================================ */
#referralViewMenuContainer {
	background: var(--color-white);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	margin-bottom: 20px;
	padding: 0;
	overflow: hidden;
	flex-shrink: 0;
}

#referralViewMenu {
	margin: 0;
	padding: 0;
}

#referralViewMenu .nav-item {
	margin: 0;
}

#referralViewMenu .nav-link {
	color: var(--color-gray-1);
	padding: 16px 24px;
	font-weight: 500;
	font-size: 0.9rem;
	border: 1px solid var(--color-gray-2);
	transition: all 0.2s ease;
	text-align: center;
	border-radius: 0;
}

#referralViewMenu .nav-item:last-child .nav-link {
	border-right: none;
}

#referralViewMenu .nav-item:first-child .nav-link {
	border-left: none;
}

#referralViewMenu .nav-link:hover {
	background-color: var(--color-link-hover);
	color: var(--color-state-info);
	transform: translateY(-1px);
}

#referralViewMenu .nav-link.active {
	background-color: var(--color-state-info);
	color: var(--color-white);
	font-weight: 600;
}

.backToListIcon {
	display: inline-block;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	mask-image: url(../images/chevrons-left_v2.svg);
	-webkit-mask-image: url(../images/chevrons-left_v2.svg);
	mask-repeat: no-repeat;
	-webkit-mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-position: center;
	mask-size: contain;
	-webkit-mask-size: contain;
	margin-right: 6px;
	vertical-align: text-bottom;
	position: relative;
	top: 2px;
}

/* ============================================
   Table Styling
   ============================================ */
.table-responsive.dataList {
	background-color: var(--color-white);
	border-radius: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	overflow-x: auto;
	overflow-y: visible;
	margin-bottom: 1.5rem;
    padding: 50px 20px 20px 20px;
	max-width: 100%;
	box-sizing: border-box;
	width: 100%;
}

.table-responsive.dataList table {
	margin-bottom: 0;
	font-size: 0.875rem;
	color: var(--color-black-2);
	width: 100%;
	table-layout: auto;
}

.table-responsive.dataList thead th {
	background-color: var(--color-white);
	color: var(--color-black-1);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 1rem;
	letter-spacing: 0.5px;
	padding: 1rem;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
	white-space: nowrap;
}

.table-responsive.dataList thead th:last-child {
	cursor: default;
}

.table-responsive.dataList thead th:hover {
	background-color: var(--color-gray-4);
}

.table-responsive.dataList thead th:last-child:hover {
	background-color: var(--color-white);
}

.table-responsive.dataList tbody td {
	padding: 0.875rem 1rem;
	border-top: 1px solid #e2e8f0;
	border-bottom: none;
	vertical-align: middle;
	word-wrap: break-word;
	max-width: 200px;
}

.table-responsive.dataList tbody tr {
	transition: background-color 0.15s ease;
}

.table-responsive.dataList tbody tr:hover {
	background-color: var(--color-gray-4);
}

/* Inbox Row Status Classes */
.table-responsive.dataList .inbox-row-urgent-unread {
	color: var(--color-state-error);
	font-weight: 600;
}

.table-responsive.dataList .inbox-row-urgent-unread:hover {
	background-color: var(--color-gray-4);
}

.table-responsive.dataList .inbox-row-urgent {
	color: var(--color-state-error);
}

.table-responsive.dataList .inbox-row-urgent:hover {
	background-color: var(--color-gray-4);
}

.table-responsive.dataList .inbox-row-unread {
	font-weight: 600;
}

.table-responsive.dataList .inbox-row-read {
	color: var(--color-black-2);
}

/* Table Links */
.table-responsive.dataList tbody a {
	color: var(--color-state-info);
	text-decoration: none;
	transition: color 0.2s ease;
}

.table-responsive.dataList tbody a:hover {
	color: var(--color-gray-2);
	text-decoration: underline;
}

/* Table Action Button Links */
.table-responsive.dataList tbody td .table-button-link {
	display: inline-block;
	padding: 6px 12px;
	margin: 2px;
	font-size: 0.85rem;
	color: var(--color-white);
	background-color: var(--color-state-info);
	border: 1px solid var(--color-gray-4);
	transition: all 0.2s ease;
	text-decoration: none;
	font-weight: 500;
	min-width: 130px;
	text-align: center;
	white-space: nowrap;
}

.submitted-row {
	color: var(--color-black-2);
}

.submitted-row:hover {
    color: var(--color-gray-2);
}

/* ============================================
   Patient Wizard Styles
   ============================================ */
#patientFormDiv {
	max-width: 100%;
	overflow-x: hidden;
}

#patientWizardForm {
	background: var(--color-white);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	padding: 50px 20px 20px 20px;
	margin-bottom: 20px;
	max-width: 100%;
	box-sizing: border-box;
}

#patientWizardForm .subHeader {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--color-black-1);
	margin-top: 24px;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--color-gray-4);
	display: block;
	width: 100%;
}

.button-group {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--color-gray-4);
	max-width: 100%;
	flex-wrap: wrap;
}

.invalid-feedback {
	color: var(--color-state-error);
	font-size: 0.8125rem;
	margin-top: 4px;
}

@media (max-width: 768px) {
	#patientWizardForm .button-group {
		flex-direction: column;
	}
	
	#patientWizardForm .button-group .btn {
		width: 100%;
	}
}
/*-------------------------------------------------------
	Modal Dialog Forms Styling
--------------------------------------------------------*/
.form-group label {
	font-size: 1rem;
	font-weight: 400;
	color: var(--color-black-2);
	margin-bottom: 6px;
}

.form-control {
	padding: 10px 12px;
	border: 1px solid var(--color-gray-4);
	border-radius: 0;
	font-size: 0.9375rem;
	transition: all 0.2s ease;
	background-color: var(--color-brand-secondary);
	max-width: 100%;
	box-sizing: border-box;
	height: auto;
}

.form-control:focus {
	outline: none;
	border-color: var(--color-brand-primary);
	box-shadow: 0 0 0 3px rgba(31, 112, 242, 0.1);
}

.form-control::placeholder {
	color: var(--color-gray-1);
	font-size: 0.875rem;
}

select.form-control {
	color: var(--color-gray-1);
	padding: 10px 12px;
	border: 1px solid var(--color-gray-4);
	border-radius: 0;
	font-size: 0.9375rem;
	transition: all 0.2s ease;
	background-color: var(--color-brand-secondary);
	cursor: pointer;
	height: auto;
}

select.form-control:focus {
	outline: none;
	border-color: var(--color-brand-primary);
	box-shadow: 0 0 0 3px rgba(31, 112, 242, 0.1);
	color: var(--color-gray-1);
}

#updatePassResult {
	text-align: center;
	margin-bottom: 15px;
	font-weight: 500;
}

#updatePassResult.password-success {
	color: var(--color-state-success);
}

#updatePassResult.password-error {
	color: var(--color-state-error);
}

#forgetPassRequestResult{
	margin-bottom: 2rem;
}