html body.client {
    font-family: Rubik, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 10px;
    color: #424D54;
    background-color: var(--main-bg-color);
}
html[lang="fa_IR"] body.client {
    font-family: IRANYekan, Rubik, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body.client .en-only {
}

body.client .fa-only {
    direction: rtl;
    font-family: IRANYekan, Rubik, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

img.icon {
    display: inline;
    width: 2em;
    position: relative;
    top: 0.5em;
    padding: 0 0.2em;
    /* box-sizing: content-box; */
}

body.client.home .form-wrapper {
    margin-bottom: 5em;
}

form#formEnterCaseNumber {
    max-width: 40em;
    margin: 2rem auto;
    text-align: center;
}

form#formEnterCaseNumber > div {
    margin: 0.5em;
}

form#formEnterCaseNumber label {
    display: block;
    font-size: 2.6rem;
    font-weight: bold;
}

form#formEnterCaseNumber input[type="text"] {
    width: 80%;
    max-width: 21em;
    font-size: 2rem;
    background-color: #f1f5f8;
    border: #f1f5f8 solid 1px;
    outline-color: #e1ebf3;
    padding: 0.3em 1em;
    border-radius: 7px;
    margin: 0.5em 0;
}

.client .casenumber.error {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    margin: 1em auto;
    color: #ff715b;
    font-size: 1.7rem;
}

.client .casenumber.error img.icon {
    display: block;
    height: 2.5em;
    width: auto;
    top: 0;
}

.client.selecttime .selecttime-header {
    position: relative;
    max-width: 1010px;
    margin: 0 auto;
}

.client.selecttime .selecttime-header .current-time {
    font-size: 1.4rem;
    text-align: center;
}

.client.selecttime .selecttime-header .branding img.logo,
.client.selecttime .selecttime-header .branding img.farsisubtitle {
    margin: 0 auto;
}

.client.selecttime .selecttime-header .page-tools {
    display: flex;
    justify-content: space-around;
    margin: 1em 0;
}

.client.selecttime .selecttime-header .whoami {
    font-size: 1.4rem;
    border: #ccc solid 1px;
    width: 180px;
    padding: 6px;
    border-radius: 6px;
    position: relative;
}
.client.selecttime .selecttime-header .whoami .pseudonym {
    font-size: 2.1rem;
    font-weight: bold;
}
.client.selecttime .selecttime-header .whoami .casenumber {
    font-size: 1.1rem;
}
.client.selecttime .selecttime-header .whoami a.exit.word {
    display: block;
    position: absolute;
    right: 25px;
    bottom: 1rem;
    padding: 0 0.5em;
    font-size: 1.1rem;
    color: #424D54;
}
.client.selecttime .selecttime-header .whoami a.exit.icon {
    position: absolute;
    right: 0;
    bottom: 1rem;
}

.client.selecttime .view-select {
    margin-top: 0;
    border: #ccc solid 1px;
    padding: 6px;
    border-radius: 6px;
    align-items: center;
    font-size: 1.2em;
}

/* unfortunately, this larger font makes content overlap on iPad */
@media (min-width: 850px) {
    .client.selecttime .view-select {
	font-size: 1.4em;
    }
}

.client.selecttime .view-select img.icon {
    position: static;
}

.client.selecttime .labels-only .reminder {
    color: #999;
    padding-top: 0.6em;
}

@media (min-width: 768px) {
    .client.selecttime .selecttime-header .branding {
        display: grid;
        grid-template-areas:
        "logo farsisubtitle"
	    "logo siteid"
	    "pageh1 pageh1";
        max-width: 400px;
	/* align-items: center; */
	margin: 0 auto;
    }

    .client.selecttime .selecttime-header .branding img.logo {
	width: 90px;
	grid-area: logo;
    }
    .client.selecttime .selecttime-header .branding img.farsisubtitle {
	width: 290px;
	grid-area: farsisubtitle;
    }
    .client.selecttime .selecttime-header .branding .siteid {
	width: 290px;
	grid-area: siteid;
	margin: 0;
    }
    .client.selecttime .selecttime-header .branding h1 {
	grid-area: pageh1;
    }

    .client.selecttime .selecttime-header .page-tools {
	display: block;
    }

    .client.selecttime .selecttime-header .whoami {
	position: absolute;
	max-width: calc( 50% - 220px );
	left: 0px;
	top: 0;
    }

    .client.selecttime .view-select {
	display: flex;
	position: absolute;
	top: 0;
	right: 0;
	max-width: calc( 50% - 220px );
    }

    .client.selecttime .selecttime-header .current-time .date-fa .date-string {
	font-size: 1.7rem;
	font-family: IRANYekan, Rubik, "Helvetica Neue", Helvetica, Arial, sans-serif;
    }

}

