/* Global Stuff */
body {
	overflow-y: scroll;
}
label.btn.btn-default.active {
    background-color: #337ab7;
    color: #fff;
    font-weight: bold;
}
#topNav {
	margin-bottom: 0;
}

#netstatus, #netqueue {
	opacity: 1 !important;
	width: 100px;
}
@media (max-width: 992px) { /* Compress tablet header down a bit */
	#topNav .btn > span {
		display: none;
	}
	#netstatus, #netqueue {
		width: auto;
	}
	#quicksearchbox {
		width: 46px;
	}
}
#msgqueue {
	position: fixed;
	left: 5%;
	width: 45%;
	height: 0px;
    top: 48px;
	overflow: visible;
	z-index: 1500;
}
.confirmModal {
    font-size: 1.5em;
    padding: 2em;
}


/* for modals coming from raw Tabula */
.btn {
	font-family: "Open Sans";
	font-weight: bold;
	text-transform: uppercase;
}
.formend {
	padding: 0;
}
.modal-footer .btn {
	margin-left: 8px;
}
.input-group.datetime {
	width: 100%;
}
.input-group.datetime select.datetime {
	width: 70px;
	position: absolute;
}
.input-group.datetime select.datetime:nth-child(2) {
	right:140px;
}
.input-group.datetime select.datetime:nth-child(3) {
	right:70px;
}
.input-group.datetime select.datetime:nth-child(4) {
	right:0px;
}

.modal-header.bigfont {
	font-size: 2em;
}
.modal-header.bigfont > button {
	font-size: 1.5em;
}
.modal-body .bigfont {
	font-size: 1.25em;
}
.modal-header.bigfont button.close {
	position: absolute;
	top: 10px;
	right: 10px;
}
.modal-header.bigfont {
	position:relative;
}
#quicksearchbox {
	z-index: 41;
	position: relative; /* To appear over modal fade */
}
#quicksearch {
	display: none;
    position: fixed;
    z-index: 40;
    background: rgba(0,0,0,0.5);
    min-height: 100vh;
    min-width: 100vw;
	top:0;
}
#quicksearch .container {
    background: #fff;
    margin-top: 120px;
    padding: 0px 20px;
    border-radius: 8px;
}
.quickpic {
	background-size: cover;
	background-position: center;
    display: inline-block;
    height: 40px;
    width: 30px;
    vertical-align: middle;
    margin-right: 4px;
}
.quicksearchrow {
	margin-bottom: 4px;
	display:block;
}


/* Breadcrumbs */
#breadcrumbs {
	margin-bottom: 8px;
}
/* Lock Screen / Login */

.lock-screen-img {
	display:inline-block;
	width: 25vh;
	height: 25vh;
	margin-left:auto;
	margin-right:auto;
    border: 4px solid #ddd;
    border-radius: 5vh;
}
#lockPassword {
	margin-bottom: 10px;
	font-size: 28px;
}
#lockUserList {
	min-height: 15vh;
	max-height: 75vh;
	overflow-y: auto;
}
#lockUserList .userbutton {
	text-align: left;
}
#lockUserList span.userport {
    display: inline-block;
    height: 32px;
    width: 32px;
    vertical-align: middle;
    margin-right: 4px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}
/* Carts List */
.cartList {
	display:flex;
	flex-flow: row wrap;
	justify-content: center;
	gap: 5%;
}
.cartList > * {
	position: relative;
	flex-basis: 100%;
	max-width: 100%;
}
.cartList .panel-footer button {
	margin-left: 12px;
}
.cartList .panel-footer {
	position: absolute;
	bottom:0;
	left:0;
	right:0;
}
.cartList.cartCount-1 > * {
	flex-basis: 100%;
}

.cartrow {
	cursor:pointer;
	height: 160px;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
}
.cartrow .minipic {
    height: 114px;
	width: 93px;
	display: inline-block;
    margin-left: 4px;
    margin-top: 4px;
    position:relative;
}
.cartrow .minipic > span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height:1.1;
    background: rgba(255,255,255,0.8);
    text-align:center;
    font-weight:bold;
	white-space: pre-wrap;
}

.cartPanel .panel-title .btn {
	margin-top: -6px;
	margin-left: 5px;
}

/* Resident Carousel */

.rescarousel {
	background: #587bb1;
	margin-bottom: 1em;
}
.rescarousel > div {
	overflow-y: hidden;
	overflow-x: auto;
	max-height: 269px;
	white-space: nowrap;
	display: flex;
	flex-flow: row;
	justify-content: flex-start;
	gap: 6px;
}

.linkpic-wrapper {
	min-width: min-content;
	cursor:pointer;
	background: #fff;
	display: inline-block;
	margin: 1em;
	text-align: center;
}
.linkpic {
    height: 171px;
	width: 140px;
	display: inline-block;
    margin: 4px;
	position: relative;
	overflow:hidden;
}
.linkpic-img {
    height: 100%;
	width: 100%;
	display: inline-block;
}
.linkpic-text {
	display: block;
}

.sidepic-wrapper {
	background: #eee;
	display: block;
    min-height: 96px;
	width: 100%;
    display: flex;
    align-items: center;
    padding-left: 8px;
	overflow:hidden;
	position:relative;
}
.sidepic {
	width: 44px;
    height: 60px;
	display: inline-block;
	vertical-align: middle;
}
.sidepic-text span {
    font-size: 1.5em;
}
.sidepic-text {
    margin-left: 1em;
    display: inline-block;
    vertical-align: middle;
}

.oof-Hospitalized {
	background-color: #d9534f;
}

