* {
  box-sizing: border-box;
}

textarea,
input.text,
select,
input[type="text"],
input[type="button"],
input[type="submit"],
.input-checkbox {
  -webkit-appearance: none;
  color: #333;
}

.mobile-only {
  display: none !important;
}

body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 100%;
  margin: 0;
  padding: 0;
}

a {
  color: #293998;
}

a:hover {
  text-decoration: none;
  color: #2a367a;
}

h3 {
  margin: 22px 0 7px 0;
}

h4 {
  margin: 22px 0 7px 0;
}


.content {
  width: 100%;
  max-width: 1200px;
  min-width: 1200px;
  margin: 0 auto;
  padding: 15px 0 20px 10px;
}

.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.logo {
  width: 200px;
}

.header-right {
}

.logo img {
  width: 130px;
}

#calendar {
  width: 100%;
  max-width: 1200px;
  margin: 30px auto 0 auto;
  overflow-x: auto;
}

#calendar .days-table {
  display: flex;
  width: 100%;
}

#calendar .days-table .time {
  position: absolute;
  /*   position: fixed; – ломается при вертикальном скролле */
  z-index: 10;
  width: 50px;
}

/*
#calendar .days-table .first-coll {
  margin-left: 50px;
}

Приём для выбора первого элемента класса:
*/

#calendar .days-table .day:not(.day ~ .day) {
  margin-left: 50px;
}

#calendar .column {
  position: relative;
  width: 100%;
  margin-top: 70px;
}

#calendar .column .day-title-cell {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  margin-top: -40px;
  padding: 13px 7px 2px 7px;
  background: #f3f3f3;
  border-right: 1px solid white;
  border-bottom: 2px solid white;

  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: #6e6e6e;
  font-size: 78%;
  font-weight: bold;
}

#calendar .column .day-title-cell:hover {
  background: #f7f7f7;
  cursor: pointer;
}

#calendar .column .day-title-cell .date {
  display: flex;
  justify-content: space-between;
}

#calendar .column .day-title-cell .date-notice {
  font-weight: normal;
  text-decoration: none;
  color: #999;
  overflow-x: hidden;
  width: 80px;
  height: 15px;
  text-align: right;
}

#calendar .hour-title-cell {
  height: 60px;
  background: #f3f3f3;
  outline: 1px solid white;
  display: flex;
  justify-content: right;
  /*   align-items: center; */
  font-size: 80%;
  padding: 4px 4px 0 0;
}

#calendar .cell {
  height: 30px;
  background: #d6f3d0;
  outline: 1px solid white;
}

#calendar .cell:hover {
  background: #bce8b3;
  cursor: pointer;
}

#calendar .booking {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  align-items: left;
  width: 100%;
  font-size: 90%;
  line-height: 140%;
  background: #f5f5f5;
  box-sizing: border-box;
  padding: 0 0 0 5px;
  border-bottom: 1px solid white;
  overflow: hidden;
}

#calendar .unpaid, .legenda .unpaid {
  background: #9B570E;
  color: #fff;
}

#calendar .paid-in-part, .legenda .paid-in-part{
  background: #E09F00;
  color: #fff;
}
#calendar .paid-in-full, .legenda .paid-in-full{
  background: #54952C;
  color: #fff;
}

/* Taskbar */

