﻿/*center button text vertically*/
/*---------------------*/
html {
	--mud-typography-button-lineheight: 24px !important;
}

.mud-button-filled,
.mud-button-text {
	padding-top: 7px;
	padding-bottom: 5px;
}

.mud-button-outlined {
	padding-top: 6px;
	padding-bottom: 4px;
}
/*---------------------*/

/*reduce button shadow*/
.mud-button-filled {
    box-shadow: none;
}

/*reduce active button shadow*/
.mud-button-filled:active,
.mud-button-filled:focus {
    box-shadow: 3px 3px 5px 1px rgb(0 0 0 / 14%), 3px 3px 5px 2px rgb(0 0 0 / 12%);
}

/*brighten text-button text*/
.mud-button-text-primary {
    color: #4a39e8 !important;
}

/*improve text-button active signal*/
.mud-button-text-primary:active,
.mud-button-text-primary:focus {
    background-color: var(--mud-palette-primary-hover);
}

/*remove overflow scroll which causes some nested tables to show scrollbar*/
.mud-table .mud-table-container {
	overflow-y: unset;
}

/*cell borders for nested tables*/
/*---------------------*/
table .mud-simple-table td,
table .mud-table-root td {
    border-bottom: 1px solid var(--mud-palette-table-lines) !important;
}

table .mud-simple-table tr:last-child td,
table .mud-table-root tr:last-child td {
    border-bottom: none !important;
}
/*---------------------*/

/*lighten table stripes*/
.mud-table-striped .mud-table-container .mud-table-root .mud-table-body .mud-table-row:nth-of-type(odd) {
	background-color: rgb(0 0 0 / 1%);
}

/*taller dense table header*/
.mud-table-dense {
	--rx-table-head-tall: 50px;
}

/*align sort icon w/ header text and theme*/
/*---------------------*/
.mud-table .mud-table-sort-label-icon {
	margin-top: -4px;
	color: var(--rx-orange);
}

.mud-table .mud-table-sort-label:hover {
	color: unset;
	opacity: 1;
}

.mud-table .mud-table-sort-label:hover .mud-table-sort-label-icon {
	opacity: 1;
}
/*---------------------*/

/*enable vertical overflow scroll on dialog container*/
/*https://github.com/Garderoben/MudBlazor/issues/1435*/
.mud-dialog-container {
	overflow-y: auto;
	flex-wrap: wrap;
}

/*inputs in non-white container*/
/*---------------------*/
/*ensure background color of inputs do not inherit from container*/
.mud-input-outlined {
	background-color: #ffffff;
}

/*ensure input label inherits container background color, but also covers outline*/
.mud-input-label-outlined {
	background: linear-gradient(0deg, white 56%, transparent 44%) !important;
}
/*---------------------*/

/*increase padding of small icon buttons, excluding buttons inside of inputs (clear button inside select)*/
:not(.mud-input) > .mud-icon-button-size-small  {
	padding: 7px;
}

/*remove transparency to be consistent w/ .validation-errors class*/
.mud-alert-text-error {
	background-color: #ffedec;
}

/*remove buttongroup expansion buttons active color*/
.mud-nav-group button:first-child {
	background-color: transparent !important;
}