.linkpic > .status-text,
.sidepic-wrapper > .status-text {
	position:absolute;
	bottom:0;
	right:0;
	min-width:50%;
	text-align:center;
	display:block;
	color:#60b5ff;
	font-size:1.25em;
	padding:0 .5em;
	background:rgba(0,0,0,.75);
	border-top-left-radius: 4px;
}
.linkpic > .status-text {
	font-size:1.1em;
}


.linkpic,
.linkpic-wrapper,
.sidepic,
.sidepic-wrapper {
	border-radius: 4px;
}

#currentPassBtn.active {
	background: #337ab7;
	color: #fff;
}

.medgrid {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	gap: 6px;
}
.medgrid > .medgridrow {
	flex-basis: 100%;
	flex-grow: 1;
}
.res-sortable.missedPasses {
	order: -10;
}
.res-sortable.active {
	order: -11;
}
.res-sortable.active.missingPasses {
	order: -12;
}
.res-sortable.oof {
	order: 10;
}

.medgridrow.missedPasses .sidepic-wrapper, /* "Missed" */
.linkpic-wrapper.missedPasses {
	background: #fbb;
}

.medgridrow.active.missingPasses .sidepic-wrapper, /* "Incomplete" */
.linkpic-wrapper.active.missingPasses {
	background: #ffb;
}

.medgridrow.active:not(.missingPasses) .sidepic-wrapper, /* "Done" */
.linkpic-wrapper.active:not(.missingPasses) {
	background: #bfb;
}

.medgridrow.oof .sidepic-wrapper, /* "out of facility" */
.linkpic-wrapper.oof{
	background: #bbb !important;
}
.medgridrow:not(.missingPasses) .sidepic-wrapper, /* "N/A" */
.linkpic-wrapper:not(.missingPasses) {
	background: #bbb;
}
.medgridrow:not(.missingPasses) .sidepic-wrapper .sidepic, /* "N/A" */
.linkpic-wrapper:not(.missingPasses) .linkpic .linkpic-img {
	filter: grayscale(1);
}

.doneIcon {
	position: absolute;
	bottom: 4px;
	font-size: 4em;
	text-align: center;
	left: 0;
	right: 0;
	color: #bbffbb;
	opacity: .75;
}

/* Med Grid (Single Cart View) */
.medInfo {
	position: relative;
	overflow: hidden;
	min-height: 60px;
	
	background-size: calc(100% / 24) 100%;
	background-image: linear-gradient(to right, grey 1px, #ddd 1px);
	
	box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
	border-radius: 4px;
	margin-bottom: 8px;
}
#cardsGridContainer .medInfo {
    -webkit-transition: .2s;
    transition: min-height .2s;
}
#cardsGridContainer:not(.expanded) .medInfo {
	height: 0;
	min-height: 0 !important;
}
.medInfo * {
	user-select: none;
	position:relative;
	z-index: 10;
}
.medInfo .timeCursor {
	border-left: 2px #f00 dashed;
	height: 100%;
	width: 0px;
	display: block;
	left: 50%;
	position: absolute;
}
.medInfo .timeCursor > span {
    background:#fff;
    white-space:pre;
    padding:0 .5px;
    border-radius:.5em;
    border-top-left-radius:0;
    border-bottom-left-radius:0;
    font-weight:bold;
    font-size:12px;
    position:absolute;
    bottom:0;
    left:-2px;
    border-width: 2px;
	border-style: solid;
}
.medInfo .timeCursor.current {
	border-left: 2px #00569f dotted;
	height: 100%;
	width: 0px;
	display: block;
	left: 50%;
	position: absolute;
	cursor: pointer;
}
.medInfo .timeCursor.current span:hover {
	background-color: #00569f;
	color: #fff;
}
.medInfo .timeCursor.current > span {
	border-color: #00569f;
}
.medInfo .timeCursor.slider > span {
	border-color: red;
}
.medInfo .timeCursor.timelineEvent,
.medInfo .timeCursor.timelineEvent > span {
	border-color: gray;
	cursor: pointer;
}
.medInfo > .medGridItem {
    display: flex;
	align-items:center;
	flex-flow: row wrap;
	position: absolute;
    border-radius: 0.25em;
    background: #9ebfdb;
    border: 2px solid #337ab7;
	overflow: hidden;
}
.medInfo > .medGridItem > .windowLabel {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: x-small;
    background: #fff;
    padding: 0 4px;
    border: 2px solid #337ab7;
    border-radius: 4px;
    font-weight: bold;
	white-space: nowrap;
    border-width: 0;
}
.medInfo > .loadingText > span {
	/*display: none;*/
}
.medInfo > .loadingText {
    display: block;
    width: auto;
    position: absolute;
    top: 0;
    left: 0;
    background: #587bb1;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    padding: 8px;
}
.medInfo:not(.dirty) > .loadingText {
	display: none;
}

