/* -- Login & lost password pages -- */

#loginBody form,
#lostPasswdBody form
{
    -moz-box-shadow: 3px 3px 6px 0px #bcbec0;
    -webkit-box-shadow: 3px 3px 6px 0px #bcbec0;
    -o-box-shadow: 3px 3px 6px 0px #bcbec0;
    box-shadow: 3px 3px 6px 0px #bcbec0;
    filter:progid:DXImageTransform.Microsoft.Shadow(color=#bcbec0, Direction=135, Strength=6);
    width: 55%;
    padding-top: 25px;
    padding-bottom: 15px;
    position: absolute;
    left: 50%;

    /* We must use this expression to compute Y translation in order for form not to be
     * shrinked at the top of the screen if the viewport height is too small */
    top: 50%;
    transform: translate(-50%, -35vh);
}

@media (max-width: 900px) {
    #loginBody form,
    #lostPasswdBody form
    {
        width: 100%;
        transform: translateX(-50%);
        top: 0;
    }
}

#loginBody .login_zorilLogo a,
#lostPasswdBody .login_zorilLogo a
{
    display: block;
    margin: auto;
    margin-top: 15px;
    margin-bottom: 10px;
    width: 113px;
    height: 113px;
}

#loginBody .login_zorilLogo img,
#lostPasswdBody .login_zorilLogo img
{
    width: 100%;
}

#loginBody .inputLogin, #loginBody .inputPasswd,
#lostPasswdBody .inputLogin, #lostPasswdBody .inputCaptcha
{
    margin-top: 43px;
    margin-bottom: 20px;
    margin-left: 5%;
    width: 90%;
    padding-bottom: 8px;
}

#lostPasswdBody .inputCaptcha
{
    margin-top: 103px;
}

#loginBody .zoril-msgbox,
#lostPasswdBody .zoril-msgbox
{
    margin-top: 15px;
    margin-left: 5%;
    width: 90%;
}

#loginBody .submitLoginBtn,
#lostPasswdBody input[type=submit]
{
    height: 35px;
    margin: 25px auto;
    border: none;
    border-radius: 0px;
    background-color: #302683;
    color: #FFFFFF;
    font-size: 22px;
    display: block;
    font-family: questrialregular, "Helvetica Neue", Helvetica, Arial, sans-serif;
    outline: 0;
}

#loginBody .submitLoginBtn
{
    width: 165px;
}

#lostPasswdBody input[type=submit]
{
    width: 300px;
}

#loginBody .bottomInfos > p,
#lostPasswdBody .bottomInfos > p
{
    display: block;
    width: 100%;
    text-align: center;
    margin: 0;
}

#lostPasswdBody #captcha_area
{
    margin-top: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#lostPasswdBody #changeCaptcha
{
    height: 40px;
    width: 40px;
    border: none;
    border-radius: 0px;
    background-color: #302683;
    color: #FFFFFF;
    outline: 0;
    padding: 6px;
    vertical-align: middle;
}

#lostPasswdBody #changeCaptcha span
{
    width: 100%;
    height: 100%;
    font-size: 30px;
    line-height: 30px;
    transition: transform 0.25s ease-in-out;
}

#lostPasswdBody #changeCaptcha:hover span
{
    transform: rotate(55deg);
}

#lostPasswdBody #captcha_img
{
    width: 110px;
    border: 1px solid #302683;
    vertical-align: middle;
}

/* -- end login & lost password pages -- */

/* -- error page -- */
#errorPage_body
{
    background-image: url(/sprites/error_background.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 0;
    height: 100vh;
    width: 100vw;
    margin: 0;
}

#errorPage_body > p
{
    position: absolute;
    left: 37%;
    top: 8.7%;
    width: 52.5%;
    height: 18.5%;

    box-sizing: border-box;
    padding: 2%;
    font-size: 22px;
    text-align: center;
    margin: 0;
    font-family: share-techmono, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 500;
    color: #2439DA;
}

/* These 2 rules are used to ensure the text block will be contained in the
 * dedicated text area, according to the background image behavior.
 */
@media (max-aspect-ratio: 1093/701)
{
    #errorPage_body > p
    {
        top: 5.5vw;
        height: 12vw;
    }
}
@media (min-aspect-ratio: 1093/701)
{
    #errorPage_body > p
    {
        left: calc(50% - 20.5vh);
        width: 82vh;
    }
}

/* Font used in the error page. Makes typewriter-like symbols, which is
 * relevant since the text is "said" by robots.
 */
@font-face {
    font-family: 'share-techmono';
    src: url('/fonts/share_techmono/share-techmono.eot');
    src: url('/fonts/share_techmono/share-techmono.eot?#iefix') format('embedded-opentype'),
         url('/fonts/share_techmono/share-techmono.woff2') format('woff2'),
         url('/fonts/share_techmono/share-techmono.woff') format('woff'),
         url('/fonts/share_techmono/share-techmono.ttf') format('truetype'),
         url('/fonts/share_techmono/share-techmono.svg#share-techmono') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* Handles text changes on small devices
 */
@media (max-width: 900px)
{
    #errorPage_body > p
    {
        font-size: 16px;
        font-weight: 450;
    }
}
@media (max-width: 650px)
{
    #errorPage_body
    {
        background-image: url(/sprites/error_background_sm.png);
    }
    #errorPage_body > p
    {
        left: 0;
        top: 0;
        width: 100%;
    }
}
/* -- end error page -- */

/* -- back office page -- */
#backOfficeStdBody
{
    margin-bottom: 20px;
}

#backOfficeStdBody header
{
    width: 100%;
    height: 250px;  /* TODO virer une fois l'image de fond ?*/
    position: relative;
    background-image: url(/sprites/backOfficeBg.png);
    background-size: cover;
}

#backOfficeStdBody header img
{
    position: relative;
    margin: auto;
    width: 113px;
    height: 112px;
    display: block;
    top: 44px;
}

#backOfficeStdBody header p
{
    position: absolute;
    bottom: 0;
    width: 100%;
    min-height: 50px;
    line-height: 50px;
    font-size: 24px;
    opacity: 0.8;
    margin: 0;
}

#backOfficeStdBody #alertBoxBackOffice, #backOfficeStdBody .alertBoxBackOffice,
#body_MainWorkSurface .alertBoxSiteEdit
{
    position: fixed;
    margin-top: 15px;
    z-index: 50;
}

#body_MainWorkSurface .alertBoxSiteEdit
{
    display: none;
}

#backOfficeStdBody .backOfficeText
{
    color: #302683;
}

#backOfficeStdBody .legendTitle
{
    background-color: #302683;
    color: #FFFFFF;
    text-align: center;
}

#backOfficeStdBody .settingSectionTitle
{
    width: 100%;
    border-bottom: 2px dotted #302683;
    padding-bottom: 5px;
    font-weight: bold;
}

#backOfficeStdBody fieldset
{
    border: 2px solid #302683;
    position: relative;
    margin-top: 30px;
    padding: 15px;
}

#backOfficeStdBody legend.legendTitle
{
    width: 200px;
    /*position: relative;
    left: 15px;*/
    /*text-align: left;*/
}

#backOfficeStdBody section.gotoModifSection .tbl-row > .tbl-cell
{
    vertical-align: middle;
}

#backOfficeStdBody section.gotoModifSection p
{
    height: 56px;
    line-height: 56px;
    padding-left: 15px;
}

#backOfficeStdBody section.gotoModifSection a
{
    color: #302683;
    outline: 0;
    font-weight: 500;
}

#backOfficeStdBody section.gotoModifSection a:hover
{
    text-decoration: none;
}

#backOfficeStdBody section.settingsSection textarea,
#backOfficeStdBody section.settingsSection input,
#backOfficeStdBody section.settingsSection button
{
    border-radius: 0;
}

#backOfficeStdBody section.settingsSection label
{
    font-weight: normal;
}

#backOfficeStdBody section.settingsSection textarea
{
    resize: none;
}

#backOfficeStdBody section.statSection hr
{
    border: 0;
    border-top: 2px dotted #302683;
    margin-top: 15px;
    margin-bottom: 15px;
}

#backOfficeStdBody section.statSection .statBlock
{
    position: relative;
}

#backOfficeStdBody section.statSection .statBlock img,
#backOfficeStdBody section.statSection .statBlock_inner
{
    width: 60px;
    position: absolute;
    top: 0;
    left: 0;
}

#backOfficeStdBody section.statSection .statBlock_inner img
{
    position: relative;
}

#backOfficeStdBody section.statSection .statBlock p
{
    margin-left: 75px;
    height: 60px;
    line-height: 60px;
}
#backOfficeStdBody section.statSection .statBlock_inner p
{
    width: 60px;
    height: 20px;
    line-height: 20px;
    margin: 0;
    color: #302683;
    font-size: 20px;
    text-align: center;
}

#backOfficeStdBody .generationSection .tbl,
#backOfficeStdBody .generationSection .tbl-row,
#backOfficeStdBody .troubleshootSection .tbl,
#backOfficeStdBody .troubleshootSection .tbl-row
{
    width: 100%;
}

#backOfficeStdBody .generationSection .optLabel.tbl-cell,
#backOfficeStdBody .troubleshootSection .optLabel.tbl-cell
{
    text-align: center;
    height: 55px;
}

#backOfficeStdBody .generationSection .tbl-row .roundedToggleSwitch
{
    margin-top: 9px;
}

#backOfficeStdBody .generationSection .tbl-cell,
#backOfficeStdBody .troubleshootSection .tbl-cell
{
    vertical-align: middle;
}

#backOfficeStdBody .deconnectionBlock
{
    margin-top: 15px;
}

#backOfficeStdBody .deconnectionBlock a
{
    float: right;
    vertical-align: middle;
    outline: 0;
}

#backOfficeStdBody .deconnectionBlock a:hover
{
    text-decoration: none;
}

#backOfficeStdBody .deconnectionBlock p
{
    margin: 0;
    padding-right: 8px;
    display: inline-block;
    font-size: 18px;
}

#backOfficeStdBody .deconnectionBlock img
{
    width: 48px;
}

#backOfficeStdBody #troubleshootModal textarea
{
    resize: vertical;
}

#backOfficeStdBody #changeCookiesForm #cookieBannerPreview
{
    width: 34px;
    height: 34px;
    border: 1px solid #302683;
    background-color: #FFFFFF;
}

#backOfficeStdBody #changeCookiesForm select
{
    width: calc(100% - 39px);
    height: 34px;
    border: 1px solid #302683;
    padding-left: 10px;
    background-color: #FFFFFF;
}

/* -- back office page -- */

/* -- Site edition page -- */
#topMenuBar
{
    position: fixed;
    width: 100%;
    z-index: 40;
    background-color: #282828;
    height: 165px;
    padding: 5px;
}

/* The moving carret and its 'background' */
#topMenuBar #dndToolPanel_wrapper
{
    width: 100%;
    border-bottom: 2px solid white;
    padding-bottom: 28px;
    transition: all .5s ease;
    position: relative;
}

#topMenuBar #dndToolPanel_wrapper .hiddenMenuSlider
{
    position: absolute;
    bottom: -2px;
    height: 2px;
    width: 38px;
    background-color: #282828;
    transition: all .5s ease;
}

/* Top level panels */
#topMenuBar #dndToolPanel,
#topMenuBar #settingsToolPanel
{
    width: 100%;
    margin: auto;
}

/* 'Drop items' menu bar (at the top) */
#topMenuBar #dndToolPanel
{
    table-layout: fixed;
    max-width: 900px;
}

#topMenuBar .toolbtn_wide
{
    border: 2px solid white;
    margin-left: 10px;
    margin-right: 10px;
    padding: 10px;
    position: relative;
    height: 100%;
}

#topMenuBar .toolbtn_wide .extraBorderWidget
{
    -ms-transform: rotate(45deg); /* IE 9 */
    -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
    transform: rotate(45deg);
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    position: absolute;
    bottom: -11px;
    left: calc(50% - 10px);
    width: 20px;
    height: 20px;
    background-color: #282828;
}

/* NOTE: The class "ui-draggable-dragging" is added by jQueryUI when a draggable
 * item is currenly getting dragged */
.toolbtn_wide.dragToolbtn.ui-draggable-dragging
{
    width: 63px;
    max-height: 52px;
    background-color: #282828;
    z-index: 40;
}

/* NOTE: We want those rules to apply to draggable items in the top menu bar
 * AND the helper used when dragging. JQueryUI clones the item being drag from
 * the top menu bar. As a result, the id of the block is not present in the
 * helper. Thus, if we want those rules to apply to both, we can't use ids.
 *
 * Moreover, since we don't use ids, those rules have a low precedence. We
 * must use the "important" keyword or they get overridden by the ones above,
 * relying on ids.
 */
.dragToolbtn.dragToolbtn_blockTxt, .dragToolbtn.dragToolbtn_blockTxt .extraBorderWidget {
    border-color: #cb9d2e !important;
}
.dragToolbtn.dragToolbtn_blockImg, .dragToolbtn.dragToolbtn_blockImg .extraBorderWidget {
    border-color: #0b90ac !important;
}
.dragToolbtn.dragToolbtn_blockVid, .dragToolbtn.dragToolbtn_blockVid .extraBorderWidget {
    border-color: #bf1776 !important;
}
.dragToolbtn.dragToolbtn_blockSound, .dragToolbtn.dragToolbtn_blockSound .extraBorderWidget {
    border-color: #44a049 !important;
}
.dragToolbtn.dragToolbtn_blockShape, .dragToolbtn.dragToolbtn_blockShape .extraBorderWidget {
    border-color: #c8612f !important;
}
.dragToolbtn.dragToolbtn_blockForm, .dragToolbtn.dragToolbtn_blockForm .extraBorderWidget {
    border-color: #000000 !important;
}
.dragToolbtn.dragToolbtn_blockIframe, .dragToolbtn.dragToolbtn_blockIframe .extraBorderWidget {
    border-color: #cc212c !important;
}
.dragToolbtn.dragToolbtn_blockDropdown, .dragToolbtn.dragToolbtn_blockDropdown .extraBorderWidget {
    border-color: #FFFFFF !important;
}
.dragToolbtn.dragToolbtn_blockCarousel, .dragToolbtn.dragToolbtn_blockCarousel .extraBorderWidget {
    border-color: #FFFFFF !important;
}
.dragToolbtn.dragToolbtn_blockContainer, .dragToolbtn.dragToolbtn_blockContainer .extraBorderWidget {
    border-color: #FFFFFF !important;
}

#topMenuBar #blockSwitchPage, #topMenuBar #blockSwitchPage .extraBorderWidget {
    border-color: #2f3490;
    background-color: #2f3490;
}

#topMenuBar #dndToolPanel .toolbtn_wide img
{
    width: 39px;
    height: 24px;
    display: block;
    margin: auto;
    margin-bottom: 5px;
}

#topMenuBar .toolbtn_wrapper
{
    display: inline-block;
}

#topMenuBar .toolbtn_sm
{
    height: 30px;
    width: 30px;
    display: inline-block;
    background-color: #000000;
    border: 2px solid #FFFFFF;
    border-radius: 0;
    padding: 1px 2px;
    outline: 0;
}

#topMenuBar .toolbtn_sm > button,
#topMenuBar .toolbtn_sm > .input-group-addon
{
    background-color: #000000;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
}

#topMenuBar .toolbtn_sm > .input-group-addon
{
    padding: 2px;
}

#topMenuBar .toolbtn_sm > .input-group-addon > i
{
    width: 18px;
    height: 18px;
}

#topMenuBar #settingsToolPanel
{
    max-width: 1400px;
}

#topMenuBar #settingsToolPanel #specificToolPanel,
#topMenuBar #settingsToolPanel #globalItemToolPanel
{
    height: 36px;
    padding: 3px 0;
}

#topMenuBar #settingsToolPanel #specificToolPanel input[type=number],
#topMenuBar #settingsToolPanel #globalItemToolPanel input[type=number]
{
    width: 80px;
    background-color: #282828;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 0;
    height: 30px;
}

#topMenuBar #specificToolPanel button,
#topMenuBar #specificToolPanel > .tbl-row .tbl-cell
{
    height: 30px;
    vertical-align: middle;
}

#topMenuBar #specificToolPanel button
{
    background-color: #282828;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
    border-radius: 0;
    position: relative;
}

#topMenuBar #specificToolPanel button img
{
    width: 24px;
    height: 24px;
    position: absolute;
    top: 2px;
    left: 2px;
}

#topMenuBar #specificToolPanel button p
{
    margin: 0;
    margin-left: 24px;
    height: 28px;
    line-height: 28px;
    font-size: 16px;
}

#topMenuBar #specificToolPanel .tbl-row label
{
    color: #FFFFFF;
    padding-left: 5px;
    padding-right: 5px;
    vertical-align: middle;
}

#topMenuBar #specificToolPanel .tbl-row input[type=checkbox],
#topMenuBar #specificToolPanel .tbl-row input[type=number]
{
    margin-left: 20px;
    display: inline-block;
}

#topMenuBar #settingsToolPanel #globalItemToolPanel > *
{
    vertical-align: middle;
}

/* TODO remove une fois les modes fusionnés */
#topMenuBar #bgImgChooser
{
    display: inline-block;
}

#topMenuBar #globalItemToolPanel
{
    border-top: 1px dotted #FFFFFF;
}

#topMenuBar #globalItemToolPanel > label,
#topMenuBar #globalItemToolPanel > input,
#topMenuBar #globalItemToolPanel > p
{
    display: inline-block;
    width: auto;
    color: white;
    margin-bottom: 0;
}

#topMenuBar #globalItemToolPanel > p
{
    padding: 0 15px;
}

#topMenuBar #globalItemToolPanel ul.dropdown-menu
{
    min-width: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
    /* Fix the 2px left offset due to the border width */
    left: -2px;
}

#topMenuBar #globalItemToolPanel ul.dropdown-menu .toolbtn_sm
{
    position: relative;
}

#topMenuBar #globalItemToolPanel ul.dropdown-menu .toolbtn_sm > img
{
    position: absolute;
    top: 0;
    left: 0;
    width: 26px;
    height: 26px;
}

#btn_itemBg_dropdown
{
    max-width: 120px;
}

#btn_itemBg_dropdown input
{
    width: 100%;
    margin-top: 4px;
    margin-bottom: 4px;
}

#btn_itemBg_dropdown button
{
    width: 100%;
}

#topMenuBar #modeMainMenu
{
    position: absolute;
    z-index: 41;
    top: 0;
    left: 0;
    table-layout: fixed;
}

#topMenuBar #modeMainMenu .tbl-row .tbl-cell
{
    width: 54px;
    height: 54px;
    padding: 3px;
}

#topMenuBar #modeMainMenu .tbl-row .tbl-cell img
{
    width: 100%;
    border-radius: 50%;
}

#topMenuBar #modeMainMenu #currentSelectedModeArea
{
    height: 54px;
}

#topMenuBar #modeMainMenu #currentSelectedModeArea .currentModeItem img
{
    width: 54px;
    border-radius: 50%;
    padding: 3px;
}

#topMenuBar #modeMainMenu #currentSelectedModeArea .currentModeItem > p
{
    color: white;
    line-height: 54px;
    display: inline-block;
}

#topMenuBar #coreTools
{
    position: absolute;
    z-index: 41;
    top: 0;
    right: 0;
}

#topMenuBar #coreTools .rightNavBtn.saveOrBackBtns
{
    margin-top: 29px;
}

#topMenuBar #coreTools .rightNavBtn.undoRedoTroubleshootBtns
{
    color: #FFFFFF;
    display: flex;
    position: absolute;
    bottom: 5px;
    right: 260px;
}

#topMenuBar #coreTools .rightNavBtn button
{
    display: block;
    height: 30px;
    border-radius: 0;
}

#topMenuBar #coreTools ul#dropdownMenu_pageSelect
{
    min-width: 300px;
    max-width: 600px;
    padding: 10px;
    margin-top: 15px;
    border-radius: 0;
    border: 2px solid #302683;
}

#topMenuBar #coreTools ul#dropdownMenu_pageSelect li
{
    display: flex;
}

#topMenuBar #coreTools ul#dropdownMenu_pageSelect li.pageOptionItem .optionInnerPageName
{
    width: 100%;
    overflow-x: hidden;
}

#topMenuBar #coreTools ul#dropdownMenu_pageSelect li.pageOptionItem:hover .optionInnerPageName
{
    cursor: pointer;
    background-color: #C6C6C6;
}

#topMenuBar #coreTools ul#dropdownMenu_pageSelect li.divider
{
    background-color: transparent;
    border: 1px dotted #302683;
}

#topMenuBar #coreTools ul#dropdownMenu_pageSelect button.smallInnerBtn
{
    width: 30px;
    height: 30px;
    border-radius: 0;
    border: 1px solid #302683;
    padding: 2px 2px;
    background-color: transparent;
    margin-right: 2px;
}

#topMenuBar #coreTools ul#dropdownMenu_pageSelect button.smallInnerBtn > img
{
    width: 24px;
    height: 24px;
}

#topMenuBar #coreTools ul#dropdownMenu_pageSelect p
{
    font-size: 14px;
    text-align: left;
    line-height: 30px;
    padding: 0 8px;
    margin-bottom: 0;
    text-overflow: ellipsis;
}

#topMenuBar #coreTools ul#dropdownMenu_pageSelect li.addNewPageWrapper
{
    height: 38px;
    border: 1px solid #302683;
    padding: 2px;
    position: relative;
}

#topMenuBar #coreTools ul#dropdownMenu_pageSelect li.addNewPageWrapper button
{
    position: absolute;
    border-radius: 0;
    border: 1px solid #302683;
    top: 2px;
    left: 2px;
    width: 32px;
    height: 32px;
    background-color: transparent;
    color: #302683;
}

#topMenuBar #coreTools ul#dropdownMenu_pageSelect li.addNewPageWrapper input
{
    border-radius: 0;
    border: none;
    height: 32px;
    background-color: transparent;
    color: #302683;
    margin-left: 36px;
    width: calc(100% - 36px);
}

#topMenuBar #coreTools ul#dropdownMenu_pageSelect li.addNewPageWrapper input:focus
{
    box-shadow: none;
}

#topMenuBar #coreTools #blockSwitchPage
{
    width: 100px;
    height: 53px;
    margin: 5px;
    padding: 0;
}

#topMenuBar #coreTools #blockSwitchPage #blockSwitchPage_anchor
{
    cursor: pointer;
    width: 100%;
    height: 100%;
}

#topMenuBar #coreTools .toolbtn_wide p.currentPageName
{
    color: white;
    font-size: 18px;
    text-align: center;
    line-height: 49px;
    margin-bottom: 0;
}

#topMenuBar #coreTools #btn_saveEditor, #topMenuBar #coreTools #btn_goto_backoffice
{
    margin: 5px;
    width: calc(100% - 10px);
    height: 34px;
}

#topMenuBar #coreTools #btn_troubleshoot
{
    margin-left: 4px;
}

/* -- -- */


#editorHorizontalRule
{
    position: absolute; /*XXX Hack un peu dégeulasse... FIXME */
    bottom: 0;
    left: 15px;

    width: 100%;
    z-index: 41;
    background-color: #FFFFFF;
    height: 22px;
    border-bottom: 1px solid black;
    margin: 0 -15px;
}

#editorHorizontalRule .leftRuleSide, #editorHorizontalRule .rightRuleSide
{
    position: absolute;
    width: 43%;
    height: 20px;
    top: 1px;
}

#editorHorizontalRule .centerRuleSide
{
    position: absolute;
    width: 14%;
    height: 20px;
    top: 1px;
    left: 40%;
}

#editorHorizontalRule .centerRuleSide #inputPageWidth
{
    display: block;
    width: 150px;
    margin: auto;
    height: 20px;
    text-align: center;
    border: 1px solid black;
}

#editorHorizontalRule .ruleBtnSlider
{
    position: absolute;
    width: 15px;
    height: 15px;
    top: 3px;
}

#editorHorizontalRule .ruleBtnSlider span
{
    top: 0;
}

#editorHorizontalRule .leftRuleSide, #editorHorizontalRule .ruleBtnSlider.leftBtnSlider
{
    left: 0;
}

#editorHorizontalRule .rightRuleSide, #editorHorizontalRule .ruleBtnSlider.rightBtnSlider
{
    right: 0;
}

/* -- -- */

#bottomArea_addHeight
{
    position: absolute;
    bottom: 0;
    height: 200px;
    width: 100%;
    opacity: 0;
    margin: auto;
    background-color: #999999;
    transition: opacity .3s ease;
    z-index: 100;
}

#bottomArea_addHeight:hover
{
    opacity: 0.4;
}

#bottomArea_addHeight #areaTriggerAddHeight
{
    font-size: 25px;
    color: #FFFFFF;
    width: 100%;
    max-width: 500px;
    line-height: 100px;
    margin: 50px auto;
    text-align: center;
}

#bottomArea_addHeight #areaTriggerAddHeight:hover
{
    cursor: pointer;
}

#bottomArea_addHeight span
{
    color: #FFFFFF;
    margin: 0 10px;
}

/* -- -- */

#body_MainWorkSurface
{
    height: 100%;
    background-color: #CDCDCD;
}

#outer_mainWorkSurface
{
    position: relative;
    top: 175px;
    background-color: #CDCDCD;
    height: calc(100% - 175px);
    overflow: auto;
}

#mainWorkSurface
{
    position: relative;
    margin: auto;
    background-color: #FFFFFF;
    /*z-index: 0;*/
}

.defaultPlaceholderMainSurface
{
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: 15px;
    border: 5px dashed #AAAAAA;
    border-radius: 5px;
    z-index: 1;
}

.defaultPlaceholderMainSurface p
{
    text-align: center;
    font-size: 36px;
    color: #AAAAAA;
}

/*#innerCarousel
{
    min-height: 65px;
}*/

#mainWorkSurface .canvas-element
{
    position: absolute;
    border: 1px solid #C1E0FF;
}

#mainWorkSurface .ui-selecting {
    background: #ccc;
}

#mainWorkSurface .ui-selected {
    opacity: 0.9;
    background: #ccc;
    border-width: 1px;
    border-color: red;
}

/* Containers behavior */
#mainWorkSurface .canvas-element > .containerBlock
{
    position: relative;
}

#mainWorkSurface .canvas-element > .containerBlock.stackContainer
{
    display: flex;
    /*flex-direction: row;
    flex-wrap: wrap;*/
    align-content: flex-start;  /* To prevent space from being added between items */
}

#mainWorkSurface .canvas-element > .containerBlock.stackContainer > .canvas-element
{
    /*display: inline-block;*/
    flex-grow: 0;   /* To prevent items' size from being re-calculated */
}

#mainWorkSurface .canvas-element > .containerBlock.gridContainer
{
    display: grid;
}

/* Center elements within grid containers */
#mainWorkSurface .canvas-element > .containerBlock.gridContainer > .canvas-element > .stretchItem
{
    object-position: center center;
    object-fit: contain;
}

/* Item specific rules */
/*FIXME "imgModal_anchor2" refers to the modal used to define background tiles. The name is not optimal*/
#mainWorkSurface .canvas-element.blockDropdown > .blockContainer,
#imgModal_anchor2 .canvas-element.blockDropdown > .blockContainer
{
    visibility: hidden;
    display: none;
}

#mainWorkSurface .canvas-element.blockDropdown:hover > .blockContainer,
#mainWorkSurface .canvas-element.blockDropdown > .blockContainer:hover,
#mainWorkSurface .canvas-element.blockDropdown.ui-selected > .blockContainer,
#mainWorkSurface .canvas-element.blockDropdown > .blockContainer.ui-selected,
#mainWorkSurface .canvas-element.blockDropdown > .blockContainer.forceVisible,
#imgModal_anchor2 .canvas-element.blockDropdown:hover > .blockContainer,
#imgModal_anchor2 .canvas-element.blockDropdown > .blockContainer:hover
{
    visibility: visible;
    display: initial;
}

#mainWorkSurface .background-tile .tileInnerContainer
{
    z-index: -1;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background-color: transparent;
}

/* To make dropdown menu located within first tile display over its lower tile,
 * instead of being cropped.
 * XXX This doesn't fix all similar issues, only the one occuring on the first
 * tile */
#mainWorkSurface .background-tile
{
	z-index: 0;
}
#mainWorkSurface .background-tile:first-child
{
	z-index: 1;
}

/* -- disconnect modal -- */

#sessionExpirationModal p
{
    text-align: center;
}

#sessionExpirationModal p.disconnectedTxt
{
    text-align: left;
}

#sessionExpirationModal .disconnect-area
{
    position: relative;
    width: 64px;
    height: 84px;
    margin: 0 auto;
    margin-bottom: 15px;
}

#sessionExpirationModal .disconnect-area-bg
{
    position: absolute;
    width: 54px;
    height: 54px;
    background-color: #5cb85c;
    border-radius: 50%;
    top: 10px;
    left: 5px;
}

#sessionExpirationModal .disconnect-area .stopwatch_base,
#sessionExpirationModal .disconnect-area .stopwatch_needle
{
    position: absolute;
    top: 0;
    width: 64px;
    height: 64px;
}

#sessionExpirationModal .disconnect-area .stopwatch_base
{
    z-index: 0;
}

#sessionExpirationModal .disconnect-area .stopwatch_needle
{
    transform-origin: 32px 37px;
    z-index: 1;
}

#sessionExpirationModal .disconnect-area .disconnect-timer
{
    position: relative;
    font-weight: 700;
    top: 70px;
}

/* -- responsive panel -- */

aside#verticalTreeMenu
{
    z-index: 105;
    position: fixed;
    left: 0;
    top: 175px;
    height: calc(100% - 185px);
    background-color: white;    /* TODO centraliser avec les règles du back office */
    border: 1px solid black;
}

aside#verticalTreeMenu #expandableVerticalMenu
{
    width: 15px;
    height: 100%;
    transition: width .2s ease;
}

aside#verticalTreeMenu #expandableVerticalMenu.expanded
{
    width: 250px;
    overflow: auto;
}

aside#verticalTreeMenu #expandableVerticalMenu .panelTitle
{
    width: 100%;
    background-color: #302683;
    color: #FFFFFF;
    text-align: center;
}

aside#verticalTreeMenu #expandableVerticalMenu #btn_expandMenu
{
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 15px;
    color: black;
    border: 1px solid black;
}

aside#verticalTreeMenu #expandableVerticalMenu p.pageName
{
    font-weight: bold;
}

aside#verticalTreeMenu #expandableVerticalMenu div#itemTree
{
    visibility: hidden;
    opacity: 0;
    transition: all .2s ease;
}

aside#verticalTreeMenu #expandableVerticalMenu.expanded div#itemTree
{
    visibility: visible;
    opacity: 1;
}

aside#verticalTreeMenu #expandableVerticalMenu div#itemTree div.treeNode
{
    min-height: 25px;
    border: 1px solid blue;
    width: 100%;
    background-color: white;
    position: relative;
}

aside#verticalTreeMenu #expandableVerticalMenu div#itemTree div.treeNode p
{
    width: 100%;
    padding-left: 10px;
    text-align: left;
    line-height: 25px;
    margin: 0;
}

/* Nodes background colors, supposed to match the ones defined for the
 * 'edition toolbar blocks' */
aside#verticalTreeMenu #expandableVerticalMenu div#itemTree div.treeNode.treeNodeText {
    background-color: #cb9d2e;
    color: #000000;
}
aside#verticalTreeMenu #expandableVerticalMenu div#itemTree div.treeNode.treeNodeImage {
    background-color: #0b90ac;
    color: #000000;
}
aside#verticalTreeMenu #expandableVerticalMenu div#itemTree div.treeNode.treeNodeVideo {
    background-color: #bf1776;
    color: #000000;
}
aside#verticalTreeMenu #expandableVerticalMenu div#itemTree div.treeNode.treeNodeSound {
    background-color: #44a049;
    color: #000000;
}
aside#verticalTreeMenu #expandableVerticalMenu div#itemTree div.treeNode.treeNodeIFrame {
    background-color: #cc212c;
    color: #000000;
}
aside#verticalTreeMenu #expandableVerticalMenu div#itemTree div.treeNode.treeNodeForm {
    background-color: #000000;
    color: #ffffff;
}
aside#verticalTreeMenu #expandableVerticalMenu div#itemTree div.treeNode.treeNodeDropdown {
    background-color: #ffffff;
    color: #000000;
}
aside#verticalTreeMenu #expandableVerticalMenu div#itemTree div.treeNode.treeNodeCarousel {
    background-color: #ffffff;
    color: #000000;
}
aside#verticalTreeMenu #expandableVerticalMenu div#itemTree div.treeNode.treeNodeContainer {
    background-color: #ffffff;
    color: #000000;
}

