body {
	font-family: "DM Sans", sans-serif;
	margin: 20px;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    font-size: 14px;
    color: #777777;
    border-top: 1px solid #dce3ec;
}

.main-container {
	background: white;
	max-width: 1500px;
	margin: 0 auto;
	padding: 0 40px 40px 40px;
}

.header {
	max-width: 1200px;
	margin: 0 auto 20px;
	position: relative;
}

.logo-title-container {
	display: inline-block;
	text-align: left;
}

.logo img {
	height: 70px;
	margin-bottom: 10px;
}

h1 {
	font-size: 32px;
	font-weight: bold;
	color: #333;
	margin: 0;
}

.content-container {
	margin: 0 auto;
	margin-bottom: 40px;
}

label {
	font-weight: bold;
	display: block;
	margin-top: 10px;
}

.sub-label {
	margin: 0;
}

input, select, textarea {
	margin: 0.625rem 0;
	padding: 0.625rem;
	width: 100%;
	max-width: 450px;
	border: 1px solid #ccc;
	border-radius: 14px;
	box-sizing: border-box;
}

.image-preview {
	display: none;
	max-width: 200px;
	max-height: 100px;
	border-radius: 8px;
}

.image-preview.visible {
	display: block;
}

.image-upload-container {
	margin: 10px 0;
}

.upload-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 150px;
	height: 120px;
	border: 2px dashed #ccc;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
}

.upload-box:hover {
	border-color: #999;
	background-color: #f9f9f9;
}

.upload-box.hidden {
	display: none;
}

.upload-icon {
	font-size: 48px;
	color: #666;
	margin-bottom: 8px;
}

.upload-text {
	font-size: 14px;
	color: #333;
	margin: 0;
}

.upload-hint {
	font-size: 11px;
	color: #999;
	margin: 4px 0 0 0;
}

.image-preview-wrapper {
	display: none;
	position: relative;
}

.image-preview-wrapper.visible {
	display: inline-block;
}

.image-remove-button {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: #666;
	color: white;
	border: none;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 0;
	margin: 0;
	transition: background-color 0.2s;
}

.image-remove-button:hover {
	background-color: #333;
}

.payer-mapping-headers {
	display: flex;
	gap: 15px;
	margin: 15px 0 10px 0;
	font-weight: bold;
}

.payer-mapping-header {
	flex: 1;
}

.payer-mapping-row {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
	align-items: flex-start;
}

.payer-mapping-row select {
	flex: 1;
}

.payer-mapping-row input[type="text"] {
	flex: 1;
}

.payer-mapping-row textarea {
	flex: 1;
	resize: vertical;
}

.packet-section-header {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

.container {
	display: flex;
	justify-content: space-between;
	border-radius: 10px;
}

.box th, .box td {
	padding: 0 12px;
}

.button-container {
	text-align: center;
}

.weightNormal {
	font-weight: normal;
}

.section-subtitle {
	font-size: 18px;
	color: #666;
	margin-bottom: 14px;
}

button {
	background-color: #080099;
	color: #fff;
	cursor: pointer;
	padding: 10px 20px;
	transition: background-color 0.3s ease;
	border: none;
	margin-right: 10px;
	border-radius: 5px;
}

button:disabled {
	background-color: #cccccc;
	color: #666666;
	cursor: not-allowed;
	opacity: 0.6;
}

button.pro-button:hover {
	background-color: #080099;
}

button.pro-button {
	background-color: #cccccc;
}

button#add-denial {
	height: 40px;
	margin-top: auto;
	margin-bottom: 14px;
}

.link {
	cursor: pointer;
	color: blue;
	text-decoration: underline;
}

.box {
	width: 48%;
	border: 1px solid #ccc;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	background-color: #fff;
	transition: transform 0.2s ease;
}

.box-header {
	background-color: #EDF4FC;
	padding: 20px 25px;
}

.box-header h2 {
	font-size: 18px;
	color: #333;
	margin: 0;
}

.box-header-note {
	font-size: 18px;
	font-weight: bold;
	color: #333;
	margin: 0;
}

