html, body { margin: 0; padding: 0; }
body {
	font-size: 16px;
	font-family: \"HelveticaNeue\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;
	background-color: white;
	color: black;
}

.size_small { font-size: 0.8em; }

input.client_terms_date {
    background-color: transparent !important;
    pointer-events: none;
}

.border { border: 1px solid gray; }

.table_con {
	/* width: 400px; */
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

table { width: 100%; }

.table_con.login { text-align: center; }
.table_con.login table {
	width: auto;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.5em;
}
.table_con.login table tr td:first-child { text-align: right; width: 75px; }

tr.hide { display: none; }
tr td:first-child { width:40%; padding-top: 6px; }
td { vertical-align: top; }
.ql-indent-1 { padding-left: 1em; }
.ql-indent-2 { padding-left: 2em; }
.ql-indent-3 { padding-left: 3em; }
.ql-indent-4 { padding-left: 4em; }
.ql-indent-5 { padding-left: 5em; }

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    margin: 0 0 17.5px;
    font-weight: 400;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

h1, .h1 {
    font-size: 2.2em;
    text-transform: uppercase;
	text-align: center;
    letter-spacing: 0.1em;
}

h2, .h2 {
    font-size: 2em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

h3, .h3 {
    font-size: 1.625em;
    text-transform: none;
    letter-spacing: 0;
}

.ql-align-center { text-align: center; }
.ql-align-justify { text-align: justify; }
.ql-align-right { text-align: right; }

#content_top, #content_bottom {
	padding-left: 8px;
	padding-right: 8px;
}

@media screen and (min-width:640px) {
	#content_top, #content_bottom {
		padding-left: 18px;
		padding-right: 18px;
	}
}

.grid290 {
    display: grid !important;
    grid-gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    grid-auto-flow: dense;
    /* align-items: start; */
    padding-left: 4px;
    padding-right: 4px;
}
.span2 {
	grid-column: span 2;
}

input[type="text"], input[type="email"], input[type="password"], textarea {
    width: calc(100% - 12px);
	border: none;
	background-color: #e5e5e5;
	padding: 6px;
	font-size: 18px;
}
input[type="checkbox"] { margin-top: 7px; }

select {
	background-color: #e5e5e5;
	padding: 3px;
	border: none;
}

textarea {
	font-size: 16px;
	font-family: \"HelveticaNeue\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;
	min-height: 72px;
}

.choices { padding: 6px; }
.choices a { text-decoration: none; }
.choices .choice {
	text-decoration: line-through;
	color: black;
}
.choices .choice.selected {
	font-weight: bold;
	text-decoration: none;
	font-size: 1.2em;
}

div.button, p.button {
	float: right;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    padding-top: 9px;
    padding-bottom: 9px;
    padding-left: 18px;
    padding-right: 18px;
    cursor: pointer;
    font-weight: bold;
}
div.button.ok, p.button.ok {
    background-color: green;
    color: white;
}
div.button.cancel, p.button.cancel {
    background-color: #993366;
    color: white;
}

.error { border: 1px solid orangered !important; }
.errors { color: orangered; border: none !important; text-align: center; }

#terms_con { margin-top: 18px; }
#terms_con p { font-size: 0.8em; }

.if_new, .if_exists, .if_notfirst, .if_reset { display: none; }

.client_menu {
	text-align: center;
	margin-bottom: 12px;
	width: 380px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.client_menu ul {
    padding: 0;
    margin: 0;
	display: inline-block;
}
.client_menu ul li {
    display: inline-block;
	margin-right: 3px;
    margin-left: 3px;
    font-weight: bold;
    border: 1px solid;
    padding: 0.5em;
	cursor: pointer;
}
.client_menu ul li.active {
	cursor: default;
	border: none;
	font-weight: normal;
}

.wrapper.patients {
    width: 360px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
	border: 1px solid;
}

.form_select {
    width: 100%; /* 290px; */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.form_select.custom-select { width: 100%; }
.form_select select.wrapper {
    text-align: center;
    align-items: center;
    font-size: 16px;
    width: 100% !important;
}

/*	******************************************
	Confirm delete
*/
#del_confirm {
	position: absolute;
	background-color: rgba(255, 255, 255, 0.5);
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
}
#del_confirm .con {
	background-color: whitesmoke;
	border: 1px solid;
	top: 36px;
	width: 380px;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}
