:root{
	--form-margin: 0px;
	--form-shadow: none;
	--table-border: 1px solid #b1c2d9;
	--table-border-radius: 0.3rem;
	
}

html.wait, html.wait * { 
	cursor: wait !important;
}
html.wait * {
	pointer-events: none !important;
}

body {
	font-size: 1rem;
}

.main-container {
	margin: 1rem;
}

#idGFRt {
	margin: var(--form-margin);
	box-shadow: var(--form-shadow);
}

.btn-sp {
	background-color: #ddd;
	color: black;
	border-radius: var(--generic-border-radius);
	width: fit-content;
	min-width: 15rem;
	margin-bottom: 1rem;
	cursor: pointer;
}

.btn-sp:hover, .btn-sp:active{
	background-color: #bfbfbf !important;
	color: black !important;
}

.h1, h1{
	font-size: 1.8rem;
	color: #262626;
}

.h2 ,h2{
	font-size: 1.6rem;
	color: #262626;
}

.h3 ,h3{
	font-size: 1.45rem;
	color: #262626;
}

.h4 ,h4{
	font-size: 1.3rem;
	color: #656565;
}

.h5 ,h5{
	font-size: 1.2rem;
	color: #656565;
}

.h6 ,h6{
	font-size: 1.15rem;
	color: #656565;
}

.form-check-inline {
	display: inline-flex;
}

.input-number {
	text-align: left;
}

.bold, .bold * {
	font-weight: 600 !important;
}

.italic, .italic * {
	font-style: italic !important;
}

.underline, .underline * {
	text-decoration: underline !important;
}

.strikethrough, .strikethrough * {
	text-decoration: line-through !important;
}

.form-check .form-check-input {
	float: unset;
	margin-left: 0;
}

.form-check {
	padding-left: 0;
}

.input-file {
    display: none;
}

.file-upload-button {
	font-size: 0.8rem;
	border: 2px solid;
	border-radius: var(--generic-border-radius);
	padding: 0.3rem 0.5rem;
	cursor: pointer;
	margin-top: 1rem;
}

.file-upload-button.disabled {
	opacity: .5;
	background: white !important;
	cursor: default;
}

.file-upload-button:hover {
	background-color: #00000010;
}

.form-control:not(.form-select) {
	padding-right: 0.75rem;
}
.form-control[type='number'] {
	padding-right: 0.25rem;
}
.form-control:focus {
	border-color: #464646;
}


/**************************** TABLE BORDERED ******************************/
.table-bordered textarea {
	border: none;
}

.table-bordered {
	border: var(--table-border) !important;
/* 	border-bottom: none !important; */
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--table-border-radius);
}

.table-bordered tbody {
	border: none !important;
}

.table-bordered tr {
	border: none !important;
	border-bottom: var(--table-border) !important;
}

.table-bordered th {
	border: none !important;
	border-left: var(--table-border) !important;
	font-weight: unset;
}

.table-bordered td {
	border: none !important;
	border-top: var(--table-border) !important;
	border-left: var(--table-border) !important;
}

.table-bordered tr:first-child th:first-child {
    border-top-left-radius: var(--table-border-radius);
}
    
.table-bordered tr:first-child th:last-child {
    border-top-right-radius: var(--table-border-radius);
}

.table-bordered tr:last-child td:first-child {
    border-bottom-left-radius: var(--table-border-radius);
}
    
.table-bordered tr:last-child td:last-child {
    border-bottom-right-radius: var(--table-border-radius);
}

.table-bordered th:first-child, .table-bordered td:first-child {
	border-left: none !important;
}
/***************************************************************************/


.table-total, .table-total td {
	background-color: #f7f7f7 !important;
}

td.table-header, th.table-header {
	background-color: #fff !important;
}

table td, .table td {
	background: white;
}

table, .table {
	color: inherit !important;
}

.numeric-cell {
	text-align: right !important;
}

.btn-edit-default {
	background-color: transparent !important;
}

.radio .form-check-label {
	max-width: 90%;
}

.radio-inline .form-check-label {
	max-width: 95%;
}

@media (max-width: 992px) {
	.radio-inline .form-check-label {
		max-width: 90%;
	}
}

select[multiple] {
	overflow: hidden;
}

.auto-hover:hover {
	filter: brightness(85%);
}

.repeater-btn.btn-add-table {
	cursor: pointer;
}

.repeater-table {
	max-width: 95%;
	display: block;
	overflow-x: auto;
	white-space: nowrap;
	border-collapse: collapse;
}

.repeater-table tbody {
	display: table;
	width: 100%;
}

.repeater-table th, .repeater-table td {
	padding: 1rem;
	min-width: 10rem;
	max-width: 30rem;
	overflow: hidden;
	text-overflow: ellipsis;
}

.btn-save {
	border-radius: var(--generic-border-radius);
	font-weight: 700;
	padding: 0.7em;
	background: white;
	color: #456ff1;
	margin-top: 2rem;
	margin-bottom: 1rem;
	width: 15rem;
	border: 2px solid #456ff1;
}
.btn-save:hover {
	background: #e6f1fc;
	color: #456ff1;
}

.btn-finish, .btn-edit {
	border-radius: var(--generic-border-radius);
	font-weight: 700;
	padding: 0.7em;
	background: #456ff1;
	color: white;
	margin-top: 2rem;
	margin-bottom: 1rem;
	width: 15rem;
}
.btn-finish:hover, .btn-edit:hover {
	color: white;
	background: #3657be;
}

.repeater-float-btns {
	position: absolute;
	display: flex;
	margin-top: -0.7rem;
	right: 5%;
}

.repeater-table tr.active-row td{
	background: #E9E9E9;
}

.repeater-table tr:not(:first-child) {
	cursor: pointer;
}