.box-content {
	padding: 25px;
	background-color: #fff;
}

.box-wide {
	width: 100%;
}

.box-wide .box-header {
	display: flex;
	align-items: center;
}

.box-wide .account-search-box {
	flex-grow: 1;
	text-align: center;
}

.box-wide .account-search-box input{
	text-align: center;
}

.box-wide .box-header {
	padding: 5px 25px;
}

.box-wide td {
	font-size: 12px;
}

.title-button-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

table {
	width: 100%;
	border-spacing: 0;
	border-collapse: collapse;
}

th, td {
	padding: 12px;
	text-align: left;
	width: auto;
}

th {
	background-color: #EDF4FC;
	font-weight: bold;
	font-size: 18px;
	border-bottom: 1px solid #ddd;
}

td {
	color: #000000;
	font-size: 14px;
	padding: 5px 5px 5px 10px;
}

.fix-height-table {
	height: 8.25rem;
	overflow-y: auto;
}

#data-table {
	table-layout: fixed;
	width: 100%;
}

#data-table {
	table-layout: fixed;
	width: 100%;
}

#data-table th,
#data-table td {
	padding: 0.5rem 0.75rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#data-table th {
	font-size: 0.875rem;
	background-color: white;
	border-bottom: none;
}

#data-table th input {
	margin: 0;
}

#data-table tbody tr {
	cursor: pointer;
}

.highlighted {
	background-color: #F7FAFF;
	font-weight: bold;
	box-shadow: 0 0 10px #AFC6EB ;
	border-left: 5px solid #6B85D3;
}

.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
	background-color: #fff;
	margin: 5% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 25%;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#add-denial-modal .modal-content {
	width: 40%;
	max-height: 85vh;
	overflow-y: auto;
}

#add-denial-modal .form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

#add-denial-modal .form-grid .form-group {
	margin-bottom: 0;
}

#add-denial-modal .form-grid .form-actions {
	margin-top: 0;
	align-items: flex-end;
}

#add-denial-modal .form-full-width {
	grid-column: span 2;
}

.modal-big {
	width: 50%;
	max-height: 80vh;
	overflow-y: scroll;
}

.close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
}

.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

.section1-header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.output {
	position: relative;
}

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

.loading-overlay img {
	display: flex;
	margin: 20% auto 1% auto;
}

.loading-overlay h4, .loading-overlay h5 {
	text-align: center;
}

.loading-table {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 80px;
}

.payerServiceCell {
	padding: 0 12px;
}

#auditHeaderRow {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	margin-bottom: 20px;
}

.auditHeaderLabel {
	font-size: 18px;
	color: #666;
	margin-bottom: 30px;
}

.auditHeaderValue {
	font-size: 18px;
	color: #666;
	margin-bottom: 30px;
	font-weight: bold;
}

.table-container {
	width: 100%;
	border: 1px solid #ccc;
	border-radius: 10px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	background-color: #fff;
	margin-top: 0px;
	margin-bottom: 40px;
}

#statusIndicatorsTable th:first-child, #statusIndicatorsTable td:first-child {
	text-align: left;
	vertical-align: middle;
	width: 250px;
}

#statusIndicatorsTable tbody tr {
	border-bottom: 1px solid #ddd;
}

#statusIndicatorsTable tbody tr:nth-child(odd) {
	background-color: #edf2f7;
}

.auditResultCell {
	font-size: 14px;
	font-weight: normal;
}

.auditResultCell p {
	margin-top: 0;
	margin-bottom: 5px
}

.auditDetailCell {
    font-size: 14px;
    font-weight: normal;
    text-align: center;
}

.auditDetailCell p {
	margin-top: 10px;
	margin-bottom: 10px
}

.auditDetailCell .evaluation {
	margin-top: 2em;
	text-align: left;
}

.auditDetailCell .description {
	font-size: 12px;
}

#audit-details h4 {
	text-align: center;
	text-decoration: underline;
}

#policy-source {
	margin-bottom: 0;
}

#policy-criteria p{
	margin-top: 0;
}