.medInfo .earlyHour {
	background: #ffff00;
	background: /* On "top" */ repeating-linear-gradient(45deg, transparent, transparent 4px, #dbcb00 4px, #f5f017 8px), /* on "bottom" */ linear-gradient(to bottom, #fffdbf, #eeff60);
	left: 0;
}
.medInfo .lateHour {
	background: #dd0000;
	background: /* On "top" */ repeating-linear-gradient(45deg, transparent, transparent 4px, #ff3636 4px, #f51717 8px), /* on "bottom" */ linear-gradient(to bottom, #ffbfbf, #ff6060);
	right: 0;
}
.medInfo .lateHour,
.medInfo .earlyHour {
	top:0;
	bottom:0;
	position: absolute;
	display:block;
	z-index: 1;
}


.medInfo > .medGridItem.future {
    background: #ecf6ff;
}
.medInfo > .medGridItem.future .windowLabel,
.medInfo > .medGridItem.future {
    border: 2px solid #9ed2ff;
    border-color: transparent;
}
.medInfo > .medGridItem .meditem {
	line-height: 20px;
}
.medInfo > .medGridItem.current {
}
.medInfo > .medGridItem.complete .meditem.haspass-1 {
    border-color: #5cb85c;
    background-color: #5cb85c;
}
.medInfo > .medGridItem.complete {
    background-color: #8adf8a;
}
.medInfo > .medGridItem.complete .windowLabel,
.medInfo > .medGridItem.complete {
	border-color: #5cb85c
}
.label.label-selfadmin,
.medInfo > .medGridItem.hasSelfAdmin:not(.missingPasses) {
	background: #dab6ff;
}
.medInfo > .medGridItem.hasOnHold:not(.missingPasses) {
	background: #ffdaa5;
}

.medInfo > .medGridItem.past.missedPasses {
    background-color: #ff8585;
}
.medInfo > .medGridItem.past.missedPasses .windowLabel,
.medInfo > .medGridItem.past.missedPasses {
	border-color: #ff0000;
}
.medInfo > .medGridItem.past.missedPasses {
    background-color: #ff8585;
}
.medInfo > .medGridItem.active:not(.complete) {
	border-color: #0f0;
	animation: pulseActiveBorder 3s infinite;
}
@keyframes pulseActiveBorder {
  0%  {border-color: #060;}
  25%  {border-color: #060;}
  50%   {border-color: #0f0;}
  100%  {border-color: #060;}
}

.medInfo > .medGridItem.prn {
    border-color: #ff0000;
    background-color: #ff8f8f;
	border-style: dashed;
}

.medInfo > .medGridItem.prn.complete {
    border-color: #5cb85c;
    background-color: #8adf8a;
}
.medInfo > .medGridItem.prn .windowLabel {
    border-color: #ff0000;
}

.medGridItem .meditem.haspass-1,
.medGridItem .meditem.haspass-2 {
    color: #fff;
    border-radius: 1em;
    margin: -2px;
}
.medGridItem .meditem.haspass-1 {
    background-color: #0f9520;
    border: 2px solid #0f9520;
}
.medGridItem .meditem.haspass-2 {
    background-color: #f6a91c;
    border: 2px solid #f6a91c;
}

.medGridItem:not(.active) .meditem.haspass-1.unconfirmed,
.medGridItem:not(.active) .meditem.haspass-2.unconfirmed {
	border: 2px solid red;
	animation: pulseRedBorder.51s infinite;
}

.medGridItem .meditem.onhold {
	order:2;
}
.medGridItem .meditem.selfadmin,
.medGridItem .meditem.homehealthadmin {
	order:3;
}
.medGridItem .meditem.pending {
	order:4;
}


.medGridItem .meditem.dced {
	color: #232323;
	background: 
		/* On "top" */
		repeating-linear-gradient(
			45deg,
			transparent,
			transparent 4px,
			#8b8b8b 4px,
			#6a6a6a 8px
		),
		/* on "bottom" */
		linear-gradient(
			to bottom,
			#d5d5d5,
			#5e5e5e
		);
}
.medGridItem .meditem.onhold {
	color: #9b5811;
	background: 
		/* On "top" */
		repeating-linear-gradient(
			45deg,
			transparent,
			transparent 4px,
			#ffac36 4px,
			#f59917 8px
		),
		/* on "bottom" */
		linear-gradient(
			to bottom,
			#ffe5bf,
			#ffbd60
		);
}
.medGridItem .meditem.pending {
	color: #042f42;
	background: 
		/* On "top" */ repeating-linear-gradient( 45deg, transparent, transparent 4px, #75dfff 4px, #80cbff 8px ),
		/* on "bottom" */ linear-gradient( to bottom, #bde9ff, #61bfff );
}
.medGridItem .meditem.oof {
	color: #042f42;
	background: 
		/* On "top" */ repeating-linear-gradient( 45deg, transparent, transparent 4px, #c1c1c1 4px, #d5cccc 8px ),
		/* on "bottom" */ linear-gradient( to bottom, #d5d5d5, #b3b3b3 );
}


.medGridItem .meditem.unsent {
	position:relative;
}
.medGridItem .meditem.unsent:after {
	content: ' ';
	display:block;
	width:8px;
	height:8px;
	border-radius:4px;
	background-color: #ff0000;
	position:absolute;
	bottom: 0;
	right: -4px;
}

.medGridItem .meditem.selfadmin,
.medGridItem .meditem.homehealthadmin {
	color: #220442;
	background: 
		/* On "top" */ repeating-linear-gradient( 45deg, transparent, transparent 4px, #b875ff 4px, #bd80ff 8px ),
		/* on "bottom" */ linear-gradient( to bottom, #ddbdff, #ad61ff );
}
.medGridItem .meditem.outofstock {
	color: #220442;
	background: 
		/* On "top" */ repeating-linear-gradient( 45deg, transparent, transparent 4px, #ff7575 4px, #ff8080 8px ),
		/* on "bottom" */ linear-gradient( to bottom, #ffbdbd, #ff6161 );
}
@keyframes pulseRedBorder {
  0%   {border-color: black;}
  50%  {border-color: red;}
  100% {border-color: black;}
}

.medInfo > .medGridItem:hover {
	border-color: #fff;
	animation: pulseHoverBorder .5s infinite;
}
@keyframes pulseHoverBorder {
  0%   {border-color: #fff;}
  50%  {border-color: #0f0;}
  100% {border-color: #fff;}
}
/* Single Resident View */
.resicon {
	height: 2em;
	width: 2em;
	display: inline-block;
	vertical-align: middle;
	margin-top: -.5em;
	margin-bottom: -.5em;
	margin-left: -.5em;
	border-radius: .5em;
}
.largepic {
	display: inline-block;
	border: 3px #999 solid;
    height: 320px;
    width: 270px;
    max-width: 100%;
}
.headerBadge {
	display: inline-block;
	width: auto;
	min-width: 340px;
	padding: 10px;
	margin-bottom: 24px;
	-webkit-box-shadow: 0px 5px 5px 5px rgb(200 200 200 / 53%);
    -moz-box-shadow: 0px 5px 5px 5px rgba(200,200,200,0.53);
    box-shadow: 0px 5px 5px 5px rgb(200 200 200 / 53%);
	border-radius: 4px;
}

#jumpToResidents {
	max-height: 400px;
	overflow-y: auto;
}
.searchJumpItem {
	padding: 4px;
}

#resSideBar {
	text-align: center;
}
#resSideBar .resname {
	font-size: 26px;
	white-space: pre-wrap;
	border: 2px solid #ddd
	border-radius: 4px;
}
#jumpToResidents {
	max-height: 50vh;
	overflow-y: auto;
}
#resSideBar .infogrid {
	font-size: 18px;
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	gap: 6px;
	margin-bottom: 8px;
}
#resSideBar .infogrid > div {
	width: 32%;
	display:inline-block;
}
#resSideBar .specialNote {
	text-align: left;
}
#resSideBar .codeText {
    font-size: 2em;
    display: inline-block;
    margin-bottom: 1em;
    text-transform: uppercase;
    white-space: pre-wrap;
}
#resSideBar .infoOrder p {
	text-align: left;
}
#resSideBar .infoOrder button.pull-right {
	margin-left:4px;
}

#resSideBar .linkgrid .fa {
	vertical-align: middle;
    display: block;
}
#resSideBar .linkgrid {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	gap: 6px;
	margin-bottom: 2em;
}
#resSideBar .linkgrid > * {
	width: calc(50% - 12px);
    height: 80px;
}

@media (max-width: 992px) {
	#resSideBar .largepic {
		height: 160px;
		width: 135px;
		border: 0px solid black;
	}
	#resSideBar .linkgrid {
		margin-top: 1em;
		min-height: 240px;
	}
	#resSideBar .linkgrid > * {
		height: 32px;
		line-height: 1;
		padding: 1px 4px;
		text-align: left;
	}
	#resSideBar .linkgrid .fa {
		vertical-align: middle;
		display: inline-block;
		font-size: 24px;
	}
}