.repeater-modal {
	position: fixed;
	z-index: 999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.4);
}

.repeater-modal-content {
  background-color: #fefefe;
  margin: 3% auto;
  padding: 20px;
  border: 1px solid #b1c2d9;
  width: 80%;
  border-radius: var(--generic-border-radius);
}

.transform-transition-short {
	transition: transform 0.3s;
}

.repeater-table tr.form-field-error td {
	background-color: rgb(250, 230, 225) !important;
}

.form-check-input[type="radio"]:checked + label {
    font-weight: bold;
}	

.form-check-input[type="radio"].form-field-error + label, 
.form-check-input[type="radio"].form-field-error-validate + label, 
.form-check-input[type="radio"].global-function-invalid + label {
	color: red !important;
}

.form-field-error, .form-field-error-validate, .global-function-invalid{
	border-color: rgb(255, 40, 0) !important;
	background-color: rgb(250, 230, 225) !important;
}

.file-label-error {
	border-color: rgb(255, 40, 0) !important;
	background-color: rgb(250, 230, 225) !important;
}

.preview-edit-btn {
	position: fixed !important;
	right: var(--form-margin) !important;
	z-index: 99 !important;
	margin-right: 2px !important;
	background-color: white !important;
	padding: 0 .2rem !important;
	border: solid 1px #e3ebf6 !important;
	border-radius: 5px !important;
	width: fit-content !important;
	cursor: pointer !important;
}

.preview-edit-btn:hover {
	background-color: #f9fbfd !important;
	border-color: #d2ddec !important;
}

.col-form-label {
	padding-top: 0;
}

.form-group.output[data-default="true"] {
	visibility: hidden;
}

.output {
	display: flex;
}

.input-date {
	padding-right: .5rem !important;
}

.view-values {
	font-size: 1.2rem;
	max-width: 100%;
}

.view-values-textarea {
	white-space: preserve-breaks;
}

.output-view {
	border: none !important;
	background: none !important;
	pointer-events: none !important;
	margin-left: 0;
	width: 100%;
}
.output-view-as-input {
	border: 1px solid #d2ddec !important;
	border-radius: var(--generic-border-radius);
	background: white !important;
	color: #AAA;
	padding: .5rem .75rem;
}

.collapsed-forms {
	display: none !important;
}

.original-select-mult {
	display: none !important;
}

.redundant-add-btn {
	display: none !important;
}

.output-style {
	padding: 0 !important;
	border: none !important;
	pointer-events: none !important;
}

.form-end-card {
	border-color: #D9D9D9;
	padding: 1.5rem;
}

/* Connection status — non-blocking indicator, banner & warnings — mpg - claude 20260420 */

/* Level 1: floating indicator dot — positioned via JS to stay in visible area */
.cs-indicator {
	position: absolute;
	right: 16px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	z-index: 9999;
	transition: background-color 0.3s;
	cursor: default;
	transition: 0.25s ease-in-out;
}
.cs-indicator.cs-saved  { background-color: #5cb85c; }
.cs-indicator.cs-saving { background-color: #f0ad4e; }
.cs-indicator.cs-error  { background-color: #dc3545; }

/* Level 2: warning banner */
.cs-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	background-color: #fcf8e3;
	border: 1px solid #faebcc;
	border-radius: 4px;
	color: #8a6d3b;
	font-size: 14px;
	margin-bottom: 12px;
}
.cs-banner.csb-restored {
	background-color: #dff0d8;
	border-color: #d6e9c6;
	color: #3c763d;
}
.cs-banner .csb-icon {
	font-size: 18px;
	flex-shrink: 0;
}
.cs-banner .csb-message {
	flex: 1;
}
.cs-banner .csb-close {
	background: none;
	border: none;
	font-size: 18px;
	color: inherit;
	cursor: pointer;
	padding: 0 4px;
	line-height: 1;
}

/* Level 3: session expiration warning */
.cs-session-warning {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	background-color: #f2dede;
	border: 1px solid #ebccd1;
	border-radius: 4px;
	color: #a94442;
	font-size: 14px;
	margin-bottom: 12px;
}
.cs-session-warning .csw-icon {
	font-size: 18px;
	flex-shrink: 0;
}
.cs-session-warning .csw-message {
	flex: 1;
}
.cs-session-warning .csw-copy-btn {
	padding: 4px 12px;
	background-color: #d9534f;
	color: #fff;
	border: none;
	border-radius: 3px;
	font-size: 13px;
	cursor: pointer;
	white-space: nowrap;
}
.cs-session-warning .csw-copy-btn:hover {
	background-color: #c9302c;
}
.cs-session-warning .csw-close {
	background: none;
	border: none;
	font-size: 18px;
	color: inherit;
	cursor: pointer;
	padding: 0 4px;
	line-height: 1;
}

/* Draft restoration notice */
.cs-draft-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	background-color: #d9edf7;
	border: 1px solid #bce8f1;
	border-radius: 4px;
	color: #31708f;
	font-size: 14px;
	margin-bottom: 12px;
}
.cs-draft-notice .csn-icon {
	font-size: 18px;
	flex-shrink: 0;
}
.cs-draft-notice .csn-message {
	flex: 1;
}
.cs-draft-notice .csn-restore-btn {
	padding: 4px 12px;
	background-color: #337ab7;
	color: #fff;
	border: none;
	border-radius: 3px;
	font-size: 13px;
	cursor: pointer;
	white-space: nowrap;
}
.cs-draft-notice .csn-restore-btn:hover {
	background-color: #286090;
}
.cs-draft-notice .csn-dismiss-btn {
	background: none;
	border: none;
	font-size: 18px;
	color: inherit;
	cursor: pointer;
	padding: 0 4px;
	line-height: 1;
}
