/********************************
* START Base Table Snippet Styles
********************************/

/*Editable region*/
.ou-justedit-region {
	padding: 15px;
	width: 98%;
}

/* Fix issue with bootstrap buttons in WYSIWYG */
.ou-justedit-region .btn {
	-webkit-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
	user-select: text;
}

/*All tables*/
.ou-justedit-region table {
	width: 100%;
	table-layout: fixed;
}

/* Non-snippet WYSIWYG tables */
.ou-justedit-region .mce-item-table,
.ou-justedit-region .mce-item-table td,
.ou-justedit-region .mce-item-table th,
.ou-justedit-region .mce-item-table caption {
	border-collapse: separate;
	border-spacing: 0px;
	border: 1px solid #d2d2d2;
	box-sizing: border-box;
}

/*Snippet tables*/
.ou-justedit-region table[data-snippet^="ou-"] {
	/*width: 100%;*/
	cursor: default;
	margin: 32px 0 !important;
}

/*Snippet Images*/
.ou-justedit-region table[data-snippet^="ou-"] img:not(.mce-object-iframe) {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}

/*Snippet Images - Uncomment this and comment-out the one above if rules should not be applied to 'wysiwyg' td cells.*/

/*
.ou-justedit-region table[data-snippet^="ou-"] td:not([data-type="wysiwyg"]) img:not(.mce-object-iframe) {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}*/

/*Table and caption shadow and borders*/
.ou-justedit-region table[data-snippet^="ou-"],
.ou-justedit-region table[data-snippet^="ou-"] caption {
	box-shadow:
		0 4px 10px rgba(0, 37, 84, 0.15),
		0 1px 3px rgba(0, 37, 84, 0.08);
	border: none;
}

/*Snippet table and all cells*/
.ou-justedit-region table[data-snippet^="ou-"],
.ou-justedit-region table[data-snippet^="ou-"] td,
.ou-justedit-region table[data-snippet^="ou-"] th,
.ou-justedit-region table[data-snippet^="ou-"] caption {
	border-spacing: 0px;
	box-sizing: border-box;
}

/*Borders for table cells*/
.ou-justedit-region table[data-snippet^="ou-"] td,
.ou-justedit-region table[data-snippet^="ou-"] th {
	border: 1px solid #b5b5b5;
	border-collapse: collapse;
	padding: 15px;
}

/*Snippet td content cells*/
.ou-justedit-region table[data-snippet^="ou-"] td {
	position: relative !important;
	font-size: 18px;
	vertical-align: top;
}

/*Heading cell styles*/
.ou-justedit-region table[data-snippet^="ou-"] th,
.ou-justedit-region table[data-snippet^="ou-"] td[class='mceNonEditable'] {
	background-color: #ededed;
	color: #404040;
	font-weight: 600;
	font-size: 20px;
}

/*Updated caption styles*/
.ou-justedit-region table[data-snippet^="ou-"] caption {
	font-size: 20px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.25px;
	color: #ffffff;
	background-color: #002554; 
	padding: 22px 18px;
	/*Borders at top to help tables stand out*/
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
  caption-side: top;
  text-align: center;
}

