﻿.grid {
	font-size: 14px;
	color: var(--grey-85) !important;
}

	.grid td {
		border-left: 0 solid !important;
		border-right: 0 solid !important;
	}

	.grid .even-grid-column {
		background-color: white !important;
	}

	.grid .odd-grid-column {
		background-color: var(--grey-5) !important;
		border-left-color: var(--grey-5) !important;
	}

	.grid .red-bordered-row {
		border-color: var(--support-darkred) !important;
		border-top-width: 2px !important;
		border-bottom-width: 2px !important;
		border-right-width: 1px !important;
		border-left-width: 4.5px !important;
	}

	.grid .obsolete-row {
		color: var(--grey-25);
	}

	.grid .dxbs-data-row.red-background {
		background-color: var(--support-lighter-red) !important;
		border-left-color: var(--support-lighter-red) !important;
	}

	.grid .dxbs-data-row.temporary-inactive.red-background {
		color: var(--grey-25);
	}

	.grid .red-text {
		color: #b32a3a !important;
	}

	.grid tr.strike-through td.text-center {
		text-decoration: line-through !important
	}

	.grid tr.strike-through td.text-start {
		text-decoration: line-through !important
	}

	.grid .expanded-grid-row {
		font-weight: bold;
	}

	.grid .table-bordered > :not(caption) > * > * {
		border-width: 1px;
	}

	.grid .temporary-inactive {
		color: var(--grey-15);
	}

	.grid .odd-grid-column .dxbl-fl-group .card {
		background-color: var(--grey-5) !important;
	}

	.grid .dxbs-grid-header-container {
		font-size: 12px;
		background-color: var(--grey-header) !important;
	}

.roles-grid .dxbs-fixed-header-content,
.cost-centres-grid .dxbs-fixed-header-content,
.no-checkbox-grid .dxbs-fixed-header-content {
	height: 26px;
}

.roles-grid .filter-panel.dxbl-toolbar-btn, .grid .filter-panel.dxbl-toolbar-btn {
	z-index: 10;
}

.grid thead {
	border-bottom: 1px solid var(--grey-25);
	border-left: 4px solid transparent;
	font-size: 12px;
}

.grid .table-bordered th {
	border: 1px solid var(--grey-25);
}

.grid .dxbs-table thead {
	background-color: var(--grey-header);
	height: 32px;
}

.grid .dxbs-table tr {
	height: 34px;
}

.grid .inline-edit-form .card-header {
	display: none !important;
}

.grid .inline-edit-form .card,
.grid .inline-edit-form .card .row {
	margin: 0;
	padding: 0;
}

.inline-edit-form.dxbl-fl .dxbl-fl-gd {
	margin-top: 0;
	margin-bottom: 10px;
}

/* remove border for master details scrollable grids*/
.grid .dxbs-grid-hsd {
	border-top: none !important;
}

.grid.allocate-teachers-grid .dxbs-table tr {
	height: 0;
}

.remarks-grid .dxbs-table thead {
	background-color: transparent;
}

.grid .dxbs-sort-order-indicator {
	color: var(--primary-green) !important;
}

.grid .dxbs-fixed-header-content a:hover {
	text-decoration: none !important;
}

.dxbs-empty-data-row {
	display: none;
}

/*pagination*/
.grid .dx-page-size-selector input {
	background-color: transparent !important;
}

.grid .dx-page-size-selector .dxbl-form-control:focus {
	box-shadow: none !important;
	border-color: var(--grey-15) !important;
}

/*toolbar and icons*/
.grid .toolbar {
	margin-bottom: 15px !important;
	font-size: 12px;
	display: flex !important;
	align-items: center !important;
	--dxbl-toolbar-btn-hover-color: transparent !important;
}

	.grid .toolbar .dxbl-btn-toolbar {
		border-bottom: 1px solid var(--grey-15);
	}

.grid .toolbar-item {
	font-size: 14px !important;
	font-weight: bold !important;
	margin-right: 15px !important;
	background-color: white !important;
	display: flex;
	align-items: center;
	display: flex;
	border: none;
}

