.gadget {
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: 1;
}

.propagation-blocker div.gadget {
    z-index: 2;
}

.gadget.dragging {
    z-index: 3;
}

.gadget.dropdown-active {
    z-index: 5 !important;
}

.gadget .gadget-container {
    position: relative;
    border: 1px solid rgba(9, 30, 66, 0.04);
    border-radius: 4px;
}

.gadget .gadget-container .submit.loading {
    background: transparent url("/s/soeral/712001/6411e0087192541a09d88223fb51a6a0/4.2.31/_/download/resources/com.atlassian.gadgets.dashboard:gadgets-adgs/css/images/wait.gif") 100% center no-repeat;
}

.gadget.dropdown-active .gadget-menu {
    z-index: 8;
}

.gadget .dashboard-item-header {
    background: #eee;
    -moz-border-radius-topleft: 3px;
    border-top-left-radius: 3px;
    -moz-border-radius-topright: 3px;
    border-top-right-radius: 3px;
    margin: 0;
    min-height: 24px;
    padding: 0;
    position: relative;
}

.gadget .dashboard-item-title {
    color: #333;
}

.gadget .dashboard-item-header > .dashboard-item-title {
    /* h5 size from ADG typography */
    background: transparent;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.666666666667;
    margin: 0;
    padding: 4px 64px 4px 10px;
}

.gadget .dashboard-item-header > .gadget-menu {
    bottom: 0;
    position: absolute;
    padding-right: 12px;
    right: 0;
    top: 0;
    vertical-align: middle;
}

.dashboard.draggable .gadget .dashboard-item-title {
    cursor: move;
}

.dashboard.initializing div.gadget {
    visibility: hidden;
}

/* gadget menus */
.gadget .gadget-menu .aui-icon,
.gadget .gadget-menu .aui-dd-trigger {
    border: none;
    display: block;
    padding: 0 3px;
    text-align: left;
    text-indent: -999em;
    opacity: 0.5;
    color: white;
    height: 16px;
    width: 16px;
}

.gadget .gadget-menu .aui-iconfont-vid-full-screen-on:before {
    margin-left: 3px;
}

.gadget .gadget-menu .aui-icon:hover,
.gadget .gadget-menu .aui-dd-trigger:hover {
    opacity: 1;
}

.gadget-menu .aui-dd-parent a.aui-dd-trigger:hover,
.gadget-menu .aui-dd-parent a.aui-dd-trigger:focus {
    color: white;
}

.gadget .gadget-menu .aui-icon.move {
    cursor: move;
}



.gadget .gadget-menu .aui-dd-trigger {
    background: none;
}

.gadget .gadget-menu .aui-dd-trigger:hover,
.gadget .gadget-menu .aui-dd-trigger:active,
.gadget .gadget-menu .aui-dd-trigger:focus {
    background: none;
}

.gadget .gadget-menu > ul {
    float: right;
    margin: 6px 0 0 1em;
    padding: 0;
    width: auto;
}

.gadget .gadget-menu > ul > li {
    float: left;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.gadget .gadget-menu > ul > li > a > span {
    display: block;
    padding: 0;
}

/* gadget colours menu items */
.gadget .gadget-colors ul {
    display: flex;
    flex-wrap: nowrap;
    padding: 4px 14px 3px 12px;
}

.gadget .gadget-colors li {
    float: left;
    list-style: none;
    margin: 2px 4px 2px 0;
}

.gadget .gadget-colors a {
    background: transparent;
    border: 0;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: block;
    height: 16px;
    outline-offset: 1px;
    padding: 0;
    text-align: left;
    text-indent: -999em;
    width: 16px;
}

.gadget .gadget-colors a:hover,
.gadget .gadget-colors a:focus,
.gadget .gadget-colors a:active {
    outline: 2px solid #333;
}

/*
    workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=480888
    can't use box-shadow exclusively since IE8 doesn't support it
*/
.mozilla .gadget .gadget-colors a:hover,
.mozilla .gadget .gadget-colors a:focus,
.mozilla .gadget .gadget-colors a:active {
    outline: 0;
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #333;
}

/* gadget content container styles -- basically the wrapper for the gadget iframe */
.gadget .dashboard-item-content {
    -moz-border-radius-bottomleft: 3px;
    border-bottom-left-radius: 3px;
    -moz-border-radius-bottomright: 3px;
    border-bottom-right-radius: 3px;
    background: #fff;
    box-shadow: 0 2px 2px 0 rgba(9, 30, 66, 0.13);
}

.gadget .dashboard-item-content.minimization {
    left: -9999px;
    position: absolute;
    width: 100%;
}