.boldText {
	font-weight: bold;
}

.detailCellTitle {
	border-radius: 5px;
	font-weight: bold;
}

#writerHeaderRow {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	margin-bottom: 20px;
}

#writer-output-container {
	width: 100%;
	margin: 0 auto;
	position: relative;
}

.scrollable-content {
	width: 100%;
	height: 500px;
	padding: 15px;
	font-size: 16px;
	font-family: Arial, sans-serif;
	line-height: 1.6;
	border: 1px solid #ccc;
	border-radius: 0 0 8px 8px;
	resize: none;
	background-color: #fff;
	color: #333;
	overflow-y: auto;
	box-sizing: border-box;
}

.writerOutputButtonGroup {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	flex-direction: row;
}

.writerOutputButton {
	width: 36px;
	height: 36px;
	margin-right: 2px;
	padding-left: 12px;
}

#clinical-justification-footer-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#clinical-justification-footer-container a {
	font-size: 14px;
}

#writer-word-count {
	font-family: Arial, sans-serif;
	font-style: italic;
	font-size: 14px;
}

input[type="file"] {
	padding: 0;
}

.run-audit-button, .write-justification-button {
	padding: 12px 25px;
	transition: background-color 0.3s ease;
}

.run-audit-button:disabled, .write-justification-button:disabled {
	background-color: #cccccc;
	color: #666666;
	cursor: not-allowed;
	opacity: 0.6;
}

.run-audit-button:not(:disabled):hover {
	background-color: #080099;
}

.fetch-button {
	background-color: #cccccc;
}

.button-container {
	text-align: center;
}

.button-container p {
	font-size: 12px;
	color: #666;
	margin-top: 10px;
}

.file-name-display {
	font-size: 14px;
	width: 80%
}

.update-CCD-div {
	width: 15%;
}

.modal-table tbody tr:nth-child(even) {
	background-color: #edf2f7;
}

.wide-table th:first-child, .wide-table td:first-child {
	vertical-align: middle;
	width: 40px;
}

.wide-table tbody tr:nth-child(even) {
	background-color: #edf2f7;
}

.ql-toolbar {
	background-color: #EDF4FC;
	border-radius: 10px 10px 0 0;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

input[type="checkbox"] {
	width: 20px;
	height: 20px;
}

.criteria-footnote {
    font-size: 0.8em;
    color: #353535;
    font-style: italic;
    margin-top: 4px;
    padding-left: 4px;
}

.audit-result-icon {
	width: 20px;
	margin-right: 15px;
}

.audit-summary {
	font-size: 16px;
}

.status-green {
	background-color: #59A352;
	color: #fff;
	padding: 5px;
	border-radius: 5px;
}

.status-red {
	background-color: #dc3545;
	color: #fff;
	padding: 5px;
	border-radius: 5px;
}

.status-yellow {
	background-color: #F2F228;
	color: #000;
	padding: 5px;
	border-radius: 5px;
}

.status-plain {
	color: #000;
	padding: 5px;
	border-radius: 5px;
}

#writer-output-container {
	width: 100%;
	position: relative;
}

#quill-copy-button {
	position: absolute;
	top: 3px;
	right: 0;
}

.footer-right-section {
	display: flex;
	align-items: center;
	gap: 16px;
}

#view-packet-button {
	margin-right: 0;
}

.scrollable-text-div {
	width: 100%;
	height: 500px;
	padding: 15px;
	font-size: 16px;
	font-family: Arial, sans-serif;
	line-height: 1.6;
	border: 1px solid #ccc;
	border-radius: 8px;
	resize: none;
	background-color: #f9f9f9;
	color: #333;
	overflow-y: auto;
	box-sizing: border-box;
}

.text-content-buttons {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	flex-direction: row;
}

.text-content-button {
	width: 36px;
	height: 36px;
	margin-right: 2px;
	padding-left: 12px;
}

.section1-header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.risk-of-denial-status {
	height: 70px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	background-color: #fff;
	border-radius: 10px;
	padding-right: 10px;
	padding-left: 10px;
	margin-top: 10px;
	min-width: 273px;
}