.grid .grid-icon {
	color: var(--grey-70);
	fill: var(--grey-70);
	font-size: 18px !important;
	cursor: pointer;
	align-items: center;
	display: flex !important;
	justify-content: center;
	height: 23px;
	width: 23px;
}

	.grid .grid-icon:hover {
		border-radius: 50%;
		background-color: var(--lighter-green) !important;
		color: var(--primary-green) !important;
		fill: var(--primary-green) !important;
	}

.grid .grid-icon-disabled {
	font-size: 18px !important;
	color: var(--grey-15);
	fill: var(--grey-15);
}

.grid:not(.no-highlight) .dxbs-data-row:hover .grid-icon-disabled {
	color: white;
	fill: white;
}

.grid:not(.no-highlight) .dxbs-data-row.hover-row .grid-icon-disabled {
	color: white;
	fill: white;
}


.group-grid .dxbs-table tr.dxbl-grid-group-span-row {
	height: 0;
}

tr.dxbs-grid-first-level-group td:last-child span::after {
	content: var(--count);
	border-radius: 11px;
	border: solid 1px rgba(135, 148, 148, 0.21);
	background-color: rgba(221, 245, 255, 0.5);
	padding: 2px 10px;
	margin-right: 10px;
	margin-left: 10px;
	font-size: 12px;
}

.grid .grid-icon-container {
	display: flex;
	justify-content: space-evenly;
	align-items: center;
}

.grid .dxbl-toolbar-group::before {
	content: none !important;
}

.grid .title-toolbar-item {
	border-bottom: 4px solid var(--primary-green) !important;
	color: var(--grey-70) !important;
	border-radius: 0 !important;
	pointer-events: none;
	height: 50px;
}

/* SELECTED COUNT */
.grid .selected-count-toolbar-item {
	font-weight: normal !important;
	color: var(--grey-85) !important;
	border: none;
}

.grid .count-display {
	font-weight: bold !important;
	margin: 0 5px;
}

/* TOOLBAR ITEMS*/
.grid .column-chooser-toolbar-item:before {
	display: none;
}

.grid .column-chooser-toolbar-item .btn {
	all: unset !important;
	cursor: pointer;
}

.grid .column-chooser-button-label:after {
	font-family: "Material Icons";
	content: "\e5c5";
	font-size: 24px;
	padding-left: 3px;
	padding-top: 1px;
}

.grid .column-chooser-button-label:before {
	font-family: "Material Icons Outlined";
	content: "\e8ec";
	font-size: 24px;
	font-weight: normal;
	padding-right: 3px;
	padding-top: 1px;
}

.grid .column-chooser-button-icon {
	display: none !important;
}

.grid .column-chooser-button-label {
	display: flex;
	align-items: center;
}

.grid .column-chooser-toolbar-item:hover {
	cursor: pointer !important;
}

.grid .column-chooser-elements-container {
	font-weight: normal !important;
}

.grid .column-chooser-button {
	padding-top: 3px;
}

.grid .column-chooser-elements-container {
	width: 15rem !important;
}

.grid th:before {
	box-shadow: 0px 0px 4px 0px var(--primary-green) !important;
}

.grid .dxbl-toolbar-item-tmpl {
	cursor: pointer !important;
	display: flex !important;
	align-items: flex-end !important;
	height: 21px !important;
}

	.grid .dxbl-toolbar-item-tmpl span {
		height: 20px !important;
	}

/*styling for custom view dropdown*/
.custom-view-item .justify {
	display: flex;
	justify-content: space-between;
	width: 100%;
	min-width: 170px;
}

	.custom-view-item .justify:hover {
		color: var(--primary-green) !important;
	}

.custom-view-item {
	padding-right: 16px !important;
}

.grid .div:not(.dx-blazor-tagbox) .dropdown-item {
	padding-right: 10px !important;
	padding-left: 10px !important;
	text-overflow: ellipsis;
	overflow: hidden;
}

.dxbl-tagbox .dropdown-menu {
	font-size: 14px;
}

.grid .custom-view-icon {
	color: var(--grey-70);
	font-size: 18px !important;
	margin-top: 4px;
}

.grid .custom-view-icon-disabled {
	font-size: 18px !important;
	color: var(--grey-15);
	margin-top: 4px;
}