#cardGridButtons {
	margin-bottom: 12px;
}
#cardGridButtons .zoomControl,
#cardGridButtons .offsetControl {
	width: 180px;
}
#cardGridButtons .cardGridButton {
	float:left;
	margin-right: 4px;
}
#cardGridButtons .cardGridButton,
#cardGridButtons .cardGridButton > * {
	height: 46px;
}
#cardGridButtons > button > i {
	min-width: 24px;
}
#cardGridButtons > :not(:first-child) {
	margin-left: 4px;
}

#cardGridButtons > #prntoggle:not(.active) {
	background: #fff;
	color: #2e6da4;
}

#cardGridButtons > #prntoggle:not(.active) .badge {
	color: #fff;
	background: #2e6da4;
}

#cardGridButtons > .btn .badge-red,
#cardGridButtons > .btn-primary .badge-red {
	color: #fff;
	background: #d9534f;
}
.badge-big {
	font-size: 18px;
}

#residentNav,
#residentNav > div { /* Compress nav buttons together */
    margin: 0;
    padding: 0;
	margin-bottom:10px;
}
#residentNav > div:not(:first-child) > button {
    border-top-left-radius:0;
    border-bottom-left-radius:0;
}
#residentNav > div:not(:last-child) > button {
    border-top-right-radius:0;
    border-bottom-right-radius:0;
}

#cardsGrid {
	display: flex;
	flex-flow: row wrap;
	justify-content: flex-start;
	/*align-items: flex-start;*/
	align-items: stretch;
	align-content: flex-start;
	gap: 20px;
}
#cardsGrid > .medcard {
	position: relative;
	flex-basis: 23%;
	background-color: #EDEDF4;
    border-radius: 12px;
	-webkit-box-shadow: 0px 5px 5px 5px rgb(200 200 200 / 53%);
    -moz-box-shadow: 0px 5px 5px 5px rgba(200,200,200,0.53);
    box-shadow: 0px 5px 5px 5px rgb(200 200 200 / 53%);
	min-height: 302px;
	padding: 8px;
    /*overflow-x: hidden;*/
}

@media (max-width: 1366px) {
	#cardsGrid > .medcard {
		flex-basis: 31%;
	}
}
@media (max-width: 1024px) {
	#cardsGrid > .medcard {
		flex-basis: 48%;
	}
}

