/* PROJECT SHARED TEMPLATE STYLE SHEET DEFINITIONS */

/* clear all */
*
{
    font-size: 15px;
    font-family: Verdana,Geneva,sans-serif;
    background-color: transparent;
    padding: 0px;
    margin: 0px;
    border-collapse: collapse;
    text-decoration: none;
    list-style: none;
    text-align: justify;
}

strong
{
    font-weight: bold;
}

em
{
    font-style: italic;
}

a
{
    color: #0a3e87;
}

    a:not(.button):not(.ui-tabs-anchor):hover
    {
        color: #ffa820;
    }

.cleared
{
    clear: both;
}

body
{
    height: 100%;
    width: 100%;
    position: absolute;
}

/* Layout */
#header
{
    width: 100%;
}

    #header .main-part
    {
        padding: 0px 6px 4px 6px;
        height: 45px;
    }

    #header .secondary-part
    {
        padding: 2px 4px 0px 4px;
        border: 0px;
        height: 34px;
    }

    #header .main-part .company
    {
        display: inline-block;
        position: absolute;
        top: 6px;
        height: 33px;
        width: 124px;
        background-image: url(../Images/MericaLogo.jpeg);
        background-repeat: no-repeat;
    }

    #header .main-part #application-wrapper
    {
        position: absolute;
        left: 120px;
        top: 1px;
        display: inline-block;
        padding-left: 35px;
    }

    #header .main-part .application
    {
        color: #ffa820;
        font-size: 37px;
        margin-right: 20px;
        float: left;
    }

    #header .main-part .module
    {
        padding-top: 12px;
        margin-right: 20px;
        float: left;
    }

    #header .main-part .module .module-name
    {
        color: #9b9b9b;
        font-size: 21px;
    }

    #header .main-part .deployment-environment
    {
        padding-top: 17px;
        float: left;
    }

    #header .main-part .deployment-environment .deployment-environment-name
    {
        font-size: 15px;
    }

    #header .main-part #customer-logo-wrapper
    {
        float:right;
        padding-right:20px;
        padding-top: 1px;
    }

    #header .main-part .language-selection
    {
        margin-top: 13px;
        float: right;
    }

        #header .main-part .language-selection a
        {
            display: block;
            width: 16px;
            height: 16px;
            float: right;
            margin-right: 5px;
        }

        #header .main-part .language-selection .cs
        {
            background-image: url("../Images/MericaIconPack/16x16/flag_czech_republic.png");
        }

        #header .main-part .language-selection .en
        {
            background-image: url("../Images/MericaIconPack/16x16/flag_great_britain.png");
        }

    #header .main-part .login
    {
        padding-left: 20px;
        margin-top: 13px;
        float: right;
    }

        #header .main-part .login a
        {
            padding-left: 35px;
        }

    #header .secondary-part .ui-selectmenu-button, #header .secondary-part .button
    {
        height: 30px;
        margin-right: 2px;
    }

    #header .secondary-part form, #header .secondary-part .functional-pane .button
    {
        display: block;
    }

    #header .secondary-part .functional-pane,
    #header .secondary-part .functional-pane form,
    #header .secondary-part .functional-pane .button
    {
        float: left;
    }

    #header .secondary-part .configuration-pane,
    #header .secondary-part .configuration-pane form,
    #header .secondary-part .configuration-pane .button
    {
        float: right;
    }

#content
{
    position: absolute;
    top: 86px;
    bottom: 32px;
    width: 100%;
}

    #content > .inner
    {
        position: absolute;
        top: 6px;
        left: 6px;
        bottom: 6px;
        right: 6px;
    }

#footer
{
    height: 25px;
    width: 100%;
    text-align: center;
    padding-top: 7px;
    position: absolute;
    bottom: 0px;
    color: #000000;
    font-weight: normal;
    border: 0px;
}

    #footer .footer-part
    {
        padding-right: 6px;
        padding-left: 6px;
    }

        #footer .footer-part.copy
        {
            float: left;
            color: #fff;
            text-shadow: 0 0 10px #0a3e87;
        }

