:root {
	color-scheme: light dark;
	
	--font: light-dark(rgb(50, 78, 110), rgb(216, 222, 235));
    --lfont: light-dark(rgba(50, 78, 110,.5), rgb(158, 170, 189));
	
	--label: light-dark(rgba(50, 78, 110,.6), rgb(224, 228, 238));
	--inputSize: 1rem;
	--input-bg: light-dark(rgba(245, 248, 255), rgb(50, 63, 79));
	--input-hover-bg: light-dark(white, rgb(49, 59, 71));
	
    --aside-width: 200px;
	
	--window-bg: light-dark(rgb(240, 243, 250), rgb(60,73,89));
	--window-bg: light-dark(rgb(240, 243, 250), rgb(62, 75, 92));
	--main-brd: light-dark(rgb(224, 228, 238), rgb(68, 80, 98));

	--main-bg: light-dark(white, rgb(80, 96, 115));
	--overlay: light-dark(rgba(255,255,255,.4), rgb(0, 0, 0,.3));
	
    --grey: light-dark(rgb(240, 243, 250), rgb(58, 72, 87));
	--lgrey: light-dark(rgb(250, 251, 252), rgb(75, 90, 109));
    --dgrey: rgb(224, 228, 238);
    
    --green: rgb(100, 209, 184);
    --lgreen: rgb(144, 222, 204);
    --dgreen: rgb(70, 176, 140);
    --green-bg: light-dark(rgb(144, 222, 204),rgb(100, 209, 184));
	
    --blue: rgb(99, 172, 224);
	--lblue: rgb(153, 213, 255);
    --dblue: rgb(21, 48, 90);
	--blue-bg: light-dark(rgb(153, 213, 255),rgb(99, 172, 224));
	
    --red: rgb(247, 116, 116);
    --lred: rgb(255, 143, 135);
    --yellow: rgb(252, 238, 174);
    --orange: rgb(255, 176, 107);

	--highlight: light-dark(white, rgb(50, 63, 79));
    --brd: light-dark(rgba(200, 206, 217), rgb(56, 68, 79));
    --shad: light-dark(rgba(59, 74, 110,.1), rgba(50, 63, 79, .3));
    --fade: light-dark(rgba(59, 74, 110,.2), rgba(20, 32, 46, .5));
	/*rgba(40, 52, 66, .3)*/
}
html {
    -webkit-tap-highlight-color: transparent;
    font-size: 76%;
    line-height: 1.1;
    color: var(--font);
	font-family: regular,Helvetica,Arial,sans-serif; 
	font-weight: 400;
    -ms-high-contrast-adjust: none;
    -webkit-text-size-adjust: 100%;
}
body {
	display: flex;
	flex-wrap: wrap;
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100svh; 
	background: var(--window-bg);
}
*, *::before, *::after {
    box-sizing: border-box;
}

/* =========== Containers ===========*/

body > .toolbar {
	padding: 0 4px 7px 16px;
	width: 100vw;
	min-width: 100vw;
	display: flex;
	align-items: center;
	z-index: 2000;
	height: 50px;
}
aside {
	width: var(--aside-width);
	padding: 20px;
	height: calc(100vh - 50px);
	overflow: auto;
    scrollbar-color: var(--green) transparent;
	scrollbar-width: thin;
	scrollbar-gutter: stable;
}
main {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	border-radius: 5px 0 0 0;
	border: 1px solid var(--brd);
	border-right: none;
	box-shadow: 0 0 0 10px var(--main-brd), 0 0 0 11px var(--brd);
	height: calc(100% - 50px);
	width: 100vw;
	background: var(--main-bg)	
}
aside + main {
	width: calc(100vw - var(--aside-width))
}
main:has(+ aside) {
	border-right: 1px solid var(--brd);
	width: calc(100vw - var(--aside-width)*2);
	border-radius: 6px 6px 0 0;
}
header {
	position: sticky;
	top:0;
	padding: 20px 20px 10px 40px;
	-webkit-user-select: none; /* Safari */
	-ms-user-select: none; /* IE 10 and IE 11 */
	user-select: none; /* Standard syntax */
	box-shadow: 0 1px 0 var(--brd)
}
section {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	overflow: auto;
	width: 100%;
	max-width: 100%;
    scrollbar-color: var(--green) var(--grey);
	scrollbar-width: thin;
}
section > * > * {
	opacity: 1;
	transition: opacity .1s;
} 
.unrendered, .unrendered + * {
	opacity: 0;
}
article {
	padding: 0 20px;
}

/* =========== FONTS =========== */
p {
	margin: 0 0 16px;
}
small, .small {
	font-size: .9rem;
}
a,.link {
	color: var(--blue);
}
a:hover,.link:hover, a:focus,.link:focus {
	color: var(--dgreen);
}
.light {
	color: var(--lfont)
}
h1 {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 1.4rem;
	margin: 0;
	font-weight: 400;
	font-stretch: 80%;
	letter-spacing: .04rem;
	min-height: 20px;
}
h2 {
	font-size: 1.2rem;
	margin: 0 0 6px;
	font-weight: 300;
}
dialog h2 {
	font-size: 1.6rem;
	margin-bottom: 12px;
}
h3, h4 {
	margin: 0 0 8px;
}
hr {
	border: none;
	border-top: 1px solid var(--brd);
	margin: 10px 0;
}
dialog hr {
	margin: 0 0 6px;
	
}
label {
	font-size: .8rem;
	padding-right: 3px;
	color: var(--lfont);
}
h1 span:has(+ span > label) {
	padding-right: 20px;
}
/* LOGO */
.logo {
	display: flex;
	align-items: center;
	height: 28px;
	font-size: 1.1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: -.03rem;
	position: relative;
	top: -1px;
	left: 0;
}
.logo > svg {
	height: 100%;
	margin-right: 6px;
}
.logo > span {
	position: relative;
	top: -.5px;
	display: inline-block;
	padding: 2px 7px 3px 5px;
	background: var(--highlight);
	border: 1.4px solid var(--brd);
	font-size: 1rem;
}