/*New Font*/
.ou-justedit-region table[data-snippet^="ou-"] th,
.ou-justedit-region table[data-snippet^="ou-"] td[class='mceNonEditable'],
.ou-justedit-region table[data-snippet^="ou-"] caption,
.ou-justedit-region table[data-snippet^="ou-"] th:before,
.ou-justedit-region table[data-snippet^="ou-"] td:before,
.ou-justedit-region table[data-snippet^="ou-"] caption:before,
.ou-justedit-region table[data-snippet^="ou-"]:before,
.ou-justedit-region table[data-snippet^="ou-"] tr[data-name="row"] > td:first-of-type::after,
.ou-justedit-region table[data-snippet^="ou-"] tr[data-name="item"] > td:first-of-type::after {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.ou-justedit-region table.ou-[data-gallery-type="slick"] tr[data-gallery-type="fancybox"],
.ou-justedit-region table.ou-[data-gallery-type="fancybox"] tr[data-gallery-type="slick"] {
	display: none;
}

/*Hover color over clickable data select list cells*/
.ou-justedit-region table[data-snippet^="ou-"] td[data-select-list]:hover {
  background-color: #FFFBF0;
}

/********************************
* END Base Table Snippet Styles
********************************/

/***************************************
 * START COMPONENT PREVIEW HELPER STYLES
 ***************************************/

div.ou-je-component [data-ouc-test=""] {
	display: none;
}

div.ou-je-component [data-ouc-not]:not([data-ouc-not=""]) {
	display: none;
}

.ou-je-component [data-ouc-test-and-1=""],
.ou-je-component [data-ouc-test-and-2=""],
.ou-je-component [data-ouc-test-and-3=""],
.ou-je-component [data-ouc-test-and-4=""],
.ou-je-component [data-ouc-test-and-5=""],
.ou-je-component [data-ouc-test-and-6=""] {
	display: none;
}

div.ou-je-component [data-ouc-test-element],
div.ou-je-component [data-ouc-not-test-element],
div.ou-je-component [data-ouc-test-element]:empty + *,
div.ou-je-component [data-ouc-not-test-element]:not(:empty) + * {
	display: none;
}

div.ou-je-component [data-ouc-justedit]::before {
	display: block;
	width: 100%;
	font-weight: bold;
	padding: 5px 15px;
	margin-bottom: 10px;
	border: 1px solid #bce8f1;
	color: #31708f;
	background-color: #d9edf7;
	content: "The content you see in the editor is a sample render intended for WYSIWYG preview only. Once you save the page, you will see the actual rendered element.";
}

/***************************************
* END COMPONENT PREVIEW HELPER STYLES
***************************************/

/********************************
* START Table Input Hint Styling
********************************/

/* Generic table "tool-tip/alert" info styling */
.ou-justedit-region table[data-snippet^="ou-"] th:before,
.ou-justedit-region table[data-snippet^="ou-"] td:before,
.ou-justedit-region table[data-snippet^="ou-"] caption:before,
.ou-justedit-region table[data-snippet^="ou-"]:before {
	display: block;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;	
	color: #325176;
	background-color: #F1F6FA;
	width: fit-content;
	padding: 10px;
	margin-bottom: 25px;
	border-radius: 6px;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 4px 8px rgba(0, 0, 0, 0.10);
}

/********************************
* END Table Input Hint Styling
********************************/

/* default helper text for different content type */
.ou-justedit-region table[data-snippet^="ou-"] td[class='mceNonEditable'] {
	text-align: center;
}

table[data-snippet^="ou-"] > tbody > tr > td::before {
	content: "Enter plain text.";
}

table[data-snippet^="ou-"] td[data-type="wysiwyg"]::before {
	content: "Enter WYSIWYG content.";
}

table[data-snippet^="ou-"] td[data-type="text-link"]::before {
	content: "Enter plain text or link.";
}

table[data-snippet^="ou-"] td[data-type="link"]::before {
	content: "Insert a single link.";
}

table[data-snippet^="ou-"] td[data-type="links"]::before {
	content: "Insert a bulleted list of links.";
}

table[data-snippet^="ou-"] td[data-type="image-link"]::before {
	content: "Insert a linked image.";
}

table[data-snippet^="ou-"] td[data-type="image"]::before {
	content: "Insert a single image.";
}

table[data-snippet^="ou-"] td[data-type="images"]::before {
	content: "Insert multiple images.";
}

table[data-snippet^="ou-"] td[data-type="number"]::before {
	content: "Enter a number.";
}

table[data-snippet^="ou-"] td[data-type="list"]::before {
	content: "Insert a list.";
}

table[data-snippet^="ou-"] td[data-type="snippet"]::before {
	content: "Insert a specific snippet. Please refer to the documentation to see which snippets are supported.";
}

table[data-snippet^="ou-"] td[data-type="snippets"]::before {
	content: "Insert one or more snippets. Please refer to the documentation to see which snippets are supported.";
}

table[data-snippet^="ou-"] td[data-type="iframe"]::before {
	content: "Insert a single video.";
}

table[data-snippet^="ou-"] td[data-type="asset"]::before {
	content: "Insert an asset.";
}

table[data-snippet^="ou-"] td[data-type="asset"][data-asset="gallery"]::before {
	content: "Insert a gallery asset.";
}

table[data-snippet^="ou-"] td[data-select-list]::before {
	content: "Click to select an option.";
}

table[data-snippet^="ou-"] td[data-type="element"][data-elements="table"]::before {
	content: "Insert a single table.";
}

table[data-snippet^="ou-"] td[data-name="feed-parser-config"]::before {
	content: "Please link to a simplified feed parsing configuration file.";
}

table[data-snippet] td[data-name="heading"]::before {
	content: "Enter heading text.";
}

table[data-snippet] td[data-name="subheading"]::before {
	content: "Enter subheading text.";
}

table[data-snippet^="ou-"] {
	counter-reset: items;
}

table[data-snippet^="ou-"] > tbody > tr[data-name="item"] {
	counter-increment: items;
}

table[data-snippet="ou-accordion"] > tbody > tr[data-name="item"] > td[data-name="heading"]::before {
	content: "Panel " counter(items) " — All styling is stripped.";
}

table[data-snippet="ou-tabs"] > tbody > tr[data-name="item"] > td[data-name="heading"]::before {
	content: "Tab " counter(items) " — All styling is stripped.";
}

/* example of helper text */
.ou-justedit-region table.ou-table-class > tbody > tr > td:nth-child(1):before {
	content: "Add your content and style via WYSIWYG editor toolbar";
}

/* Optional for repeating rows - gray pill for the first td of every row with a data-name of row or item */

/*
table[data-snippet^="ou-"] tr[data-name="row"] > td:first-of-type::after,
table[data-snippet^="ou-"] tr[data-name="item"] > td:first-of-type::after {
	content: "THIS ROW CAN BE REPEATED.";
	display: block;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;	
	color: #404040;
	background-color: #f5f5f5;
	padding: 10px;
	margin-top: 25px;
	border-radius: 6px;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 4px 8px rgba(0, 0, 0, 0.10);
}
*/