.taskbar {
  width: 100%;
  background: #ffed90;
  padding: 13px 20px;
  box-sizing: border-box;
  margin: 20px 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.studios {
  display: flex;
  width: 60%;
  padding: 0;
}

.studios select {
  float: left;
  display: block;
  background: url(../images/select-down.png) no-repeat right #ffffff;
  color: #333;
  font-size: 95%;
  padding: 5px 3px 5px 8px;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid #e3e3e3;
  min-width: 150px;
  cursor: pointer;
}

.studios select:hover {
  background: #f6f6f6;
}

.studios img.arrow {
  float: left;
  height: 22px;
  margin: 5px 8px 0px 8px;
  opacity: 0.6;
}

.studio-links {
  font-size: 90%;
}

.studio-links button {
  color: #293998;
  margin-right: 5px;
  padding: 6px 10px;
  border: none;
  font-size: 100%;
  background: #fff;
  cursor: pointer;
  text-decoration: underline;
}

.studio-links button:hover {
  color: #2a367a;
  text-decoration: none;
}

.studio-links button.active {
  color: #000;
  background: #ffed90;
  padding: 6px 10px;
  text-decoration: none;
  border-radius: 5px;
}

.studios .night {
  float: left;
  display: block;
  padding: 8px 10px 0px 15px;
  font-size: 90%;
}

.studios .night input {
  margin: 0px 0 0 0;
  padding: 0;
}

.studios .night label:hover {
  opacity: 0.8;
  cursor: pointer;
}

.week-page {
  display: flex;
  padding-top: 3px;
}

.week-page-text {
  padding: 2px 5px 0 5px;
  color: #858585;
  font-size: 90%;
}

.week-page-text a {
  background: #414141;
  color: #fff;
  font-size: 90%;
  padding: 2px 7px 4px 7px;
  box-sizing: border-box;
  border-radius: 4px;
  text-decoration: none;
  margin: 0 5px;
}

.week-page-text a:hover,
.week-page img:hover {
  opacity: 0.8;
}

.week-page img {
  width: 25px;
}

/* Модалка начало */

.fade-overlay {
  display: flex;
  justify-content: center;
  align-items: center;

  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.65);
  overflow: auto;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.modal {
  box-sizing: border-box;
  width: 95%;
  max-width: 400px;
  height: 572px;
  background: #fff;
  padding: 25px 30px 30px 30px;
  border-radius: 5px;
  overflow-y: auto;
  font-size: 95%;
}

.modal-title-wrap {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.modal-title {
	flex-grow: 1;
}

.modal-top-button {
  width: 20px;
  padding: 3px 0 0 0;
}

.modal-top-button:hover {
	opacity: 0.7;
}

.modal-top-button img {
  width: 100%;
  cursor: pointer;
}

.modal-left-part {
  box-sizing: border-box;
  width: 50%;
}

.modal-right-part {
  box-sizing: border-box;
  width: 50%;
  border-left: 1px solid #f0f0f0;
  padding: 20px 0 20px 20px;
  margin-left: 20px;
}

.modal .calculation {
}
.modal .calculation th {
  text-align: left;
  padding: 5px 10px 5px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 90%;
}

.modal .calculation td {
  text-align: left;
  padding: 5px 10px 5px 0;
  font-size: 90%;
  border-bottom: 1px solid #f0f0f0;
}

.modal h1 {
  font-size: 150%;
  margin: 0 0 15px 0;
  text-transform: uppercase;
}

.modal-block-2 {
  padding: 0px 0 5px 0;
  display: flex;
  justify-content: flex-start;
}

.modal-block-2 select {
  width: 100%;
  padding: 0;
  margin: 5px 0 0 0;
  height: 37px;
}

.modal-hr {
  margin: 20px 0 20px 0;
  border-bottom: 1px solid #ebebeb;
}

.notice {
  font-size: 90%;
  color: #555;
}

.textfield {
  width: 100%;
  background: #fff;
}

.textfield-half {
  display: flex;
  width: 50%;
  margin-right: 15px;
  box-sizing: border-box;
}

.textfield-third {
  display: flex;
  width: 30%;
}

.submit {
  background: #d54538;
  color: #fff;
}

.cancel {
  background: #f0f0f0;
  color: #595959;
}

.delete {
  background: #fff;
  color: #c46d6d;
}

.button {
  text-align: center;
  font-size: 100%;
  border: none;
  border-radius: 5px;
  padding: 8px 14px;
  cursor: pointer;
}

.button:hover {
  opacity: 0.85;
}

.day-title-cell div.month {
  position: absolute;
  top: -65px;
  left: 0%;
  /*   margin-left : -15%; */
  text-align: center;
  border-radius: 3px;
  background: #555;
  color: #fff !important;
  padding: 3px 6px;
  font-size: 11px;
}

#calendar .weekend .day-title-cell .date {
  color: #e26951;
}

#calendar .today .cell {
  background: #c6eec2;
}
#calendar .today .cell:hover {
  background: #b3dd9a;
  cursor: pointer;
}

.studio-content {
  display: flex;
}

.studio-content .navigation {
  width: 25%;
}
.studio-content .navigation .wrap {
  box-sizing: border-box;
  width: 90%;
  background: #f5f5f5;
  margin-top: 30px;
  padding: 25px 10px 20px 30px;
}

.studio-content .navigation h2 {
  margin: 0;
}

.studio-content .navigation .wrap ul {
  margin: 0 0 0 15px;
  padding: 0;
}

.studio-content .navigation .wrap ul li {
  margin: 5px 0 5px 0px;
  width: 100%;
  padding: 10px 10px 5px 0px;
}

.studio-content .navigation .wrap ul li a {
  color: #000;
}

.studio-content .navigation .wrap ul li a:hover {
  text-decoration: none;
  color: #23178e;
}