@media all and (max-width: 1000px)
{
    #header .main-part .application
    {
        display: none;
    }

    #header .main-part .module
    {
        display: none;
    }
}

@media all and (max-width: 800px)
{
    body
    {
        width: 800px;
    }

    #content, #header, #footer
    {
        width: 800px;
    }
}

@media all and (max-height: 600px)
{
    body
    {
        height: 600px;
    }

    #content
    {
        height: 482px;
    }

    #footer
    {
        top: 568px;
    }
}

/* FABRIO SPECIFIC STYLE SHEET DEFINITIONS */

/* Header */
#header .secondary-part .functional-pane select
{
    width: 170px;
}

#header .configuration-pane .button span
{
    padding-top: 3px;
}

#content .inner .inner-wrapper
{
    overflow: auto;
}

#content .inner #frame-holder, #content .inner .inner-wrapper
{
    width: 100%;
    height: 100%;
}

#content .inner .inner-frame-wrapper
{
    width: 100%;
    height: 100%;
    overflow-x: scroll;
}

/* Content */
.data-panes .ui-tabs-panel
{
    /* decrease by height of pane selection */
    height: calc(100% - 37px);
}

#content .data-panes
{
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0px;
}

.data-pane-sheet, .data-pane-gantt
{
    height: 100%;
}

/*
    Typically, jobs board header is in one div along with spreadsheet. To have correct height of the header and
    spreadsheet, set a fixed height on the jobs-board-header element and then subtract this height from the calculated
    100% of the spreadsheet element. E.g., if the fixed height of a jobs board header is 25px, then set the height of
    the spreadsheet element to calc(100% - 25px);
*/
.jobs-board-header
{
    padding-left: 5px;
    padding-right: 5px;
}

.jobs-board-message
{
    text-align: center;
    font-weight: bold;
    color: green;
}

.jobs-board-note
{
    text-align: center;
    font-weight: bold;
    color: red;
}