/* Change background on hover and when an item is selected.
 * NOTE: This rule must be AFTER the ones defining nodes background color */
aside#verticalTreeMenu #expandableVerticalMenu div#itemTree div.treeNode:hover,
aside#verticalTreeMenu #expandableVerticalMenu div#itemTree div.treeNode.selectedNode
{
    background-color: #AAAAAA;
    cursor: pointer;
}

/* These two rules handle left alignment, to be able to shift right items (in
 * the tree) which are within containers */
aside#verticalTreeMenu #expandableVerticalMenu div#itemTree div.treeNode > div.treeNode
{
    padding-left: 15px;
}

/* Don't shift the root */
aside#verticalTreeMenu #expandableVerticalMenu div#itemTree > div.treeNode
{
    padding-left: 0;
}

/* -- border modal -- */
#borderModal .tbl
{
    width: 100%;
    table-layout: fixed;
}

#borderModal .tbl-row
{
    width: 100%;
}

#borderModal .tbl-cell
{
    vertical-align: middle;
}

#borderModal .tbl-cell.center-target
{
    /*width: 300px;*/
    height: 200px;
}

#borderModal .tbl-cell.center-target > div
{
    background-color: #DDDDDD;
    width: 150px;
    height: 150px;
    margin: auto;
}

#borderModal .tbl > .tbl-row > .tbl-cell:not(.center-target):hover
{
    background-color: #DDDDDD;
}

