* {
    box-sizing: border-box;
}

html, body {
    padding: 0;
    margin: 0;
    font-family: 'PT SANS', Helvetica;
    font-size: 16px;
}

a {
    color: #2c496c;
    text-decoration: none;
}
a:hover {
    color: #ff0000;
}
._confirm {
    display: none;
}
.top-menu {
    margin: 10px 0;
}
.top-menu ul {
    list-style: none;
    margin:0;
    padding: 0;
    display: flex;
}
.top-menu ul li {
    margin-right: 10px;
}
.top-menu a {
    background: #aaa;
    color: #fff;
    padding: 6px 8px;
    margin: 3px 3px 10px 0;
    border: 0;
    cursor: pointer;
    border-radius: 3px;
    font: 400 13.3333px Arial;
    display: inline-block;
    text-decoration: none;

}
.top-menu a:hover {
    background: #444;
}
.top-menu a.active {
    background: #444;
}

.unload-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9994;
    overflow: hidden;
    background: #FFF;
    opacity: 0.5;
    text-align: center;
    display: flex;
    justify-content: center;

    }
    .unload-overlay:after {
        content: "\f110";
        align-content: center;
        font:normal normal normal 30px FontAwesome;
        font-size:100px;
        text-rendering:auto;
        -webkit-font-smoothing:antialiased;
        -moz-osx-font-smoothing:grayscale;
        animation: spin 1s linear infinite;
    }
    @keyframes spin {
        from {
            transform: rotate(0deg);
        }
        to {
            transform: rotate(360deg);
        }
    }

.filter-buttons {
    display: flex;
    align-self: end;
}
.filter-buttons button, .filter-buttons a{
    margin-left: 5px;
    font-size: 1.2em;
}

table.crud {
    width:100%;
    border-collapse:collapse;
    margin: 20px 0;
}
table.crud th {
    border:1px solid #969696;
    font-weight:bold;
    background:#ccc;
    text-align:left;
    padding: 8px 10px;
}
table.crud tr.selected td {
    /*box-shadow: 0 0 3px #ff0000 inset;*/
    background: #969696!important;;
}

table.crud tr:hover td {
    background-color:#bbb;
}

table.crud tr:nth-child(even):hover td {
    background-color: #bbb;
}

table.crud td {
    border:1px solid #969696;
    background:#fff;
    text-align:left;
    padding: 8px 10px;
}
table.crud tr:nth-child(even) td {
    background-color: #F3F3F3;
}
table.crud tr.deleted td {
    color: gray;
}

.crud .sorted-asc:after {
    content: '↓';
    position: absolute;
    padding-left: 5px;
}
.crud .sorted-desc:after {
    content: '↑';
    position: absolute;
    padding-left: 5px;
}
.crud .sorted-asc:hover:after {
    content: '↑';
    position: absolute;
    padding-left: 5px;
}
.crud-sortable {
    cursor: pointer;
}
.crud-sortable:hover:after {
    content: '↓';
    position: absolute;
    padding-left: 5px;
}
.inlineCell {
    width: 36px;
    cursor: pointer;
}
.inlineCell:after {
    content: "\f096";
    align-content: center;
    font:normal normal normal 16px FontAwesome;
    text-rendering:auto;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

.inlineCell.checked:after {
    content: "\f046";
}

#inlineBar {
    display: none;
    position: fixed;
    top:0;
    left: 0;
    background: #edf2fa;
    border-bottom: 1px solid #ddd;
    width: 100%;
    height: 50px;
    z-index: 9994;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0 20px;
    }
    #inlineBar button {
        display: inline-block;
        margin-right: 20px;
    }


.col-1, .col-2, .col-3, col-4 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    }
    .col-1>div {
        flex-basis: 100%;
    }
    .col-2>div {
        flex-basis: 48%;
    }
    .col-3>div {
        flex-basis: 31%;
    }
    .col-4>div {
        flex-basis: 24%;
    }

form .form-item {
    margin: 15px 0;
    }
    form .form-item b {
        font-weight: normal;
    }
    form .form-item-checkbox {
        display: flex;
        }
        form .form-item-checkbox b {
            margin-right: 10px;
             }
form .form-item.required b:after {
    content: '*';
    color: red;
}
.filter {
    margin: 20px 0;
}
.filter form ul {
    list-style: none;
    margin:0;
    padding:0;
}
.filter form li {
    margin: 15px 0;
}
.filter form {
    display: flex;
    justify-content: left;
    align-self: end;
    flex-wrap: wrap;

}
.filter .form-item {
    align-content: flex-end;
    margin-right: 20px;
    margin-top: 10px;

}
.filter .form-item-select.form-item-boolean .input-box{
    width: 70px;
}