#cardsGrid > .medcard.latePass {
	background-color: #ffc4c4;
}
#cardsGrid > .medcard.earlyPass {
	background-color: #ffefc8;
}
#cardsGrid > .medcard.newmed {
	background: linear-gradient(0deg, #5cb85c 2%, #EDEDF4 75%);
}
#cardsGrid > .medcard.onhold {
	background: 
		/* On "top" */
		repeating-linear-gradient(
			45deg,
			transparent,
			transparent 10px,
			#ffac36 10px,
			#f59917 20px
		),
		/* on "bottom" */
		linear-gradient(
			to bottom,
			#ffe5bf,
			#ffbd60
		);
}
#cardsGrid > .medcard.infoorder {
	background:
		/* On "top" */
		repeating-linear-gradient(
			45deg,
			transparent,
			transparent 16px,
			#3849ff 18px,
			#192bf5 20px
		),
		/* on "bottom" */
		linear-gradient(
			to bottom,
			#bdc1ff,
			#616eff
		);
}
#pendingtoggle,
#cardsGrid > .medcard.pending {
	background: 
		/* On "top" */ repeating-linear-gradient( 45deg, transparent, transparent 10px, #75dfff 10px, #80cbff 20px ),
		/* on "bottom" */ linear-gradient( to bottom, #bde9ff, #61bfff );
}
#dctoggle,
#cardsGrid > .medcard.discontinued {
	background:
		/* On "top" */ repeating-linear-gradient( 45deg, transparent, transparent 10px, #8b8b8b 10px, #6a6a6a 20px ), 
		/* on "bottom" */ linear-gradient( to bottom, #d5d5d5, #5e5e5e );
}

#cardsGrid > .medcard.oof {
	background: 
		/* On "top" */ repeating-linear-gradient( 45deg, transparent, transparent 10px, #c1c1c1 10px, #d5cccc 20px ), 
		/* on "bottom" */ linear-gradient( to bottom, #d5d5d5, #b3b3b3 );
}
#cardsGrid > .medcard.selfadmin,
#cardsGrid > .medcard.homehealthadmin {
	background: 
		/* On "top" */ repeating-linear-gradient( 45deg, transparent, transparent 10px, #b875ff 10px, #bd80ff 20px ),
		/* on "bottom" */ linear-gradient( to bottom, #ddbdff, #ad61ff );
}
#cardsGrid > .medcard.outofstock {
	background: 
		/* On "top" */ repeating-linear-gradient( 45deg, transparent, transparent 10px, #ff7575 10px, #ff8080 20px ), 
		/* on "bottom" */ linear-gradient( to bottom, #ffbdbd, #ff6161 );
}
/*#cardsGrid > .medcard:hover {
	overflow-x:visible;
}*/
#cardsGrid > .medcard .medName {
	font-size: 18px;
	font-weight: bold;
	background-color: #fefefe;
	border-radius: .5em;
	padding: 0 .5em;
	margin: .5em -.25em;
	margin-top: -.25em;
	margin-bottom: 4px;
    /*white-space: nowrap;*/
    min-height: 52px;
}
#cardsGrid > .medcard .medInstructions {
	font-size: 14px;
	white-space: pre-wrap;
	min-height: 6em;
}
#cardsGrid > .medcard .medInstructions,
#cardsGrid > .medcard .medDiagnosis {
	background: rgba(255,255,255);
	padding: 4px;
	border-radius: 4px;
	margin-top: 4px;
	margin-bottom: 4px;
}
#cardsGrid > .medcard .medLastPass {
	background: rgba(255,255,255);
	padding: 4px;
	border-radius: 4px;
	margin-top: 4px;
	margin-bottom: 4px;
}
#cardsGrid > .medcard .medExtras {
	text-align: right;
}
#cardsGrid > .medcard .windowLabel {
    display: inline-block;
	font-size: small;
    background: #fff;
    padding: 0 4px;
    border: 2px solid #337ab7;
    border-radius: 4px;
    font-weight: bold;
	vertical-align: top;
}
#cardsGrid > .medcard .windowLabel {
    display: inline-block;
	font-size: small;
    background: #fff;
    padding: 0 4px;
    border: 2px solid gray;
	color: blue;
    border-radius: 4px;
    font-weight: bold;
	vertical-align: top;
}
#cardsGrid > .medcard.medtype-m:not(.prn) .medName,
#cardsGrid > .medcard.medtype-c:not(.prn) .medName,
#cardsGrid > .medcard.medtype-i:not(.prn) .medName {
    border: 2px solid #ffe100;
}
#cardsGrid > .medcard.medtype-w:not(.prn) .medName,
#cardsGrid > .medcard.medtype-t:not(.prn) .medName {
    border: 2px solid #31b0d5;
}
#prntoggle,
#cardsGrid > .medcard.prn .medName {
    border: 2px solid #f00;
}

#cardsGrid > .medcard.prnFollowUp .windowLabel,
#cardsGrid > .medcard.notstarted .windowLabel,
#cardsGrid > .medcard.discontinued .windowLabel { /* effectively just a repeated label */
	display: none;
}

#cardsGrid > .medcard .reqVitalTag {
	border: 2px solid red;
	line-height: 18px;
}

#cardsGrid:not(.show-prns) > .medcard.prn:not(.confirmed):not(.passed) {
	display: none;
}
#cardsGrid > .medcard .windowLabel.prn {
	border-color: #2e9916;
	background: #38ab24;
    color: #fff;
}

#cardsGrid > .medcard.infoorder .medDiagnosis {
	display: none;
}

#cardsGrid > .medcard .medExtras > span > i {
	min-width: 18px;
}
#cardsGrid > .medcard .medExtras > *:not(.windowLabel) {
    min-width: 22px;
	text-align: center;
	background: #fff;
	padding: 0 3px;
	margin-right: 2px;
	border-radius: 4px;
	font-weight: 600;
	white-space: nowrap;
	margin: 1px 2px;
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
}
.redtext,
#cardsGrid > .medcard.controlled .medName {
	color: #f00;
}
#cardsGrid > .medcard .medExtras > .medextra-red {
	background: #b85c5c;
	color: #fff;
}
#cardsGrid > .medcard .medExtras > .medextra-yellow {
	background: #8f9900;
	color: #fff;
}
#cardsGrid > .medcard .medExtras > .medextra-green {
	background: #5cb85c;
	color: #fff;
}
#cardsGrid > .medcard .medExtras > .medextra-purple {
	background: #993aff ;
	color: #fff;
}
#cardsGrid > .medcard .medExtras > .medextra-orange {
	background: #f6a91c;
	color: #fff;
}
#cardsGrid > .medcard .medExtras > .medextra-blue {
	background: #42889d;
	color: #fff;
}
#cardsGrid > .medcard .medExtras > .medextra-dark {
	background: #666666;
	color: #fff;
}
#cardsGrid > .medcard .medExtras > .medActions {
    margin-top: 20px;
}
/*.medActions {
    position: absolute;
    width: auto;
    bottom: .5em;
    left: .5em;
    right: .5em;
}
#cardsGrid > .medcard {
    padding-bottom:7em;
}*/