@media (min-width: 1000px) {
    .client.selecttime .selecttime-header .current-time {
	position: absolute;
	font-size: 1.4rem;
    }
    .client.selecttime .selecttime-header .current-time {
	right: 0px;
	bottom: 14px;
    }
}

.client.selecttime .selecttime-header h1 {
    color: #424D54;
    letter-spacing: 1px;
    margin: 6px 3px;
    font-size: 2.5rem;
    text-align: center;
}

.client.selecttime .calendar-wrapper .atime {
    text-align: center;
    margin: 0;
    padding: 0.1em 0;
}

.client.selecttime .calendar-wrapper .atime a {
    text-decoration: none;
    padding: 0.2em;
    border: transparent solid 2px;
    border-radius: 5px;
    color: #41D4C3;
    /*     background: #f4f4f4; */
}

.client.selecttime .calendar-wrapper .atime.currently-scheduled a {
    color: #f17b15;
}

.client.selecttime .calendar-wrapper .atime + .atime {
    /*     border-top: #b5b3b3 solid 1px; */
}

@media (min-width: 768px) {
    .client.selecttime .calendar-wrapper .atime:nth-child(odd) {
	background: var(--main-bg-color);
    }
}

.client.selecttime .calendar-wrapper .atime a:hover {
    color: #00af9b;
}

.client.selecttime .calendar-wrapper .atime.currently-scheduled a:hover {
    color: #b35708;
}

.client-calendar-legend {
    margin: 0.4em 0;
}

.client-calendar-legend > span {
    padding-inline-start: 20px;
    background-image: url('/images/unicons/circle.svg');
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: left center;
}

.client-calendar-legend > span:not(:last-child) {
    padding-inline-end: 1em;
}

.client-calendar-legend.fa-only > span {
    background-position: right center;
}

.client-calendar-legend > span.available {
    background-image: url('/images/unicons/circle-available.svg');
}

.client-calendar-legend > span.reserved {
    background-image: url('/images/unicons/circle-reserved.svg');
}

.client.selecttime .calendar-wrapper .calendar-day.past {
    background-color: #ddd;
    color: #999;
}

body.client .calendar-wrapper {
    --week-view-hour-height: 24px;
}

body.client.main-white .main {
    margin: 1rem auto 0;
    padding: 30px 0;
    background-color: white;
    max-width: 930px;
    border-radius: 8px;
    box-shadow: 0 0 4px 0px #ddd;
}

body.client.main-white .main .login-banner {
    margin-top: 1rem;
}

body.client.selecttime.main-white .main {
    padding: 4px;
    margin: 0 auto 3rem;
    max-width: 1010px;
}

body.client.selecttime.main-white .main .calendar-wrapper {
    border-radius: 3px;
    margin-top: 0;
}

/* horizontal lines around the header effect */
body #hRainbowHelpCenter {
    font-family: Rubik, "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow: hidden;
    text-align: center;
    color: #727D74;
    font-size: 18px;
    font-weight: 300;
    direction: ltr;
}
body #hRainbowHelpCenter:before,
body #hRainbowHelpCenter:after {
    background-color: #727D74;
    content: "";
    display: inline-block;
    height: 1px;
    position: relative;
    vertical-align: middle;
    width: 1.5em;
    top: -2px;
}
body #hRainbowHelpCenter:before {
    right: 0.5em;
    margin-left: -50%;
}
body #hRainbowHelpCenter:after {
    left: 0.5em;
    margin-right: -50%;
}

@media (min-width: 768px) {
    body.client .login-banner .welcome-statement-grid {
	display: grid;
	grid-template-areas:
	"en-welcome fa-welcome"
	    "en-form fa-form";
    }

    body.client .login-banner .welcome-statement-grid .welcome-statement.fa-only { 	grid-area: fa-welcome; }
    body.client .login-banner .welcome-statement-grid .form-wrapper.fa-only { 	grid-area: fa-form; }
    body.client .login-banner .welcome-statement-grid .welcome-statement.en-only { 	grid-area: en-welcome; }
    body.client .login-banner .welcome-statement-grid .form-wrapper.en-only { 	grid-area: en-form; }
}
body.client .login-banner .side-by-side-wrapper {
    display: flex;
}

