/* Kalenterin runko */
html {
    background: #e1e1e1;
    height: 100%;
}

body {
    background: #e8e8e8;
}

a.highlight-link {
    color: #e30613;
    text-decoration: underline;
}

.service-reserve-calendar {
    margin-bottom: 50px;
}

.reserve-calendar-container {
    width: 100%;
    /*box-shadow: 0px 1px 2px;*/
    text-align: center;
    float: left;
}

.reserve-calendar-header {
    /*background: #2222;
    padding: 8px;*/
}

.reserve-calendar-dates-table {
    width: 100%;
}

.weekday-row th {
  background: #555;
  color: white;
  border: none;
  cursor: auto;
  text-align: center;
}

/*** Painikkeen säännöt ***/

  .reserve-calendar-input {
      width: 100%;
  }

  .reserve-calendar-calendar-icon {
      font-size: 25px;
      color: #333333;
  }

  .reserve-calendar-button {
      width: 100%;
      text-align: center;
      background: white;
      outline: none;
      padding: 10px 8px;
      /*box-shadow: 0px 1px 2px black;*/
  }

  .reserve-calendar-select {
      border-radius: 0;
      width: 100%;
      border: 1px solid #929292;
  }

  .reserve-calendar-select option[selected] {
      color: white;
      background: blue;
  }

  .reservation-button {
      padding-left: 0;
  }

/* Solu perussäännöt */

.reserve-calendar-dates-table td {
  /*border: 1px solid #f0f0f0;*/
  cursor: pointer;
  vertical-align: top;
}

/* Solu erikoissäännöt */

.reserve-calendar-dates-table td.today {
  /*  background: #ffc; */
}

.reserve-calendar-dates-table td.inactive {
  /*
  opacity: 0.5;
  cursor: auto;
  */
}

.reserve-calendar-dates-table td.weekend {
  /*color: red;*/
}

.reserve-calendar-dates-table td.past-future {
    background: #2222;
}

/* Varaosat tilattu jakoavainmerkki ja huolto on aloitettu kellomerkki */
.block-reserveCalendar .day-slot.hour-cell i.parts-ordered,
.block-reserveCalendar .day-slot.hour-cell i.work-started {
    font-size: 20px;
    float: right;
    margin-right: 5px;
}
.block-reserveCalendar .day-slot.hour-cell i.parts-ordered.parts-are-ordered,
.block-reserveCalendar .day-slot.hour-cell i.work-started.work-is-started {
    color: #27844c;
}
.block-reserveCalendar .day-slot.hour-cell i.parts-ordered.parts-not-ordered,
.block-reserveCalendar .day-slot.hour-cell i.work-started.work-not-started {
    color: #c00e1a;
}

/*** Hover säännöt ***/

  /*.reserve-calendar-dates-table td.active:hover {
      background: #ccf;
      color: white;
  }*/

/* Viikkokalenterin omat tyylit */

.week-calendar .day-number {
  display: none;
}

.week-calendar .day-slot-text {
    display: table-cell;
    vertical-align: middle;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .01em;
    width: 100%;
    user-select: none;
    pointer-events: none; /* Tarvitaan, älä poista */
}

.week-calendar .day-slot-text i {
    margin-left: 1px;
    margin-right: 1px;
}

.week-calendar .day-slot-text i.parts-ordered,
.week-calendar .day-slot-text i.work-started {
    pointer-events: all;
}

.hours-column-entry.hour-cell {
    font-weight: 600;
    line-height: 45px;
    font-size: 16px;
    cursor: default;
}

.day-hours {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-right: 1px solid white;
}

.day-hours > * {
    display: table-cell;
    vertical-align: top;
}

.week-calendar .hour-cell {
  height: 65px; /* Tämän tulee olla sama kuin reserveCalendar.class.php tiedostossa oleva $slot_basic_height arvo*/
}

.week-calendar .title-cell {
  height: 65px;
  width: 100%;
  display: table;
}

.week-calendar .day-slot {
    background: #27844c;
    color: white;
    border-bottom: 1px solid;
    border-right: 1px solid;
    display: table;
    width: 100%;
    text-align: center;
    line-height: normal;
}
.week-calendar .day-slot.appointment-continue {
    border-bottom: 0;
}
.week-calendar .day-slot.on-sale {
    background: #195431;
}

.week-calendar .day-slot.active:hover {
    background: #10351f;
}

.week-calendar .day-slot.inactive {
    background: #cecece;
}

.week-calendar .day-slot.expired-active {
    background: #cecece;
}