/* Ordering of med cards in grid */
#cardsGrid > .medcard.infoorder {
	order: -4;
}
#cardsGrid > .medcard.discontinued {
	order: -3;
}
#cardsGrid > .medcard.prn {
	order: -2;
}
#cardsGrid > .medcard.pending {
	order: -1;
}
#cardsGrid > .medcard.unconfirmed,
#cardsGrid > .medcard.noPassPermission {
	order: 2;
}
#cardsGrid > .medcard.selfadmin,
#cardsGrid > .medcard.homehealthadmin {
	order: 3;
}
#cardsGrid > .medcard.confirmed {
	order: 4;
}
#cardsGrid > .medcard.onhold {
	order: 5;
}
#cardsGrid > .medcard.removeThis { /* Get em outta here */
	order: 9;
}

.medActions .bigButton {
	font-size: 16px; /* To make this easier to resize */
	appearance: button;
	background-color: #ddd;
	border: solid transparent;
	border-radius: .5em;
	border-width: 0 0 .25em;
	box-sizing: border-box;
	color: #FFFFFF;
	cursor: pointer;
	display: inline-block;
	font-weight: bold;
	line-height: 1.25em;
	margin: 0;
	outline: none;
	overflow: visible;
	padding: .5em 0em;
	text-align: center;
	text-transform: uppercase;
	touch-action: manipulation;
	transform: translateZ(0);
	transition: filter .2s;
	user-select: none;
	-webkit-user-select: none;
	vertical-align: middle;
	white-space: nowrap;
	width: 100%;
	margin-bottom: 0.25em;
}
.medActions .bigButton:after {
	background-color: #ccc;
	background-clip: padding-box;
	border: solid transparent;
	border-radius: .5em;
	border-width: 0 0 .25em;
	bottom: -.25em;
	content: "";
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	z-index: -1;
}
.medActions .bigButton.cannotPassButtonBig, .medActions .bigButton.cannotPassButtonBig:after,
.medActions .bigButton.passButton, .medActions .bigButton.passButton:after {
	border-radius: 1em;
}

.medActions .bigButton:main,
.medActions .bigButton:focus {
  user-select: auto;
}

.medActions .bigButton:hover:not(:disabled) {
  filter: brightness(1.1);
  -webkit-filter: brightness(1.1);
}

.medActions .bigButton:disabled {
  cursor: auto;
}

.medActions .passButtonBig .dropdown-menu a {
	font-size: 1.5em;
}
.medActions .passButtonBig .dropdown-menu {
	width: calc(100% - 2em);
	left: 1em;
}
.medcard:not(.passreview) .medActions .bigButton .fa-chevron-down {
	display: none;
}
.passreview .medActions .bigButton .fa-chevron-down {
	font-size: 4em;
}

#cardsGrid .cannotPassButtonBig {
	max-width: 46%;
	font-size: 24px;
	white-space: pre-wrap;
}
#cardsGrid .cannotPassButtonBig,
#cardsGrid > .medcard:not(.allowNormalPass,.passreview) .medActions .passButtonBig {
	display:none;
}
#cardsGrid > .medcard:not(.allowNormalPass,.passreview) .medActions .cannotPassButtonBig {
	display:block;
}
#cardsGrid > .medcard:not(.passreview) .passText {
	display: block;
	font-size: .75em;
	line-height: 1.5;
}
#cardsGrid > .medcard.noPassPermission .passExtras .addNoteButton,
#cardsGrid > .medcard .bigButton.passButton > i {
	display:none;
}
#cardsGrid > .medcard:not(.passedHomeHealth,.passedSelf,.prnFollowUp,.exception,.noPassPermission) .bigButton.passButton > i.passIcon,
#cardsGrid > .medcard.passedSelf .bigButton.passButton > i.passSelfIcon,
#cardsGrid > .medcard.passedHomeHealth .bigButton.passButton > i.passHomeHealthIcon,
#cardsGrid > .medcard.prnFollowUp .bigButton.passButton > i.followupIcon,
#cardsGrid > .medcard.noPassPermission .bigButton.passButton > i.noPermIcon,
#cardsGrid > .medcard.exception .bigButton.passButton > i.exceptionIcon {
	display:inline-block;
}
#cardsGrid > .medcard.prnFollowUp .medLastPass,
#cardsGrid > .medcard.prnFollowUp .medDiagnosis,
#cardsGrid > .medcard.prnFollowUp .medInstructions,
#cardsGrid > .medcard.prnFollowUp .moreButton,
#cardsGrid > .medcard.prnFollowUp .exceptionButton { display:none; }
/*#cardsGrid > .medcard.prnFollowUp .passIcon,
#cardsGrid > .medcard.prnFollowUp .exceptionIcon {
	display:none;
}*/
#cardsGrid > .medcard.passed .medActions .passButton > i,
#cardsGrid > .medcard.exception .medActions .passButton > i {
	margin-top: .0625em;
}
#cardsGrid > .medcard.passed .medActions .passButton:after,
#cardsGrid > .medcard.exception .medActions .passButton:after {
	border-width: .25em 0 0 0;
	bottom: -.25em;
}
#cardsGrid > .medcard.passed .medActions .passButton {
	background-color: #0f9520;
}
#cardsGrid > .medcard.passed .medActions .passButton:after {
	background-color: #13cd2a;
}
#cardsGrid > .medcard.exception .medActions .exceptionButton,
#cardsGrid > .medcard.exception .medActions .passButton {
	background-color: #d68a18;
}
#cardsGrid > .medcard.exception .medActions .exceptionButton:after,
#cardsGrid > .medcard.exception .medActions .passButton:after {
	background-color: #f6a91c;
}