.studio-content .studio-text {
  box-sizing: border-box;
  width: 75%;
  padding: 20px 20px 0 25px;
  line-height: 150%;
}

.studio-content .studio-block {
  box-sizing: border-box;
  width: 100%;
  padding: 5px 0 0 0;
}

.studio-content .studio-block img {
  width: 100%;
}

.studio-rules {
  box-sizing: border-box;
  width: 100%;
  padding: 25px 20% 30px 23%;
  margin: 40px 0 0 0;
}

.studio-rules-wrap {
  box-sizing: border-box;
  width: 80%;
}

.footer {
  display: flex;
  justify-content: space-between;
  margin: 30px 0 0 0;
  padding: 20px 0 30px 0;
  border-top: 1px solid #e2e2e2;
  font-size: 95%;
}

.footer-left {
  width: 40%;
}

.footer-right {
  width: 40%;
  text-align: right;
}

.studios-wrap {
  display: none;
}

.this-hour {
  border-left: 2px solid red;
  background: #ffffff !important;
}

.legenda {
  display: flex;
  flex-wrap: wrap;
  padding: 20px 0 0 0;
}

.legenda .item {
  display: flex;
  margin: 0 30px 10px 0;
}

.legenda .square {
  width: 15px;
  height: 15px;
  border-radius: 2px;
}

.legenda .description {
  padding: 1px 0 0 4px;
  color: #636363;
  font-size: 85%;
}


.color-swarm {
  background: url(../images/swarm.png) no-repeat;
  background-size: contain;
}

.color-discount {
  width: 35px !important;
  height: 17px !important;
  background: url(../images/discount-20.png) no-repeat;
  background-size: contain;
}

.discount-icon{
	display: inline-block;
	height: 16px;
	background-color: #D93636;
	border-radius: 10px;
	font-size: 11px;
	font-weight: bold;
	line-height: 1em;
	text-align: center;
	padding: 3px 4px;
}

.swarm-icon{
	display: inline-block;
	height: 16px;
	width: 16px;
	margin-left: 4px;
	background-color: black;
	border-radius: 10px;
	font-size: 11px;
	font-weight: bold;
	line-height: 1em;
	text-align: center;
	padding: 3px 4px;
}

@media (max-width: 450px) {
	
  .content {
    margin-left: 0;
    padding-left: 0;
    min-width: 200px;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block !important;
  }

  .studios {
  	justify-content: space-between;
    width: 100%;
    padding: 0;
  }

  .studios .night {
  	padding-right: 0;
    font-size: 100%;
/*     border-top: 1px solid #f5de6b; */
    margin: 2px 0 10px 0;
  }
  .week-page {
    text-align: left;
    /* 	  border-top : 1px solid #F5DE6B; */
    /* 	  padding: 13px 0px 5px 0px; */
    /* 	  margin:  10px 0 0 0; */
/*     width: 50%; */
  }


  .taskbar {
    box-sizing: border-box;
    background: #ffed90;
    padding: 12px 15px 10px 15px;
  }

  #calendar .days-table {
    display: flex;
    width: 200%;
  }

  .studios-wrap {
    /*     display: flex; */
    display: none;
    width: 100%;
  }

  .studios select {
    width: 50%;
    font-size: 110%;
    color: #000;
  }

  .studio-links button {
    font-size: 115%;
    margin-right: 2px;
  }

  .modal {
    padding: 25px 20px 30px 20px;
    height: 610px;
  }

  .modal-left-part {
    width: 100%;
  }

  .button {
    font-size: 100%;
    padding: 9px 16px;
  }

  .day-title-cell div.month {
    top: -65px;
    width: 50%;
    margin: 0;
  }

  .manager-login-form {
    margin-top: 20px;
    font-size: 110%;
  }

  .manager-login-form input,
  .manager-login-form button {
    width: 100%;
    font-size: 100%;
  }

  .studio-content {
    width: 100%;
  }

  .studio-content .studio-text {
    width: 100%;
  }

  .studio-rules {
    width: 100%;
    border: none;
    padding: 20px 20px 0 25px;
    line-height: 150%;
    margin-top: 0;
  }

  .footer {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 20px 0 10px 0;
  }

  .footer-left {
    width: 100%;
    text-align: center;
    padding-bottom: 15px;
  }

  .footer-right {
    width: 100%;
    text-align: center;
  }

  .legenda {
    justify-content: center;
  }

  .legenda .item {
    margin: 0 10px 10px 10px;
  }
  
  
	#calendar .column .day-title-cell .date-notice {
	  width: 40px;
	  height: 15px;
	  text-align: right;
	}

}
