/*
  You can add custom CSS rules or import files here.
*/


/* Import the Radzen CSS files */
@import './styles-generated.css';



.cora-form-card .rz-row { /* June 2024 */
	row-gap: unset;
}

/* Fix: required class was added to the next line */
.cora-form-card .rz-row label {
	display:inline;	
}

.cora-form-card .rz-row input {
	display:flex;
	flex-direction:column;	
}

/* E.g. seperate sections in building envelope ECM */
.cora-form-sub-section {
	padding-top: 1rem;
	margin-bottom: -1rem;
}

p { /* Paragraphs should always adapt to their parent elements width */
	min-width: 100%;
    width: 0;
}

.cora-before-after-section {
	width:  48.9%;
}

.cora-flex-container {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

.cora-flex-container div.row {
	display: flex;
	/* min-width: 600px; */
	min-width: 552px; /* if used inside a card component */
	margin-right: -15px;
	margin-left: -15px;
	flex-direction: column;
	flex: 1;
	flex-wrap: nowrap;
	margin-top: -15px;
}

.cora-sub-columns {
	flex-direction: row !important;
}

.cora-flex-container div.col-md-3 {
	flex: 0 0 0;
	max-width: 90%;
}

.cora-flex-container div.col-md-9 {
	flex: 0 0 0;
	max-width: 95%;
}

div.col-md-12 {
	overflow: hidden; /* hide horizontal scroll bar instead of tinkering with the width */
}

.cora-flex-container div.cora-sub-columns div.col-md-2 {
	flex: 0 0 0;
	min-width: 182px;
}

.cora-tag-list {
	margin-right: 10px;
}

.rz-grid-table {
	z-index: 1; /* grid table overlapped with the menu */
}

.cora-datagrid .rz-grid-table thead th span.rz-column-title-content {
	white-space: normal;
	text-align: left;
	/*padding: 0 0 0 0.625rem !important;*/ /* RHER, 21.05.2025, column titles were to far to the right */
}

.cora-datagrid .rz-grid-table thead th span.rz-column-title-content {
	max-width: 80%;
	vertical-align: top !important;
}

.cora-datagrid th {
	vertical-align: top;
}

/* Centered column header titles without a filter icon do not need padding */
.cora-datagrid th[style*="text-align:center;"]:not(.rz-sortable-column)>div:not(.rz-cell-filter) span {
	padding-left: 0 !important;
}

.cora-datagrid th[style="width:50px;text-align:center;"]:not(.rz-sortable-column)>div:not(.rz-cell-filter) span {
	padding-left: 0 !important;
}

.cora-datagrid th[style="width:55px;text-align:center;"].rz-sortable-column>div:not(.rz-cell-filter) span {
	padding-left: 0 !important;
}

.cora-datagrid th[style="width:60px;text-align:center;"].rz-sortable-column>div:not(.rz-cell-filter) span {
	padding-left: 0 !important;
}

.cora-datagrid span.rzi-grid-sort {
	vertical-align: top;
}

.cora-datagrid .rz-spinner-button {
    display: none;
}

#import-task-table .rz-grid-table-fixed {
	table-layout: auto;
}

.rz-dialog-wrapper {
	top: 5%;
	align-items: start;
}

/* TODO: analyse the dialog height, this class here affects the delete confirmation dialog too.
.rz-dialog {
	  min-height: 800px !important;
	  height: 90%;
}*/

.rz-dialog:not(.rz-dialog-confirm) {
	min-width: 835px;
	max-height: 90%;
	height: auto;
}

.rz-dialog-content {
	background: rgba(243, 245, 247, 0.56);
	padding-top: 0; /* reduce the distance between a title and the data, in a tab for example */
}

