/**
 * @project     OTRS (http://www.otrs.org) - Agent Frontend
 * @version     $Revision: 1.26 $
 * @copyright   OTRS AG
 * @license     AGPL (http://www.gnu.org/licenses/agpl.txt)
 */

/**
 * @package     Skin "Default"
 * @section     Application
 * @subsection  ProcessManagement
 */

@media screen,projection,tv,handheld {

/**
 * @subsubsection     Icon Definition
 */
a.Export {
    background: url("../img/database_export.png") no-repeat left center;
    padding-left: 24px;
}
a.Copy {
    background: url(../img/icons/reports.png) no-repeat left center;
    padding-left: 24px;
}

.SaveButtons {
    margin-top: 30px;
}

.Icon {
    display: block;
    height: 16px;
    width: 16px;
    background-repeat: no-repeat;
    background-position: center;
    float: right;
    margin-left: 5px;
}

.Icon_Delete {
    background-image: url(../img/icons/trash-can.png);
}

.Icon_Edit {
    background-image: url(../img/icons/edit.png);
}

.AvailableIn {
    background-color: #ccc;
    color: #555;
    display: block;
    float: right;
    font-size: 10px !important;
    height: 13px;
    line-height: 100%;
    margin-right: 2px;
    min-width: 8px;
    padding: 4px 4px 0px 4px;
}

.AllocationList .AvailableIn {
    float: left;
    margin-right: 5px;
    margin-top: 1px;
}


/**
 * @subsubsection     Process Element Accordion
 */
ul#ProcessElements {
    border: 1px solid #CCC;
}

ul#ProcessElements * {
    font-size: 11px;
}

ul#ProcessElements li.AccordionElement h2 {
    margin-bottom: 0px;
    border: 1px solid #FFF;
    border-bottom: 1px solid #CCC;
}

ul#ProcessElements li.AccordionElement h2 a {
    padding: 5px;
    color: #474747;
    font-size: 12px;
}

ul#ProcessElements li.AccordionElement div.Content {
    border: 1px solid #FFF;
    border-bottom: 1px solid #CCC;
    background-color: #FFF;
    padding: 5px;
    display: none;
}

ul#ProcessElements li.AccordionElement div.Content .ProcessElementFilter {
    width: 228px;
    margin-top: 1px;
    margin-bottom: -5px;
}

ul#ProcessElements li.AccordionElement.Active div.Content {
    display: block;
}

ul#ProcessElements li.AccordionElement:last-child div.Content {
    border-bottom: 1px solid #FFF;
}

ul#ProcessElements li.AccordionElement:last-child h2 {
    border-bottom: none;
}

ul#ProcessElements li.AccordionElement.Active:last-child h2 {
    border-bottom: 1px solid #CCC;
}

ul#ProcessElements li.AccordionElement div.Content ul {
    margin-top: 10px;
    margin-bottom: 10px;
    max-height: 150px;
    overflow-y: auto;
}

ul#ProcessElements li.AccordionElement div.Content ul li {
    padding: 2px 5px 2px 5px;
    position: relative;
    cursor: move;
}

ul#ProcessElements li.AccordionElement div.Content ul li > span {
    position: absolute;
    right: 5px;
    top: 2px;
}

ul#ProcessElements li.AccordionElement div.Content .ProcessElementButton {
    width: 234px;
    display: block;
    margin: -5px auto 2px auto;
}

.EntityDrag {
    display: block;
    height: 20px;
    width: 200px;
    border: 1px solid #CCC;
}

/**
 * @subsubsection     Diagram Canvas
 */

#Canvas {
    width: 95%;
    position: relative;
}

.CanvasActions {
    position: absolute;
    right: 10px;
    top: 2px;
    overflow: hidden;
}

.CanvasActions a {
    float: left;
    width: 20px;
    height: 20px;
    opacity: 0.4;
}

.CanvasActions a#ShowEntityIDs {
    width: auto;
    opacity: 1.0;
    margin: 4px 10px 0px 0px;
}

.CanvasActions a:hover {
    opacity: 1.0;
}

.CanvasActions a#ExtendCanvasHeight {
    background: url(../img/icon_resize_vertical.png) no-repeat center;
}

.CanvasActions a#ExtendCanvasWidth {
    background: url(../img/icon_resize_horizontal.png) no-repeat center;
}

#DiagramTooltip {
    border: 1px solid #aaa;
    border-radius: 5px;
    background-color: #fff;
    width: 200px;
    opacity: 0.9;
    position: absolute;
    z-index: 999;
}

#DiagramTooltip h4 {
    border-bottom: 1px solid #aaa;
    padding: 7px 10px 5px 10px;
    margin-bottom: 5px;
    background-color: #f6f6f6;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-radius: 5px 5px 0px 0px;
}

#DiagramTooltip ul {
    padding: 5px 7px 3px 7px;
    overflow: hidden;
}

#DiagramTooltip li {
    display: block;
    float: left;
    background-color: #ddd;
    padding: 5px 7px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 11px;
    line-height: 110%;
}

#DiagramTooltip li .AvailableIn {
    float: left;
    margin: -2px 5px -2px -6px;
    background-color: #999;
    color: #fff;
}

#DiagramTooltip li.NoDialogsAssigned {
    background: none;
    font-style: italic;
    padding: 0px 4px;
    line-height: 120%;
    margin-top: -3px;
}

.DiagramDeleteLink {
    position: absolute;
    display: none;
}

