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

/**
 * @package     Skin "Default"
 * @section     Grid
 */

@media screen,projection,tv,handheld {

/**
 * @subsection  LayoutFixedSidebar
 */

.LayoutFixedSidebar {
    display: block;
}

.LayoutFixedSidebar > .ContentColumn {
    /**
     * @note    force own Block Formatting Context for nested floats
     */
    overflow: hidden;
}

.TicketZoom .LayoutFixedSidebar > .ContentColumn {
    min-height: 500px;
}

.LayoutFixedSidebar > .SidebarColumn {
    overflow-x: hidden;
}

.LayoutFixedSidebar.SidebarLast > .SidebarColumn {
    width: 270px;
    float: right;
    margin-left: 16px;
    margin-right: 0;
}

.RTL .LayoutFixedSidebar.SidebarLast > .SidebarColumn {
    float: left;
    margin-left: 0;
    margin-right: 16px;
}

.LayoutFixedSidebar.SidebarFirst > .SidebarColumn {
    width: 270px;
    float: left;
    margin-left: 0;
    margin-right: 10px;
}

.RTL .LayoutFixedSidebar.SidebarFirst > .SidebarColumn {
    float: right;
    margin-left: 10px;
    margin-right: 0;
}

/**
 * @subsection   LayoutGrid
 */
.LayoutGrid {
    /**
     * @note    force own Block Formatting Context for nested floats
     */
    overflow: hidden;
}

.LayoutGrid > div,
.LayoutGrid > li {
    float: left;
}

.RTL .LayoutGrid > div,
.RTL .LayoutGrid > li {
    float: right;
}

.LayoutGrid > .Size1of2 {
    width: 50%;
}

.LayoutGrid > .Size1of3 {
    width: 33.333%;
}

.LayoutGrid > .Size2of3 {
    width: 66.666%;
}

.LayoutGrid > .Size1of4 {
    width: 25%;
}

.LayoutGrid > .Size2of4 {
    width: 50%;
}

.LayoutGrid > .Size3of4 {
    width: 75%;
}

.LayoutGrid > div > div,
.LayoutGrid > li > div {
    /**
     * @note    force own Block Formatting Context for nested floats
     */
    overflow: hidden;
}

/**
 * @note        ColumnsWithSpacing: inserts margins between the grid elements,
 *                  but not on the outside.
 */

.LayoutGrid.ColumnsWithSpacing > div > div  {
    margin-left: 10px;
    margin-right: 0;
    margin-bottom: 10px;
}

.RTL .LayoutGrid.ColumnsWithSpacing > div > div {
    margin-left: 0;
    margin-right: 10px;
}

.LayoutGrid.ColumnsWithSpacing > li > * {
    padding-right: 10px;
}

/**
 * do not add left margin for first element in each row
 */
.LayoutGrid.ColumnsWithSpacing > div:first-child > div,
.LayoutGrid.ColumnsWithSpacing > div.Clear + div > div {
    margin-left: 0;
    margin-right: 0;
}

/**
 * @subsection  LayoutPopup
 */
.LayoutPopup > .Header {
    padding: 7px 20px;
    border-bottom: 1px solid #ddd;
    background-color: #f6f6f6;
}

.RTL .LayoutPopup > .Header {
    padding: 7px 20px 7px 5px;
}

.LayoutPopup > .Header h1 {
    font-size: 14px;
    font-weight: bold;
    padding: 0px 5px 0 0;
    margin-bottom: 0px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.RTL .LayoutPopup > .Header h1 {
    padding: 5px 0 0 5px;
}

.LayoutPopup > .Header p {
    padding: 5px 5px 0 0;
}

.RTL .LayoutPopup > .Header p {
    padding: 5px 10px 0 5px;
}

.LayoutPopup .Notice {
    color: red;
}

.LayoutPopup > .Content {
    padding: 20px;
    background-color: #fff;
}

.RTL .LayoutPopup > .Content {
    padding: 5px 20px 5px 5px;
}

.LayoutPopup > .Footer {
    padding: 5px;
    border-top: 1px solid #eee;
    text-align: center;
    min-height: 28px;
}

.LayoutPopup > .Footer .CallForAction {
    display: inline-block;
    margin: 10px 0px 5px 0px;
    min-width: 150px;
}

} /* end @media */