.dropdown-toggle {
	display: none;
}
/* !!! very important to always declare the styles for .export-dropdown .dropdown-toggle */
/* after the .dropdown-toggle which will be used on pager/number selector etc. */
/* so that the export dropdown style will be correctly overwritten */
.export-dropdown .dropdown-toggle {
	background-color: transparent !important;
}

	.export-dropdown .dropdown-toggle:hover {
		background-color: transparent !important;
		color: var(--support-darkgreen) !important;
	}

.export-dropdown {
	margin-left: -1.7em !important;
	padding-top: 5px;
}

	.export-dropdown .dxbl-dropdown-toggle.dropdown-toggle::after {
		border-top: 6px solid;
		border-right: 6px solid transparent;
		border-left: 6px solid transparent;
	}

/* GRID highlight */
.grid .table-active {
	background-color: var(--grey-15) !important;
}

/* edit pop-up */
.grid .dxbs-popup-edit-row {
	display: none;
}


.dxbs-gridview {
	display: inline-block !important;
}

.qualifications-grid {
	font-size: 14px;
	max-height: 163px;
	overflow-y: auto;
}

.completed-column {
	color: var(--primary-green);
	vertical-align: middle;
}

	.completed-column.opacity-25, .uncompleted-column.opacity-25 {
		opacity: 0.25;
	}

.uncompleted-column {
	vertical-align: middle;
	color: var(--grey-15);
}

.grid:not(.no-highlight) .dxbs-data-row:hover .uncompleted-column,
.grid .table-active .uncompleted-column {
	color: white;
}

.grid:not(.no-highlight) .dxbs-data-row.hover-row .uncompleted-column,
.grid .table-active .uncompleted-column {
	color: white;
}

/*scrollable grid styles*/
.grid {
	display: flex;
	flex-direction: column;
	height: 100%;
}

	.grid.empty-grid,
	.grid.variants-grid.empty-grid,
	.grid.bank-accounts-grid.empty-grid {
		height: unset !important;
	}

	.grid > .card {
		display: flex;
		height: 100%;
		position: unset !important;
	}

		.grid > .card > .dxbs-grid-vsd {
			flex: 1 1 auto;
			height: 100% !important;
		}

		.grid > .card > div:not(.dxbs-grid-vsd) {
			flex: 1 0 auto;
		}

	/*inline edit forms visibility*/
	.grid .dxbs-grid-edit-form {
		position: relative !important;
		background-color: white;
		z-index: 10;
	}

/* z-index needs to be smaller than the inline edit form visibility for the filters/dropdowns to be visible when we have inline edit */
.grid-with-filters.grid .dxbs-grid-edit-form,
.study-programs-grid.grid .dxbs-grid-edit-form {
	z-index: 9;
}

/*custom style for bank accounts grid*/
.grid.bank-accounts-grid:not(.empty-grid),
.grid.slv-discounts-grid:not(.empty-grid) {
	/*70px is height for tabs in bank accounts page*/
	height: calc(100% - 70px);
}

/*custom style for grid height */
.grid.variants-grid:not(.empty-grid),
.grid.sp-administrative-docs:not(.empty-grid),
.grid.sp-mandatory-docs:not(.empty-grid),
.grid.sp-studies:not(.empty-grid),
.grid.study-teaching-unit-grid:not(.empty-grid),
.grid.study-events-templates:not(.empty-grid) {
	/*125px is height for tabs in variants page*/
	height: calc(100% - 125px);
}

.grid.study-learning-objectives-grid:not(.empty-grid),
.grid.sp-events:not(.empty-grid) {
	height: calc(100% - 150px);
}

@media only screen and (max-width: 1300px) {
	.grid.sp-mandatory-docs:not(.empty-grid) {
		height: calc(100% - 182px);
	}
}

@media only screen and (max-width: 1300px) {
	.grid.sp-administrative-docs:not(.empty-grid) {
		height: calc(100% - 182px);
	}
}

.grid.address-grid:not(.empty-grid) {
	height: calc(100vh - 280px);
}

.grid.class-events:not(.empty-grid)
.grid.class-learning-objectives-grid:not(.empty-grid) {
	height: calc(100% - 20px);
}