.week-calendar .day-slot.reserved {
    background: #545353;
}

.week-calendar .day-slot.slot-chosen {
    background: #333333;
}

.week-calendar .day-slot.admin-reserved,
.admin-day-summary-info-table-container.admin-reserved {
    background: #c00e1a;
    min-width: 55px;
}

.week-calendar .day-slot.expired,
.week-calendar .day-slot.expired:hover {
    background: #cecece;
}
.week-calendar .day-slot.expired i {
    display: none;
}

.week-calendar .full-date {
  font-weight: 600;
  font-size: 16px;
  display: table-cell;
  vertical-align: middle;
}

/* Kuukausikalenterin omat tyylit */

.month-calendar .full-date {
  display: none;
}

/* custom formin tyylit */

.hours-column {
    padding-right: 15px;
}

.reserve-calendar-body > * {
    display: table-cell;
    vertical-align: top;
}

.reserve-calendar-body {
    display: table;
    width: 100%;
    float: left;
}

.reserve-calendar-dates-table {
    width: 100%;
    table-layout: fixed;
}

.phase-selection-ok {
    font-size: 21px;
    color: #6a8276;
    margin-right: 2px;
}

.phase-selection-text {

}

.phase-selection {
    text-align: right;
    padding: 10px 30px;
}

.phase-body .appointment-summary-checklist-entry {
    line-height: 1.65;
}

.reserve-calendar-navigation {
    background: none;
    border: none;
}

.reserve-calendar-previous {
  float: left;
}

.reserve-calendar-next {
  float: right;
}

.phase-container {
  margin-top: 30px;
  float: left;
  width: 100%;
}

.phase-select {
    width: 100%;
    padding: 15px;
    border-radius: 0;
    border: 1px solid #929292;
}

.phase-select:focus {
    border-radius: 0;
}

.phase-container-inner {
    background: white;
    margin-top: 2px;
    float: left;
    width: 100%;
}

.phase-body {
    padding: 25px;
    float: left;
    width: 100%;
}

.phase-number {
    font-size: 26px;
    font-weight: 600;
    background: #a0a0a0;
    color: white;
    text-align: center;
    width: 65px;
}

.active-phase {
    background: #333333;
}

.phase-title {
    padding: 20px;
    padding-left: 25px;
}

.phase-title-container > * {
    display: table-cell;
    vertical-align: middle;
}

.phase-title-container {
    background: white;
    display: table;
    width: 100%;
}

.appointment-form-label {
    display: block;
    font-size: 16px;
}

.appointment-summary-making_appointment {
    font-size: 20px;
    font-weight: 600;
}

.appointment-form-additional-questions-label {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.additional-question-description {
    font-weight: initial;
}

.appointment-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #929292;
}

.appointment-form-field-container.checkbox-container input {
    width: auto;
    cursor: pointer;
    float: left;
    margin-right: 10px;
}

.appointment-form-field-container.checkbox-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: baseline;
    -ms-flex-align: baseline;
    align-items: baseline;
    padding-bottom: 10px;
}

.appointment-form-field-container.checkbox-container label {
    display: inline-block;
    padding-right: 10px;
    cursor: pointer;
}

.appointment-summary-checklist-entry {
    line-height: 1.65;
}

.appointment-summary-checklist {
    padding: 30px 0;
}

.appointment-form-submit {
    border: 0;
    background: #fbf802;
    color: #000;
    padding: 12px 25px;
    border-radius: 0;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 400;
	-webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.appointment-form-submit:after {
    position: relative;
    padding: 0 0 0 5px;
    content: "\f105";
    color: #000000;
    font-size: 16px;
    font-family: 'FontAwesome';
    font-weight: 400;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.appointment-form-submit:hover:after {
    color: #ffffff;
}

.appointment-form-submit:hover {
    color: #fff;
    background-color: #1d1d1b;
    border-color: #1d1d1b;
}

.appointment-form-textarea {
    width: 100%;
    height: 125px;
    padding: 10px 12px;
    border: 1px solid #929292;
}

.appointment-form-textarea#appointment-form-sms-message {
    height: 250px;
}

.appointment-form-field-container {
    padding-bottom: 20px;
}

.appointment-form-checkbox-label {
    padding: 5px;
    margin-right: 10px;
}

.appointment-form-checkbox-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: baseline;
    -ms-flex-align: baseline;
    align-items: baseline;
}

.appointment-form-checkbox-row input {
    margin-right: 2px;
}

.appointment-form {
    padding-top: 30px;
    padding-bottom: 10px;
}

