/*
DOCUMENTS
*/
.cm-documents {
  padding: 2rem 0;
}

.cm-documents .parent-folder a {
  text-decoration: none;
  margin-right: 15px;  
}

.cm-documents .parent-folder a::before {
  content: '<';
  margin-right: 10px;  
}

.cm-documents-directory a {
  text-decoration: none;
  align-items: center;
  display: flex;
  padding: 10px 20px;
  color: inherit;
  background: #fff;
  height: 100%;
  border-radius: 5px;
  -webkit-box-shadow: 0 3px 5px 0 rgb(0 0 0 / 25%);
  box-shadow: 0 3px 5px 0 rgb(0 0 0 / 7%);
}

.cm-documents-directory a span {
  margin: 0 .5rem 0 0;
}

.cm-documents-directory .file,
.cm-documents-directory .folder {
  margin-bottom: 2rem;
}

/* Documents Link */
.documents-link {
  margin-bottom: 0.75rem;
}

.documents-link a span {
  vertical-align: middle;
}

/*
404 PAGES
*/
.error-page-container {
  width: 99em;
  max-width: 100%;
  padding: 5rem;
  text-align: center;
  margin: 0 auto;
}

.error-page-container > img:first-of-type {
    display: none;
}

.error-page-container h1 {
  font-size: 10rem;
  line-height: 1;
}

.error-page-container h3 {
  font-size: 3rem;
  line-height: 1.2;
}

.error-page-container p {
  font-size: 2rem;
  line-height: 1.5;
}

.error-page-container #search-form {
  width: 260px;
  margin: 0 auto;
}

.error-page-container #search-form #search-button {
  margin: 0 auto;
}

.error-page-container .btn {
	display: inline-block;
	margin-bottom: 2rem;	
}

/* 
Alerts 
*/
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 10000000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 5% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  position: relative;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.banner-alert-wrapper {
	position: relative;
	padding: 1rem;
	color: #663c00;
	background-color: #fff4e5;
	text-align: center;
	font-size: 1.2rem;
	border-bottom: 2px solid #ffc87e;
	display:none;
	grid-template-columns: 1fr;
}
.banner-alert-wrapper button {
	display: inline-block;
	border: none;
	padding: .5rem 0.75rem;
	margin: 0 .5rem;
	text-decoration: none;
	background: transparent;
	font-weight: bold;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	text-align: center;
	transition: background 250ms ease-in-out, 
		transform 150ms ease;
	-webkit-appearance: none;
	-moz-appearance: none;      
}
.banner-alert-wrapper button:hover {
	background: rgba(255,255,255,0.6);
}
.banner-alert-wrapper button:focus {
	border-bottom: 2px solid #fff;
}
.banner-alert-wrapper [role="tab"][aria-selected="true"] {
	border-bottom: 2px solid #ffc87e;
}
.banner-alert-wrapper p {
	margin: 1rem 0;
}

#popup-container {
	text-align: center;
}

#popup-container .popupContent {
	align-self: center;
}

#popup-container .popupImage img {
	width: 100%;
	max-height: 75vh;
	object-fit: cover;
	object-position: center;
}

#popup-container button {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
	text-decoration: underline;
	position: absolute;
    right: 1rem;
    top: 1rem;
	color: white;
}

#popup-container button i {
	font-size: 2rem;
	background: rgba(0, 0, 0, 0.5);
}

#popup-container .row {
  box-sizing: border-box;
  display: -ms-flexbox;
  display: -webkit-box;
  display: flex;
  -ms-flex: 0 1 auto;
  -webkit-box-flex: 0;
  flex: 0 1 auto;
  -ms-flex-direction: row;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -1rem;
  margin-left: -1rem;
}

#popup-container .col-xs-6 {
  box-sizing: border-box;
  -ms-flex: 0 0 auto;
  -webkit-box-flex: 0;
  flex: 0 0 auto;
  padding-right: 1rem;
  padding-left: 1rem;
  -ms-flex-preferred-size: 50%;
  flex-basis: 50%;
  max-width: 50%;
}

/* CK Editor Styles */
figure.image {
	margin: 0 auto 1rem;
    display: block;
}
figure.image img {
	margin: 0 auto;
	display: block;	
	/*width: 100%;*/
}

@media(max-width: 37.5em) {
	figure.image {
		width: 100%!important;
	}
	
	figure.image img {
		width: 80%!important;
	}
	
	.ck-editor img.image_resized {
		width: 80%!important;
	}
}
@media(min-width: 62em) {
	figure.image {
		margin: 0 auto 1.5rem;
	}
	figure.image-style-align-left {
		float: left;
		margin: 0 1.5rem 1.5rem 0;
	}
    figure.image-style-side,
	figure.image-style-align-right {
		float: right;
		margin: 0 0 1.5rem 1.5rem;
	}
}
figcaption {
    font-size: 0.6rem;
    margin: 5px 0;
	text-align: center;
}