#del_confirm .del_title {
	background-color: #993366;
	color: white;
	text-align: center;
	font-weight: bold;
	font-size: 18px;
}
#del_confirm p {
	padding-left: 6px;
	padding-right: 6px;
	text-align: center;
}
#del_confirm textarea {
	width: 95%;
	margin-left: auto;
	margin-right: auto;
	background-color: white;
}
#del_confirm .del_footer {
	background-color: gainsboro;
	color: black;
	height: 44px;
}
#del_confirm .del_footer .button { margin: 4px; }

/*	******************************************
	ADMIN DASHBOARD
*/
.dash {
    width: 360px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 6px;
    background-color: green;
    color: white;
    text-align: center;
    border-radius: 8px;
}

.dash h2 { margin: 0; }
.stat .big { font-size: 2em; }
.stat {
    display: inline-block;
    padding-left: 12px;
    padding-right: 12px;
}
.dashsearch tr td:first-child { width: 80px; }
.dash td.sfld input { width: 98%; }
.tbls table.list {
    background-color: gainsboro;
	color: black;
}
table.list tr td:first-child { width: auto; }
.tbls h3 { margin: 0; }
.dashsearch { display: none; }

/*	******************************************
	TABLE LISTS
*/
table.list { width: auto; }
table.list th { text-align: left; }
table.list th, table.list td { padding: 4px; }
table.list tr:not(:first-child) { cursor: pointer; }
table.list tr:not(:first-child):hover { background-color: green; color: white; } 

/*	******************************************
	CUSTOM SELECT
	the container must be positioned relative:
*/
.custom-select {
  position: relative;
  /* font-family: Arial; */
}

.custom-select select {
  display: none; /*hide original SELECT element:*/
}

.select-selected {
  background-color: #e5e5e5; /* #993366; */
  min-height: 18px;
}

/* style the arrow inside the select element: */
.select-selected:after {
  position: absolute;
  content: "";
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: black transparent transparent transparent;
}

/*point the arrow upwards when the select box is open (active):*/
.select-selected.select-arrow-active:after {
  border-color: transparent transparent black transparent;
  top: 7px;
}

/*style the items (options), including the selected item:*/
.select-items div,.select-selected {
  color: black; /* ffffff; */
  padding: 8px 16px;
  border: 1px solid transparent;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  cursor: pointer;
  user-select: none;
}

/*style items (options):*/
.select-items {
  position: absolute;
  background-color: #e5e5e5; /* #993366; */
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}

/*hide the items when the select box is closed:*/
.select-hide {
  display: none;
}

.select-items div:hover, .same-as-selected {
  background-color: rgba(0, 0, 0, 0.3);
}

.client_menu .select-selected { background-color: #993366; }
.client_menu .select-selected:after {
	border-color: white transparent transparent transparent;
}
.client_menu .select-selected.select-arrow-active:after {
  border-color: transparent transparent white transparent;
}
.client_menu .select-items div, .client_menu .select-selected { color: white; }
.client_menu .select-items { background-color: #993366; }

.client_menu li.save, .client_menu li.cancel {
    margin: 0 !important;
    /* margin-left: -2px !important; */
    border: none !important;
    /* padding: 0 !important; */
}

li.save .button.ok, li.cancel .button.cancel {
    float: none;
    border-radius: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 8px;
    padding-right: 8px;
}

/*	****************************************** */

/*	PATIENT HISTORY */

.history {
	word-break: break-word;
	width: 1000px;
	max-width: calc(100% - 12px);
    margin-left: auto;
    margin-right: auto;
	line-height: 1.5;
}

.history h3, .history h4 {
	margin-bottom: -0.3em;
	margin: 0;
    margin-bottom: 0.6em !important;
}
.history h3 {
    font-size: 1.625em;
    text-transform: uppercase;
    letter-spacing: 0;
	text-align: center;
}
.history h4 {
	font-size: 1.2em;
    margin-top: 0.6em;
    font-weight: bold;
}
.history .para { margin-top: 1.5em; }
.history .nest { margin-top: 0.5em; }
.history .edit {
	font-family: monospace;
	/* font-size: 1.05em; */
    font-weight: bold;
	display: inline-block;
	/* text-decoration: underline; */
	text-align: left;
	outline: none;
	/* border-bottom: 1px solid; */
	max-width: 100%;
	background-color: #e5e5e5;
}

.history .radio_buts, .history .radio {
	display: inline-block;
}
.history .radio {
    background-color: #e5e5e5;
    margin-right: 8px;
    cursor: pointer;
}
.history .radio[data-checked="1"] {
    font-weight: bold;
}

.history button.save_but {
    margin-top: 24px;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    display: block;
	border-radius: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 8px;
    padding-right: 8px;
    background-color: green;
    color: white;
    font-weight: bold;
    letter-spacing: 1px;
    border: none;
    font-size: medium;
}