#cardsGrid > .medcard.passed.prnFollowUp .medActions .passButton { /* Reset Style for PRN Follow-Ups */
	background-color: #ddd;
}
#cardsGrid > .medcard.passed.prnFollowUp .medActions .passButton > i {
	margin-top: 0;
}
#cardsGrid > .medcard.passed.prnFollowUp .medActions .passButton:after {
	background-color: #ccc;
	border-width: 0;
	bottom: 0;
}

#cardsGrid > .medcard.passed.prnFollowUp.followedUp .medActions .passButton { /* Show active again once followed up */
	background-color: #0f9520;
}
#cardsGrid > .medcard.passed.prnFollowUp.followedUp .medActions .passButton > i {
	margin-top: .0625em;
}
#cardsGrid > .medcard.passed.prnFollowUp.followedUp .medActions .passButton:after {
	background-color: #13cd2a;
	border-width: .25em 0 0 0;
	bottom: -.25em;
}

#cardsGrid > .medcard.passed.confirmed.prnFollowUp.followedUp,
#cardsGrid > .medcard.passed.confirmed:not(.prnFollowUp) {
    border: 4px solid #13cd2a;
}
#cardsGrid > .medcard.passed.unconfirmed.prnFollowUp.followedUp,
#cardsGrid > .medcard.passed.unconfirmed:not(.prnFollowUp) {
    border: 4px dashed #13cd2a;
}
#cardsGrid > .medcard.exception.confirmed:not(.prnFollowUp) {
    border: 4px solid #f6a91c;
}
#cardsGrid > .medcard.exception.unconfirmed:not(.prnFollowUp) {
    border: 4px dashed #f6a91c;
}

#cardsGrid > .medcard.warnings {
    border: 4px solid #d68a18;
}
#cardsGrid > .medcard.errors {
    border: 4px solid #ff4a4a;
}

#cardsGrid.previewPassAll > .medcard:not(.passed,.confirmed,.exception,.prn,.noPassPermission) .medActions .passButton {
	color: #0f0;
	border-color: #0f0;
}
#cardsGrid.previewPassAll > .medcard:not(.passed,.confirmed,.exception,.prn,.noPassPermission) .medActions .passButton:after {
	animation: pulsePassAll 2s infinite;
}
@keyframes pulsePassAll {
	0%   {background-color: #0A0;}
	50%  {background-color: #060;}
	100% {background-color: #0A0;}
}

#cardsGrid.previewSkipAll > .medcard:not(.passed,.confirmed,.exception,.prn,.noPassPermission) .medActions .passButton .passIcon {
	display:none;
}
#cardsGrid.previewSkipAll > .medcard:not(.passed,.confirmed,.exception,.prn,.noPassPermission) .medActions .passButton .exceptionIcon {
	display: inline-block;
}
#cardsGrid.previewSkipAll > .medcard:not(.passed,.confirmed,.exception,.prn,.noPassPermission) .medActions .passButton {
	color: #ff9a00;
	border-color: #ff9a00;
}
#cardsGrid.previewSkipAll > .medcard:not(.passed,.confirmed,.exception,.prn,.noPassPermission) .medActions .passButton:after {
	animation: pulseSkipAll 2s infinite;
}
@keyframes pulseSkipAll {
	0%   {background-color: #d68a18;}
	50%  {background-color: #664108;}
	100% {background-color: #d68a18;}
}


#cardsGrid > .medcard .effectiveInput,
#cardsGrid > .medcard .exceptionExtras,
#cardsGrid > .medcard .passNotes,
#cardsGrid > .medcard .passExtras {
	display: none;
}
#cardsGrid > .medcard.passed .passExtras,
#cardsGrid > .medcard.hasNotes .passNotes, /* "passed" doesn't necessarily mean it has notes */
#cardsGrid > .medcard.exception .passNotes,
#cardsGrid > .medcard.exception .passExtras,
#cardsGrid > .medcard.followedUp .effectiveInput,
#cardsGrid > .medcard.exception .exceptionExtras { /* Exception Extras not visible for regular pass */
	display: block;
}

#cardsGrid > .medcard .passExtras .addNoteButton {
    position: absolute;
    top: -32px;
    right: 10px;
	display: none;
}
#cardsGrid > .medcard:hover:not(.hasNotes,.exception,.confirmed,.noPassPermission,.prnFollowUp) .passExtras .addNoteButton {
	display: block;
}

#cardsGrid > .medcard .slideScale {
	background: #fff;
	margin-top: 8px;
}

#cardsGrid > .medcard .vitalInput label.btn {
    padding-left: 0;
    padding-right: 0;
}