.save-button, .search-button {
	padding: 12px 20px;
	display: block;
	transition: background-color 0.3s ease;
}

#riskOfDenialTab {
	height: 60px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	background-color: #fff;
	border-radius: 10px;
	padding-right: 10px;
	padding-left: 10px;
	margin-top: 10px;
	min-width: 273px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

#riskOfDenialLabel h2 {
	margin-top: 0;
	margin-bottom: 0;
}

.riskOfDenial-green {
	background-color: #59A352;
	color: #fff;
	padding: 5px;
	border-radius: 5px;
	font-size: 18px;
	margin-left: 15px;
}

.riskOfDenial-red {
	background-color: #dc3545;
	color: #fff;
	padding: 5px;
	border-radius: 5px;
	font-size: 18px;
	margin-left: 15px;
}

.riskOfDenial-yellow {
	background-color: #F2F228;
	color: #000;
	padding: 5px;
	border-radius: 5px;
	font-size: 18px;
	margin-left: 15px;
}

#fileInputContainer {
	text-align: center;
}

#fileInputContainer p {
	font-size: 12px;
	color: #666;
	margin-top: 10px;
}

button.notImplemented {
	margin-right: 10px;
	transition: background-color 0.3s ease;
	background-color: #cccccc;
}

#selectedFileText {
	font-size: 14px;
	width: 80%
}

#changeFileOptionsContainer {
	width: 15%;
}

#pastedTextInput {
	display: block;
	width: 100%;
	height: 200px;
}

.fileInputModal {
	background-color: #fff;
	margin: 15% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 25%;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

input[type="file"] {
	padding: 0;
}

#payerServiceBoxHeader {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

#payerServiceBoxHeaderNote {
	display: none;
}

table#statRecTable td.statRecTable_col1 {
	width: 340px;
}

table#statRecTable td.statRecTable_col2 {
	padding-left: 20px;
}

.noPadding {
	padding: 0px;
	margin: 0px;
}

.account-details {
	display: flex;
	flex-direction: row;
	background-color: #EDF4FC;
	padding: 1rem;
	gap: 1rem;
}