.appointment-form #marketing-read-more-text {
    font-size: 14px;
    border: 1px solid #cccccc;
    padding: 5px;
}

.appointment-form .privacy-policy {
    font-size: 16px;
}

.ui-datepicker-inline {
    position: absolute;
    z-index: 10000;
}

.reserve-calendar-calendar-icon {
    cursor: pointer;
}

#filterCheckup-container label {
    display: inline;
}

#registration-number-options {
    display: none;
    font-size: 16px;
}
#registration-number-options ul {
    padding-left: 0;
}
#registration-number-options ul li {
    cursor: pointer;
    list-style: none;
    background: #cecece;
    margin-bottom: 5px;
}

.appointment-form-checkbox-label {
    font-weight: 400;
}

/* ADMIN NÄKYMÄ */

.reserve-calendar-admin-container,
.reserve-calendar-admin-container-preliminary-reservation,
.reserve-calendar-admin-container-tasks,
.reserve-calendar-admin-parts-ordered {
  position: fixed;
  display: table;
  text-align: center;
  width: 100%;
  left: 0;
  top: 0;
  height: 100%;
  background: #00000026;
  z-index: 10;
}

.day-slot.hour-cell.current-timestamp,
.reserve-calendar-body-sidecolumn .hours-column-entry.hour-cell.current-timestamp {
    border-bottom: 2px #c00e1a solid;
}

.reserve-calendar-admin-send-sms-container  {
  position: fixed;
  display: table;
  text-align: center;
  width: 100%;
  left: 0;
  top: 0;
  height: 100%;
  background: #00000050;
  z-index: 10;
}

.reserve-calendar-admin-container-inner {
  display: table-cell;
  vertical-align: middle;
}

/*Modal scroll fix*/
.reserve-calendar-admin-container,
.reserve-calendar-admin-container-preliminary-reservation,
.reserve-calendar-admin-container-tasks,
.reserve-calendar-admin-parts-ordered {
    display: block;
    overflow-y: scroll;
}

.reserve-calendar-admin-container-inner {
    display: block;
}

/*Modal scroll fix end*/

.reserve-calendar-admin-container-box {
    display: inline-block;
    width: 600px;
    background: white;
    text-align: left;
}

.reserve-calendar-admin-container-header {
    display: table;
    border-bottom: 2px solid #2222;
}

.reserve-calendar-admin-container-header > * {
    display: table-cell;
}

.reserve-calendar-admin-container-header h3 {
    width: 100%;
    padding: 15px;
}

.reserve-calendar-print-button {
  font-size: 26px;
  font-weight: bold;
  background: #000000;
  color: white;
  text-align: center;
  padding: 0 20px;
  outline: 0;
  border: 0;
  height: 60px;
}

.reserve-calendar-admin-close {
  font-size: 26px;
  font-weight: bold;
  background: #000000;
  color: white;
  text-align: center;
  width: 65px;
  cursor: pointer;
  padding: 0 20px;
}

.reserve-calendar-sms {
  font-size: 26px;
  font-weight: bold;
  background: #000000;
  color: white;
  text-align: center;
  width: 65px;
  cursor: pointer;
  padding: 0 20px;
  border-right: 1px solid;
}

.reserve-calendar-sms.sms-message-is-not-sent {
    font-size: 26px;
}

.reserve-calendar-sms.sms-message-is-sent {
    font-size: 14px;
    vertical-align: top;
    padding-top: 10px;
}

.reserve-calendar-sms.sms-message-is-not-sent .sms-message-is-sent-icon{
    display: none;
}

.reserve-calendar-sms.sms-message-is-sent .sms-message-is-sent-icon{
    display: inline-block;
}

.reserve-calendar-sms .sms-message-is-sent-icon{
    color: #008000;
}

.reserve-calendar-admin-info {
    overflow-y: scroll;
    max-height: 650px;
}

.reserve-calendar-admin-info th {
    padding: 2px 15px;
    padding-left: 0;
    width: 50%;
}

.reserve-calendar-admin-button,
.reserve-calendar-search-button,
.reserve-calendar-search-available-times-button {
    border: 0;
    padding: 10px 15px;
    color: white;
    background: #000000;
    font-weight: bold;
}

.reserve-calendar-admin-button.danger {
    background: #b11e1e;
}

.reserve-calendar-admin-button.secondary {
    background: #7d7d7d;
}

.reserve-calendar-admin-buttons {
    padding-top: 20px;
}

.preliminary-reservation-button-wrapper {
    margin-top: 5px;
}
.preliminary-reservation-button-wrapper input {
    width: 400px;
    height: 49px;
    margin-top: 5px;
    padding: 5px;
    display: none;
}