/* disable rz-my-8 for tab */
.rz-my-8 {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.rz-card {
	margin-bottom: 8px;
	border: solid 1px #ccd7e1;
	background: rgb(0, 107, 198);
	background: linear-gradient(162deg, rgba(0, 107, 198, 0.1) 0%, rgba(222, 225, 244, 0.7091211484593838) 47%, rgba(0, 107, 198, 0.08) 100%);
}

.rz-data-grid {
	margin-bottom: 18px;
}

.cora-admin-card {
	border: solid 1px #ddc8069c;
	background: rgba(255, 239, 0, 0.3);
}

.rz-label {
	opacity: .7;
	font-size: 12px;
}

.cora-title {
	opacity: 1;
	font-size: 18px;
}

.rz-datatable-thead th {
	background-color: #dbdbdb !important;
	background: yellow !important;
}

.rz-datatable-thead th, .rz-grid-table thead th {
	background-color: #dbdbdb;
}

.cora-flex-container i.rzi { /* tool tip icon and other icons */
	font-size: 21px;
	color: white;
	margin-left: -7px;
	width: 17px;
	height: 17px;
	border-radius: 100%;
	/* background-color: #92c0e0; */
	background-color: #479cc8;
}


.required:after {
	content: " *";
	font-weight: bold;
	color: red;
}

.rz-messages-error {
	color: red;
}

.rz-messages-error.rz-message-popup {
	display: block-inline;
	position: relative;
	float: left;
	margin-left: 10px;
	margin-top: -23px;
}

/* Fix: tab title was hidden in non-selected hover state */
.rz-tabview-nav li:hover:not(.rz-tabview-selected):not(.rz-state-disabled) a {
	color: #00a2bc;
}

div.row.cora-info {
	/*max-width: 1400px*/
}

.cora-info td {
	vertical-align: top;
	white-space: normal;
}

.cora-info .rz-cell-data {
	white-space: inherit !important;
}

.cora-logo {
	display: block;
	padding: 15px;
	line-height: 20px;
	font-size: 18px;
	text-decoration: none;
	/* color: #7cc4e7; */
	color: #2489ce;
}

span.rz-cell-data>.rz-button {
	min-height: 1.5rem !important;
	min-width: 1.5rem !important;
}

.cora-date-col-header {
	width: 93px;
	text-align: center !important;
}

.cora-long-date-col-header {
	width: 130px;
	text-align: center !important;
}

.cora-person-id-col-header {
	width: 130px;
}

.cora-loan-amount-col-header {
	width: 140px;
}

.cora-small-id-col-header {
	width: 40px;
	min-width: 40px;
}

.cora-cat-col-header {
	width: 80px;
	min-width: 40px;
}

.cora-id-col-header {
	width: 80px;
	min-width: 80px;
}

.cora-unit-col-header {
	width: 90px;
	min-width: 90px;
	max-width: 90px !important;
}

.cora-filename-col-header {
	width: 200px;
	min-width: 60px;
	max-width: 200px;
}

.cora-status-col {
	width: auto;
}

.cora-status-col .rz-dropdown{
	width: 88px;
}

.cora-mandate-col {
	width: auto;
}

.cora-mandate-col .rz-dropdown {
	width: 88px;
	max-width: 148px;
}

.cora-icon-col span {
	display: flex;
	align-items: baseline;
	justify-content: center;	    
	margin-bottom:-11px;
}

/* The switch button was not in the center of the cell */
.cora-data-active-col span {
	padding-left: 0px;
	margin-left: 5px;
	margin-right: -5px;
	padding-right: 0px
}

/* Make the inline-drop-downs thinner */
.cora-datagrid .rz-dropdown {
	height: 23px;
	padding-bottom: 0px;
	padding-top: 0;
}

/* add a space between the save/cancel buttons and the form */
.cora-button-row {
	padding-top: 18px;
}

/* the delete button (trash) was large and shown with a very high contrast */
.cora-delete-button span {
	width: 10px;
	height: 10px;
	padding-bottom: 2px;
	margin-left: -1px;
	color: #88989b;
}

button.cora-delete-button {
	width: 10px;
	height: 10px;
	vertical-align: middle;
	padding-left: 0.45rem;
	background-color: rgb(97 128 129 / 8%) !important;
}

/* Remove cell content padding to get data grids with thin rows to show more data */
.rz-data-row td {
	padding-top: 0;
	padding-bottom: 0;
}

:root {
	--rz-grid-cell-line-height: 2rem;
}

/* Adapting the RadzenUpload component so it looks equal to the RadzenButton */
.rz-fileupload-buttonbar {
	background-color: transparent !important;
	margin-top: -0.5rem;
	padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.rz-fileupload .rz-button {
	font-size: var(--rz-body-font-size);
	padding: 0rem 0rem !important;
	padding: inherit !important;
	padding-left: 0.5rem;
	height: auto;
	line-height: 1.25rem;
	min-height: 1.75rem;
	min-width: 1.75rem;
}

/* Add ECM buttons */
.cora-button-row {
padding: 1rem;
}

.cora-button-row button {
width: 268px;
}

/* The paginator icons look nicer with white font */
.rz-paginator-icon.rzi {
	color: #fff;
	fill: #fff;
}

.rz-paginator-element:hover .rz-paginator-icon.rzi {
	color: initial;
	fill: initial;
}

/* Make the selected row background lighter */
.rz-selectable tbody tr.rz-data-row.rz-state-highlight > td {
	background-color: #53b1e1 !important; /* Light blue, adjust as needed */
	color: #222; /* Optional: set text color for contrast */
}

/* Make RadzenSwitch smaller */
.rz-switch {
	transform: scale(0.70);
	/* Optional: to keep the switch aligned in the cell */
	transform-origin: left center;
}