.account-details-left {
	width: 20%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.account-details-middle {
	width: 60%;
	display: flex;
	align-items: center;
	justify-content: space-evenly;
}

.account-details-right {
	width: 20%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.account-header {
	display: flex;
	flex-direction: column;
}

.account-header-name {
	font-size: clamp(1rem, 1.5vw, 1.5rem);
	font-weight: bold;
	margin: 0;
}

.account-header-id {
	font-size: clamp(0.75rem, 1vw, 1rem);
	color: #6b7280;
	margin: 0;
}

.two-column-layout {
	display: flex;
	gap: 1.5rem;
}

.sidebar {
	width: 20%;
	flex-shrink: 0;
}

.main-content {
	width: 80%;
	padding-top: 1.5625rem;
}

.sidebar-section {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.sidebar-block {
	background: #fff;
	border-radius: 8px;
	padding: 0 0 16px 0;
	box-shadow: none;
}

.sidebar-title {
	font-weight: bold;
	font-size: 1.1em;
	margin-bottom: 12px;
}

.sidebar-card {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	border: 2px solid #4fd18b;
	border-radius: 10px;
	background: #f6fff8;
	margin-bottom: 12px;
	min-height: 48px;
	gap: 16px;
}

.sidebar-card-toggle {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.sidebar-card-title {
	flex: 1 1 0;
	font-size: 15px;
	color: #222;
	word-break: break-word;
	display: block;
}

.criteria-content-viewer {
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 15px;
	max-height: 400px;
	overflow-y: auto;
	white-space: pre-wrap;
	word-wrap: break-word;
	font-family: monospace;
	font-size: 13px;
	line-height: 1.5;
}

.sidebar-card.required {
	border-color: #4ecb8f;
}

.sidebar-card.recommended.active {
	border-color: #4ecb8f;
}

.sidebar-card.recommended.inactive {
	border-color: #cccccc;
}

.sidebar-switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 24px;
	margin-top: 0;
	vertical-align: middle;
	flex-shrink: 0;
}

.sidebar-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.sidebar-switch .slider {
	position: absolute;
	cursor: pointer;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	background-color: #fff;
	border: 2px solid #888;
	border-radius: 24px;
	transition: background 0.2s, border 0.2s;
}

.sidebar-switch .slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 3px;
	bottom: 2.5px;
	background-color: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	transition: transform 0.2s;
	border: 1.5px solid #888;
}

.sidebar-switch input:checked + .slider {
	background-color: #4ecb8f;
	border-color: #4ecb8f;
}

.sidebar-switch input:checked + .slider:before {
	transform: translateX(14px);
	background: #fff;
	border-color: #4ecb8f;
}

.sidebar-add-btn {
	width: 100%;
	background: #fff;
	border: 1.5px solid #d1d5db;
	border-radius: 6px;
	padding: 6px 0;
	font-size: 1em;
	color: #444;
	cursor: pointer;
	margin-top: 8px;
	transition: border 0.2s;
}

.sidebar-add-btn:hover {
	border-color: #4ecb8f;
}

.sidebar-card.inactive {
	background: #f3f4f6;
	border-color: #d1d5db;
}

.sidebar-card-error-container {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.sidebar-card-error-title {
	color: #222;
	font-size: 15px;
	margin-bottom: 4px;
}

.sidebar-card-error-message {
	color: #d32f2f;
	font-size: 13px;
}

.sidebar-card[data-has-error="true"].active .sidebar-card-error-message {
	display: none;
}

#add-record-container,
#add-criteria-container {
	position: relative;
	margin-top: 12px;
}

.add-record-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	z-index: 1000;
	margin-top: 4px;
}

.dropdown-item {
	display: block;
	width: 100%;
	padding: 10px 12px;
	background: none;
	border: none;
	text-align: left;
	cursor: pointer;
	font-size: 14px;
	color: #333;
}

.dropdown-item:hover:not(:disabled) {
	background-color: #f5f5f5;
}

.dropdown-item:disabled {
	color: #999;
	cursor: not-allowed;
}

#patient-record-cards-container {
	margin-bottom: 12px;
}

.character-count-container {
	margin-top: 8px;
	font-size: 12px;
	color: #666;
}

.character-count-warning {
	color: #ff9800;
}

.character-count-error {
	color: #ff6b6b;
	font-weight: 500;
}

.modal-big textarea {
	width: 100%;
	min-height: 300px;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: inherit;
	font-size: 14px;
	resize: vertical;
	box-sizing: border-box;
}

.sidebar-card-remove {
	background: none;
	border: none;
	cursor: pointer;
	margin-left: auto;
	padding: 4px 8px;
	color: #666;
	opacity: 0.6;
	transition: opacity 0.2s;
}

.sidebar-card-remove:hover {
	opacity: 1;
}


/* Summary Section Styling */
.summary-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4ecb8f;
}