.appointment-form-error {
    padding-left: 15px;
    font-weight: bold;
    color: red;
}

.reserve-calendar-admin-container-body {
    padding: 15px;
}

.admin-mode {
    overflow-x: scroll;
}

.reserve-calendar-body-outer {
  overflow-x: scroll;
}
.reserve-calendar-body {
  table-layout: fixed;
}
.reserve-calendar-body-sidecolumn {
  width: 50px;
}
.reserve-calendar-dates-table {
  table-layout: unset;
}

.reserve-calendar-admin .summary .day-slot-text span {
    font-size: 12px;
    width: 85px;
    display: inline-block;
    word-break: break-word;
    padding: 4px;
}

.reserve-calendar-admin .summary .day-slot-text i {
    padding: 3px 0px 0px 1px;
}

.admin-mode > td {
    outline: 5px solid white;
    position: relative;
}

.admin-lock-day {
    position: absolute;
    right: 6px;
    top: 6px;
    font-size: 13px;
}

.admin-lock-day * {
    pointer-events: none;
}

.phase-time.move-time {
  outline: 6px solid orange;
  outline-offset: -3px;
}

.admin-lock-day {
    margin-right: 8px;
}

.reserve-calendar-admin {
    width: 100%;
    padding: 0px 60px;
}

.day-hours {
    table-layout: unset;
}

.reserve-calendar-select-small {
  width: 33%;
}

.reserve-calendar-calendar-icon-container {
    width: 5%;
    text-align: right;
    padding-right: 15px;
}

.refresh-calendar-container {
    width: 10%;
    text-align: right;
    padding-right: 15px;
}

.lock-slot-calendar-container {
    width: 10%;
    text-align: right;
    padding-right: 15px;
}

.reserve-calendar-loader-container {
    width: 5%;
}

.admin-day-summary-info-table-container {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    text-align: left;
    background: #545353;
}

.admin-day-summary-info-table th {
    font-size: 12px;
    text-align: center;
    padding: 12px;
    height: 65px;
}

.admin-day-summary-info-heading {
    margin: 0;
    text-align: left;
    padding-left: 15px;
}

.admin-day-summary-info-table{
  table-layout: fixed;
  width: 100%;
}

.admin-day-summary-info {
    position: relative;
    overflow: hidden;
}

.reserve-calendar-admin .week-calendar .day-slot.preliminary-reservation,
.week-calendar .admin-mode .day-slot.preliminary-reservation .admin-day-summary-info-table-container{
    background: #e9c202;
    color: #000000;
}

.day-slot:hover .admin-day-summary-info {
  overflow: visible;
  z-index: 5;
}

.day-slot:hover .admin-day-summary-info-table-container {
  box-shadow: 1px 2px 8px black;
}

.block-reserveCalendar .day-slot.upcoming-task,
.block-reserveCalendar .day-slot.upcoming-task .admin-day-summary-info-table-container,
.block-reserveCalendar .duplicate-reservation-list .reservation-row.upcoming-task,
.block-reserveCalendar .tasks-indicator .upcoming-task
 {
    background: #e9c202 !important;
    color: #000000 !important;
}

.block-reserveCalendar .day-slot.delayed-task,
.block-reserveCalendar .day-slot.delayed-task .admin-day-summary-info-table-container,
.block-reserveCalendar .duplicate-reservation-list .reservation-row.delayed-task,
.block-reserveCalendar .tasks-indicator .delayed-task {
    background: #c00e1a !important;
    color: #ffffff;
}

.block-reserveCalendar .day-slot.done-task,
.block-reserveCalendar .day-slot.done-task .admin-day-summary-info-table-container,
.block-reserveCalendar .duplicate-reservation-list .reservation-row.done-task,
.block-reserveCalendar .tasks-indicator .done-task {
    background: #545353 !important;
    color: #ffffff;
}

.block-reserveCalendar .tasks-indicator {
    width: 10px;
}

.reserve-calendar-admin-button.remove-task,
.reserve-calendar-admin-button.move-task {
    display: none;
}

.block-reserveCalendar .task-form .help-text {
    clear: both;
    font-size: 80%;
    color: #666;
    line-height: 1.2em;
    margin: 4px 0 0 15px;
}

.block-reserveCalendar .duplicate-reservation-list .reservation-row {
    margin-top: 5px;
    padding: 2px 5px 2px 5px;
    cursor: pointer;
}