.filter .form-item-id .input-box{
    width: 57px;
}

.filter .form-item label {
    display: flex;
    flex-direction: column;
}

.filter .form-item b {
    font-weight: normal;
}
.filter .form-item .input-box {
    display: flex;
    flex-grow: 1;
    align-items: end;
}

.filter form .form-item-checkbox {
    display: inline-block;
}

.field-wrap {
    display: flex;
    flex-grow: 1;
    padding: 3px;
    background: #FFF;
    border: 1px solid #969696;
    box-shadow: 0 1px 2px #ddd inset;
    border-radius: 3px;

}
.input-box .mdash {

}
.input-box .mdash:before {
    content: '—';
    line-height: 28px;
    margin: 0 5px;
}
.field-wrap input[type="text"], .field-wrap input[type="email"], .field-wrap input[type="password"], .field-wrap input[type="file"], .field-wrap textarea, .field-wrap select {
    padding:0;
    border:0;
    width: 100%;
    /*display: block;*/
    display: inline-block;
    height: 100%;
    margin:0;
    font-size: 0.9em;
    line-height: 1em;
    outline: none;
}

.filter .input-box-period .field-wrap {
    min-width: 100px;
    width: 100px;
}

.filter .field-wrap {
    min-height: 26px;
    width: 240px;
}

.field-wrap input, .field-wrap select {
    display: inline-block;
    width: 100%;
    height: 100%;
}
.field-wrap-checkbox {
    display: flex;
    align-content: end;
}
.field-wrap-checkbox input[type="checkbox"] {
    width: 28px;
    height: 28px;
    margin:0;
}

form .form-item.required label>span:first-child:after {
    content: '*';
    color: #D90F00;
    font-weight: bold;
}

a.button, button {
    display: inline-block;
    height: 29px;
    border: 0;
    padding: 3px 15px;
    border-radius: 3px;
    background: #000;
    color: #FFF;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.3em;
}

.buttons {
    display: flex;
    justify-content: right;
}
.buttons .button, .buttons button {
    margin-left: 20px;
}

button.gray, .button.gray {
    background: #aaa;
}
a.button:hover, button:hover {
    background: red;
}

input[readonly="readonly"] {
    color: #777;
    cursor: default;
}



/*=== datetimepicker start ===*/
#ui-datepicker-div {
    font-size: 14px;
}
.ui-timepicker-div {
    font-size: 0.8em;
}
.ui-timepicker-div .ui-widget-header { margin-bottom: 8px}
.ui-timepicker-div dl { text-align: left; }
.ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; }
.ui-timepicker-div dl dd { margin: 0 10px 10px 65px; }
.ui-timepicker-div td { font-size: 90%; }
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }

.ui-timepicker-rtl{ direction: rtl; }
.ui-timepicker-rtl dl { text-align: right; }
.ui-timepicker-rtl dl dd { margin: 0 65px 10px 10px; }
/*=== datetimepicker end ===*/

/*== paging start ===*/
.paging {
    width: 100%;
    margin: 20px 0;
}
.paging a, .paging span {
    padding: 2px 6px;
    margin: 0 4px 0 0;
    height: 23px;
    line-height: 22px;
    background-color: white;
    color: gray;
    border: solid 1px #969696;
    text-align: center;
    text-decoration: none;
}
.paging span {
    font-weight: bold;
    color:#000;
}
.paging a:hover {
    color: #FFF;
    background: #969696;
}
/*=== paging end  ===*/


.error-box {
    background-color: #FFC0CB;
    border:1px solid maroon;
    border-radius: 5px 5px 5px 5px;
    box-shadow: 0 1px 1px #FFFFFF inset;
    margin: 0.5em 0 1.3em;
    padding: 10px 10px 10px 25px;
}
.success-box {
    background-color: #EBF8A4;
    border:1px solid #A2D246;
    border-radius: 5px 5px 5px 5px;
    box-shadow: 0 1px 1px #FFFFFF inset;
    margin: 0.5em 0 1.3em;
    padding: 10px 10px 10px 25px;
}

.info-box {
    border:1px solid #bbbe77;
    background: #f6f8c5;
    border-radius: 5px 5px 5px 5px;
    box-shadow: 0 1px 1px #FFFFFF inset;
    padding:8px;
}

.debug {
    margin-top: 50px;
    padding: 20px;
    background: #eee;
}