.summary-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.day-summary, .theme-summary {
    margin: 15px 0;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.day-summary h4, .theme-summary h4 {
    margin: 0 0 8px 0;
    color: #495057;
    font-size: 1em;
    font-weight: 600;
}

.day-summary p, .theme-summary p {
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
    font-size: 0.9em;
}

.day-summary:first-child, .theme-summary:first-child {
    margin-top: 0;
}

.day-summary:last-child, .theme-summary:last-child {
    margin-bottom: 0;
}

.appeal-strength-container {
    margin-bottom: 15px;
    display: none;
}

.appeal-strength-text {
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:disabled,
.form-group select:disabled {
    background-color: #d3d3d3;
    color: #555;
    cursor: not-allowed;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.validation-message {
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

.warning-message {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin: 15px 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.form-actions button[type="button"] {
    background-color: #6c757d;
    color: white;
}

.form-actions button[type="submit"],
.form-actions .button-primary,
.form-actions button[type="button"].button-primary {
    background-color: #080099;
    color: white;
}

.form-actions button:hover {
    opacity: 0.9;
}

.form-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.validation-message.success {
    color: green;
}

.validation-message.error {
    color: red;
}

.service-code-wrapper {
    position: relative;
    display: inline-block;
}

.service-code-input {
    width: 120px;
    padding-right: 35px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.service-code-edit-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
}

.account-details label {
    font-size: 18px;
    margin-bottom: 0px;
}

.account-details input,
.account-details select {
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.outputs-outdated {
    opacity: 0.3;
    pointer-events: none;
    position: relative;
}

.outputs-outdated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.ai-icon-button {
	position: relative;
	margin: 0.625rem 0;
	padding: 0.625rem 1rem 0.625rem 2.5rem;
}

.ai-icon-button::before {
	content: '';
	position: absolute;
	left: 0.9375rem;
	top: 50%;
	transform: translateY(-50%);
	width: 0.8125rem;
	height: 0.9375rem;
	background-image: url('data:image/svg+xml;utf8,<svg width="13" height="15" viewBox="0 0 13 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 5.33333L11.2292 3.5L12.8333 2.66667L11.2292 1.83333L10.5 0L9.77083 1.83333L8.16667 2.66667L9.77083 3.5L10.5 5.33333ZM6.125 5.66667L4.66667 2L3.20833 5.66667L0 7.33333L3.20833 9L4.66667 12.6667L6.125 9L9.33333 7.33333L6.125 5.66667ZM10.5 9.33333L9.77083 11.1667L8.16667 12L9.77083 12.8333L10.5 14.6667L11.2292 12.8333L12.8333 12L11.2292 11.1667L10.5 9.33333Z" fill="white"/></svg>');
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.match-policy-error {
	background-color: #ffebee;
	color: #c62828;
	padding: 0.625rem 1rem;
	border-radius: 0.375rem;
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	text-align: center;
}

.match-policy-error .error-icon {
	margin-right: 0.25rem;
}

.match-policy-success {
	background-color: #e8f5e9;
	color: #2e7d32;
	padding: 0.625rem 1rem;
	border-radius: 0.375rem;
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	text-align: center;
}

.audit-section-wrapper {
	position: relative;
}

.undo-changes-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
	background-color: #080099;
	color: #fff;
	border: none;
	padding: 0.625rem 1.25rem 0.625rem 2.25rem;
	border-radius: 0.3125rem;
	cursor: pointer;
	font-size: 0.875rem;
}

.undo-changes-button::before {
	content: '';
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1rem;
	height: 1rem;
	background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 10H15C16.654 10 18 11.346 18 13C18 14.654 16.654 16 15 16H12V18H15C17.757 18 20 15.757 20 13C20 10.243 17.757 8 15 8H9V5L4 9L9 13V10Z" fill="white"/></svg>');
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.audit-source-section {
	margin-bottom: 12px;
	background: #fff;
	border-left: 3px solid #080099
}

.audit-source-header {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	cursor: pointer;
	gap: 12px;
}

.audit-source-header:hover {
	background: #dce8f5;
}

.audit-source-toggle {
	font-size: 12px;
	color: #666;
	transition: transform 0.2s;
}

.audit-source-section:not(.collapsed) .audit-source-toggle {
	transform: rotate(90deg);
}

.audit-source-title {
	flex: 1;
	font-weight: 600;
	font-size: 14px;
}

.audit-source-title a {
	color: #080099;
}

.audit-source-content {
	max-height: 2000px;
	overflow: hidden;
	transition: max-height 0.3s;
}

.audit-source-section.collapsed .audit-source-content {
	max-height: 0;
}

.audit-source-guideline {
	padding: 12px 16px;
	background: #f9f9f9;
	border-top: 1px solid #eee;
}

.audit-source-guideline h5 {
	margin: 0 0 8px;
	font-size: 13px;
	color: #666;
}

.audit-source-guideline-text {
	font-size: 13px;
	max-height: 400px;
	overflow-y: auto;
	white-space: pre-wrap;
	background: #fff;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.audit-source-group {
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #ddd;
}

.audit-source-group:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.audit-source-analysis {
	padding: 14px 16px;
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	border-left: 3px solid #080099;
	border-radius: 0 4px 4px 0;
}

.tab-bar {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #e0e0e0;
	margin-bottom: 20px;
}

.tab-button {
	padding: 12px 24px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 16px;
	font-weight: 500;
	color: #666;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: all 0.2s ease;
}

.tab-button:hover {
	color: #333;
	background-color: #f5f5f5;
}

.tab-button.active {
	color: #1a237e;
	border-bottom-color: #1a237e;
}

/* ============================================
   Resizable Table Container
   ============================================ */
.resizable-table-container {
	height: 25rem;
	min-height: 12.5rem;
	max-height: 80vh;
	overflow-y: auto;
	resize: vertical;
	border-bottom: 0.1875rem solid #e2e8f0;
	position: relative;
}

/* ============================================
   Data Table Row Styling (alternating, hover, selected)
   ============================================ */
#data-table tbody tr:nth-child(odd) {
	background-color: #f8fafc;
}

#data-table tbody tr:nth-child(even) {
	background-color: #ffffff;
}

#data-table tbody tr:hover {
	background-color: #edf2f7;
}

#data-table tbody tr.selected {
	background-color: #dbeafe;
}

#data-table tbody tr.selected:hover {
	background-color: #bfdbfe;
}

/* ============================================
   Status Messages (loading, error, no-results)
   ============================================ */
.loading-message,
.error-message,
.no-results-message {
	text-align: center;
	padding: 1.25rem;
}

.error-message {
	color: #dc2626;
}

/* ============================================
   Evaluation Result Section
   ============================================ */
.evaluation-result-section {
	background: #ffffff;
	border: 0.0625rem solid #e2e8f0;
	border-radius: 0.5rem;
}

.evaluation-header {
	display: flex;
	align-items: center;
	padding: 1rem 1.5rem;
	border-bottom: 0.0625rem solid #e2e8f0;
	background: #f8fafc;
}

.evaluation-title {
	font-weight: 600;
	font-size: 1rem;
}

.last-run {
	margin-left: 1rem;
	color: #6b7280;
	font-size: 0.875rem;
}

.evaluation-actions {
	margin-left: auto;
	display: flex;
	gap: 1rem;
	color: #6b7280;
}

.evaluation-actions i {
	cursor: pointer;
}

.evaluation-actions i:hover {
	color: #374151;
}

/* ============================================
   Evaluation Content (flex boxes for status/scores)
   ============================================ */
.evaluation-content {
	display: flex;
	padding: 1.5rem;
	gap: 1.5rem;
	border-bottom: 0.0625rem solid #e2e8f0;
}

.evaluation-box {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.evaluation-box:first-child {
	justify-content: center;
}

/* ============================================
   Status Recommendation Display
   ============================================ */
.status-recommendation-box {
	border-left: 0.25rem solid #6b7280;
	padding-left: 1rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.status-recommendation-box.status-inpatient {
	border-left-color: #16a34a;
}

.status-recommendation-box.status-outpatient {
	border-left-color: #6b7280;
}

.status-label {
	font-size: 0.875rem;
	color: #6b7280;
	margin-bottom: 0.25rem;
}

.status-value {
	font-size: 4rem;
	font-weight: 600;
	color: #6b7280;
	margin-bottom: 0.25rem;
	line-height: 1;
}

.status-inpatient .status-value {
	color: #16a34a;
}

.status-outpatient .status-value {
	color: #6b7280;
}

.status-sublabel {
	font-size: 0.75rem;
	color: #9ca3af;
}

/* ============================================
   Score Display (icons/themes)
   ============================================ */
.score-title {
	font-weight: 600;
	margin-bottom: 0.5rem;
	text-align: center;
}

.score-icons {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	min-height: 6rem;
}

.theme-icon {
	width: 6rem;
	height: 6rem;
	flex-shrink: 0;
	object-fit: contain;
}

.no-themes {
	color: #9ca3af;
	font-weight: 400;
}

/* ============================================
   Collapsible Sections
   ============================================ */
.collapsible-sections {
	padding: 0;
}

.collapsible-section {
	border-bottom: 0.0625rem solid #e2e8f0;
}

.collapsible-section:last-child {
	border-bottom: none;
}

.collapsible-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.5rem;
	cursor: pointer;
	font-weight: 600;
}

.collapsible-header:hover {
	background: #f8fafc;
}

.chevron {
	transition: transform 0.2s;
	color: #6b7280;
}

.collapsible-section.collapsed .chevron {
	transform: rotate(0deg);
}

.collapsible-section:not(.collapsed) .chevron {
	transform: rotate(180deg);
}

.collapsible-content {
	padding: 0 1.5rem 1rem 1.5rem;
	max-height: 62.5rem;
	overflow: hidden;
	transition: max-height 0.3s, padding 0.3s;
}

.collapsible-section.collapsed .collapsible-content {
	max-height: 0;
	padding-top: 0;
	padding-bottom: 0;
}

/* ============================================
   Summary List (daily/theme entries)
   ============================================ */
.summary-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.summary-entry {
	padding-left: 1rem;
	border-left: 0.1875rem solid #3b82f6;
}

.summary-entry.theme {
	border-left-color: #16a34a;
}

.summary-entry-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: #1f2937;
}

.summary-date {
	font-weight: 400;
	color: #6b7280;
	font-size: 0.875rem;
}

.summary-entry-content {
	color: #374151;
	line-height: 1.5;
}

/* ============================================
   Configuration Form (phases, checkboxes, time inputs)
   ============================================ */
.config-phase-section {
	margin-top: 1.25rem;
	padding-top: 0.75rem;
	border-top: 0.0625rem solid #e0e0e0;
}

.config-phase-section:first-of-type {
	border-top: none;
	margin-top: 0.75rem;
}

.config-phase-section h3 {
	color: #333;
	margin-bottom: 0.375rem;
}

.config-phase-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-top: 0.5rem;
}

.config-phase-column {
	flex: 1;
	min-width: 12.5rem;
}

.config-phase-column > label {
	display: block;
	font-weight: 600;
	margin-top: 0;
	margin-bottom: 0.375rem;
	color: #333;
}

.config-checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.config-checkbox-label {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-weight: normal;
	cursor: pointer;
	margin-top: 0;
}

.config-checkbox-label input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	cursor: pointer;
}

