/**
 * Copyright (C) 2022 nigel.bmlt@gmail.com
 * 
 * This file is part of bmlt-workflow.
 * 
 * bmlt-workflow is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * bmlt-workflow is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with bmlt-workflow.  If not, see <http://www.gnu.org/licenses/>.
 */

 div#meeting_update_form_header {
  padding-left: 1em;
  padding-right: 3em;
}

div#form_replace.bmltwf_wide_form {
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
}

div#form_replace.bmltwf_wide_form legend {
  font-size: 1em;
}

div#form_replace.bmltwf_wide_form fieldset {
  border-width: 2px;
  border-style: groove;
  border-color: rgb(192, 192, 192);
  padding-block-start: 0.35em;
  padding-inline-start: 0.75em;
  padding-inline-end: 0.75em;
  padding-block-end: 0.625em;
}

.is-active:after {
    content: "";
    background: url(../images/spinner.gif) no-repeat;
    background-size: 20px 20px;
    display: inline-block;
    vertical-align: top;
    opacity: .7;
    width: 20px;
    height: 20px;
    margin: 4px 10px 0
}

input[type="tel"]::-webkit-inner-spin-button,
input[type="tel"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;;
  margin: 0;
}

.select2-results__options::-webkit-scrollbar {
  width: 10px;
}

.select2-results__options::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  -webkit-border-radius: 20px;
  border-radius: 10px;
}

.select2-results__options::-webkit-scrollbar-thumb {
  -webkit-border-radius: 10px;
  border-radius: 10px;
  /* background-color: rgba(255, 0, 0, 0.8); */
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

.select2-results__options::-webkit-scrollbar-thumb:window-inactive {
  background-color: rgba(255, 0, 0, 0.4);
}

@media all and (min-width: 576px) {

div#meeting_content.form-grid {
  display: grid;
  grid-gap: 10px;
  width: calc(100% + 2rem);
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: [col] 1fr;
  grid-template-rows: repeat(7, [row] auto);
  box-sizing: border-box;
  padding-left: 1em;
  padding-right: 3em;
}

.form-grid-top {
  grid-column: col / span 2;
  grid-row: row;
}

.form-grid-col1 {
  grid-column: col;
  grid-row: row 2 / span 3;
  display: grid
}

.form-grid-col2-1 {
  grid-column: col;
  grid-row: row 5;
  display: grid
}

.form-grid-col2-2 {
  grid-column: col;
  grid-row: row 6;
  display: grid
}

.form-grid-bottom {
  grid-column: col / span 2;
  grid-row: row 7;
}
}

@media all and (min-width: 992px) {

  div#meeting_content.form-grid {
    display: grid;
    grid-gap: 10px;
    width: calc(100% + 2rem);
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(2, [col] 1fr);
    grid-template-rows: repeat(5, [row] auto);
    box-sizing: border-box;
    padding-left: 1em;
    padding-right: 3em;
    }
  
  .form-grid-top {
    grid-column: col / span 2;
    grid-row: row;
  }
  
  .form-grid-col1 {
    grid-column: col;
    grid-row: row 2 / span 3;
    display: grid
  }
  
  .form-grid-col2-1 {
    grid-column: col 2;
    grid-row: row 2;
    display: grid
  }
  
  .form-grid-col2-2 {
    grid-column: col 2;
    grid-row: row 3 / span 2;
    display: grid
  }
  
  .form-grid-bottom {
    grid-column: col / span 2;
    grid-row: row 5;
  }
  }

.grid-flex-item .inline {
  display: inline;
}

div#meeting_content.form-grid input[type='text'],
div#meeting_content.form-grid input[type='tel'],
div#meeting_content.form-grid input[type='email'],
div#meeting_content.form-grid input[type='time'],
div#meeting_content.form-grid textarea:not(.select2-search__field),
div#meeting_content.form-grid select,
select.update-form-select
{
  line-height: 1.5;
  padding-top: .25rem;
  padding-bottom: .25rem;
  padding-left: .5rem;
  display: block;
  width: 100%;
  box-sizing: border-box;
  border-radius: 3px;
  border-style: solid;
  border-color: rgb(204, 204, 204);
  border-width: 1px;
  font-family: "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1.2rem;
  background-color: rgb(255,255,255);
  color: rgb(102,102,102);
}

button#submit.button {
  background-color: rgb(230, 230, 230);
  color: rgba(0, 0, 0, 0.8);
  line-height: 1.5;
  padding-top: .25rem;
  padding-bottom: .25rem;
  padding-left: .5rem;
  display: block;
  width: 100%;
  box-sizing: border-box;
  border-radius: 3px;
  border-style: solid;
  border-color: rgb(204, 204, 204);
  border-width: 1px;
  font-family: "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1.2rem;
}