/* Event list styles */
#mobile-calendar-list .event-li {
	display: flex;
	align-items: baseline;
	column-gap: .5rem;
	padding: 8px 0;
}
#mobile-calendar-list ul li .event-title-row {
    padding: 3px 0 0;
}
#mobile-calendar-list .event-day {
	color: #fff;
    font-size: 85%;
    padding: .35rem;
	border-radius: 5px;
	width: 27px;
	height: 27px;
	text-align: center;	
}

.event-day {
	background: var(--accent-1);
}

#mobile-calendar-list .event-day.day-hide {
    background: transparent;
}

.district-body #mobile-calendar-list .event-day {
	background: #d88e06;
}

#mobile-calendar-list .event-title-row {
	padding: 0;	
    display: flex;
	justify-content: space-between;
	align-items: baseline;
	column-gap: .5rem;
    width: 100%;
}

#mobile-calendar-list .event-title {
	color: #3e3e3e;
}

#mobile-calendar-list .event-time {
	font-weight: 600;
	color: var(--accent-1);
	min-width: 50px;
}

#mobile-calendar-list .month-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
	margin: .5rem 0;
	cursor: pointer;
}

#mobile-calendar-list .month-title h5 {
	margin: 0;
}

@media all and (min-width: 62em){
	#mobile-calendar-list .event-title-row {
		max-width: unset;
		width: auto;
		column-gap: 2rem;
		align-items: center;
	}
	#mobile-calendar-list .month-title {
		width: fit-content;
   		column-gap: .5rem;
	}
	#mobile-calendar-list .event-li {
		align-items: center;
	}
}

/* Search Results */
.search-results .search-title {
    word-break: break-word;
}

/* Table Styles */
.editor-table-wrapper {
	width: 100%;
	overflow-x: auto;
}

.table,
.editor-table {
  margin: 0 0 2rem;
  overflow-x: auto;
  box-shadow: 0px 5px 10px rgb(0 0 0 / 10%);
}

.table thead th a {
	color: white;
}

.editor-table th a {
	color: unset;
}

.table th a:hover,
.table th a:focus,
.editor-table th a:hover,
.editor-table th a:focus{
	text-decoration: underline;
}

.table.bell-schedule {
	box-shadow: none;
}

.table table,
.editor-table {
  border-radius: 5px;
  font-weight: normal;
  border: none;
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  background-color: white;
}

.table table td, 
.table table th,
.editor-table td,
.editor-table th {
  padding: 10px 15px;
	width: auto!important;
}

.table table td,
.editor-table td {
  border-right: 1px solid #F7F6F4;
	width: auto!important;
}

.table table td:last-of-type,
.editor-table td:last-of-type{
  border-right: 0;
}

.table table thead th,
.editor-table th {
  color: #ffffff;
  background: var(--primary-brand);
}

.table table thead th > * {
  color: #ffffff;
}

.table table thead th:nth-child(even),
.editor-table th:nth-child(even) {
  color: #ffffff;
  background: var(--secondary-brand);
}

.table table tr:nth-child(odd),
.editor-table tr:nth-child(odd){
  background: #f5f5f5;
}

.table h3,
.editor-table h3 {
	margin: .5rem 0;
}

.table img,
.editor-table img {
	width: 100%;
}

.editor-table th,
.editor-table th:nth-child(even) {
	color: #000;
}

.editor-tableCell {
	border-color: #F0F0F0!important;
}

/* Lexical editor iframe */
.editor iframe {
    width: 100%;
    min-height: 300px;
}

@media (min-width:62em) {
    .editor iframe {
        min-height: 500px;
    }
}

.editor details summary::-webkit-details-marker {
  display:none;
}

/* Search Results */
#sys-site-search-wrapper-top,
#sys-site-search-wrapper-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-left: auto!important;
}

#sys-site-search-wrapper-bottom {
    margin-top: 1rem;
}

.input-field .sys-site-search-label {
    margin: 0;
}

.sys-site-search-select {
    border: 1px solid;
    width: 100%;
    background: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--dark-font-color) 50%), linear-gradient(135deg, var(--dark-font-color) 50%, transparent 50%);
    background-position: calc(100% - 20px) 13px, calc(100% - 15px) 13px, calc(100% - 2.5em) 0;
    background-size: 5px 5px, 5px 5px, 1px 1.5em;
    background-repeat: no-repeat;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 5px 0 5px 10px;
    color: #000;
}

/* Lexical editor */
.editor img {
  height: auto!important;
}
/* .editor img[style*="float:right"] {
    margin-left: 1.25rem;
}
.editor img[style*="float:left"] {
    margin-right: 1.25rem;
} */

.editor img[style*="float:left"],
.editor img[style*="float:right"] {
    margin-bottom: .5rem;
}

.editor figure:has(img[style*="float:right"]),
.editor img[style*="float:right"] {
    float: right;
    margin-left: 1.25rem;
}

.editor figure:has(img[style*="float:left"]),
.editor img[style*="float:left"] {
    float: left;
    margin-right: 1.25rem;
}

div[data-lexical-layout-container="true"] {
  grid-gap: 2rem;
}

@media (max-width: 767px) {
  div[data-lexical-layout-container="true"] {
    display: block!important;
  }
}

/* Google Sign-in */
.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: WHITE;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
  border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state, 
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}