/*#borderModal .tbl > .tbl-row > .tbl-cell:nth-child(1),
#borderModal .tbl > .tbl-row > .tbl-cell:nth-child(3)
{
    width: 150px;
}*/

#borderModal .dropdown > button.dropdown-toggle
{
    width: 100%;
    position: relative;
    text-align: left;
}

#borderModal .dropdown > button.dropdown-toggle span.caret
{
    position: absolute;
    right: 12px;
    top: 14px;
}

#borderModal .tbl > .tbl-row > .tbl-cell .borderEditInnerWrapper
{
    width: 150px;
    margin: auto;
}

#borderModal .dropdown-menu .borderPreview
{
    width: 30px;
    height: 0px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 8px;
}

#borderModal .dropdown-menu .borderPreview-solid
{
    border-top: 2px solid #C3C3C3;
}
#borderModal .dropdown-menu .borderPreview-dotted
{
    border-top: 2px dotted #C3C3C3;
}
#borderModal .dropdown-menu .borderPreview-dashed
{
    border-top: 2px dashed #C3C3C3;
}
#borderModal .dropdown-menu .borderPreview-double
{
    border-top: 3px double #C3C3C3;
}
#borderModal .dropdown-menu .borderPreview-groove
{
    border-top: 5px groove #C3C3C3;
}
#borderModal .dropdown-menu .borderPreview-ridge
{
    border-top: 5px ridge #C3C3C3;
}
#borderModal .dropdown-menu .borderPreview-inset
{
    border-top: 5px inset #C3C3C3;
}
#borderModal .dropdown-menu .borderPreview-outset
{
    border-top: 5px outset #C3C3C3;
}

