body, html {
    margin: 0; padding: 0;
}

body {
	font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif;
	overflow: hidden;
	background-color: #f3f4f5;
	font-size: 30px;
	color: #222;
}

a {
	color: inherit;
	text-decoration: inherit;
}

h1, h2, h3, h4, h5, h6 {
	color: #333;
	font-weight: normal;
	/*text-shadow: 1px 3px 0 rgba(0,0,0,0.05);*/
	margin: 0;
	padding: 0;
	margin-bottom: 0.3em;
}

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
  user-select: none;
}

h1 {
	color :#222;
}

button {
    outline: none;
}

p.version {
	margin: 0;
}

p.foot {
    font-size: 0.6em;
    margin-top: 0;
}

.hidden {
	display: none !important;
}

.logo {
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.brand-roubler .logo {
    background-image: url("clock_logo.png");
}

.brand-myob .logo {
    background-image: url("clock_logo_myob.png");
}

.live .hide-live {
	display: none
}

#header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6%;
	color: #FFF;
	background-color: #fff;
	line-height: 8%;
	text-align: right;
	z-index: 1000;
    transition: background 200ms ease-in-out;
}

.brand-roubler #header {
    background-color: #17924C;
}

.brand-myob #header {
    background-color: #fff;
    border-bottom: solid 1px #dedede;
}

	#header .logo {
		height: 100%;
		background-size: auto 40%;
		background-position: center center;
	}

    .brand-myob #header .logo {
        background-size: auto 50%;
    }

	#header .btn-back {
		position: absolute;
		left: 20px;
		height: 50%;
		top: 24%;
		font-size: 14px;
		border: none;
		padding-left: 2em;
	}

    #header button {
        background: transparent;
        color: #fff;
    }

    .brand-myob #header button {
        color: #515E6D;
    }

    #header .btn-back svg {
        position: absolute;
        top: 0;
        left: 0;
    }

	#header .time {
		position: absolute;
		top: 48%;
		width: 100%;
		text-align: center;
	}

div#container {
    position: absolute;
    width: 100%;
    height: 100vh;
    top: 1px;
    left: 0;
	overflow: hidden;
    background: #f3f4f5;
}

div#container.letterbox {
	margin: 30px 0;
}

div#pages {
	left: 0;
	position: relative;
	height: 100%;
	overflow: visible;
}

.time-text {
	font-size: 60px;
	line-height: 60px;
	text-align: center;
	top: 50%;
	margin-top: -30px;
	position: absolute;
	width: 100%;
	font-size: 1.5em;
	text-shadow: 1px 3px 0 rgba(0,0,0,0.05);
}

.confirm-text {
	margin-top: -35px;
	line-height: 1.2em;
}

div#circle {
	width: 200px;
	height: 200px;
	border-radius: 100px;
	background-color: rgb(150,50,50);
	position: absolute;
	top: -200px;
	left: 50%;
	margin-left: -100px;
	margin-top: -100px;
}

.animate {
	transition: all 500ms cubic-bezier(0.080, 1.420, 0.415, 0.980);
}

ul#employeelist {
	margin:0;
	padding:0;
	overflow-y: auto;
	height: 100%;
	width: 100%;
	font-size: 15px;
}

	ul#employeelist li {
		padding: 0;
		list-style: none;
	}

	ul#employeelist li a {
		padding: 30px;
		display: block;
		border-bottom: 1px solid rgba(0,0,0,0.05);
		background-color: #FFF;
	}

.circle-btn {
	width: 4em;
	height: 4em;
	border-radius: 100%;
	border: 0.13ex solid #17924C;
	box-shadow: none;
	color: #17924C;
	color: #444;
	background-color: #FFF;
	line-height: 1em;
	font-size: 30px;
}

.brand-myob .circle-btn {
    border-color: #8241AA;
}

	.circle-btn.borderless {
		border: none;
		background-color: inherit;
		box-shadow: none;
	}

	/*.circle-btn:active {
		background-color: #17924C;
		color: #FFF;
	}*/
.pin-active {
	background-color: #17924C;
	color: #FFF;
}

.brand-myob .pin-active {
    background-color: #8241AA;
}

.clock-btn {
    position: absolute;
    width: 440px;
    height: 440px;
    margin-left: -220px;
    margin-top: -220px;
    left: 50%;
    top: 28%;
    background: inherit;
    border: none;
    background-position: center;
    background-size: 500px auto;
    background-repeat: no-repeat;
	font-size: 1.1em;
	color: #17924C;
	line-height: 2.5em;
	z-index: 10;
    font-weight: 600;
}

