/*
 * Copyright 2001, 2016, Oracle and/or its affiliates. All rights reserved.
 * Oracle and Java are registered trademarks of Oracle and/or its
 * affiliates. Other names may be trademarks of their respective owners.
 * UNIX is a registered trademark of The Open Group.
 *
 * This software and related documentation are provided under a license
 * agreement containing restrictions on use and disclosure and are
 * protected by intellectual property laws. Except as expressly permitted
 * in your license agreement or allowed by law, you may not use, copy,
 * reproduce, translate, broadcast, modify, license, transmit, distribute,
 * exhibit, perform, publish, or display any part, in any form, or by any
 * means. Reverse engineering, disassembly, or decompilation of this
 * software, unless required by law for interoperability, is prohibited.
 * The information contained herein is subject to change without notice
 * and is not warranted to be error-free. If you find any errors, please
 * report them to us in writing.
 * U.S. GOVERNMENT END USERS: Oracle programs, including any operating
 * system, integrated software, any programs installed on the hardware,
 * and/or documentation, delivered to U.S. Government end users are
 * "commercial computer software" pursuant to the applicable Federal
 * Acquisition Regulation and agency-specific supplemental regulations.
 * As such, use, duplication, disclosure, modification, and adaptation
 * of the programs, including any operating system, integrated software,
 * any programs installed on the hardware, and/or documentation, shall be
 * subject to license terms and license restrictions applicable to the
 * programs. No other rights are granted to the U.S. Government.
 * This software or hardware is developed for general use in a variety
 * of information management applications. It is not developed or
 * intended for use in any inherently dangerous applications, including
 * applications that may create a risk of personal injury. If you use
 * this software or hardware in dangerous applications, then you shall
 * be responsible to take all appropriate fail-safe, backup, redundancy,
 * and other measures to ensure its safe use. Oracle Corporation and its
 * affiliates disclaim any liability for any damages caused by use of this
 * software or hardware in dangerous applications.
 * This software or hardware and documentation may provide access to or
 * information on content, products, and services from third parties.
 * Oracle Corporation and its affiliates are not responsible for and
 * expressly disclaim all warranties of any kind with respect to
 * third-party content, products, and services. Oracle Corporation and
 * its affiliates will not be responsible for any loss, costs, or damages
 * incurred due to your access to or use of third-party content, products,
 * or services.
 */

/* Either a slot or a cartridge */
.hotspot {
	clear: both;
	margin: 0 0 5px;
	padding: 37px 0 2px;
	position: relative;
}

/* A clearfix in case children are floated */
.hotspot:after {
	clear: both;
	content: '';
	display: table;
}

/* Highlight the hovered hotspot */
.hotspot:hover > .hotspotInner,
.hotspotOn > .hotspotInner {
	border-color: #00aeef;
	border-style: solid;
}

/* Give slots (but not simple cartridges) an inner shadow */
.hotspotSlot > .hotspotInner {
	-webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.25);
	-moz-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.25);
	box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.25);
}

/* Inner wrapper that contains gear button and hotspot label */
.hotspotInner {
	border: 2px dotted #999;
	border-radius: 3px;
	bottom: 0;
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
	top: 0;
}

button.gear {
	background: #eee url(/assets/svg/audit-gear.svg) 50% 50% no-repeat;
	border: 1px solid #666;
	border-radius: 3px;
	height: 23px;
	margin-right: 6px;
	margin-top: 6px;
	opacity: 0.5;
	pointer-events: auto;
	position: absolute;
	right: 0;
	width: 35px;
}

button.gear:hover {
	background-color: #ddd;
	border: 1px solid #3399cc;
	opacity: 1;
}

.hotspotLabel {
	background-image: -webkit-linear-gradient(top, rgba(238, 238, 238, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
	background-image: -ms-linear-gradient(top, rgba(238, 238, 238, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
	background-image: linear-gradient(to bottom, rgba(238, 238, 238, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
	border: 2px solid #3399cc;
	border-bottom-right-radius: 4px;
	border-bottom-left-radius: 4px;
	color: #000;
	display: none;
	font-size: 12px;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	-ms-hyphens: auto;
	hyphens: auto;
	padding: 5px 12px;
	position: absolute;
	right: 51px;
	text-shadow: 1px 1px #fff;
	top: -2px; /* Align top border with hotspotInner border */
	vertical-align: top;
	white-space: nowrap; /* Do not allow label to wrap to next line */
	z-index: 1;
}

/* Show the label when the button is hovered. */
/* Note: hotspotLabel *must* appear *after* button in source order. */
button.gear:hover + .hotspotLabel {
	display: inline-block;
}

/* An <ul> of actions */
.contextMenu {
	background-color: #fff;
	border: 1px solid #aaa;
	box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
	-moz-box-sizing: border-box;
	font-size: 12px;
	min-width: 100px;
	max-width: 200px; /* For translations*/
	padding-left: 0;
	position: absolute; /* top and left will be set in Javascript (relative to button) */
	z-index: 999999;
}

/* Each item is a <li> */
.contextMenuItem {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.contextMenuItem:first-child {
	border-bottom: 1px solid #e6e6e6;
}

/* Within each item is a clickable <a> */
.contextMenuItem > a {
	cursor: default;
	display: block;
	line-height: 1.5rem;
	padding: 0.25rem 0.5rem 0.25rem 1rem;
}

.contextMenuItem > a:link,
.contextMenuItem > a:visited {
	color: #333;
	text-decoration: none;
}

.contextMenuItem > a:hover,
.contextMenuItem > a:active {
	background-color: #b2e1fc;
}