.jobs-board-header-cell
{
    font-size: smaller;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    /* Gantt data pane */
    .data-pane-gantt .gantt-holder
    {
        height: calc(100% - 50px);
        position: relative;
    }

    .data-pane-gantt .panel
    {
        margin-bottom: 8px;
        border: #000 solid 1px;
        padding: 4px;
    }

        .data-pane-gantt .panel .workstation-groups
        {
            border-right: 1px solid #0a3e87;
            width: auto;
            padding-right: 4px;
            margin-right: 4px;
        }

        .data-pane-gantt .panel .workstation-groups,
        .data-pane-gantt .panel .tasks-filter
        {
            display: inline-block;
        }

            .data-pane-gantt .panel .tasks-filter .label
            {
                display: inline-block;
                height: 28px;
                margin-right: 4px;
                padding-top: 4px;
            }

            .data-pane-gantt .panel .tasks-filter div.tasks-filter-holder
            {
                display: inline-block;
                width: 180px;
                height: 28px;
                margin-right: 8px;
            }

                .data-pane-gantt .panel .tasks-filter div.tasks-filter-holder input
                {
                    border: #0a3e87 solid 1px;
                    height: 22px;
                    width: 100%;
                    display: inline-block;
                    position: relative;
                    top: 2px;
                }

            .data-pane-gantt .panel .tasks-filter div.button-holder
            {
                display: inline-block;
                width: 84px;
                height: 30px;
            }

    .data-pane-gantt button
    {
        height: 32px;
    }

    .data-pane-gantt label
    {
        height: 28px;
    }

    .data-pane-gantt .panel label .ui-button-text
    {
        padding-top: 0.4em;
    }

    .data-pane-gantt .mark-job-name
    {
        opacity: 0.15;
    }

.gantt-late-job .inner
{
    box-shadow: 0 -3px 0 #ff6633;
}

/* Footer */
#footer .footer-part.status, #footer .footer-part.notifications, #footer .footer-part.kpi
{
    color: #fff;
    text-shadow: 0 0 10px #0a3e87;
    float: right;
    text-align: right;
    padding-left: 35px;
}

/* Responsive layout */
@media all and (max-width: 1200px)
{
    #footer .footer-part.kpi
    {
        display: none;
    }
}

@media all and (max-width: 1000px)
{
    #footer .footer-part.notifications
    {
        display: none;
    }
}

/* Jquery ui styles changes */

.ui-tabs-nav.ui-widget-header li
{
    height: 31px;
}

    .ui-tabs-nav.ui-widget-header li a
    {
        height: 16px;
    }

.ui-tabs .ui-tabs-panel
{
    padding: 4px 0 0 0;
}

/* Repaires bug, that width of panel is set to fixed value by jquery ui when content is recieved by ajax */
.ui-tabs-panel > div
{
    width: 100% !important;
}

/* Content viewer styles changes */
.content-viewer .vertical-scroll-wrapper
{
    opacity: 0.8;
}

/* SP overrides */
.spg-controls
{
    float: left;
}

.spg-ribbon-section-title, .spg-menubar
{
    display: none !important;
}

.spg-ribbon-section, .spg-ribbon-section-content
{
    height: 30px !important;
}

.spg-ui-grid-cell
{
    padding-right: 2px;
}

.spg-editrow
{
    display: inline-block;
    width: auto;
    height: auto;
    padding: 0;
    padding-bottom: 4px;
    float: left;
}

    .spg-editrow input
    {
        border: 1px solid #000;
        height: 28px;
        margin-right: 2px;
    }

    .spg-editrow .spg-editrow-valuefield
    {
        width: 350px;
    }

.spg-ribbon
{
    display: inline-block;
    width: auto;
    float: left;
    padding-right: 4px;
    padding-bottom: 4px;
}

.spg-ui-grid
{
    padding-right: 2px;
}

.spg-ribbon-section
{
    border-style: none;
}

.spg-spreadsheet
{
    clear: both;
}

#gui-copy-wrap
{
    display: none;
}

.spg button
{
    white-space: nowrap;
}

    .spg button span span
    {
        font-size: 14px !important;
    }

/* Frame overrides */
.ui-frame-holder, .ui-frame-item
{
    border: 0px;
}

.ui-frame-separator
{
    /* HOTFIX: large z index overlays frame separators over global dialogs. */
    /*z-index: 9999;*/
}

.overlay
{
    z-index: 10000;
    background-color: #dfedff !important;
    color: #ff6633 !important;
}

.spg-ui-input[type="text"]
{
    border: 1px solid #000;
    height: 17px;
    padding: 2px;
}

/* forms */
form
{
    margin-bottom: 8px;
}

    form td
    {
        padding: 4px;
    }

    form input
    {
        border: #000 solid 1px;
        padding: 2px;
        height: 19px;
    }

    form select
    {
        width: 200px;
        border: #000 solid 1px;
        height: 25px;
    }

    form fieldset legend
    {
        font-weight: bold;
    }

    form .field-validation-error, form .validation-summary-errors
    {
        color: #ff6633;
        padding-bottom: 5px;
    }

    form .description
    {
        font-weight: bold;
        margin-bottom: 10px;
        color: #ff6633;
    }

    form .button
    {
        height: 32px;
        font-size: 15px;
    }

.vertical-align-middle
{
    vertical-align: middle;
}

.shift-work-week fieldset
{
    border: 1px solid #000;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 10px 10px 15px 10px;
}

.shift-work-week .week-length,
.shift-work-week .shift-counts,
.shift-work-week .valid-from,
.shift-work-week .resource-type
{
    float: left;
}

.shift-work-week .resource-type,
.shift-work-week .week-length
{
    width: 315px;
}

    .shift-work-week .week-length fieldset,
    .shift-work-week .shift-counts fieldset
    {
        height: 120px;
    }

    .shift-work-week .valid-from fieldset,
    .shift-work-week .resource-type fieldset
    {
        height: 45px;
    }

.shift-work-week .valid-from fieldset,
.shift-work-week .shift-counts fieldset
{
    width: 250px;
}

.shift-work-week .resource-type select
{
    width: 200px;
}

.shift-work-week .week-length select
{
    width: 80px;
}

.shift-work-week .shift-counts input
{
    width: 50px;
}

.login
{
    display: block;
    margin: 10px;
}

    .login .button
    {
        float: right;
    }

.import-data input[type="file"]
{
    height: 30px;
    width: 350px;
}

.import-data tr
{
    height: 40px;
}

.import-data input[type="checkbox"]
{
    height: 18px;
    width: 18px;
    position: relative;
    top: 2px;
}

.message-input
{
    width: 530px;
}

.depricated a
{
    color: #9b9b9b;
    text-decoration: line-through;
}

.contextMenuContainer
{
    width: 260px !important;
}

/* Task animation on selected */
.chartPart .task .innerSelected
{
    animation: taskPulse 750ms ease infinite;
    z-index: 1;
}

@keyframes taskPulse
{
    0%
    {
        transform: scaleY(1);
    }

    50%
    {
        transform: scaleY(0.9);
    }

    100%
    {
        transform: scaleY(1);
    }
}

.sysadmin table
{
    border-collapse: collapse;
}

.sysadmin table, .sysadmin tr, .sysadmin th, .sysadmin td
{
    border: 1px solid #000;
}

.sysadmin th, .sysadmin td
{
    padding: 5px 15px;
}

    .sysadmin td.bool:not(:empty)
    {
        background: #00ff00;
    }

    .sysadmin td.bool:empty
    {
        background: #ff6633;
    }

/* FIX for IE: problem when child in flex has basis flex and parent has width/height auto -> child does not get the
    height. This problem occurs in spreadsheet filter dialog: the content overflows the filter dialog. By manually
    setting the height of the filter dialog content, the content scales correctly. */
.dialog-filter-values
{
    height: 400px;
}

.create-task-report
{
    padding: 15px;
    width: 100%;
    height: 100%;
    position: absolute;
}

    .create-task-report td,
    .create-task-report th
    {
        font-size: 25px;
    }

    .create-task-report .button span
    {
        font-size: 20px;
    }

    .create-task-report .important
    {
        font-weight: bold;
    }

    .create-task-report .label
    {
        text-align: right;
        padding-bottom: 5px;
    }

    .create-task-report .text
    {
        text-align: left;
        padding-left: 10px;
        padding-bottom: 5px;
    }

        .create-task-report .text span
        {
            font-size: 20px;
            padding-left: 10px;
        }

    .create-task-report input
    {
        border: 1px solid #000;
        padding: 5px;
    }

    .create-task-report .button
    {
        height: 42px;
        margin-right: 5px;
        margin-top: 5px;
    }

    .create-task-report .task-report-button
    {
        float: left;
    }

    .create-task-report .report-list thead
    {
        border-bottom: 1px solid black;
    }

    .create-task-report .report-list td:not(:first-child)
    {
        text-align: right;
        font-size: 25px;
        padding-right: 5px;
        padding-left: 5px;
        padding-bottom: 5px;
        border-left: 1px solid black;
    }

    .create-task-report input, .create-task-report select
    {
        font-size: 25px;
    }

#side-work-report .column-label
{
    width: 160px;
}

#side-work-report .selected-employee
{
    width: 248px;
    margin-bottom: 10px;
}

#side-work-report .external-id-task
{
    width: 250px;
    height: 27px;
}

#side-work-report .selected-time
{
    width: 250px;
    height: 27px
}

#side-work-report .time-buttons, #side-work-report .task-buttons
{
    text-align: left;
}

    #side-work-report .time-buttons label, #side-work-report .task-buttons label
    {
        margin-right: 5px;
        margin-bottom: 10px;
    }

#side-work-report .completed-task-table
{
    height: 150px;
    overflow-y: scroll;
}