div#meeting_content.form-grid input {
  height: 3rem;
}

div#meeting_content.form-grid textarea:not(.select2-search__field) {
  height: 6rem;
}

div#meeting_content.form-grid select,
div #update_reason.update-form-select,
select.update-form-select {
  padding-top: 0;
  padding-bottom: 0;
  height: 3rem;
  border-radius: 8px;
  border-width: 2px;
  -webkit-appearance: menulist;
  appearance: menulist;
  background-image: none;
  background-color: rgb(255,255,255);
  color: rgb(102,102,102);
}

select.update-form-select {
  width: auto;
}

div#meeting_content.form-grid select {
  width: 100%;
}

div#meeting_content.form-grid .inline select {
  display: inline;
  width: auto;
}

div#meeting_content.form-grid label {
  width: 100%;
  display: block;
  padding: 10px 5px 5px 2px;
  letter-spacing: 1px;
  cursor: pointer;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  font-weight: normal;
}

div#meeting_content.form-grid .inline label {
  display: inline;
}

.grid-flex-container {
  display: flex;
}

.grid-flex-item {
  flex-grow: 1;
  height: auto;
}

.grid-flex-item input {
  width: 70%;
}

div#meeting_content .bmltwf-changed.bmltwf-changed.bmltwf-changed {
  background-color: #e7f478;
}

div#meeting_content span.select2-selection--multiple.bmltwf-changed.bmltwf-changed {
  background-color: #e7f478;
}

/* accessibility for close button */
.select2-container--default .select2-selection--multiple button.select2-selection__choice__remove {
  color: #000;
}

span.dashicons.dashicons-info-outline {
  color: cornflowerblue;
}

.bmltwf_tooltip {
  display: inline-block;
  position: relative;
  border-bottom: 1px dotted #666;
  text-align: left;
  margin-bottom: 3%;
}

.bmltwf_tooltip label {
  padding-bottom: 0%;
}

.bmltwf_tooltip .bmltwf_left {
  min-width: 10rem;
  max-width: 500rem;
  white-space: nowrap;
  top: 50%;
  right: 100%;
  margin-right: 20px;
  line-height: 1.4rem;
  transform: translate(0, -50%);
  padding: 10px;
  color: #666666;
  background-color: #FFFFE0;
  font-weight: normal;
  font-size: 13px;
  border-radius: 8px;
  position: absolute;
  z-index: 99999999;
  box-sizing: border-box;
  display: none;
  border: 1px solid #DCA;
}

.bmltwf_tooltip:hover .bmltwf_left,
.bmltwf_tooltip:focus .bmltwf_left {
  display: block;
}

.bmltwf_tooltip .bmltwf_left i {
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -12px;
  width: 12px;
  height: 24px;
  overflow: hidden;
}

.bmltwf_tooltip .bmltwf_left i::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  background-color: #FFFFE0;
  border: 1px solid #DCA;
}


.bmltwf_tooltip .bmltwf_right {
  min-width: 10rem;
  max-width: 500rem;
  white-space: nowrap;
  top: 50%;
  left: 100%;
  margin-left: 20px;
  line-height: 1.4rem;
  transform: translate(0, -50%);
  padding: 10px;
  color: #666666;
  background-color: #FFFFE0;
  font-weight: normal;
  font-size: 13px;
  border-radius: 8px;
  position: absolute;
  z-index: 99999999;
  box-sizing: border-box;
  display: none;
  border: 1px solid #DCA;
}

.bmltwf_tooltip:hover .bmltwf_right,
.bmltwf_tooltip:focus .bmltwf_right {
  display: block;
}

.bmltwf_tooltip .bmltwf_right i {
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -12px;
  width: 12px;
  height: 24px;
  overflow: hidden;
}

.bmltwf_tooltip .bmltwf_right i::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  left: 0;
  top: 50%;
  transform: translate(50%, -50%) rotate(45deg);
  background-color: #FFFFE0;
  border: 1px solid #DCA;
}

/* stolen from wp common.css */

.notice p {
  margin: 0.5rem 0;
  padding: 2px;
}

.notice {
  background-color: #fff;
  border: 1px solid #c3c4c7;
  border-left-width: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  margin: 5px 15px 2px;
  padding: 1px 12px;
}

.error a {
  text-decoration: underline;
}

.updated a {
  padding-bottom: 2px;
}

.notice-alt {
  box-shadow: none;
}

.notice-large {
  padding: 10px 20px;
}

.notice-title {
  display: inline-block;
  color: #1d2327;
  font-size: 18px;
}

.notice.is-dismissible {
  padding-right: 38px;
  position: relative;
}