.clock-btn svg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

    .brand-myob .clock-btn {
        color: #2B74DF;
    }

    .clock-btn.clock-in {
        color: #17924C;
    }

    .clock-btn.clock-out {
        color: #aa4444;
    }

	.brand-roubler .clock-btn.break {
		color: #3589af;
	}

    .brand-myob .clock-btn.clock-in {
        color: #00AA65;
    }

    .brand-myob .clock-btn.clock-out {
        color: #CE2554;
    }

	.brand-myob .clock-btn.break {
		color: #2B74DF;
	}

	.clock-btn.break.break-start {
		padding-top: 80px;
	}

	.clock-btn.break.break-end {
		padding-bottom: 60px;
	}

	.clock-btn.confirm-btn {
		padding-top: 150px;
	}

	.clock-out, .cancel-btn {
		color: #A44;
	}

	.clock-btn.bottom {
		top: 70%;
	}

	.clock-btn.bl, .clock-btn.br {
		top: 70%;
	}

	.clock-btn.tl, .clock-btn.bl {
		left: 27%;
	}

	.clock-btn.tr, .clock-btn.br {
		left: 73%;
	}

	.clock-btn.tl, .clock-btn.tr, .clock-btn.bl, .clock-btn.br {
		transform: scale(0.8);
	}

	.clock-btn em {
		display: block;
		font-size: 2em;
		margin-top: -0.6em;
		font-style: initial;
	}

	.pin-btn {
		width: 170px;
		height: 170px;
		border-radius: 200px;
		margin: 10px;
		font-size: 80px;
		text-align: center;
	}

	.clock-btn .icon {
		font-size: 100px;
		margin: 20px 0 15px;
	}

	.clock-btn.cancel {
		color: #A33;
		border-color: #A33;
	}

	.clock-status {
		position: absolute;
		top: 50%;
		width: 100%;
		text-align: center;
		font-size: 1.3em;
	}

	table.clock-text {
	    position: absolute;
	    top: 50%;
	    left: 50%;
	    width: 500px;
	    height: 500px;
	    margin: -250px 0 0 -250px;
	    text-align: center;
		z-index: 1;
	}

	.clock-btn:active {
		opacity: 0.5;
	}

	button.flag-error {
		border: none;
		background: inherit;
		background-image: url(flag.svg);
		background-size: contain;
		background-repeat: no-repeat;
		background-position: left;
		padding-left: 100px;
		color: #A44;
		height: 80px;
		position: absolute;
		bottom: 60px;
		width: 280px;
		left: 50%;
		margin-left: -150px;
	}

	.confirm button.flag-error {
		margin-top: 400px;
	}


ul#employees {
	left: 100%;
	transition: left 0.5s ease-in-out;
}

ul#employees.show {
	left: 0%;
}

.avatar .initials {
	position: relative;
	display: inline-block;
	margin: 0 1ex 0 -0.3ex;
	font-size: 1.3em;
	box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.avatar .gloss {
	background: linear-gradient(to bottom, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.1) 50%);
	position: absolute;
	top: 0; left:0; right:0; bottom:0;
}

.page {
	position: absolute;
	width: 720px;
	height: 1280px;
	top: 0;
	left: 0;
}

.page.scale {
	left: 50%;
	top: 50%;
	width: 100%;
	height: 100%;
	margin-left: -360px;
	margin-top: -640px;
}

.page-clock {
	left: 0;
}

.page-action .action {
	margin-top: 300px;
	text-align: center;
}

div#confirm {
	text-align: center;
}

div#confirm h2 {
	margin: -1em 0 0;
}

div.pin-field {
	padding: 40px 0 30px;
}
	div.pin-field > div {
		display: inline-block;
		width: 1em;
		height: 1em;
		line-height: 1em;
		margin: 0.5em;
        font-size: 1.5em;
	}

.notice {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.notice h3 {
	text-align: center;
}

	.pin-grid > div {
		text-align: center;
	}

.time-date {
	text-align: center;
	margin-top: 140px;
}
	.time-date p {
		margin: 0;
	}
	.time-date p.time {
		font-size: 2.3em;
	}
	.time-date p.date {
		font-size: 1.1em;
		margin-top: -0.4em;
	}

.invisible {
	opacity: 0;
}

.btn-back {
	display: none;
}

.clock .btn-back, .manualClock .btn-back, .settings .btn-back {
	display: block;
}

.anim {
	transition: left 0.3s ease-in-out;
}

#loader {
	border-radius: 100%;
    position: absolute;
    width: 30px;
    height: 30px;
    bottom: 10px;
    right: 10px;
	color: #FFF;
	background-color: #687480;
    font-size: 0.3em;
	text-align: center;
    line-height: 8px;
	opacity: 0;
	overflow: visible;
    transition: background 300ms ease-out;
}

@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }

#loader.receiving {
	background-color: #AA3;
}

#loader.sending {
	background-color: #2A4;
}

#loader.sending, #loader.receiving {
	animation: spin 1.5s linear infinite;
	opacity: 1;
}

#loader.sending:before, #loader.receiving {
	content: "●"
}

#loader.error {
	background-color: #A22;
	opacity: 1;
}

#env {
    position: absolute;
    width: 500px;
    height: 50px;
    z-index: 10000;
    background-color: #000;
    color: #FFF;
    text-align: center;
    font-size: 24px;
    line-height: 50px;
    transform: rotate(45deg);
    right: -200px;
    top: 20px;
	display: block;
}

#env.live {
	display: none;
}

.live .dev-only {
	display: none;
}

.page-settings > div {
	padding-top: 20%;
	text-align: center;
}

.page-settings button {
	width: 80%;
	background-color:  #F8F8F8;
	border: none;
	border-bottom: 1px solid #888;
	font-size: 0.7em;
	padding: 1em;
	margin: 0.3em;
}
    .page-settings .env-buttons button {
		width: 39%;
		display: inline-block;
        margin: 0.3em 0;
        font-size: 0.6em;
	}

.brand-myob .env-buttons {
    display: none !important;
}

.page-settings .device {
	font-size: 0.4em;
	font-family: monospace;
}

#capturer {
    border-radius: 50%;
}

div#spacer {
    height: 1px;
}