/* These 3 blocks allow images in carousel to keep ratio and to be centered anyway.
The size of the container must not be changed! */
.modal .carousel .carousel-inner
{
    margin: auto;
    width: 560px;
    height: 315px;
}

.modal .carousel .carousel-inner .item/*,
.stretchItem.carousel .carousel-inner .item*/
{
    width: 100%;
    position: relative;
    height: 0;
    padding: 56.25% 0 0 0;
    overflow: hidden;
    background-color: #888888;
}

.modal .carousel .carousel-inner .item img,
.modal .carousel .carousel-inner .item video,
.stretchItem.carousel .carousel-inner .item img,
.stretchItem.carousel .carousel-inner .item video
{
    position: absolute;
    display: block;
    max-width: 100%;
    max-height: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.modal .tab-pane form > .form-group
{
    margin: 0;
    display: block;
}
/* ------- */

.modal .tab-pane form > .form-group button
{
    width: 110px;
    height: 40px;
    margin-top: 15px;
    margin-left: calc(50% - 55px);
    user-select: none;
}

.modal .modal-subsection button.addImageToCarouselModalView
{
    width: 40px;
    margin-left: calc(50% - 20px);
    user-select: none;
}

#formSettings_modal .modal-dialog
{
    width: 750px;
}

#formSettings_modal .modal-body.tbl
{
    table-layout: fixed;
    width: 100%;
}

/* NOTE: we can't use border-spacing since all 'tbl' markup will receive the property O_o */
#formSettings_modal .modal-body.tbl > .tbl-row > .tbl-cell:nth-child(1)
{
    padding-right: 7px;
}

#formSettings_modal .modal-body.tbl > .tbl-row > .tbl-cell:nth-child(2)
{
    padding-left: 7px;
}

#formSettings_modal .formThemeList
{
    max-height: 500px;
    overflow: auto;
}

#formSettings_modal .list-group-item form textarea,
#formSettings_modal .formPreviewArea form textarea
{
    resize: none;
}

/* ------- */

#onHoverActionModal .modal-body p
{
    font-size: 16px;
}

#onHoverActionModal input[type=number]
{
    border: 1px solid #302683;
}

#onHoverActionModal input#hoverTransitionDelay
{
    margin-left: 15px;
    padding: 4px;
}

#onHoverActionModal p.modalSectionTitle
{
    font-weight: 700;
    width: 100%;
    text-align: center;
}

#onHoverActionModal #hoverSettingsSection
{
    width: calc(100% - 15px);
}

#onHoverActionModal #hoverImagePreview p.spawnText
{
    text-transform: none;
    color: #000000;
    font-size: 14px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem
{
    width: 100%;
    background-color: #DDDDDD;
    height: 40px;
    margin-bottom: 5px;
    padding: 5px;
    transition: height 0.3s ease-in-out;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem.collapsed
{
    height: 70px;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > span
{
    width: 10px;
    height: 10px;
    margin: 10px;
    font-size: 10px;
    transition: transform 0.3s ease-in-out;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem.collapsed > span
{
    transform: rotate(90deg);
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > span:hover
{
    cursor: pointer;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > p
{
    width: calc(100% - 60px);
    line-height: 30px;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    color: #333333;
    text-transform: none;
    padding-left: 10px;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > button
{
    width: 30px;
    height: 30px;
    display: inline-block;
    vertical-align: middle;
    opacity: 1;
    text-shadow: none;
    border-radius: 0;
    padding: 6px;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption
{
    width: 100%;
    height: 30px;
    visibility: hidden;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem.collapsed > .hover_innerOption
{
    visibility: visible;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption > *
{
    display: inline-block;
    vertical-align: middle;
    height: 100%;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption > p
{
    width: 30px;
    line-height: 30px;
    margin: 0;
    text-align: center;
    color: #333333;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption > .leftSpacer
{
    margin-left: 30px;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption > input
{
    opacity: 1;
    text-shadow: none;
    outline: 0;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption > input[type=number]
{
    width: 50px;
    height: 26px;
    margin: 2px auto;
    text-align: center;
    border-right: none;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption > input[type=range]
{
    width: calc(100% - 170px);
    height: 26px;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption .unitArea
{
    color: #FFFFFF;
    background-color: #302683;
    width: 30px;
    height: 26px;
    line-height: 24px;
    margin: 2px auto;
    text-transform: none;
    font-weight: 550;
    font-size: 14px;
    display: inline-block;
    vertical-align: middle;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption.hoverEffect-spawn-text .hoverOptComponent,
#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption.hoverEffect-drop-shadow .hoverOptComponent
{
    width: 26px;
    height: 26px;
    margin: 2px;
    border-radius: 0;
    border: 1px solid #302683;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption.hoverEffect-spawn-text .hoverOptComponent:first-child
{
    margin-left: 0;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption.hoverEffect-drop-shadow .hoverOptComponent:last-child
{
    margin-right: 0;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption.hoverEffect-spawn-text .hoverOptComponent > button,
#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption.hoverEffect-drop-shadow .hoverOptComponent > button
{
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background-color: #FFFFFF;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption.hoverEffect-spawn-text .hoverOptComponent > button span,
#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption.hoverEffect-drop-shadow .hoverOptComponent > button span
{
    width: 14px;
    height: 14px;
    margin: 4px;
    top: 0;
    left: 0;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption.hoverEffect-spawn-text input
{
    width: calc(100% - 90px);
    height: 26px;
    margin: 2px 0 2px 2px;
    padding: 1px 5px;
    border-radius: 0;
    border: 1px solid #302683;
    background-color: #FFFFFF;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption.hoverEffect-spawn-text ul
{
    left: 0;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption.hoverEffect-spawn-text .hoverOptComponent_txt_size ul
{
    width: 110px;
    min-width: 110px;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption.hoverEffect-spawn-text .hoverOptComponent_txt_size ul li:hover
{
    background-color: transparent;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption.hoverEffect-spawn-text .hoverOptComponent_txt_size ul li input
{
    vertical-align: middle;
    border-right: none;
    margin: 2px 0;
    width: calc(100% - 30px);
    text-align: center;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption.hoverEffect-spawn-text .hoverOptComponent_txt_size ul li .unitArea
{
    padding: 0;
    text-align: center;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption.hoverEffect-spawn-text .hoverOptComponent_txt_family ul li
{
    padding-left: 10px;
    font-size: 16px;
    height: 25px;
    line-height: 25px;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption.hoverEffect-drop-shadow .unitArea
{
    margin-right: 8px;
}

#onHoverActionModal #hoverSettingsSection .itemHoverEffectItem > .hover_innerOption.hoverEffect-drop-shadow .hoverOptComponent
{
    margin-left: 1px;
}

#onHoverActionModal .modal-body .dropdown
{
    margin-top: 10px;
}

#onHoverActionModal .modal-body .dropdown button
{
    display: block;
    width: 200px;
    margin: 0 auto;
    padding: 6px 12px;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    opacity: 1;
    text-shadow: none;
}

#onHoverActionModal .modal-body .dropdown ul
{
    width: 200px;
    left: calc(50% - 100px);
    border-radius: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    border: 1px solid #302683;
    padding: 5px;
}

#onHoverActionModal .modal-body .dropdown ul li:hover
{
    cursor: pointer;
    background-color: #C6C6C6;
}

#onHoverActionModal .modal-body .dropdown ul li.zoril-disabled
{
    cursor: not-allowed;
}

#onHoverActionModal .modal-body .dropdown ul li.zoril-disabled p
{
    color: #A3A3A3;
}

#onHoverActionModal .modal-body .dropdown ul p
{
    height: 30px;
    line-height: 30px;
    text-align: left;
    padding-left: 15px;
    margin: 0;
    text-transform: none;
    color: #333333;
}

#onHoverActionModal #hoverImagePreview
{
    width: 250px;
    height: 220px;
    padding-bottom: 15px;
    background-color: #DDDDDD;
}

#onHoverActionModal #hoverImagePreview > div
{
    width: 200px;
    height: 200px;
    margin: auto;
    position: relative;
}

#onHoverActionModal #hoverImagePreview > div p
{
    width: 100%;
    text-align: center;
}

#onHoverActionModal #hoverImagePreview > div img
{
    /*width: 100%; TODO A METTRE UNE FOIS LA PREVIEW FONCTIONNELLE
    height: auto;*/
    width: 200px;
    height: 200px;
    z-index: 30;
    transition: filter 0s ease-in-out;
}

/* ------- */
#carouselItemHandler_modal .carouselItemsContainer
{
    box-sizing: content-box;
    width: 90%;
    min-height: 95px;
    margin: auto;
    padding: 5px;
    padding-bottom: 0;
    border: 2px solid #302683;
}

#carouselItemHandler_modal .carouselItemsContainer .carousel_resultingItem
{
    width: 100%;
    height: 90px;
    margin-bottom: 5px;
    display: flex;
    background-color: #DDDDDD;
}

#carouselItemHandler_modal .carouselItemsContainer .carousel_resultingItem .btn_deleteCarouselItem
{
    width: 30px;
    height: 30px;
    padding: 2px;
    background-color: transparent;
    color: #333;
    border: none;
    margin-top: 30px;
}

#carouselItemHandler_modal .carouselItemsContainer .carousel_resultingItem .carousel_resultingItem_mediaWrapper
{
	width: 140px;
    height: 100%;
    background-color: #CCCCCC;
    margin-right: 5px;
}

#carouselItemHandler_modal .carouselItemsContainer .carousel_resultingItem .carousel_resultingItem_mediaWrapper > img
{
	max-width: 100%;
    max-height: 100%;
	height: auto;
	width: auto\9;
    object-fit: contain;
    /*object-position: center center;*/
}

#carouselItemHandler_modal .carouselItemsContainer .carousel_resultingItem .carousel_resultingItem_txtWrapper > input
{
	width: 100%;
    height: 35px;
    padding: 1px 5px;
    margin-top: 5px;
}

/* inner carousels items */
.stretchItem.carousel .carousel-inner .item
{
    width: 100%;
    height: 100%;
}

/* ------- */

#pageGenerationProcessing h1
{
    width: 100%;
    text-align: center;
    margin: 25px 0;
    font-weight: 500;
    font-family: sans-serif;
    font-size: 36px;
    color: #333;
}

#pageGenerationProcessing #robotsAtWork
{
    /* NOTE: it could have been done by defining the background-image of the body of the page
     * (it would have been better...)*/
    height: calc(100vh - 150px);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* -- Site editor page loading (splash screen) -- */

#body_MainWorkSurface #splashLoadScreen
{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    padding-top: 5%;
    background-color: #FFFFFF;
    background-image: url(/sprites/in_progress.gif);
    background-size: contain;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

#body_MainWorkSurface #splashLoadScreen p
{
    width: 100%;
    text-align: center;
    font-size: 35px;
}

/* -- Progress bar on the edition page -- */

#progressBarBox
{
    position: fixed;
    top: 165px;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    margin: 0;
    transition: height 0.4s ease-in-out;
    background-color: #282828;
    border-spacing: 5px;
}

#progressBarBox.expandedBox
{
    height: auto;
}

#progressBarBox .progress-item
{
    height: 20px;
}

#progressBarBox .progress-item .progress
{
    border-radius: 20px;
}

#progressBarBox .progress-item .progress-bar
{
    min-width: 150px;
}

#progressBarBox .progress-item .progressOptBtn
{
    width: 20px;
    vertical-align: middle;
}

#progressBarBox .progress-item .progressOptBtn > button
{
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid gray;
    border-radius: 50%;
}

/*----*/

#body_MainWorkSurface .background-tile
{
    position: relative;
    z-index: 0;
}

#body_MainWorkSurface .background-tile > .tileSizeSlider
{
    position: absolute;
    left: -40px;
    bottom: -5px;
    width: calc(100% + 80px);
    height: 0;
    padding: 6px 0;
    z-index: 0;
}

#body_MainWorkSurface .background-tile > .tileSizeSlider > div
{
    border-top: 1px dashed blue;
    height: 0;
    width: 100%;
}

#body_MainWorkSurface .background-tile > .tileSizeSlider:hover
{
    cursor: ns-resize;
    z-index: 60;
}

#imgModal_anchor2 .modal-dialog
{
    min-width: 1200px;
}

#imgModal_anchor2 .modal-dialog .modal-subsection.tbl.topTable
{
    table-layout: fixed;
}

#imgModal_anchor2 .modal-dialog .modal-subsection .sectionTitle
{
    text-align: center;
    font-weight: bold;
    font-size: larger;
}

#imgModal_anchor2 .modal-dialog .metaTileContainer
{
    width: 100%;
    height: 520px;
    overflow: auto;
}

#imgModal_anchor2 .modal-dialog .metaTileContainer .metaTileInnerPanel
{
    position: relative;
    height: 500px;
}

#imgModal_anchor2 .modal-dialog .bgTileContainer
{
    position: relative;
    width: 90%;
    margin: auto;
    height: 100%;
    border: 1px solid black;
}

#imgModal_anchor2 .modal-dialog .bgTileSizeChanger
{
    position: absolute;
    height: calc(100% - 10px);
    width: 6px;
    margin-left: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    background-color: #DDDDDD;
    border-radius: 3px;
}

#imgModal_anchor2 .modal-dialog .bgTileSizeChanger > div
{
    position: relative;
    width: 100%;
    height: 100%;
}

#imgModal_anchor2 .modal-dialog .bgTileSizeChanger .slider-btn
{
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: black;
    margin-left: -6px;
}

#imgModal_anchor2 .modal-dialog .bgTileSizeChanger .slider-btn > span
{
    color: #FFFFFF;
    width: 100%;
    height: 100%;
    left: 2px;
}

#imgModal_anchor2 .modal-dialog .bgTileItem
{
    position: relative;
    border: 1px dashed gray;
}

#imgModal_anchor2 .modal-dialog .bgTileItem.selected-tile
{
    border: 2px dashed blue;
}

#imgModal_anchor2 .modal-dialog .bgTileItem div.btn-group
{
    position: absolute;
    top: 0;
    right: 0;
}

#imgModal_anchor2 .modal-dialog .bgTileItem div.btn-group ul button
{
    width: 100%;
}

#onClickActionModal .modal-body p
{
    width: 100%;
    text-align: center;
    font-weight: 400;
    font-size: 16px;
    margin: 0;
    height: 40px;
    line-height: 40px;
}

#onClickActionModal .modal-body .dropdown button
{
    display: block;
    width: 200px;
    margin: 0 auto;
    border-radius: 0;
    padding: 6px 12px;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    opacity: 1;
    text-shadow: none;
}

#onClickActionModal .modal-body .dropdown ul
{
    width: 220px;
    left: calc(50% - 110px);
    border-radius: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    border: 1px solid #302683;
    padding: 5px;
}

#onClickActionModal .modal-body .dropdown ul li:hover
{
    cursor: pointer;
    background-color: #C6C6C6;
}

#onClickActionModal .modal-body .dropdown_http_step2 ul li:last-child:hover
{
    background-color: unset;
}

#onClickActionModal .modal-body .dropdown ul p
{
    height: 30px;
    line-height: 30px;
    text-align: left;
    padding-left: 15px;
}

#onClickActionModal .modal-body .setCustomUrlBlock
{
    padding-top: 5px;
}

#onClickActionModal .modal-body .setCustomUrlBlock input,
#onClickActionModal .modal-body .setCustomUrlBlock button
{
    display: inline-block;
    vertical-align: middle;
    height: 30px;
    border: 1px solid #302683;
    padding: 4px;
}

#onClickActionModal .modal-body .setCustomUrlBlock input
{
    width: calc(100% - 40px);
    border-right: none;
    font-weight: 400;
    font-size: 14px;
    /* NOTE: When displayed in inline-block, line breaks between items cause a little
     * horizontal spacing to appear... We might set a negative margin of 4px to remove it.
     * CSS is so funny...
     * https://css-tricks.com/fighting-the-space-between-inline-block-elements/
     * Actually fixed in the html by removing the line break via a comment
     */
}

#onClickActionModal .modal-body .setCustomUrlBlock button
{
    width: 40px;
}

/* --- */
#responsiveRangeRule
{
    position: absolute;
    left: 0;
    bottom: 23px;
    width: 100%;
    height: 16px;
    background-color: #FFFFFF;
    table-layout: fixed;
}

#responsiveRangeRule div.tbl-cell
{
    position: relative;
}

/* FIXME beaucoup de règles sont identiques à celles de l'autre aside "verticalTreeMenu" */
aside#responsiveOptionMenu
{
    z-index: 105;
    position: fixed;
    right: 0;
    top: 175px;
    height: calc(100% - 185px);
    background-color: white;    /* TODO centraliser avec les règles du back office et celles de l'autre aside "verticalTreeMenu" */
    border: 1px solid black;
}

aside#responsiveOptionMenu #expandableResponsiveMenu
{
    width: 15px;
    height: 100%;
    transition: width .2s ease;
}

aside#responsiveOptionMenu #expandableResponsiveMenu.expanded
{
    width: 250px;
    overflow: auto;
}

aside#responsiveOptionMenu #expandableResponsiveMenu .panelTitle
{
    width: 100%;
    background-color: #302683;
    color: #FFFFFF;
    text-align: center;
}

aside#responsiveOptionMenu #expandableResponsiveMenu #btn_expandPanel
{
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 15px;
    color: black;
    border: 1px solid black;
}

aside#responsiveOptionMenu #expandableResponsiveMenu p.blockTitle
{
    font-weight: bold;
    text-align: center;
}

aside#responsiveOptionMenu #expandableResponsiveMenu p.blockNameInPanel
{
    height: 20px;
}

aside#responsiveOptionMenu #expandableResponsiveMenu .responsiveOptionRange
{
    width: 100%;
}

aside#responsiveOptionMenu #expandableResponsiveMenu .responsiveOptionRange input
{
    width: 50px;
}

/* --- */

/* -- All items used during image crop process -- */

.interfaceLockComponent
{
    position: absolute;
}

.interfaceLock_topLayer
{
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    overflow: hidden;   /* Prevents useless scrollbars */
    z-index: 110;
    background-color: transparent;
}

.interfaceLock_topLayer .interfaceLock_overflowLayer
{
    opacity: 0.5;
    background-color: #000000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.interfaceLock_topLayer .interfaceLock_boundingBox
{
    z-index: 15;
    border: 2px dashed #302683;
}

.interfaceLock_topLayer .interfaceLock_target
{
    z-index: 5;
}

/* --- */

/* FIXME unifier avec les rules client, il y a du code dupliqué !!! FIXME #187 */
/* Forms rules */
form > div.tbl .captcha-img
{
    background-image: url(/sprites/example_captcha.png);
    background-size: contain;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

form > div.tbl .zoril-glyph-icon
{
    font-weight: 500;
    font-size: 16px;
}

/** theme0 **/
form.form-style-theme0 > div.tbl
{
    position: relative;
}

form.form-style-theme0 > div.tbl > div.tbl-row
{
    height: 35px;
}

/* Fix fox inner items whose "display" property can't be set to "table-cell" for an
 * unknown reason... */
form.form-style-theme0 > div.tbl > div.tbl-row:nth-child(3) .tbl-cell
{
    display: inline-block;
}

form.form-style-theme0 > div.tbl input,
form.form-style-theme0 > div.tbl button,
form.form-style-theme0 > div.tbl div.captcha-img
{
    width: 32%;
    border: 1px solid #888888;
    border-radius: 0;
    margin-bottom: 15px;
    vertical-align: top;
}

form.form-style-theme0 > div.tbl input[type=email],
form.form-style-theme0 > div.tbl div.captcha-img
{
    margin: 0 2% 15px;
}

form.form-style-theme0 > div.tbl,
form.form-style-theme0 > div.tbl > div.msgContainer,
form.form-style-theme0 > div.tbl textarea
{
    width: 100%;
    height: 100%;
}

form.form-style-theme0 > div.tbl textarea
{
    border: 1px solid #888888;
    border-radius: 0;
}

form.form-style-theme0 > div.tbl button
{
    background-color: rgb(255, 0, 0);
    color: #FFFFFF;
}

form.form-style-theme0 > div.tbl button.submitBtn
{
    height: 30px;
    margin-top: 15px;
    margin-bottom: 0;
}

/** theme1 **/
form.form-style-theme1 > div.tbl
{
    position: relative;
}

form.form-style-theme1 > div.tbl > div.tbl-row
{
    height: 35px;
}

form.form-style-theme1 > div.tbl div.tbl-cell.captcha_area > *
{
    display: inline-block;
    vertical-align: top;
}

form.form-style-theme1 > div.tbl .captcha_area > button
{
    width: 35px;
}

form.form-style-theme1 > div.tbl .captcha_area > div.captcha-img
{
    width: 33%;
    margin: 0;
}

form.form-style-theme1 > div.tbl .captcha_area > input
{
    width: calc(67% - 43px);
}

form.form-style-theme1 > div.tbl,
form.form-style-theme1 > div.tbl > div.msgContainer,
form.form-style-theme1 > div.tbl textarea
{
    width: 100%;
    height: 100%;
}

form.form-style-theme1 > div.tbl input,
form.form-style-theme1 > div.tbl textarea,
form.form-style-theme1 > div.tbl div.captcha-img
{
    border: 1px solid #D9A863;
    border-radius: 0;
    margin-bottom: 20px;
}

form.form-style-theme1 > div.tbl button
{
    background-color: #D9A863;
    color: #FFFFFF;
    border: 1px solid #D9A863;
    border-radius: 0;
    height: 35px;
}

form.form-style-theme1 > div.tbl button[type=submit]
{
    width: 120px;
    margin-top: 20px;
}

form.form-style-theme1 > div.tbl input::placeholder,
form.form-style-theme1 > div.tbl input:-ms-input-placeholder,   /* IE 10-11*/
form.form-style-theme1 > div.tbl input::-ms-input-placeholder   /* Edge */
{
    color: #717171;
}

/** theme2 **/
form.form-style-theme2 > div.tbl
{
    position: relative;
    table-layout: fixed;
}

form.form-style-theme2 > div.tbl > div.tbl-row
{
    height: 40px;
}

form.form-style-theme2 > div.tbl > div.tbl-row > div.tbl-cell
{
    padding: 0 9px;
}

form.form-style-theme2 > div.tbl > div.tbl-row:nth-child(2)
{
    height: 70px;
}

form.form-style-theme2 > div.tbl > div.tbl-row > .tbl-cell
{
    vertical-align: top;
}

form.form-style-theme2 > div.tbl,
form.form-style-theme2 > div.tbl > div > div.msgContainer,
form.form-style-theme2 > div.tbl textarea
{
    width: 100%;
    height: 100%;
}

form.form-style-theme2 > div.tbl input,
form.form-style-theme2 > div.tbl textarea,
form.form-style-theme2 > div.tbl div.captcha-img
{
    border: 1px solid #12515A;
    border-radius: 0;
    margin-bottom: 20px;
}

form.form-style-theme2 > div.tbl > div.tbl-row > div.tbl-cell .no-margin
{
    margin: 0;
}

form.form-style-theme2 > div.tbl div.tbl-cell.captcha_area > *
{
    display: inline-block;
    vertical-align: top;
}

form.form-style-theme2 > div.tbl .captcha_area > button
{
    width: 34px;
    height: 34px;
}

form.form-style-theme2 > div.tbl .captcha_area > div.captcha-img
{
    width: calc(100% - 38px);
}

form.form-style-theme2 > div.tbl > div.tbl-row.captcha_row > .tbl-cell
{
    padding-top: 20px;
}

form.form-style-theme2 > div.tbl > div.tbl-row.captcha_row > .tbl-cell > *
{
    margin-bottom: 0;
}

form.form-style-theme2 > div.tbl .wrapForSubmitBtn
{
    position: relative;
    width: 200%;
    height: 50px;
}

form.form-style-theme2 > div.tbl button
{
    background-color: #12515A;
    color: #FFFFFF;
    border: 1px solid #12515A;
    border-radius: 0;
}

form.form-style-theme2 > div.tbl .wrapForSubmitBtn button
{
    width: 170px;
    height: 30px;
    margin-top: 20px;
    position: absolute;
    left: calc(50% - 85px);
}