.notice-dismiss {
  position: absolute;
  top: 0;
  right: 1px;
  border: none;
  margin: 0.5rem;
  padding: 9px;
  background: none;
  color: #787c82;
  cursor: pointer;
}

.notice-dismiss:hover:before,
.notice-dismiss:active:before,
.notice-dismiss:focus:before {
  color: #d63638;
}

.notice-dismiss:focus {
  outline: none;
  box-shadow:
    0 0 0 1px #4f94d4,
    0 0 2px 1px rgba(79, 148, 212, 0.8);
}

.notice-success,
div.updated {
  border-left-color: #00a32a;
}

.notice-success.notice-alt {
  background-color: #edfaef;
}

.notice-warning {
  border-left-color: #dba617;
}

.notice-warning.notice-alt {
  background-color: #fcf9e8;
}

.notice-error,
div.error {
  border-left-color: #d63638;
}

.notice-error.notice-alt {
  background-color: #fcf0f1;
}

.notice-info {
  border-left-color: #72aee6;
}

.notice-info.notice-alt {
  background-color: #f0f6fc;
}

.notice-dismiss:before {
  background: none;
  color: #787c82;
  content: "\f153";
  display: block;
  font: normal 16px/20px dashicons;
  height: 20px;
  text-align: center;
  width: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

hr.bmltwf-error-message {
  border: none;
}



/* select theme */

span.select2-container--bmltwf_select2_theme {
  line-height: 1.5;
  box-sizing: border-box;
  border-radius: 8px;
  border-style: solid;
  border-color: rgb(204, 204, 204);
  border-width: 1px;
  font-family: "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1.2rem
}

span.select2-container--bmltwf_select2_theme .select2-selection--single {
  background-color: #fff;
  border-radius: 8px;
  height: 3rem;
}

.select2-container--bmltwf_select2_theme .select2-selection--single .select2-selection__rendered {
  padding-top: .6rem;
}

.select2-container--bmltwf_select2_theme .select2-selection--single .select2-selection__clear {
  cursor: pointer;
  float: right;
  font-weight: bold;
  /* height: 26px; */
  height: 3rem;
  margin-right: 20px;
  padding-right: 0px;
}

.select2-container--bmltwf_select2_theme .select2-selection--single .select2-selection__placeholder {
  color: rgb(64,64,64);
}

.select2-container--bmltwf_select2_theme .select2-selection--single .select2-selection__arrow {
  height: 26px;
  position: absolute;
  top: 0.6rem;
  right: 1px;
  width: 20px;
}

.select2-container--bmltwf_select2_theme .select2-selection--single .select2-selection__arrow b {
  border-color: #888 transparent transparent transparent;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  height: 0;
  left: 50%;
  margin-left: -4px;
  margin-top: -2px;
  position: absolute;
  top: 50%;
  width: 0;
}

.select2-container--bmltwf_select2_theme[dir="rtl"] .select2-selection--single .select2-selection__clear {
  float: left;
}

.select2-container--bmltwf_select2_theme[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  left: 1px;
  right: auto;
}

.select2-container--bmltwf_select2_theme.select2-container--disabled .select2-selection--single {
  background-color: #eee;
  cursor: default;
}

.select2-container--bmltwf_select2_theme.select2-container--disabled .select2-selection--single .select2-selection__clear {
  display: none;
}

.select2-container--bmltwf_select2_theme.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #888 transparent;
  border-width: 0 4px 5px 4px;
}

.select2-container--bmltwf_select2_theme .select2-selection--multiple {
	background-color: white;
	border: 1px solid #aaa;
	border-radius: 4px;
	cursor: text;
	/* padding-bottom: 5px; */
  padding-bottom: .3rem;
	padding-right: 5px;
	position: relative;
}

.select2-container--bmltwf_select2_theme .select2-selection--multiple ul {
  margin: 0;
  padding-left: 0.5rem;
}

.select2-container--bmltwf_select2_theme .select2-selection--multiple.select2-selection--clearable {
	padding-right: 25px;
}

.select2-container--bmltwf_select2_theme .select2-selection--multiple .select2-selection__clear {
	cursor: pointer;
	font-weight: bold;
	height: 20px;
	margin-right: 10px;
	margin-top: 5px;
	position: absolute;
	right: 0;
	padding: 1px;
}

.select2-container--bmltwf_select2_theme .select2-selection--multiple .select2-selection__choice {
	background-color: #e4e4e4;
	border: 1px solid #aaa;
	border-radius: 4px;
	box-sizing: border-box;
	display: inline-block;
	margin-left: 5px;
	margin-top: 5px;
	padding: 0;
	padding-left: 20px;
	position: relative;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: bottom;
	white-space: nowrap;
}

