/* font files */
@font-face {font-family: 'AvenirNextLTPro-Regular';src: url('fonts/32EDC4_0_0.eot');src: url('fonts/32EDC4_0_0.eot?#iefix') format('embedded-opentype'),url('fonts/32EDC4_0_0.woff2') format('woff2'),url('fonts/32EDC4_0_0.woff') format('woff'),url('fonts/32EDC4_0_0.ttf') format('truetype');}

@font-face {font-family: 'AvenirNextLTPro-It';src: url('fonts/32EDC4_1_0.eot');src: url('fonts/32EDC4_1_0.eot?#iefix') format('embedded-opentype'),url('fonts/32EDC4_1_0.woff2') format('woff2'),url('fonts/32EDC4_1_0.woff') format('woff'),url('fonts/32EDC4_1_0.ttf') format('truetype');}

@font-face {font-family: 'AvenirNextLTPro-Bold';src: url('fonts/32EDC4_2_0.eot');src: url('fonts/32EDC4_2_0.eot?#iefix') format('embedded-opentype'),url('fonts/32EDC4_2_0.woff2') format('woff2'),url('fonts/32EDC4_2_0.woff') format('woff'),url('fonts/32EDC4_2_0.ttf') format('truetype');}


/* reset */

* {
	box-sizing: border-box;
	outline: 0;
	-webkit-text-size-adjust: none;
	}


/* layout */
html,body {
	margin: 0;
	}

body {
	padding-top: 4rem;
	}

.inner {
	max-width: 1620px;
	padding: 1rem;
	margin: auto;
	}
.inner--wide {max-width: 1600px}
.inner--medium {max-width: 900px}
.inner--narrow {max-width: 600px}

.flx {display: flex}
.aic {align-items: center}
.jcc {justify-content: center}
.jcb {justify-content: space-between}

.cols {
	display: grid;
	grid-template-columns: repeat(2, calc(50% - 1rem));
	grid-gap: 2rem;
	}
.cols--3 {
	grid-template-columns: 50fr 25fr 25fr;
	}
.cols__left,
.cols__right {
	
	}
.cols__fields {
	margin-top: 1rem;
	}
.cols__fields__field:not(:first-child) {
	margin-top: 1rem;
	}

/* font */
html,body,input,button,textarea {
	font: 400 14px 'AvenirNextLTPro-Regular';
	color: #000;
	line-height: 1.3;
	}

.title {
	font-size: 2rem;
	font-family: 'AvenirNextLTPro-Bold';
	line-height: 1;
	}

.bigger {
	font-size: 1.25em;
	}

.ta-l {text-align: left}
.ta-c {text-align: center}
.ta-r {text-align: right}

hr {
	border: 0;
	height: 1px;
	background: #f0f0f0;
	margin: 4rem 0;
	}

a,strong,b {
	font-family: 'AvenirNextLTPro-Bold';
	font-weight: normal;
	}

a {
	color: #000;
	text-decoration: underline;
	}

/* inputs */
input,button,textarea,select {
	-webkit-appearance: none;
	}

.btn,
.icon-btn {
	display: inline-block;
	cursor: pointer;
	vertical-align: bottom;
	color: #000;
	text-decoration: none;
	}

.btn {
	display: inline-flex;
	align-items: center;
	background: none;
	border: 2px solid #000;
	border-radius: 2rem;
	padding: 0 2rem;
	height: 2.5rem;
	font-family: 'AvenirNextLTPro-Bold';
	text-transform: lowercase;
	transition: all .3s;
	}

.btn:hover {
	background: #000;
	color: #fff;
	}

.icon-btn {
	width: 2rem;
	height: 2rem;
	background: #f8f8f8 center center / 1.25rem no-repeat;
	border: 0;
	border-radius: .25rem;
	}
.icon-btn+.icon-btn {
	margin-left: .5rem;
	}
.icon-btn--x {
	/*background-color: #EB5A46;*/
	background-image: url(../img/x.svg);
	}
.icon-btn--edit {
	background-image: url(../img/edit.svg);
	}
.icon-btn--eye {
	background-image: url(../img/eye.svg);
	}
.icon-btn--plus {
	background-image: url(../img/plus.svg);
	}
.icon-btn--file {
	background-image: url(../img/file.svg);
	}
.icon-btn--copy {
	background-image: url(../img/copy.svg);
	}



label {
	display: inline-block;
	margin-bottom: .25rem;
	font-family: 'AvenirNextLTPro-Bold';
	}