.block-reserveCalendar .duplicate-reservation-list .reservation-row:hover {
    box-shadow: 1px 2px 8px black;
}

.block-reserveCalendar .invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}
.block-reserveCalendar .form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.block-reserveCalendar .form-control.is-invalid {
    border-color: #dc3545;
}

.reserve-calendar-select-container,
.reserve-calendar-next-container,
.reserve-calendar-previous-container {
	width: 20%;
}

.reserve-calendar-loader {
    display: none;
}

.appointment-summary-more-info-label,
.appointment-summary-more-info-admin-label {
	font-weight: 400;
    font-size: 16px;
}

.disabled-time-change {
    pointer-events: none;
    color: #e2e2e2 !important;
}

.register-number-search {
    margin-top: 20px;
    display: none;
}
.register-number-search input {
    margin-bottom: 10px;
}
.register-number-search-results {
    margin-top: 20px;
}
.register-number-search-results ul{
    list-style-type: none;
}
.register-number-search-results .removed-appointment {
    font-style: italic;
    color: #8b8b8b;
}
.register-number-search-results .appointment-info {
    display: none;
    padding-left: 30px;
}

#appointment-form-submitted {
    margin: 30px;
    padding: 30px;
}

.appointment-form-message-wrapper {
    padding: 30px;
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.appointment-form-thanks-message {
    margin-top: 0;
    padding-left: 0;
}

.appointment-form-thanks-message-p {
    padding: 0;
}

.select-slot {
    float: left;
    left: 20px;
    top: 20px;
}

.reserve-calendar-service-additional-questions-container {
    display: none;
}

.reserve-calendar-service-additional-questions-container #reserve-calendar-service-additional-questions {
    padding-left: 0;
}

.reserve-calendar-service-additional-questions-container #reserve-calendar-service-additional-questions li {
    list-style: none;
}

.service-column.hide-by-default {
    display: none;
}

.block-reserveCalendar span#js-copy-register-number {
    padding-left: 1rem;
    cursor: pointer;
}

@media (max-width: 991px){

    .appointment-summary-checklist {
        padding: 0 0 30px;
    }

    .reservation-button span {
        margin-top: 15px;
        display: block;
    }

    .appointment-form-field-container:last-child {
        padding: 0;
    }

    .reservation-button.additional-link-text {
        margin-top: 2rem;
        display: block;
    }

}

@media (max-width: 784px){

	.reserve-calendar-select-container {
		width: 70%;
	}

	.reserve-calendar-next-container,
	.reserve-calendar-previous-container {
		width: 10%;
	}

    .reserve-calendar-navigation-text {
        display: none;
    }

}


@media (max-width: 767px){

  .reserve-calendar-navigation-text {
      display: none;
  }
  .reserve-calendar-navigation-icon {
    font-size: 30px;
    font-weight: bold;
  }
  .reserve-calendar-select {
    border-radius: 0;
    width: 100%;
  }
  .reserve-calendar-select-container {
    width: 100%;
  }
  .reserve-calendar-select-container {
    width: 100%;
    padding: 0 10px;
    font-size: 14px;
  }
  .phase-title-container .phase-selection {
    display: none;
  }
  .phase-title {
    padding: 20px 10px;
    font-size: 18px;
    padding-left: 25px;
  }

  .reserve-calendar-body-outer {
    overflow-x: scroll;
  }

  .phase-body {
      padding: 10px;
  }

    .week-calendar .day-slot-text {
        font-size: 13px;
        font-weight: 400;
    }

  .reserve-calendar-body {
    table-layout: fixed;
  }

  .week-calendar .full-date {
    font-size: 14px;
  }

  .hours-column-entry.hour-cell {
    font-size: 14px;
    text-align: left;
  }

  .reserve-calendar-body-sidecolumn {
    width: 50px;
  }
  .hours-column {
    padding-right: 0;
  }
  .reserve-calendar-dates-table {
    width: 100%;
    table-layout: fixed;
    min-width: 500px;
  }

  .reserve-calendar-admin {
        padding: 0px 15px;
    }

}

@media (max-width: 600px){
    .reserve-calendar-admin-container-box {
        width: 100%;
    }
}

@media print {
    .no-discount,
    .block-header,
    .block-footerMenu,
    #js-copy-register-number {
        display: none;
    }
    .reserve-calendar-admin-info {
        overflow-y: visible !important;
        max-height: none !important;
    }

    body, h1, h2, h3, ol, ul, div {
        width: auto;
        border: 0;
        margin: 0;
        padding: 0;
        float: none;
        position: static;
        overflow: visible;
    }
}