.select2-container--bmltwf_select2_theme .select2-selection--multiple .select2-selection__choice__display {
	cursor: default;
	padding-left: 2px;
	padding-right: 5px;
}

.select2-container--bmltwf_select2_theme .select2-selection--multiple .select2-selection__choice__remove {
	background-color: transparent;
	border: none;
	border-right: 1px solid #aaa;
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
	color: #999;
	cursor: pointer;
	font-size: 1em;
	font-weight: bold;
	padding: 0 4px;
	position: absolute;
	left: 0;
	top: 0;
}

.select2-container--bmltwf_select2_theme .select2-selection--multiple .select2-selection__choice__remove:hover, .select2-container--bmltwf_select2_theme .select2-selection--multiple .select2-selection__choice__remove:focus {
	background-color: #f1f1f1;
	color: #333;
	outline: none;
}

.select2-container--bmltwf_select2_theme[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
	margin-left: 5px;
	margin-right: auto;
}

.select2-container--bmltwf_select2_theme[dir="rtl"] .select2-selection--multiple .select2-selection__choice__display {
	padding-left: 5px;
	padding-right: 2px;
}

.select2-container--bmltwf_select2_theme[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
	border-left: 1px solid #aaa;
	border-right: none;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
}

.select2-container--bmltwf_select2_theme[dir="rtl"] .select2-selection--multiple .select2-selection__clear {
	float: left;
	margin-left: 10px;
	margin-right: auto;
}

.select2-container--bmltwf_select2_theme.select2-container--focus .select2-selection--multiple {
	border: solid black 1px;
	outline: 0;
}

.select2-container--bmltwf_select2_theme.select2-container--disabled .select2-selection--multiple {
	background-color: #eee;
	cursor: default;
}

.select2-container--bmltwf_select2_theme.select2-container--disabled .select2-selection__choice__remove {
	display: none;
}

.select2-container--bmltwf_select2_theme.select2-container--open.select2-container--above .select2-selection--single, .select2-container--bmltwf_select2_theme.select2-container--open.select2-container--above .select2-selection--multiple {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.select2-container--bmltwf_select2_theme.select2-container--open.select2-container--below .select2-selection--single, .select2-container--bmltwf_select2_theme.select2-container--open.select2-container--below .select2-selection--multiple {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.select2-container--bmltwf_select2_theme .select2-search--dropdown .select2-search__field {
	border: 1px solid #aaa;
  background: #eee;
  font-family: "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1.2rem;
}

.select2-container--bmltwf_select2_theme .select2-search--inline .select2-search__field {
	background: transparent;
	border: none;
	outline: 0;
	box-shadow: none;
	-webkit-appearance: textfield;
  appearance: textfield;
}

#meeting_details .select2-container--bmltwf_select2_theme .select2-search--inline textarea.select2-search__field,
.select2-container--bmltwf_select2_theme .select2-search--inline textarea.select2-search__field {
  padding-bottom: .5rem;
  padding-top: .3rem;
  line-height: 1;
  height: 1.6rem;
  display: inline-block;
  border: none;
  min-height: unset;
  margin-bottom: 0px;
  margin-left: 5px;
  margin-top: 0px;
  margin-right: 5px;
}

.select2-container--bmltwf_select2_theme .select2-results > .select2-results__options {
	max-height: 200px;
	overflow-y: auto;
}

.select2-container--bmltwf_select2_theme .select2-results__option .select2-results__option {
	padding-left: 1em;
}

.select2-container--bmltwf_select2_theme .select2-results__option .select2-results__option .select2-results__group {
	padding-left: 0;
}

.select2-container--bmltwf_select2_theme .select2-results__option .select2-results__option .select2-results__option {
	margin-left: -1em;
	padding-left: 2em;
}

.select2-container--bmltwf_select2_theme .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
	margin-left: -2em;
	padding-left: 3em;
}

.select2-container--bmltwf_select2_theme .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
	margin-left: -3em;
	padding-left: 4em;
}

.select2-container--bmltwf_select2_theme .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
	margin-left: -4em;
	padding-left: 5em;
}

.select2-container--bmltwf_select2_theme .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
	margin-left: -5em;
	padding-left: 6em;
}

.select2-container--bmltwf_select2_theme .select2-results__option--group {
	padding: 0;
}

.select2-container--bmltwf_select2_theme .select2-results__option--disabled {
	color: #999;
}

.select2-container--bmltwf_select2_theme .select2-results__option--selected {
	background-color: #ddd;
}

.select2-container--bmltwf_select2_theme .select2-results__option--highlighted.select2-results__option--selectable {
	background-color: #5897fb;
	color: white;
}

.select2-container--bmltwf_select2_theme .select2-results__group {
	cursor: default;
	display: block;
	padding: 6px;
}