.config-time-input-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.config-time-input {
	width: 9.375rem;
	padding: 0.5rem 0.75rem;
	border: 0.0625rem solid #ccc;
	border-radius: 0.25rem;
	font-size: 0.875rem;
}

.config-hours-input {
	width: 3.75rem;
	padding: 0.5rem 0.75rem;
	border: 0.0625rem solid #ccc;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	text-align: center;
}

.config-time-unit {
	color: #666;
	font-size: 0.875rem;
}

.config-time-pills-container {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	min-height: 1.75rem;
}

.config-time-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	background-color: #374151;
	color: white;
	padding: 0.25rem 0.625rem;
	border-radius: 1rem;
	font-size: 0.875rem;
}

.config-time-pill-remove {
	background: none;
	border: none;
	color: white;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
	padding: 0;
	margin-left: 0.25rem;
}

.config-time-pill-remove:hover {
	opacity: 0.8;
}

.config-add-time-button {
	background-color: #080099;
	color: white;
	border: none;
	padding: 0.375rem 0.75rem;
	border-radius: 0.25rem;
	cursor: pointer;
	font-size: 0.875rem;
}

.config-add-time-button:hover {
	background-color: #060077;
}

.config-add-time-button:disabled {
	background-color: #cccccc;
	color: #666666;
	cursor: not-allowed;
	opacity: 0.6;
}

.config-modal-content {
	width: 22rem;
}

.config-modal-content label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.config-modal-content input[type="number"],
.config-modal-content select {
	width: 100%;
	padding: 0.625rem;
	border: 0.0625rem solid #ccc;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	box-sizing: border-box;
}

.modal-button-container {
	margin-top: 1.25rem;
	text-align: right;
}