input[type="text"],
input[type="number"],
.number,
input[type="email"],
input[type="date"],
input[type="tel"],
input[type="password"],
input[type="search"],
textarea,
.wysiwyg,
.select {
	display: block;
	background: #f8f8f8;
	border: 1px solid #f0f0f0;
	padding: 0 1rem;
	height: 3rem;
	width: 100%;
	}
.wysiwyg:not(:empty),
.wysiwyg:focus {
	height: auto;
	padding: 1rem;
	}
textarea {
	padding: 1rem;
	min-height: 10rem;
	resize: vertical;
	}
input:read-only {
	color: #aaa;
	}

.select {
	position: relative;
	display: flex;
	align-items: center;
	background: #f8f8f8 url(../img/chevron-down.svg) right 1rem center / 1.5rem no-repeat;
	min-width: 200px;
	}
.select select {
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	opacity: 0;
	}

.switch {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	cursor: pointer;
	}
.switch input {
	display: none;
	}
.switch__indicator {
	position: relative;
	width: 4rem;
	height: 2rem;
	border-radius: 4rem;
	background: #f0f0f0;
	box-shadow: 0 0 2px rgba(0,0,0,.1) inset;
	}
.switch__indicator::before {
	position: absolute;
	content: '';
	box-sizing: border-box;
	top: 0;
	left: 0;
	width: 50%;
	height: 100%;
	border-radius: 50%;
	background: #bbb;
	border: 4px solid #f0f0f0;
	transition: left .3s, background .3s;
	}
.switch__text {
	margin-left: 1rem;
	}
.switch[data-on="1"] .switch__indicator::before {
	left: 50%;
	background: #000
	}


/* top */
.top {
	position: fixed;
	z-index: 50;
	width: 100%;
	background: #fff;
	top: 0;
	left: 0;
	box-shadow: 0 0 .5rem rgba(0,0,0,.2);
	height: 4rem;
	}
.top .inner {
	height: 100%;
	padding: 0 1rem;
	}

.top__logo {
	width: 140px;
	}

.top__nav__link {
	color: #000;
	text-decoration: none;
	font-family: 'AvenirNextLTPro-Bold';
	margin-left: 2rem;
	}


/* btm */
.btm {
	padding: 3rem 0;
	}


/* tables */
table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	}
th,td {
	text-align: left;
	padding: .75rem 1rem;
	border-bottom: 1px solid #eee;
	}
th {
	background: #eee;
	border-color: #ccc;
	padding: 1.15rem 1rem;
	font-family: 'AvenirNextLTPro-Bold';
	font-weight: normal;
	}

.table__row__buttons {
	text-align: right;
	white-space: nowrap;
	}

.offer-status {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	vertical-align: bottom;
	}
.offer-status--none {background-color: #ddd}
.offer-status--sent {background-color: #f5d226}
.offer-status--approved {background-color: #61BD4F}
.offer-status--rejected {background-color: #EB5A46}

.offer__rows__row {
	display: grid;
	grid-template-columns: 2rem auto auto auto auto 2rem;
	grid-gap: 1rem;
	align-items: flex-end;
	}
.offer__rows__row:not(:first-child) {
	margin-top: 1rem;
	}

.offer__rows__row:only-child .icon-btn {
	opacity: .3;
	cursor: not-allowed;
	}
.offer__rows__row .icon-btn--x {
	margin-bottom: .5rem;
	}
.offer__rows__row__handle {
	width: 1.5rem;
	height: 1.5rem;
	background: url(../img/menu.svg) center center / 100% no-repeat;
	cursor: move;
	opacity: .25;
	margin-bottom: .75rem;
	}

.offer__rows__row__text {min-width: 400px}

.offer__sum {
	font-size: 1.5rem;
	}

/* messages */
.message {
	position: fixed;
	z-index: 100;
	width: 300px;
	top: 2.5rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	line-height: 1;
	padding: 1rem;
	padding-left: 3.5rem;
	border-radius: .25rem;
	font-size: .875rem;
	font-family: 'AvenirNextLTPro-Bold';
	background: 1rem center / 1.5rem no-repeat;
	box-shadow: 0 1px .5rem rgba(0,0,0,.2);
	}
.message--hide {
	animation: message-hide .5s 3s ease-in forwards;
	}
@keyframes message-hide {
	from {top: 2.5rem}
	to {top: -5rem}
	}

.message--error {background-image:url(../img/alert-triangle.svg); background-color: #EB5A46; color: #2d0a05}
.message--success {background-image:url("../img/info-green.svg"); background-color: #61BD4F; color: #28541f}
.message--info {background-image:url("../img/info.svg"); background-color: #eee}


/* login */
.login {
	}
.login__box {
	width: 500px;
	max-width: calc(100% - 2rem);
	margin: auto;
	}