#grid-document-submission {
	height: calc(100% - 40px);
	overflow-y: auto;
}

	#grid-document-submission .grid-rendered-hidden {
		height: unset !important;
		overflow-y: auto;
	}

.grid.registered-document-attachments tr td:nth-child(3) {
	overflow: visible !important;
}

/*grid no highlight style*/
.grid:not(.no-highlight) .dxbs-data-row {
	transition: border-color 50ms ease-in-out, background-color 50ms ease-in-out;
}

	.grid:not(.no-highlight) .dxbs-data-row:hover {
		background-color: var(--grey-15) !important;
	}

	.grid:not(.no-highlight) .dxbs-data-row.hover-row {
		background-color: var(--grey-15) !important;
	}

.grid:not(.no-highlight) .temporary-inactive.dxbs-data-row:hover {
	color: white;
}

.grid:not(.no-highlight) .temporary-inactive.hover-row {
	color: white;
}

.grid:not(.no-highlight) .dxbs-data-row td:first-child {
	border-left: 4px solid transparent !important;
}

.grid:not(.no-highlight) .dxbs-data-row:hover td:first-child {
	border-left: 4px solid var(--primary-green) !important;
}

.grid:not(.no-highlight) .dxbs-data-row.hover-row td:first-child {
	border-left: 4px solid var(--primary-green) !important;
}

.table-active {
	--bs-table-accent-bg: transparent;
}
/*custom style for files content grid*/
.file-content-grid {
	-webkit-box-shadow: 0 0 3px #ccc;
	box-shadow: 0 0 3px #ccc !important;
	border-radius: 3px;
}

	.file-content-grid thead {
		border-bottom: 0 !important
	}

.attach-content-files-grid {
	height: 300px !important;
}

	.attach-content-files-grid .card {
		max-height: 300px;
	}

	.attach-content-files-grid tr {
		cursor: context-menu;
	}

.file-content-grid tr {
	cursor: context-menu;
}

.registered-document-attachments .card {
	max-height: 300px;
}

.grid.registered-document-attachments {
	height: 200px;
}

.non-selectable-row .dxbs-select-cell .form-check-input:checked {
	pointer-events: none;
	background-color: white !important;
	border-color: white !important;
}

.non-selectable-row .dxbs-select-cell {
	pointer-events: none
}

.grid .datetime-picker td {
	border: none !important;
}

.column-chooser-elements-container {
	max-height: 40vh;
}

	.column-chooser-elements-container .list-group-item {
		border: none !important;
		padding-top: 15px;
	}
/* grid with grouping */
.card-body.dxbs-group-panel-container {
	display: none;
}

.entity-status {
	font-size: 12px;
	height: 24px;
	background-color: red;
	padding: 3px 8px;
	border-radius: 10px;
}

	.entity-status.active {
		background-color: var(--active-background);
		color: var(--active-text);
	}

	.entity-status.inactive {
		background-color: var(--inactive-background);
		color: var(--grey-70);
	}

	.entity-status.incomplete {
		background-color: var(--incomplete-background);
		color: var(--incomplete-text);
	}

	.entity-status.motivated {
		background-color: #DDF5FF;
		color: #2B7593;
	}

.count-circle {
	width: 23px;
	height: 24px;
	padding: 2px 8px;
	border-radius: 12px;
	background-color: #ffe2c9;
}

.count-zero {
	color: red;
	font-weight: bold;
}

.file-history-grid.dxbs-gridview > .card .dxbs-table > thead > tr > th {
	cursor: default;
}

.dxbs-gridview > .card > * > .dxbs-table > thead > tr:last-child > td,
.dxbs-gridview > .card > * > .dxbs-table > thead > tr:last-child > th,
.dxbs-gridview > .card > .dxbs-table > thead > tr:last-child > td,
.dxbs-gridview > .card > .dxbs-table > thead > tr:last-child > th {
	border-bottom-width: 0px !important;
}

.dxbl-grid {
	border: none !important;
	--dxbl-grid-border-color: var(--grey-border) !important;
}

/* TODO: this can be done better*/
.grid .strikethrough-item td {
	text-decoration: line-through;
}

	.grid .strikethrough-item td.dxbs-cmd-cell {
		text-decoration: none !important;
	}