/* Converting cards to rows for data entry */
#cardsGrid > .medcard .passText {
	font-size: 3.5em;
	margin-left: 0.25em;
}
.confirmComplete[disabled],
.skipAll[disabled],
.passAll[disabled] {
	display:none;
}
.passSubmitButtons,
.cardsGridSeparator {
	flex-basis: 100%;
	order: 10;
}
#cardsGrid > .passReviewHeader {
	text-align: left;
	padding: 10px 16px;
	font-size: 18px;
	line-height: 1.3333333;
	border-radius: 6px;
	color: #fff;
	background-color: #337ab7;
	border-color: #2e6da4;
}
#cardsGrid > .medcard.passreview .passExtras .addNoteButton {
	top: -46px;
}
#cardsGrid > .medcard.passreview .passExtras > .row > div {
	display:flex;
	flex-flow: row;
	justify-content: space-between;
	align-items: stretch;
	align-content: flex-start;
	min-height: auto;	
}
#cardsGrid > .medcard.passreview .passExtras {
	margin-top: 1em;
}
#cardsGrid > .medcard.passreview .passExtras > .row .control-label {
	flex-basis: 40%;
}
#cardsGrid > .medcard.passreview .passExtras > .row .form-control {
	flex-basis: 30%;
}
#cardsGrid > .medcard.passreview .passButtonBig {
	width: 100%;
}
#cardsGrid > .medcard.passreview .passButtonBig .bigButton {
	text-align: left;
	padding: .5em;
}
#cardsGrid > .medcard.passreview {
	order: 20; /* These definitely need to be the LAST thing in the list */
	flex-basis: 100%;
	display: flex;
	flex-flow: row wrap;
	justify-content: space-evenly;
	align-items: stretch;
	align-content: flex-start;
	min-height: auto;
}
#cardsGrid > .medcard.passreview.exception {
	order: 19; /* 10 and below is above separator */
}
#cardsGrid > .medcard.passreview.reqinput {
	order: 15; /* 10 and below is above separator */
}
#cardsGrid > .medcard.passreview > * {
	flex-basis: 33%;
	display: inline-block;
	vertical-align: top;
}
#cardsGrid > .medcard.passreview .passButtonBig .bigButton {
	font-size: 8px;
}
#cardsGrid > .medcard.passreview .medDiagnosis,
#cardsGrid > .medcard.passreview .passButtonsSmall {
	display: none;
}
#cardsGrid > .medcard.passreview .medName {
	margin:0;
	margin-bottom: 2px;
	min-height: auto;
}
#cardsGrid > .medcard.passreview .medInstructions {
	margin-top:0;
	min-height: 2em;
}

#cardsGrid > .medcard.passreview .vitalInput .control-label {
	background-color: #faa;
	padding: 4px;
	border-radius: 8px;
}

#cardsGridContainer > .passSubmitButtons {
    margin-top: 2em;
}

/* Pass Summary Screen */
#passSummary span.badge {
    margin-right: 4px;
}
#passSummary .badge.badge-danger {
	background-color: #d11;
	font-size: 1.125em;
}
/* Loading Text - Used in loading screen, but also within other elements */

.loadingText {
	margin: .25em;
}

/* Loading Screen */
#loadingMessage {
    margin-top: 8vh;
}
#loadingMessage > p {
    color: #999;
    text-align: center;
    line-height: 1em;
    font-size: 4em;
}

p#welcomeMessage {
	font-size: 1.25em;
	white-space: pre-wrap;
	text-align: left;
	width: auto;
	max-width: 870px;
	line-height: 1.1;
	margin-left: auto;
	margin-right: auto;
}

/* Missed Meds Modal */
#missedMedModal .missedPassWindow {
	cursor: pointer;
	display: inline-block;
	margin-right: 4px;
	margin-bottom: 2px;
	background: #c13b3b;
	padding: 0 4px;
	border-radius: 4px;
	color: #fff;
	font-weight: bold;
	white-space: nowrap;
}

#missedMedModal .missedMedName {
	font-size: smaller;
	display: inline-block;
	background: #ddd;
	padding: 0px 4px;
	margin: 2px;
	border-radius: 4px;
}

/* Time Slider */
.sliderRow {
	margin-bottom: 8px;
}
.slidecontainer {
	width: 100%; /* Width of the outside container */
	margin-top: .5em;
	margin-bottom: .5em;
	height: 1em;
    background: #d3d3d3;
}

/* The slider itself */
input[type=range].slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 25px;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    height: 15px;
    border-radius: 5px;
    left: 0;
    right: 0;
    position: absolute;
    width: auto;
}

/* Mouse-over effects */
.slider:hover {
  opacity: 1; /* Fully shown on mouse-over */
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  width: 25px; /* Set a specific slider handle width */
  height: 25px; /* Slider handle height */
  background: #337ab7;
  cursor: pointer; /* Cursor on hover */
  height: 25px;
  border-radius: 50%; 
}

.slider::-moz-range-thumb {
  width: 25px; /* Set a specific slider handle width */
  height: 25px; /* Slider handle height */
  background: #337ab7;
  cursor: pointer; /* Cursor on hover */
  height: 25px;
  border-radius: 50%; 
}
/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Copied over from main app to be consistent */
label.checkbox {
    padding-left: 20px;
}
.modal-body .checkbox-group {
    max-height: 200px;
    overflow-y: scroll;
}
.checkbox-group {
    background: #F5F5F5;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    margin-bottom: 12px;
    min-height: 34px;
}

/* I don't know why you need to print from here, but ok */

.modal-header .printButton {
	display: none; /* Yeah, screw you. */
}

@media print {
	.modal .btn,
	.modal-open #maincontainer {
		display: none;
	}
	body,
	.modal {
		overflow-x: visible;
		overflow-y: visible;
	}
}

/* Make that prompt bigger */
textarea#promptInput {
	font-size: 20px;
	min-height: 8em;
}

/* Cute Animation Stuff */

.animate.pop {
  animation-duration: 0.25s;
  animation-name: animate-pop;
  animation-timing-function: cubic-bezier(.26, .53, .74, 1.2);
}

@keyframes animate-pop {
  0% {
    opacity: 0;
    transform: scale(0.5, 0.5);
  }

  100% {
    opacity: 1;
    transform: scale(1, 1);
  }
}