.DiagramDeleteLink a {
    background: #FFFFFF;
    border: 1px solid #AAAAAA;
    border-radius: 13px;
    display: block;
    font-family: tahoma;
    font-size: 9px;
    font-weight: bold;
    height: 10px;
    width: 10px;
    padding: 5px;
    text-align: center;
    color: #aaa;
}

.DiagramDeleteLink a:hover {
    color: #FF9922;
}


/**
 * @subsubsection     Diagram Canvas Elements
 */

#Canvas #StartEvent {
    width: 30px;
    height: 30px;
    border: 2px solid #000;
    -moz-border-radius: 16px;
    -webkit-border-radius: 16px;
    border-radius: 16px;
    background-color: #72C177;
    position: absolute;
    z-index: 100;
}

#Canvas .Activity {
    width: 110px;
    height: 80px;
    background-color: #e5e5e5;
    border: 1px solid #949494;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    position: absolute;
    z-index: 100;
    cursor: move;
}

em.EntityID {
    position: absolute;
    background: #FF9922;
    border: 1px solid #000;
    border-radius: 5px;
    display: block;
    font-family: tahoma;
    font-size: 10px;
    height: 10px;
    padding: 5px 5px 6px 5px;
    text-align: center;
    color: #fff;
    font-style: normal;
    top: -10px;
    left: -20px;
}

.TransitionLabel em.EntityID {
    left: auto;
    right: -20px;
    z-index: 103;
}

#Canvas .Activity.Highlighted {
    background-color: #555;
    color: #fff;
}

#Canvas .Activity.Highlighted.ReadyToDrop {
    background-color: #A9BF6E;
}

#Canvas .Activity span {
    display: block;
    text-align: center;
    font-size: 11px;
    margin: 32px 5px 5px 5px;
}

#Canvas .Activity .Icon,
#Canvas .TransitionLabel .Icon {
    display: none;
    position: absolute;
    background-repeat: none;
    background-position: center;
}

#Canvas .Activity .Icon {
    width: 16px;
    height: 16px;
    left: 50%;
    top: 50%;
    margin-top: -8px;
    margin-left: -8px;
}

#Canvas .TransitionLabel .Icon {
    background-color: #fff;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    margin-top: 0px;
    margin-left: 0px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
}

#Canvas .Activity .Loader {
    background-image: url(../img/loader.gif);
}

#Canvas .Activity .Success,  #Canvas .TransitionLabel .Success {
    background-image: url(../img/icons/tick.png);
}

#Canvas .Activity#Dummy {
    visibility: hidden;
}

#Canvas .Activity .DiagramDeleteLink {
    position: absolute;
    top: -10px;
    right: -10px;
}

#Canvas .EndpointHover {
    z-index: 150;
}

#Canvas .TransitionLabel {
    background-color: #fff;
    font-size: 11px;
    padding: 6px 11px;
    border: 1px solid #aaa;
    position: relative;
    z-index: 103;
    cursor: default;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    -moz-user-select: none;
    -khtml-user-select: none;
    user-select: none;
    max-width: 150px;
    text-align: center;
}

#Canvas .TransitionLabel:hover {
    z-index: 104;
}

#Canvas .TransitionLabel.Highlighted {
    background-color: #555;
    color: #fff;
}

#Canvas .TransitionLabel.Highlighted.ReadyToDrop {
    background-color: #A9BF6E;
}

#Canvas .TransitionLabel a {
    background: #FFFFFF;
    border: 1px solid #AAAAAA;
    border-radius: 13px;
    display: block;
    font-family: tahoma;
    font-size: 12px;
    height: 10px;
    width: 10px;
    padding: 3px 5px 7px 5px;
    text-align: center;
    color: #aaa;
    position: absolute;
    right: -13px;
    top: -10px;
    cursor: pointer;
    display: none;
}

#Canvas .TransitionLabel a:hover {
    color: #FF9922;
}

#Canvas .TransitionLabel:hover a {
    display: block;
}

/**
 * @subsubsection     Transition Popup / Transition Action Popup
 */

.Fields {
    margin-top: 15px;
}

/**
 * @subsubsection     Path popup
 */

ul.Path {
    overflow: hidden;
    padding: 10px 0px;
    width: 620px;
    margin-left: 150px;
}

ul.Path li {
    width: 130px;
    line-height: 120%;
    float: left;
    position: relative;
    text-align: center;
    padding: 30px 10px;
    min-height: 25px;
}

ul.Path li.Transition {
    width: 230px;
    margin-left: 0px;
    padding: 30px 0px;
}

ul.Path li.StartActivity, ul.Path li.EndActivity {
    background-color: #e5e5e5;
    border: 1px solid #444;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    margin: 0px 20px;
    position: relative;
    z-index: 2;
    font-size: 12px;
}

ul.Path li select {
    width: 180px;
    position: absolute;
    top: 30px;
    left: 50%;
    margin-left: -90px;
    z-index: 2;
}

ul.Path li.Transition span {
    display: block;
    position: absolute;
    z-index: 1;
    width: 270px;
    border-top: 1px solid #444;
    height: 2px;
    left: -20px;
    top: 38px;
}

/**
 * @subsubsection     Popup Result
 */

div.AJAXWaiting {
    margin-top:300px; /* TODO Need real vertical center, please fix */
}

/**
 * @subsubsection     AllocationList
 */

#AvailableFields .ShowOnAssignedList {
    display: none;
}

#AssignedFields .ShowOnAssignedList {
    display: inline;
}

}/* end @media */