/* NAV */
/* Add hamburger options with animated bars */
nav {
	list-style: none;
}
nav li {
	padding: 3px 0;
	transition: background-color 200ms, border 200ms, box-shadow 200ms;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
nav li > a:hover, nav li > span:hover, nav li.current a, nav li.category > span {
	color: var(--font);
}
nav li.category > span {
	margin-bottom: 8px;
}
nav li.current { 
	background: var(--highlight);
	border-radius: 2px;
	box-shadow:  0 0 0 1px var(--highlight), 0 0 0 2px var(--brd), 1px 1px 3px var(--shad);
}
nav ul {
	list-style: none;
	padding: 0 9px 4px 12px;
	margin: 0;
}
nav > li > ul {
	padding-left: 0;
	padding-right: 0;
}
nav li > a, nav li > span {
	border-radius: 3px;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	display: block;
	padding: 3px 10px;
	line-height: 1.1;
	font-size: 1rem;
}
nav > li {
	margin-bottom: 20px;
}
nav li > .btn {
	margin-left: 12px;
	background-color: var(--blue);
	height: 28px;
	line-height: 28px;
	padding: 0 10px;
	color: white;
	cursor: pointer;
}
nav li > .btn:hover {
	color: white;
	background-color: var(--green);
}
nav li > span {
	cursor: default;
}
nav li.category > span {
	font-weight: 900;
	padding-left: 0;
}

/*INPUTS*/
fieldset {
	all: unset;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
}
fieldset.column {
	flex-direction: column;
}
fieldset:not(:last-child) {
	margin-bottom: 12px;
}
fieldset.reverse {
	flex-direction: row-reverse;
}
fieldset > div {
	position: relative;
	display: flex;
	align-items: flex-start;
	padding-top: 12px;
}
h1 + fieldset {
	margin-top: 6px;
}
.form:has(+ h1) {
	display: inline-block;
	width: auto;
	margin-right: 10px;
}

fieldset > div > input:not([type=checkbox],[type=radio],[type=file]) {
	width: 100%;
}
aside fieldset > div.button, .col fieldset > div.button:first-child, .col fieldset > div.button:first-child + div.button, .col fieldset > div.button:first-child + .grow + div.button {
	padding-top: 0;
}
fieldset > div:last-child {
	margin-bottom: 0;
}
fieldset > div.button:last-child {
	padding-top: 0;
}
header h1 > fieldset, header h1 > fieldset > div {
	margin: 0;
	padding: 0;
}
header fieldset > div {
	margin-bottom: 0;
}
fieldset > div label {
	position: absolute;
	top: 0;
	white-space: nowrap;
}
fieldset > div label sup {
	color: var(--orange);
	margin: 0 0 0 -3px;
	position: absolute;
	left: calc(100% + 3px);
	top: -2px;
}
fieldset > div.small {
	width: 80px;
}
fieldset > div.snn {
	width: 70px;
}
fieldset > div.phone {
	width: 116px;
	min-width: 116px;
}
fieldset > div.zip {
	width: 70px;
	min-width: 70px;
}
fieldset > div.location, fieldset > div.email {
	min-width: 220px;
}
fieldset > div.date {
	width: 112px;
}
fieldset > div.full {
	width: 100%;
}
fieldset > div.large {
	min-width: 220px;
}
input[type="date"] {
	padding-left: 8px !important;
	max-height: 28px !important;
	max-width: calc(112px - 18px) !important;
}
input[type="date"]::-webkit-inner-spin-button { display: none; }
input[type="date"]::-webkit-calendar-picker-indicator { background: transparent; }
fieldset > div input[type=checkbox] + label {
	position: relative;
	top: auto;
	white-space: nowrap;
}
input[type="radio"] {
	margin: 4px 2px 0 0;
	-webkit-appearance: none;
	appearance: none;
	background-color: var(--input-bg);
	margin: 0;
	font: inherit;
	color: currentColor;
	width: 16px;
	height: 16px;
	margin-right: 3px;
	border: 1px solid var(--brd);
	border-radius: 50%;
	transform: translateY(3px);
	display: grid;
	place-content: center;
	cursor: pointer;
}
input[type="radio"]::before {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	transform: scale(0);
	transition: 120ms transform ease-in-out;
	box-shadow: inset 1em 1em var(--green);
}
input[type="radio"]:checked::before {
  transform: scale(1);
}
input[type="radio"]:checked {
  border: 2px solid var(--green)
}
input:focus, select:focus, textarea:focus, button:not(.clear):focus {
  outline: 2px solid var(--font) !important;
  outline-offset: 1px !important;
}
input[type='radio'] + label {
	position: relative;
	font-size: 1rem;
	top: 5px;
	margin-right: 12px;
	color: var(--font);
	user-select: none;
	cursor: pointer;
}
fieldset > div.file {
	width: 100px;
	padding-bottom: 12px;
	margin-bottom: 0;
}
input[type="file"], .file > a {
	color: transparent !important;
	font-size: 0;
	width: 52px !important;
	height: 68px !important;
	border-radius: 3px;
}
input[type="file"].uploading {
	opacity: .4;
}
input[type="file"] {
	visibility: hidden;
}
input[type="file"]::-webkit-file-upload-button {
	display: none;
}
input[type="file"]::before {
	content: '';
	display: flex;
	align-items: center;
	justify-content: center;
	height: 68px;
	border-radius: 3px;
	border: 1px solid var(--brd);
	background-color: var(--input-bg);
	outline: none;
	white-space: nowrap;
	-webkit-user-select: none;
	cursor: pointer;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 47.99'><g><path fill='rgba(50, 78, 110, .45)' d='M46,29.99c-1.1,0-2,.9-2,2v12H4v-12c0-1.1-.9-2-2-2s-2,.9-2,2v14c0,1.1.9,2,2,2h44c1.1,0,2-.9,2-2v-14c0-1.1-.9-2-2-2Z'/><path fill='rgba(50, 78, 110, .45)' d='M14,13.99c.51,0,1.02-.2,1.41-.59l6.59-6.59v21.24c0,1.1.9,2,2,2s2-.9,2-2V6.82l6.63,6.63c.78.78,2.05.78,2.83,0,.78-.78.78-2.05,0-2.83L25.41.58c-.13-.13-.28-.23-.43-.32-.04-.02-.07-.04-.11-.06-.15-.07-.31-.13-.47-.17,0,0-.01,0-.02,0-.17-.03-.34-.04-.51-.03-.04,0-.08,0-.13.01-.17.02-.35.06-.51.13,0,0,0,0,0,0,0,0,0,0,0,0-.16.07-.3.16-.44.26-.04.03-.07.06-.11.09-.03.03-.07.05-.1.08l-10,10c-.78.78-.78,2.05,0,2.83.39.39.9.59,1.41.59Z'/></g></svg>");
	background-repeat: no-repeat !important;
	background-position: center center !important;
	background-size: 24px auto !important;
	transition: background .2s;
}
input[type="file"]:hover::before {
  border-color: var(--brd);
  background-color: var(--input-hover-bg);
}
input[type="file"]:active::before {
  background: -webkit-linear-gradient(top, #e3e3e3, #f9f9f9);
}
input[type="file"].pdf::before, .file > a.pdf {
	border: 1px solid var(--brd);
	background-color: white !important;
	background-image: none !important;
	box-shadow: 1px 2px 0 var(--shad);
	cursor: default;
}
.file > a.pdf {
	cursor: pointer;
}
input[type="file"].pdf::after, .file > a.pdf::after  {
	content:"PDF";
	display: flex;
	position: absolute;
	left: 18px;
	min-width: 40px;
	top: 28px;
	padding: 5px 8px;
	background-color: var(--red);
	background-image: none;
	border-radius: 2px;
	box-shadow: 1px 2px 0 var(--shad);
	font-size: 9px;
	color: white;
}
input[type="file"].pdf:hover::after, .file > a.pdf:hover::after  {
	background-color: var(--blue);
}
input[type="file"] + button + small, .file > a + button + small  {
	position: absolute;
	top: 82px;
	left: 0;
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	word-break: break-all;
}
.error, a.red {color: var(--red)}
fieldset > div.error:not(.radio) input:not([type='radio'],[type='checkbox']), fieldset > div.error textarea, fieldset > div.error select {
	box-shadow: 0 0 0 1px var(--red) !important;
	border-color: var(--red) !important;
}
fieldset > div.error > label:first-child {
	color: var(--red) !important;
	font-weight: 900;
}
fieldset > .radio.error {
	box-shadow: 0 8px 0 var(--main-bg), 0 10px 0 var(--red);
	width: 100%;
	border-radius: 1px;
}
legend {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 8px;
	padding: 0;
}
input:not([type='checkbox'],[type='radio']), textarea {
	all: unset;
}
input:not([type=checkbox],[type=radio],[type=file]), textarea, select, button {
	display: block;
	padding: 0 8px;
	font-size: var(--inputSize);
	color: var(--font);
	background-color: var(--input-bg);
	border: 1px solid var(--brd);
	line-height: 28px;
	min-height: 28px;
	border-radius: 3px;
	transition: background-color 200ms;
}
input:not([type=checkbox],[type=radio],[type=file]), textarea {
	box-shadow: inset 1px 1px 0 0 var(--shad);
}
input:not([type=checkbox],[type=radio],[type=file]):focus, textarea:focus {
	background-color: var(--input-hover-bg);
}
input[type='checkbox'] {
	appearance: none;
	-webkit-appearance: none;
	background-color: white;
	border: 1px solid var(--font);
	width: 18px;
	height: 18px;
	border-radius: 3px;
	cursor: pointer;
	position: relative;
	box-shadow: inset 1px 1px 1px var(--shad);
}
input[type="checkbox"]:checked {
	background-color: var(--blue);
	border: 1px solid var(--blue);
}
input[type="checkbox"]:checked::after {
	content: "✓";
	position: absolute;
	left: 4px;
	top: -1px;
	color: white;
	font-weight: 900;
	font-size: 1rem;
	border-width: 0 3px 3px 0;        
}
input[type=search]::-ms-clear { display: none; width : 0; height: 0; }
input[type=search]::-ms-reveal { display: none; width : 0; height: 0; }

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration { display: none; }
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
[list]::-webkit-calendar-picker-indicator {
    display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
	box-shadow: none;
	font-size: 1.1rem;
	font-size-adjust: none;
	transition: background-color 5000s ease-in-out 0s;
}
textarea {
	font-family: regular,Helvetica,Arial,sans-serif; 
	font-weight: 400;
	width: 100%;
	min-height: 80px;
}
::placeholder {
  font-style: italic;
  color: var(--font);
  opacity: .7;
}
select, button {
	cursor: pointer;
	box-shadow: 1px 1px 2px var(--shad);
}
button {
	min-width: 30px;
	height: 30px;
	opacity: 1;
	transition: background-color .2s, border-color .2s, opacity .2s;
	text-decoration: none;
	white-space: nowrap
}
button.clear {
	background-color: transparent !important;
	border-color: transparent !important;
	box-shadow: none !important;
}
button.link {
	display: block;
	height: auto;
	min-height: 0;
	line-height: 1.1;
	font-size: 1rem;
	padding: 3px 10px;
	font-weight: 400;
}
button.secondary {
	background-color: var(--blue);
	border-color: var(--blue);
	color: white !important;
}
button.primary {
	background-color: var(--green);
	border-color: var(--green);
	color: white !important;
}
input + button.overlay {
	margin-left: -30px;
}
button.small {
	line-height: 18px;
	min-height: 20px;
	max-height: 20px;
	font-weight: 300;
	font-size: 11px;
	padding: 0 6px;
}
button.large {
	font-size: 1.1rem;
	padding: 0 24px;
	line-height: 36px;
	height: 36px;
	min-height: 36px;
}
button.red {
	color: white !important;
	background: var(--red);
	border-color: var(--red);
}
button.orange {
	color: white !important;
	background: var(--orange);
	border-color: var(--orange);
}
button:hover {
	background-color: var(--input-hover-bg);
	border-color: var(--brd);
	color: var(--font);
}
button.primary:hover {
	background-color: var(--blue);
	border-color: var(--blue);
}
button.secondary:hover {
	background-color: var(--green);
	border-color: var(--green);
}
button.red:hover, button.orange:hover {
	background-color: var(--red);
	border-color: var(--red);
}
button.icon {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
}
button.icon.small {
	width: 18px;
	height: 18px;
	border-radius: 9px;
	line-height: 10px;
	padding: 3px;
	min-height: 18px;
	min-width: 18px;
}
input + button.icon.small.overlay, .file > a + button.icon.small.overlay {
	margin-left: 0;
	top: 0;
	margin-top: 4px;
	position: absolute;
	right: -8px;
}
input[type="file"] + button.icon.small.overlay, .file > a + button.icon.small.overlay {
	right: auto;
	left: 60px;
	top: 5px;
}
button.icon > svg {
	width: 100%;
	height: auto;
}
fieldset > div input + button:not(.overlay) {
	border-radius: 0 3px 3px 0;
	left: -2px;
	margin-right: 10px;
}
fieldset > div input:has(+ button:not(.overlay)) {
   border-radius: 3px 0 0 3px;
}
fieldset > div select:has(+ select), fieldset > div button:has(+ button) {
	border-radius: 3px 0 0 3px;
	border-right: 1px solid transparent !important;
}
fieldset > div select:has(+ select), fieldset > div button:has(+ button.invis) {
	border-radius: 3px;
	border-right: 1px solid var(--brd) !important;
}
fieldset > div select + select, fieldset > div button:not(.invis) + button {
	border-radius: 0;
	position: relative;
}
fieldset > div select:has(+ select) + select:last-child,e fieldset > div button:not(.invis):has(+ button) + button:last-child {
   border-radius: 0 3px 3px 0;
}
.inputVals {
	padding: 0 !important;
	margin: -12px 4px 0 !important;
	display: flex;
	flex-direction: column;
	
}
.inputVal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	border-bottom: 1px solid var(--brd);
	padding: 10px 0 6px;
	min-width: 100%
}
inputVal:last-child {
	border-bottom: none;
}

fieldset > div input + button.add {
	border-radius: 0 3px 3px 0;
}
.inputVal > span {
	max-width: 340px;
}
.key.hidden:has(.key:has(.searchKey)) {
	display: block;
}
label:has(+ input:not(:disabled):required):after, label:has(+ select:not(:disabled):required):after, label:has(+ textarea:not(:disabled):required):after, label:has(+ radio:not(:disabled):required):after {
	content: "required";
	color: var(--orange);
	font-size: 8px;
	position: relative;
	top: -3px;
	left: 3px;
}
.login label:after {display: none}
input:disabled, textarea:disabled, select:disabled {
	opacity: .7;
}
label:has(+ input:disabled) > sup, label:has(+ select:disabled) > sup, label:has(+ textarea:disabled) > sup    {
	display: none;
}

/* =================== DDWN ========================= */
.ddwn-wrap {
    display: inline-block;
    position: relative;
	z-index: 2001;
	margin: 0;
}
.ddwn-wrap > button.icon {
	position: relative;
}
.ddwn-wrap > button.icon.profile {
    position: relative;
    z-index: 3;
}
.ddwn-wrap > ul {
    display: none;
    position: absolute;
    margin: -1px 0 0 1px;
    flex-direction: column;
    z-index: 2000;
    padding: 10px;
    border-radius: 0 3px 3px 3px;
    background: var(--input-bg);
    box-shadow: 0 0 1px 1px var(--brd);
    min-width: 160px;
    opacity: 0;
    font-size: 1.1rem;
}
.ddwn-wrap.open > ul {
    display: flex;
    opacity: 1;
    transform: scale(1);
    animation: show .3s;
}
.ddwn-wrap.open .icon svg .fill {
    fill: var(--blue);
    opacity: 1;
}
.profile .ddwn-wrap > ul {
        right: -1px;
        border-radius: 3px 0 3px 3px;
		text-align: right;
   }




/* TABLES */
table {
	border-spacing: 0;
    border-collapse: collapse;
	font-size: .86rem;
	width: 100%;
	-webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
	position: relative;
	box-shadow: 0 2px 0 var(--brd);
	border-radius: 0 0 6px 6px;
	margin-bottom: 6px;
}
table colgroup col:first-child {
	width: 0px;
}
/* table th.grow, table td.grow {
	width: 99%;
}
*/
table colgroup col.grow {
	width: 99%;
}
table colgroup col.id {

}
table colgroup col.date {
	
}
table colgroup col.dollar {
	
}
table colgroup col.status {
	
}
table colgroup col.location {
	min-width: 180px;
}
table colgroup col.name {
	min-width: 140px;
}
table colgroup col.phone {
	
}
table colgroup col.small {
	
}
table colgroup col.grow {
	width: 99%;
}
table colgroup col.file {
	width: 24px;
	max-width: 24px;
}
table thead {
	font-size: .8rem;
}
table tr {
	position: relative;
	opacity: 1;
}
table tr td, table tr th {
	padding-left: 21px;
	white-space: nowrap;
}
table tr td:first-child, table tr thd:first-child {
	padding-left: 40px;
}
table thead th {
	text-align: left;
	white-space: nowrap;
	vertical-align: bottom;
	height: 32px;
	line-height: 32px;
	font-weight: 300;
	color: var(--lfont);
	position: -webkit-sticky;
    position: sticky;
	top: 0;
	z-index: 200;
    background: var(--main-bg);
	/* box-shadow: inset 0 -1px 0 0 var(--brd), inset 0 1px 0 var(--brd); */
	box-shadow: 0 -2px 0 var(--main-bg), inset 0 -1px 0 var(--brd);
}
table thead th > svg {
	width: 16px;
	height: 16px;
	position: relative;
	left: -5px;
	bottom: -2px;
}
th:first-child:after {
	left: -10px;
	width: calc(100% + 11px)
}
table tbody tr {
	margin-bottom: 1px;
	box-shadow: inset 0 -1px 0 var(--brd);
	transition: box-shadow .2s;
}
table tbody tr:not(.checkbox) {
	cursor: pointer;
}
table tbody tr:nth-child(odd) {
	background: var(--lgrey);
}
table tbody tr:nth-child(odd) select {
	background-color: white;
}
table tbody tr:not(.noresult):hover, table tbody tr.selected {
	box-shadow: inset 2px 2px 0 var(--blue), inset -2px -2px 0 var(--blue), inset 0 0 0 1px var(--blue), 0 0 0 1px var(--green);
	background: var(--highlight);
	z-index: 3;
}
table tbody tr.highlight {
	box-shadow: inset 2px 2px 0 var(--green), inset -2px -2px 0 var(--green), inset 0 0 0 1px var(--green), 0 2px 1px 1px var(--shad);
	background: var(--highlight);
	z-index: 3;
}
table tbody td {
	height: 40px;
	opacity: .8;
	transition: opacity .2s;
	font-stretch: 20%;
}
table tbody td.new {
	position: relative;
}
table tbody td.new:after {
	content: 'new';
	position: absolute;
	left: 10px;
	top: 3px;
	background: var(--orange);
	color: white;
	font-size: 9px;
	border-radius: 1px;
	padding: 1px 3px 1px;
}
table tbody td.doc.new:after {
	top: 2px;
	left: 5px;
	
}
table tbody td.strong {
	opacity: 1;
	font-weight: 900;
	transition: opacity .2s
}
table tbody tr:hover td {
	opacity: 1;
}
table tbody td:nth-child(2), table thead th:nth-child(2) {
	padding-left: 2px;
}
table tbody td:last-child {
	padding-right: 20px;
}
table.noclick {
	-webkit-touch-callout: initial; /* iOS Safari */
    -webkit-user-select: initial; /* Safari */
     -khtml-user-select: initial; /* Konqueror HTML */
       -moz-user-select: initial; /* Old versions of Firefox */
        -ms-user-select: initial; /* Internet Explorer/Edge */
            user-select: initial;
}
table tbody tr.noresult {
	width: 100%;
	border: none;
	background: none;
	box-shadow: none;
	font-weight: 900;
}
table tbody tr:last-child {
	border-radius: 0 0 4px 4px;
}
table label {
	display: block;
	white-space: nowrap;
}
table tr input[type='checkbox'] {
	margin-right: 10px;
}
table .doc a {
	position: relative;
	display: flex;
	width: 22px;
	height: 30px;
	border-radius: 3px;
	border: 1px solid var(--brd);
	background: white;
	box-shadow: 1px 2px 0 var(--shad);
	top: -1px;
}
table .doc a:after {
	content: "PDF";
	display: flex;
	align-items: center;
	position: absolute;
	right: -5px;
	top: 7px;
	padding: 3px 4px 2px;
	background: var(--red);
	border-radius: 2px;
	box-shadow: 1px 2px 0 var(--shad);
	font-size: 7px;
	font-stretch: 30%;
	color: white;
}
table .doc.report a:after {
	content: "REPORT";
	background: var(--green);
	right: -12px;
}
table .doc.facesheet a:after {
	
}
table .doc a:hover:after {
	background: var(--blue);
}
table .doc .missing {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 22px;
	height: 30px;
	border-radius: 3px;
	color: var(--brd);
	border: 1px solid var(--brd);
	background: var(--grey);
}
table .doc .missing:after {
	content: "X";
	font-size: 10px;
	color: var(--lfont)
}
tfoot {
	height: 60px;
}
tfoot tr td {
	height: 40px;
	vertical-align: top;
}

.hidden {display: none !important;}

.paging .hidden {display: block;visibility: hidden;}

/* STATUS ICONS 
table tbody tr:after {
	content: "";
	position: absolute;
	left: 7px;
	top: 7px;
	height: 14px;
	width: 14px;
	border-radius: 7px;
	background: var(--red);
}
*/

/* NOTES */
.messages {
	padding: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 100%;
	height: auto;
	overflow-y: auto;
	max-width: 400px;
	
}
.messages .message {
	position: relative;
	border: 1px solid var(--brd);
	padding: 9px;
	margin: 0 30px 8px 0;
	border-radius: 6px;
	background: white;
}
.message .note {
	margin-bottom: 10px;
}
.message small {
	display: block;
	font-size: 8px;
	opacity: .6;
	text-align: right;
}
.message.sent {
	margin: 0 8px 8px 20px;
	border-color: var(--blue);
	background: var(--blue);
	color: white;
}
.message.sent:after {
	left: calc(100% - 9px);
	top: -1px;
	border: solid transparent;
	content: "";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-color: rgba(0, 0, 0, 0);
	width: 0; 
	height: 0; 
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-top: 12px solid var(--blue);
}
/* ICONS */
select {
	appearance: none;
	padding-right: 16px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><g><polygon fill='rgb(99, 172, 224)' points='32 0 0 32 32 32 32 0'/></g></svg>");
	background-repeat: no-repeat;
	background-position: right 0.4rem bottom .4rem;
	background-size: 0.7rem auto;
	/*max-width: 200px;*/
}
select:focus {
	background-color: var(--input-hover-bg);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><g><polygon fill='rgb(100, 209, 184)' points='32 0 0 32 32 32 32 0'/></g></svg>");
	outline: none;
}
button.search {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'><g transform='translate(-535 -338)'><rect style='fill: none;' width='21' height='21' transform='translate(535 338)'></rect><path fill='rgb(99, 172, 224)' d='M19.3,18.3h0l-4.7-4.9A8.31,8.31,0,0,0,13.5,1.9a8.327,8.327,0,0,0-11.6,1,8.243,8.243,0,0,0,1,11.6,8.593,8.593,0,0,0,5.3,1.9h0A8.555,8.555,0,0,0,12.8,15l4.7,4.9a1.234,1.234,0,0,0,.8.4h.1a1.136,1.136,0,0,0,.8-.3,1.234,1.234,0,0,0,.4-.8A.855.855,0,0,0,19.3,18.3ZM8.2,14A5.8,5.8,0,1,1,14,8.2,5.8,5.8,0,0,1,8.2,14Z' transform='translate(535.629 338.496)'></path></g></svg>");
	background-repeat: no-repeat;
	background-position: center .4rem;
	background-size: 1.4rem auto;
}
button.search:hover, input:hover + .search {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'><g transform='translate(-535 -338)'><rect style='fill: none;' width='21' height='21' transform='translate(535 338)'></rect><path fill='rgb(100, 209, 184)' d='M19.3,18.3h0l-4.7-4.9A8.31,8.31,0,0,0,13.5,1.9a8.327,8.327,0,0,0-11.6,1,8.243,8.243,0,0,0,1,11.6,8.593,8.593,0,0,0,5.3,1.9h0A8.555,8.555,0,0,0,12.8,15l4.7,4.9a1.234,1.234,0,0,0,.8.4h.1a1.136,1.136,0,0,0,.8-.3,1.234,1.234,0,0,0,.4-.8A.855.855,0,0,0,19.3,18.3ZM8.2,14A5.8,5.8,0,1,1,14,8.2,5.8,5.8,0,0,1,8.2,14Z' transform='translate(535.629 338.496)'></path></g></svg>");
}
button.orange.search {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'><g transform='translate(-535 -338)'><rect style='fill: none;' width='21' height='21' transform='translate(535 338)'></rect><path fill='rgb(255,255,255,.6)' d='M19.3,18.3h0l-4.7-4.9A8.31,8.31,0,0,0,13.5,1.9a8.327,8.327,0,0,0-11.6,1,8.243,8.243,0,0,0,1,11.6,8.593,8.593,0,0,0,5.3,1.9h0A8.555,8.555,0,0,0,12.8,15l4.7,4.9a1.234,1.234,0,0,0,.8.4h.1a1.136,1.136,0,0,0,.8-.3,1.234,1.234,0,0,0,.4-.8A.855.855,0,0,0,19.3,18.3ZM8.2,14A5.8,5.8,0,1,1,14,8.2,5.8,5.8,0,0,1,8.2,14Z' transform='translate(535.629 338.496)'></path></g></svg>");
	background-repeat: no-repeat;
	background-position: 3px 2px;
	background-size: auto 70%;
	padding-left: 19px;
}
button.orange.search:hover {
	background-color: var(--red);
	border-color: var(--red);
}
input[type="date"] {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 27'%3E%3Cg%3E%3Crect fill='none' stroke='rgb(99, 172, 224)' stroke-miterlimit='10' stroke-width='3px' x='1' y='3' width='24' height='23' rx='3' ry='3'/%3E%3Cline fill='none' stroke='rgb(99, 172, 224)' stroke-miterlimit='10' stroke-width='3px' x1='8' x2='8' y2='8'/%3E%3Cline fill='none' stroke='rgb(99, 172, 224)' stroke-miterlimit='10' stroke-width='3px' x1='18' x2='18' y2='8'/%3E%3Cline fill='none' stroke='rgb(99, 172, 224)' stroke-miterlimit='10' stroke-width='3px' x1='1' y1='11' x2='25' y2='11'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: calc(100% - 5px) center;
	background-size: 1.2rem auto;
}
input[type="date"]:hover {
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 27'%3E%3Cg%3E%3Crect fill='none' stroke='rgb(100, 209, 184)' stroke-miterlimit='10' stroke-width='3px' x='1' y='3' width='24' height='23' rx='3' ry='3'/%3E%3Cline fill='none' stroke='rgb(100, 209, 184)' stroke-miterlimit='10' stroke-width='3px' x1='8' x2='8' y2='8'/%3E%3Cline fill='none' stroke='rgb(100, 209, 184)' stroke-miterlimit='10' stroke-width='3px' x1='18' x2='18' y2='8'/%3E%3Cline fill='none' stroke='rgb(100, 209, 184)' stroke-miterlimit='10' stroke-width='3px' x1='1' y1='11' x2='25' y2='11'/%3E%3C/g%3E%3C/svg%3E");
}
button.profile {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18.288' height='20.43' viewBox='0 0 18.288 20.43'><g transform='translate(-24.165)'><g transform='translate(28.005)'><g><path fill='rgb(99, 172, 224)' d='M116.1,0a5.3,5.3,0,1,0,5.3,5.3A5.319,5.319,0,0,0,116.1,0Z' transform='translate(-110.791)'></path></g></g><g transform='translate(24.165 10.988)'><g transform='translate(0)'><path fill='rgb(99, 172, 224)' d='M42.413,251.7a4.945,4.945,0,0,0-.533-.973,6.593,6.593,0,0,0-4.563-2.872.976.976,0,0,0-.672.162,5.654,5.654,0,0,1-6.671,0,.869.869,0,0,0-.672-.162,6.546,6.546,0,0,0-4.563,2.872,5.7,5.7,0,0,0-.533.973.493.493,0,0,0,.023.44,9.241,9.241,0,0,0,.625.927,8.8,8.8,0,0,0,1.066,1.2,13.886,13.886,0,0,0,1.066.927,10.563,10.563,0,0,0,12.6,0,10.185,10.185,0,0,0,1.066-.927,10.7,10.7,0,0,0,1.066-1.2,8.119,8.119,0,0,0,.625-.927A.4.4,0,0,0,42.413,251.7Z' transform='translate(-24.165 -247.841)'></path></g></g></g></svg>");
	background-repeat: no-repeat;
	background-position: center top 50%;
	background-size: 1.4rem auto;
}
button.profile:hover {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18.288' height='20.43' viewBox='0 0 18.288 20.43'><g transform='translate(-24.165)'><g transform='translate(28.005)'><g><path fill='rgb(100, 209, 184)' d='M116.1,0a5.3,5.3,0,1,0,5.3,5.3A5.319,5.319,0,0,0,116.1,0Z' transform='translate(-110.791)'></path></g></g><g transform='translate(24.165 10.988)'><g transform='translate(0)'><path fill='rgb(100, 209, 184)' d='M42.413,251.7a4.945,4.945,0,0,0-.533-.973,6.593,6.593,0,0,0-4.563-2.872.976.976,0,0,0-.672.162,5.654,5.654,0,0,1-6.671,0,.869.869,0,0,0-.672-.162,6.546,6.546,0,0,0-4.563,2.872,5.7,5.7,0,0,0-.533.973.493.493,0,0,0,.023.44,9.241,9.241,0,0,0,.625.927,8.8,8.8,0,0,0,1.066,1.2,13.886,13.886,0,0,0,1.066.927,10.563,10.563,0,0,0,12.6,0,10.185,10.185,0,0,0,1.066-.927,10.7,10.7,0,0,0,1.066-1.2,8.119,8.119,0,0,0,.625-.927A.4.4,0,0,0,42.413,251.7Z' transform='translate(-24.165 -247.841)'></path></g></g></g></svg>");
}
button.close {
	background-image: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='357px' height='357px' viewBox='0 0 357 357' style='enable-background:new 0 0 357 357;' xml:space='preserve'><g><polygon fill='rgba(59, 74, 110,.4)' points='357,35.7 321.3,0 178.5,142.8 35.7,0 0,35.7 142.8,178.5 0,321.3 35.7,357 178.5,214.2 321.3,357 357,321.3 214.2,178.5'></polygon></g></svg>");
	background-repeat: no-repeat;
	background-position: center top 50%;
	background-size: 1.4rem auto;
}
button.close:hover {
	background-image: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='357px' height='357px' viewBox='0 0 357 357' style='enable-background:new 0 0 357 357;' xml:space='preserve'><g><polygon fill='rgb(100, 209, 184)' points='357,35.7 321.3,0 178.5,142.8 35.7,0 0,35.7 142.8,178.5 0,321.3 35.7,357 178.5,214.2 321.3,357 357,321.3 214.2,178.5'></polygon></g></svg>");
}
button.next {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'><g transform='translate(274 265) rotate(180)'><rect fill='none' width='21' height='21' transform='translate(253 244)'></rect><g transform='translate(366.54 264.5) rotate(180)'><path fill='rgba(59, 74, 110,.4)' d='M108.129,10.99l-8.6,8.6a1.4,1.4,0,1,1-1.981-1.98l7.61-7.61L97.549,2.391A1.4,1.4,0,0,1,99.53.41l8.6,8.6a1.4,1.4,0,0,1,0,1.98Z'></path></g></g></svg>");
	background-repeat: no-repeat;
	background-position: 6px center;
	background-size: 1.4rem auto;
}
button.next:hover {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'><g transform='translate(274 265) rotate(180)'><rect fill='none' width='21' height='21' transform='translate(253 244)'></rect><g transform='translate(366.54 264.5) rotate(180)'><path fill='rgb(100, 209, 184)' d='M108.129,10.99l-8.6,8.6a1.4,1.4,0,1,1-1.981-1.98l7.61-7.61L97.549,2.391A1.4,1.4,0,0,1,99.53.41l8.6,8.6a1.4,1.4,0,0,1,0,1.98Z'></path></g></g></svg>");
}
button.prev, button.back {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'><g transform='translate(-253 -244)'><rect style='fill: none' width='21' height='21' transform='translate(253 244)'></rect><g transform='translate(366.54 264.5) rotate(180)'><path fill='rgba(59, 74, 110,.4)' d='M108.129,10.99l-8.6,8.6a1.4,1.4,0,1,1-1.981-1.98l7.61-7.61L97.549,2.391A1.4,1.4,0,0,1,99.53.41l8.6,8.6a1.4,1.4,0,0,1,0,1.98Z'></path></g></g></svg>");
	background-repeat: no-repeat;
	background-position: 5px center;
	background-size: 1.4rem auto;
}
button.prev:hover,button.back:hover {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'><g transform='translate(-253 -244)'><rect style='fill: none' width='21' height='21' transform='translate(253 244)'></rect><g transform='translate(366.54 264.5) rotate(180)'><path fill='rgb(100, 209, 184)' d='M108.129,10.99l-8.6,8.6a1.4,1.4,0,1,1-1.981-1.98l7.61-7.61L97.549,2.391A1.4,1.4,0,0,1,99.53.41l8.6,8.6a1.4,1.4,0,0,1,0,1.98Z'></path></g></g></svg>");
}
button.add {
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 282.55 282.55"><line fill="none" stroke="white" stroke-miterlimit="10" stroke-width="38px" x1="141.28" x2="141.28" y2="282.55"></line><line fill="none" stroke="white" stroke-miterlimit="10" stroke-width="38px" y1="141.28" x2="282.55" y2="141.28"></line></svg>');
	background-repeat: no-repeat;
	background-position: center top 50%;
	background-size: 1.4rem auto;
}

@media (prefers-color-scheme: dark) {
	button.next {
		background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'><g transform='translate(274 265) rotate(180)'><rect fill='none' width='21' height='21' transform='translate(253 244)'></rect><g transform='translate(366.54 264.5) rotate(180)'><path fill='rgb(99, 172, 224)' d='M108.129,10.99l-8.6,8.6a1.4,1.4,0,1,1-1.981-1.98l7.61-7.61L97.549,2.391A1.4,1.4,0,0,1,99.53.41l8.6,8.6a1.4,1.4,0,0,1,0,1.98Z'></path></g></g></svg>");
	}
	button.next:hover {
		background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'><g transform='translate(274 265) rotate(180)'><rect fill='none' width='21' height='21' transform='translate(253 244)'></rect><g transform='translate(366.54 264.5) rotate(180)'><path fill='rgb(100, 209, 184)' d='M108.129,10.99l-8.6,8.6a1.4,1.4,0,1,1-1.981-1.98l7.61-7.61L97.549,2.391A1.4,1.4,0,0,1,99.53.41l8.6,8.6a1.4,1.4,0,0,1,0,1.98Z'></path></g></g></svg>");
	}
	button.prev, button.back {
		background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'><g transform='translate(-253 -244)'><rect style='fill: none' width='21' height='21' transform='translate(253 244)'></rect><g transform='translate(366.54 264.5) rotate(180)'><path fill='rgb(99, 172, 224)' d='M108.129,10.99l-8.6,8.6a1.4,1.4,0,1,1-1.981-1.98l7.61-7.61L97.549,2.391A1.4,1.4,0,0,1,99.53.41l8.6,8.6a1.4,1.4,0,0,1,0,1.98Z'></path></g></g></svg>");
	}
	button.prev:hover,button.back:hover {
		background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'><g transform='translate(-253 -244)'><rect style='fill: none' width='21' height='21' transform='translate(253 244)'></rect><g transform='translate(366.54 264.5) rotate(180)'><path fill='rgb(100, 209, 184)' d='M108.129,10.99l-8.6,8.6a1.4,1.4,0,1,1-1.981-1.98l7.61-7.61L97.549,2.391A1.4,1.4,0,0,1,99.53.41l8.6,8.6a1.4,1.4,0,0,1,0,1.98Z'></path></g></g></svg>");
	}
	button.close {
		background-image: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='357px' height='357px' viewBox='0 0 357 357' style='enable-background:new 0 0 357 357;' xml:space='preserve'><g><polygon fill='rgb(99, 172, 224)' points='357,35.7 321.3,0 178.5,142.8 35.7,0 0,35.7 142.8,178.5 0,321.3 35.7,357 178.5,214.2 321.3,357 357,321.3 214.2,178.5'></polygon></g></svg>");
	}
	input[type="file"]::before {
		background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 47.99'><g><path fill='rgba(216, 222, 235, .4)' d='M46,29.99c-1.1,0-2,.9-2,2v12H4v-12c0-1.1-.9-2-2-2s-2,.9-2,2v14c0,1.1.9,2,2,2h44c1.1,0,2-.9,2-2v-14c0-1.1-.9-2-2-2Z'/><path fill='rgba(216, 222, 235, .4)' d='M14,13.99c.51,0,1.02-.2,1.41-.59l6.59-6.59v21.24c0,1.1.9,2,2,2s2-.9,2-2V6.82l6.63,6.63c.78.78,2.05.78,2.83,0,.78-.78.78-2.05,0-2.83L25.41.58c-.13-.13-.28-.23-.43-.32-.04-.02-.07-.04-.11-.06-.15-.07-.31-.13-.47-.17,0,0-.01,0-.02,0-.17-.03-.34-.04-.51-.03-.04,0-.08,0-.13.01-.17.02-.35.06-.51.13,0,0,0,0,0,0,0,0,0,0,0,0-.16.07-.3.16-.44.26-.04.03-.07.06-.11.09-.03.03-.07.05-.1.08l-10,10c-.78.78-.78,2.05,0,2.83.39.39.9.59,1.41.59Z'/></g></svg>");
	}
	input[type="file"]:hover::before {
		background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 47.99'><g><path fill='rgb(216, 222, 235)' d='M46,29.99c-1.1,0-2,.9-2,2v12H4v-12c0-1.1-.9-2-2-2s-2,.9-2,2v14c0,1.1.9,2,2,2h44c1.1,0,2-.9,2-2v-14c0-1.1-.9-2-2-2Z'/><path fill='rgb(216, 222, 235)' d='M14,13.99c.51,0,1.02-.2,1.41-.59l6.59-6.59v21.24c0,1.1.9,2,2,2s2-.9,2-2V6.82l6.63,6.63c.78.78,2.05.78,2.83,0,.78-.78.78-2.05,0-2.83L25.41.58c-.13-.13-.28-.23-.43-.32-.04-.02-.07-.04-.11-.06-.15-.07-.31-.13-.47-.17,0,0-.01,0-.02,0-.17-.03-.34-.04-.51-.03-.04,0-.08,0-.13.01-.17.02-.35.06-.51.13,0,0,0,0,0,0,0,0,0,0,0,0-.16.07-.3.16-.44.26-.04.03-.07.06-.11.09-.03.03-.07.05-.1.08l-10,10c-.78.78-.78,2.05,0,2.83.39.39.9.59,1.41.59Z'/></g></svg>");
	}
}


button:disabled {position: relative}
button:disabled {
	opacity: .6;
}
button::after {
	content: "";
	position: absolute;
	left: 2px;
	top: 2px;
	opacity: 0;
	transition: opacity .2s;
}
button:disabled::after {
  width: 20px;
  aspect-ratio: 4;
  --_g: no-repeat radial-gradient(circle closest-side,white 90%,#0000);
  background: 
    var(--_g) 0%   50%,
    var(--_g) 50%  50%,
    var(--_g) 100% 50%;
  background-size: calc(100%/3) 100%;
  animation: dots 1s infinite linear;
  opacity: .8;
} 
@keyframes dots {
    33%{background-size:calc(100%/3) 0%  ,calc(100%/3) 100%,calc(100%/3) 100%}
    50%{background-size:calc(100%/3) 100%,calc(100%/3) 0%  ,calc(100%/3) 100%}
    66%{background-size:calc(100%/3) 100%,calc(100%/3) 100%,calc(100%/3) 0%  }
}
button.small:disabled::after {
	top: 1px;
	width:  12px;
}
tr:after {
	content: "";
	position: absolute;
	width: 24px;
	top: 0;
	bottom: 0;
	left: 13px;
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 70% auto;
}
tr.denied:after {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24.65 21.96'><g><line fill='none' stroke-linecap='round' stroke-miterlimit='10' stroke='rgb(247, 116, 116)' stroke-width='5px' x1='3.9' y1='19.46' x2='20.75' y2='2.61'></line></g><g><line fill='none' stroke-linecap='round' stroke-miterlimit='10' stroke='rgb(247, 116, 116)' stroke-width='5px' x1='20.75' y1='19.46' x2='3.9' y2='2.61'></line></g></svg>");
}
tr.approved:after {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24.65 21.97'><g><polyline fill='none' stroke='rgb(100, 209, 184)' stroke-linecap='round' stroke-linejoin='round' stroke-width='5px' points='2.5 13.68 9.47 19.47 22.15 2.5'/></g></svg>");
}
tr.processing:after {
	background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24.66 24.65"><g><path stroke="%23ffc669" stroke-width="12px" fill="none" stroke-miterlimit="10" d="M12.33,18.65c-3.49,0-6.33-2.83-6.33-6.32s2.84-6.33,6.33-6.33,6.33,2.84,6.33,6.33-2.62,6.13-5.98,6.32h-.35Z"/><polyline stroke="%23fff" stroke-linecap="round" stroke-width="3px" fill="none" stroke-miterlimit="10" points="11.96 4.57 11.96 14.33 18.08 16.82"/></g></svg>');
}
tr.new > td:first-child:before {
	content: "!";
	display: block;
	position: absolute;
	left: 1px;
	top: 1px;
	height: 12px;
	background: var(--blue);
	color: white;
	padding: 1px 5px 2px;
	border-radius: 0 0 3px 0;
	font-weight: 900;
	font-size: 9px;
}
tr.denied {
	box-shadow: inset 1px 1px 0 var(--lred), inset -1px -1px 0 var(--lred), inset 0 0 0 1px var(--lred), 0 2px 1px 1px var(--shad);
	
}
tr.denied:hover, tr.selected.denied {
	box-shadow: inset 2px 2px 0 var(--red), inset -2px -2px 0 var(--red), inset 0 0 0 1px var(--red), 0 2px 1px 1px var(--shad) !important;
}
tr.approved:hover, tr.selected.approved {
	box-shadow: inset 2px 2px 0 var(--green), inset -2px -2px 0 var(--green), inset 0 0 0 1px var(--green), 0 2px 1px 1px var(--shad) !important;
}
tr.processing:hover, tr.selected.processing {
	box-shadow: inset 2px 2px 0 #ffc669, inset -2px -2px 0 #ffc669, inset 0 0 0 1px #ffc669 !important;
}
/* POPUPS */
dialog {
	display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100svh;
    border: none;
    z-index: 2002;
    background: transparent;
	box-shadow: 0 0 0 1000px transparent;
	transition: box-shadow .2s, background .2s;
}
dialog.open {
	background: var(--fade);
	box-shadow: 0 0 0 1000px var(--shad);

}
dialog > div {
    display: flex;
    position: absolute;
    flex-direction: column;
    border-radius: 10px;
    padding: 14px 20px 16px 20px;
    border: 1px solid var(--shad);
	box-shadow: 0 0 0 1px var(--shad),1px 2px 2px var(--shad);
	border-right: none;
    top: 16px;
	bottom: 16px;
	right:-100vw;
	width: auto;
	min-width: 40%;e
	min-height: 180px;
    background: var(--main-bg);
	
	border: 20px solid var(--main-bg);
	border-right: 10px solid var(--main-bg);
	overflow: auto;
	scrollbar-color: var(--green) transparent;
	scrollbar-width: thin;
	scrollbar-gutter: stable;

	transition: right 0.3s;
}
dialog > div .form {
	display: flex;
	flex-grow: 1;
	flex-direction: column;
}
dialog.first, dialog.page {
	background: var(--fade);
	box-shadow: 0 0 0 1000px var(--shad);
}
dialog.first > div, dialog.page > div {
	right: 16px !important;
}
dialog.alert {
	background: var(--fade);
	box-shadow: 0 0 0 1000px var(--shad);
	opacity: 0;
	transition: opacity .2s;
}
dialog.alert > div {
	top: auto;
	bottom: auto;
	right: auto !important;
}
dialog.login {
	background: var(--fade);
	box-shadow: 0 0 0 1000px var(--shad);
	opacity: 1;
}
dialog.login > div {
	top: auto;
	bottom: auto;
	right: auto !important;
	max-width: 340px;
	min-width: 340px;
}
dialog.alert.open {opacity: 1}
dialog input:not([type=checkbox],[type=radio],[type=file]), dialog textarea, dialog select {
	font-size: 1rem;
}
dialog.open > div {
	right: 16px;
}
dialog .tr {
	position: absolute;
	top: 0;
	right: 0;
}
dialog h2 {
	margin-bottom: 14px;
}
dialog fieldset.footer {
	position: sticky;
	bottom: -16px;
	left: 0;
	right: 0;
	background: var(--main-bg);
	border-top: 1px solid var(--brd);
	box-shadow: 4px 0 0 var(--main-bg),-4px 0 0 var(--main-bg);
	justify-content: flex-end;
}
dialog .saved {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 1000;
	opacity: 1;
	transition: opacity .16s;
	background-color: var(--main-bg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104.03 80.43'%3E%3Cg%3E%3Cpath fill='%2364d1b8' d='M445.2,277.69' transform='translate(-349.5 -279.75)'/%3E%3Cpath fill='%2364d1b8' d='M450.2,291.94' transform='translate(-349.5 -279.75)'/%3E%3C/g%3E%3Cg%3E%3Cpath fill='%2364d1b8' stroke='%23fff' stroke-miterlimit='10' stroke-width='2px' d='M450.2,291.94h0l-8.86-8.87a6.31,6.31,0,0,0-8.87,0L389.71,325.9l-19.16-19.23a6.28,6.28,0,0,0-8.86,0l-8.87,8.86a6.31,6.31,0,0,0,0,8.87L376.42,348l8.86,8.87a6.31,6.31,0,0,0,8.87,0L403,348,450.2,300.8a6.28,6.28,0,0,0,0-8.86' transform='translate(-349.5 -279.75)'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat no-repeat;
	background-position: center center;
	background-size: 160px;
}
dialog .saved.show {
	opacity: 1;
}
dialog .saved.fade {
	opacity: 0;
}
/*MISC*/
.invis {
	opacity: 0;
	transition: opacity .2s;
	cursor: default;
}
.render-later {
	visibility: hidden;
}
.flex {display: flex}
.flex.end {justify-content: flex-end}
.flex.middle {align-items: center}
.flex.column {flex-direction: column}
.flex.bottom {align-items: flex-end;}
.flex.wrap {flex-wrap: wrap}
.grow {flex-grow: 1}
.grow.right {
	justify-content: flex-end;
}
.flex.gap {gap: 10px}
.ngap {gap:0}
.link {cursor: pointer}
.link.disabled {
	color: var(--font) !important;
	opacity: .5;
	cursor: default;
}
.count {padding-left: 32px;}
.mb20 {margin-bottom: 16px !important}
.nbrd{border-bottom: none !important; box-shadow: none !important}
.npad{padding: 0 !important}
.npad > div {padding: 0 !important}
/* FONTS */
@font-face {
    font-family: 'regular';
    src: url('fonts/Roboto.ttf') format('truetype');
    font-weight: 100 900; 
    font-stretch: 20% 200%; 
}



@media screen and (max-width: 1025px) {
	
	aside {display: none}	
	
	form > .toolbar {
		height: 48px;
		padding-left: 25px;
		padding-right: 25px;
		padding-bottom: 0;
	}
	main {
		box-shadow: none;
		border-left: none;
	}
	.toolbar fieldset > div {
		margin-bottom: 0;
	}
	header {
		border-radius: 16px 16px 0 0;
		padding-right: 30px;
		padding-left: 30px;
	}
	main {border-radius: 16px 16px 0 0}
	h1 + fieldset {
		padding-bottom: 10px;
	}
	fieldset > div input:has(+ button.search)
	{
		width: 100%;
	}
	table tbody td {
		height: 50px;
	}
	table colgroup col.name {
		min-width: auto;
	}
	table tr td:first-child, table tr thd:first-child {
		padding-left: 30px;
	}
	tr:after {
		left: 8px;
	}
	
}
@media screen and (max-width: 431px) {
	/*#paging {
		position: absolute;
		top: 26px;
		right: 30px;
	}*/
	dialog > div {
		max-width: calc(100vw - 30px);
		min-width: calc(100vw - 30px)
	}
	fieldset > div.large {
		min-width: 0;
		width: 100%;
	}
	button.large {
		padding: 0 18px;
		font-size: 1rem;
		
	}
	form > .toolbar {
		padding-right: 20px;
	}
	fieldset > div label, fieldset > div .label  {
		top: -1px;
	}
	fieldset > div:has(+ small) {
		flex-grow: 1;
	}
	dialog .tr {
		right: 10px;
	}
	dialog fieldset {
		padding: 0 0 0;
	}
	dialog fieldset > div {
		margin: 0;
	}
	dialog > div {
		padding-right: 30px;
	}
	input:not([type=checkbox],[type=radio],[type=file]), textarea, select, button {
		height: 30px;
		min-height: 30px;
		min-width: 30px;
		line-height: 30px;
		padding: 0 10px;
		font-size: 1rem;
		
	}
	button {height: 32px;line-height: 32px}
	textarea {min-height: 60px; height: auto;}
	select {
		padding-right: 24px;
	}
	fieldset > div input[type='radio'] + label {
		font-size: var(--inputSize);

	}
	button.overlay {
		margin-left: -32px;
	}
	fieldset > div.search {flex-grow: 1}
	button.search {
		background-position: center center;
		background-size: 1.6rem auto;
	}
	table {
		font-size: 1rem;
	}
	table tbody td {
        height: 48px;
    }
	table tr td, table tr th {
		padding-left: 18px;
	}
	header h1 {
		flex-wrap: wrap;
	}
	dialog.alert > div {
	top: 15px;
	bottom: 15px;
	left: 15px;
	right: 15px !important;
	}

}
@media (display-mode: standalone) {
  form > .toolbar {
		height: 40px;
		padding-left: 25px;
		padding-right: 20px;
		padding-bottom: 0;
		align-items: flex-start;
	}
}

h1 [data-id="PatientName"] {
  text-transform: uppercase;
}
.loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20001;
  background: var(--overlay);
  transition-property: background;
  transition-delay: 500ms;
}
.loader.hidden {
	background: rgba(255,255,255,0);
	z-index: -100;
	display: flex !important;
}
.loader .filter {
  transform: scale(7);
  opacity: 1;
  transition-property: opacity;
  transition-delay: 500ms;
  
}
.loader.hidden .filter {
  transform: scale(7);
  opacity: 0;
}
.loader svg polyline {
      fill: none;
      stroke-width: .75;
      stroke-linecap: round;
      stroke-linejoin: round;
}
#back {stroke: transparent}
#front {
        stroke: rgba(59, 211, 171);
        stroke-dasharray: 12, 36; /*Dash 12 & Gap 36 */
        stroke-dashoffset: 48;
        animation: dash 1s linear infinite;
}
.loader .text {
	font-size: 1.6rem;
	color: var(--blue);
	opacity:.7; 
    filter:blur(4);	
    animation: flicker 1s infinite;
}
@keyframes flicker {
  55.5% {opacity: 1}
  to {opacity: .7}
}
@keyframes dash { 
  62.5% {opacity: 0}
  to {stroke-dashoffset: 0}
}

main > div, aside > div {
	min-height: 80px;
}
section + div {
	padding: 20px 40px 0;
}
aside > * {
	margin-bottom: 30px;
}
aside input: {
	
	
}
.row {
	display: flex;
	gap: 10px;
	padding: 10px 0;
}
aside .row {
	flex-direction: column;
}
aside .row .col {
	min-width: 100%;
}

main section .row, main section > .form {
	padding: 20px 40px 20px 20px;
}
.row .col {
	background: var(--grey);
	border-radius: 8px;
	padding: 20px;
}
.row .col.blue {
	background: var(--blue-bg);
	color: rgb(50, 78, 110);
}
.row .col.green {
	background: var(--green-bg);
	color: rgb(50, 78, 110);
}
.row .col.red {
	background: var(--red);
}
.row .col input:not([type=checkbox],[type=radio],[type=file]), aside input:not([type=checkbox],[type=radio],[type=file]) {
	background-color: white;
}
.row .col.blue textarea, .row .col.blue input:not([type=checkbox],[type=radio],[type=file]), .row .col.green textarea, .row .col.green input:not([type=checkbox],[type=radio],[type=file]) {
	background-color: white;
	border-color: white;
	box-shadow: none;
	color: rgb(50, 78, 110)
}
.row .col.green label, .row .col.green label {
	color: rgba(50, 78, 110,.6)
}
.col.green button.secondary:hover {
	background-color: var(--orange);
	border-color: var(--orange);
}
.col.green hr {
	border-color: var(--highlight);
	opacity: .4;
}
aside .row .col, header .row .col {
	padding: 10px;
}
aside .row .col {
	background: white;
}

h1 .form > fieldset > div {
	padding: 0;
}
.span50 {
	min-width: 50%
}
.span40 {
	min-width: 40%;
}
.span30 {
	min-width: 30%;
}
.span20 {
	min-width: 20%
}
@media screen and (max-width: 780px) {
[class*="span"] {
	width: 100% !important;
}
.row {
	flex-direction: column !important;	
}
main section .row {
	padding: 10px 30px;
}
.mgrow {
		flex-grow: 1;
}
}

.dragging {position: relative}
.dragging:after {	
content: "";
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
border: 1px dashed var(--font)
}
.dragging:before {	
content: "";
position: absolute;
left: -1px;
top: -1px;
right: -1px;
bottom: -1px;
border: 2px dashed var(--shad)
}

.suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin: 0;
	padding: 0;
	z-index: 2000;
	max-height: 300px;
	margin-top: -2px;
	overflow: auto;
	background: var(--input-bg);
    scrollbar-color: var(--green) var(--input-bg);
	scrollbar-width: thin;
	border-radius: 0 0 0 6px;
	border-right: 1px solid var(--brd);
	border-left: 1px solid var(--brd);
}
.suggestions:has(li) {
	border-bottom: 1px solid var(--brd);
	border-top: 1px solid var(--brd);
}
.suggestions > li {
	display: block;
	list-style: none;
	color: var(--font);
	padding: 6px 12px;
	margin-left: 8px;
	border-radius: 3px;
	cursor: pointer;
	transition: background-color .2s;
	border-bottom: 1px solid var(--brd);
	
}
.suggestions > li:hover {
	box-shadow: inset 0 0 0 2px var(--blue),inset -3px 0 0 var(--blue),inset 3px 0 0 var(--blue), 0 -1px 0 var(--blue);
	border-bottom: 1px solid var(--blue);
	background: var(--input-hover-bg)
}
.suggestions > li:first-child {
	margin-top: 8px;
}
.suggestions > li:last-child {
	margin-bottom: 8px;
	border-bottom: none;
}
.suggestions > li > p {
	margin: 0;
}
.suggestions > li > small {
	color: var(--lfont)
}
fieldset > div .tooltip {
	position: absolute;
	display: block;
	padding: 10px;
	border-radius: 6px;
	font-size: 1rem;
	bottom: 100%;
	right: 0;
	opacity: 0;
	background: var(--orange);
	box-shadow: 2px 2px 1px var(--shad);
	color: white;
	transition: opacity .5s ease-in-out;
}
fieldset > div .tooltip p {
	margin: 0 0 6px;
}
fieldset > div .tooltip p:last-child {
	margin: 0;
}
fieldset > div .tooltip.show {
	opacity: 1;
}
fieldset > div .tooltip:after {
	top: calc(100% - 1px);
	left: 14px;
	border: solid transparent;
	content: "";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-color: rgba(255, 255, 255, 0);
	border-top-color: var(--orange);
	border-width: 8px;
	margin-left: -8px;
}
body {overflow: hidden}  /* FIX for Chrome width overshot bug */


input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    /* Apply animation to override default styles */
    -webkit-animation: autofill 0s forwards;
    animation: autofill 0s forwards;
}

/* Define the animation to inherit desired styles */
@keyframes autofill {
    100% {
        background: transparent; /* Remove default background */
        color: inherit; /* Inherit text color from parent */
        font-size: inherit; /* Inherit font size from parent */
        font-family: inherit; /* Inherit font family from parent */
    }
}

@-webkit-keyframes autofill {
    100% {
        background: transparent;
        color: inherit;
        font-size: inherit;
        font-family: inherit;
    }
}

input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    textarea:-webkit-autofill,
    textarea:-webkit-autofill:hover,
    textarea:-webkit-autofill:focus,
    select:-webkit-autofill,
    select:-webkit-autofill:hover,
    select:-webkit-autofill:focus {
        -webkit-box-shadow: 0 0 0px 1000px var(--input-bg) inset !important; /* Prevents yellow background */
        -webkit-text-fill-color: var(--font) !important; /* Sets text color */
        /* Add other styles like font-size, line-height, etc. to match your design */
        font-size: var(--inputSize) !important; 
        line-height: 28px !important; 
		color: var(--font) !important;
    }