body.client .login-banner .side-by-side-wrapper > div {
    flex: 1 0 40%;
    order: 1;
}

body.client .login-banner .side-by-side-wrapper > div.fa-only {
    order: 2;
}

body.client .login-banner .en-only h2 {
    font-weight: normal;
    font-size: 3rem;
    width: 80%;
}

body.client .login-banner h2 {
    margin: 2rem auto 0;
    font-size: 4.3rem;
    letter-spacing: 1px;
    color: #424D54;
}

body.client .login-banner p {
    width: 80%;
    text-align: justify;
    font-size: 1.9rem;
}

body.client .login-banner .welcome-statement > * {
    display: block;
    margin: 0.5em auto;
    font-size: 1.9rem;
}

@media (min-width: 768px) {
    body.client .login-banner {
	display: block;
    }

    body.client .login-banner h2 {
	/* margin: 0; */
    }
    body.client .calendar-wrapper.week-view .calendar-day {
	min-height: 15em;
    }

    body.client.selecttime .calendar-wrapper.week-view .atime {
	padding: 0 2px;
	color: #fff;
	background-color: var(--cal-appt-bg-color) !important;
	border-bottom: var(--cal-appt-border-color) solid 1px;
	margin: 0;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: calc( 1 * var(--week-view-hour-height) - 0px );
	font-size: 80%;
	text-align: center;
    }

    body.client.selecttime .calendar-wrapper.week-view .atime a {
	display: block;
	position: relative;
	bottom: 3px;
	font-size: 1.5rem;
    }

    body.client.selecttime .calendar-wrapper.week-view .atime.currently-scheduled {
	background-color: var(--cal-taken-appt-bg-color) !important;
	border-bottom: var(--cal-taken-appt-border-color) solid 1px;
    }
    body.client.selecttime .calendar-wrapper.week-view .atime a,
    body.client.selecttime .calendar-wrapper.week-view .atime.currently-scheduled a {
	color: #666;
    }
    body.client.selecttime .calendar-wrapper.week-view .atime a:hover,
    body.client.selecttime .calendar-wrapper.week-view .atime.currently-scheduled a:hover {
        color: #000088;
    }
}

body.client .session-when {
    font-size: 20px;
}

body.client .big-buttons {
    margin: 1em auto;
}

body.client .big-buttons input[type="submit"] {
    display: block;
    width: 100%;
    height: 5em;
    margin-bottom: 0.2em;
    font-size: 2.7rem;
    padding: 1em;
    padding-inline-start: 3em;
    white-space: normal;
    text-align: start;
    font-weight: normal;
    background: url(/images/unicons/times-square.svg) 1em center / 1.4em no-repeat, blue;
    box-shadow: none;
    text-shadow: none;
    border-radius: 0.3em;
}

body.client .big-buttons.fa-only input[type="submit"] {
    background-position: right 1em center;
}

@media (min-width: 768px) {
    body.client .big-buttons {
	max-width: 930px;
	display: flex;
	justify-content: space-between;
	justify-items: stretch;
    }
    body.client .big-buttons input[type="submit"] {
	width: 32%;
	font-size: 2.4rem;
    }
}

body.client .big-buttons input[type="submit"].delete {
    background-color: #ff715b;
}
body.client .big-buttons input[type="submit"].reschedule {
    background-image: url('/images/unicons/edit.svg');
    background-color: #34D1C0;
}
body.client .big-buttons input[type="submit"].exit {
    background-image: url('/images/unicons/signout-white.svg');
    background-color: #AEB3B9;
}

.client.selecttime #divChangeView {
    display: inline-block;
    margin: 0;
    break-inside: avoid;
}

.client.selecttime #divChangeView > a {
    display: inline-block;
    margin: 0 0.4em;
}

.client.selecttime #divChangeView > a.selected {
    color: #424D54;
    text-decoration: none;
}


@media (max-width: 767px) {
    .client.selecttime .calendar-wrapper {
	display: block;
    }
    .client.selecttime .calendar-wrapper .calendar-day {
	min-height: 0;
    }
    .client.selecttime .calendar-wrapper .calendar-day.past {
	display: none;
    }
}

body.client.reserved p {
    max-width: 80%;
    margin: 1em auto;
}
