h1 {
    margin: 0 0 20px 0;
    font-size: 33px;
    font-weight: normal;
}

.clearing {
    clear: both;
}

table.crud {
    width:100%;
    border-collapse:collapse;
}
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 td {
    border:1px solid #969696;
    background:#fff;
    text-align:left;
    padding: 8px 10px;
}
table.crud tr:nth-child(even) td {
    background-color: #F3F3F3;
}

.module-block .crudTable table.crud .silent td,
table.crud .silent td {
    background:#E0FFE0;
}

.module-block .crudTable table.crud tr.silent:nth-child(even) td,
table.crud tr.silent:nth-child(even) td {
    background-color: #D8FFD8;
}

.module-block .crudTable table.crud .academ_debt td,
table.crud .academ_debt td {
    background:#FFFFD0;
}

.module-block .crudTable table.crud tr.academ_debt:nth-child(even) td,
table.crud tr.academ_debt:nth-child(even) td {
    background-color: #FFFFC0;
}

.module-block .crudTable table.crud .documents_debt td,
table.crud .documents_debt td {
    background:#B0B0FF;
}

.module-block .crudTable table.crud tr.documents_debt:nth-child(even) td,
table.crud tr.documents_debt:nth-child(even) td {
    background-color: #A0A0FF;
}

.module-block .crudTable table.crud .inactive_session td,
table.crud .inactive_session td {
    background:#FFD090;
}

.module-block .crudTable table.crud tr.inactive_session:nth-child(even) td,
table.crud tr.inactive_session:nth-child(even) td {
    background-color: #FFD080;
}

.module-block .crudTable table.crud .inactive td,
table.crud .inactive td {
    background:#FFB0FF;
}

.module-block .crudTable table.crud tr.inactive:nth-child(even) td,
table.crud tr.inactive:nth-child(even) td {
    background-color: #FFA0FF;
}
.inline_block{
    float: left;
    margin: 0px 12px;
}
.clearfix{
    clear: both;
}
.module-block .crudTable table.crud .finance_debt td,
table.crud .finance_debt td {
    background:#FFB0B0;
}
.module-block .crudTable table.crud tr.finance_debt:nth-child(even) td,
table.crud tr.finance_debt:nth-child(even) td {
    background-color: #FFB0B0;
}

table.crud tr:hover td {
    background-color:#bbb;
}

table.crud tr:nth-child(even):hover td {
    background-color: #bbb;
}

table.crud td a:hover {
    color: red;
}

.crud-sortable {
    cursor: pointer;
}
.crud-sortable:first-letter, th[sort]:first-letter {
    color: red;
}
.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:hover:after {
    content: '↓';
    position: absolute;
    padding-left: 5px;
}

span.checkbox {
    display: inline-block;
    width: 13px;
    height: 13px;
    line-height: 13px;
    border: 1px solid #ccc;
    text-align: center;
    cursor: default;
}
span.checkbox.checked:after {
    content: '✔';
}

span.checkbox.disabled {
    border:0;
    width: 16px;
    height: 16px;
    background: none;
}

._popup {
    visibility: hidden;
}

form {

}
form ul {
    list-style: none;
    margin:0;
    padding:0;
}
form li {
    margin: 15px 0;
}
.field-wrap {
    display: block;
    padding: 3px;
    background: #FFF;
    border: 1px solid #969696;
    box-shadow: 0 1px 2px #ddd inset;
    border-radius: 3px;
}
.field-wrap input[type="text"], .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;
}

.field-wrap-box {
    width: 160px;
}

.form-item-box{
    margin-top: 20px;
}

form p.required label>span:first-child:after {
    content: '*';
    color: #D90F00;
    font-weight: bold;
}
input[readonly="readonly"] {
    color: #777;
    cursor: default;
}

/********* diagrams ********************/
#graph.graph{
  border: 0px dashed #709F5C;
  padding: 5px;
}
#graph .graphPart{
  margin: 0px;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  padding: 0px;
  border-radius: 0px;  
  background-color: #00508C;
  box-shadow: 0 0 1px #2280AC;
}
#graph .graphPart:hover{
  background-color: #2280AC;  
  box-shadow: 0 0 2px #2280AC;
}
   
#graph.horizontal{
  width: 500px;
}
#graph.horizontal .graphPart{
  height: 20px;
  text-align: center;
  float: left;
}

#graph .contact_part{
    background-color: #AA22BB;
}
#graph .person_part{
    background-color: #2244BB;
}
#graph .visit_part{
    background-color: #22CC11;
}
#graph .academ_part{
    background-color: #CCCC22;
}
#graph .finance_part{
    background-color: #CC3333;
}
/********* end diagrams ****************/

/********* CRUD POPUP ******************/

.popup-box {
    position: fixed;
    width: 1000px;
    height: 100%;
    background: #FFF;
    box-shadow: 0 10px 10px #000;
    top: 0;
    left: calc(50% - 500px);
    z-index: 9995;
}
@media screen and (max-width: 1000px) {
    .popup-box {
        width: 100%;
        left: 0;
    }
}
.popup-content {
    width: 100%;
    height: 100%;
}
.popup-close-button {
    position: absolute;
    right: 25px;
    top: 5px;
    cursor: pointer;
}

.popup-close-button:hover {
    color: red;
}

.popup-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.popup-overlay {
    position:fixed;
    width:100%;
    height:100%;
    top:0;
    left:0;
    z-index:9994;
    overflow:hidden;
    background: #FFF;
    opacity: 0.5;

}

.popup-loader:before {
    display: inline-block;
    font: normal normal normal 35px/1 FontAwesome;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f110";
    -webkit-animation: fa-spin 2s infinite linear;
    animation: fa-spin 2s infinite linear;
}

.popup-box .close-button {
    width: 12px;
    height: 12px;
    background: black;
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
}

/********* END CRUD POPUP ******************/

.empty-content {
    margin: 40px 20px 20px 20px;
}

.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;
}

.form input[type="submit"], .form input[type="button"] {
    color: #FFF;
    padding: 8px 12px;
    background: #000;
    border: 0;
    cursor: pointer;
    border-radius: 3px;
    }
    .form input[type="submit"]:hover, .form input[type="button"]:hover {
        background: red;
    }

.add-button {
    color: #FFF;
    display: block;
    float: right;
    padding: 8px 12px;
    background: #000;
    margin: 20px 0 20px 20px;
    border-radius: 3px;
    cursor: pointer;
    }
    .add-button:hover {
        background: red;
    }

.button {
    color: #FFF;
    display: inline-block;
    padding: 8px 12px;
    background: #000;
    margin: 0;
    border-radius: 3px;
    cursor: pointer;
}
.button:hover {
    background: red;
}

.filter {
    width: 100%;
}
.filter-button {

    }
.form input.filter-reset {
    background: #aaa;
    }
    .form input.filter-reset:hover {
        background: red;
    }

.form input.gray-button {
    background: #aaa;
}
.form input.gray-button:hover {
    background: red;
}

/*== form tabs start ==*/
.form-tabs {
    border-bottom: 1px solid #969696;
}
.form-tabs ul {
    list-style: none;
    margin:0;
    padding:0;
    font-size: 1.2em;
    width: 100%;
}
.form-tabs li {
    display: block;
    float: left;
    border: 1px solid #969696;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    padding: 10px;
    margin:0 10px -1px 0;
    cursor: pointer;
    background: #eee;
    box-shadow: 0 1px 2px #ddd inset;
}
.form-tabs li.active {
    border-bottom: 1px solid #FFF;
}
.form-tabs li.active, .form-tabs li:hover {
    background: none;
}
/*== form tabs end ==*/

/*== paging start ===*/
.paging {
    width: 100%;
    margin: 20px 0;
}
.paging a, .paging span {
    padding: 6px 8px;
    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  ===*/

/*=== 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 ===*/

/*=== searchdropdown start ===*/
.search-dropdown {
    position: relative;
    display: inline-block;
}
.search-dropdown .input-wrap {
    position: relative;
    display: inline;
}
.search-dropdown input {
    padding: 5px 30px 5px 10px;
    border: 1px solid #969696;
    box-shadow: 0px 0px 10px #ccc inset;
    font-size: 1.2em;
}
.search-dropdown .close-button {
    cursor: pointer;
    position: absolute;
    z-index: 2;
    right: 0;
    top: 0;
    text-align: center;
    width: 30px;
}
.search-dropdown .close-button:hover {
    color: red;
}
.search-dropdown .list-dd {
    position: absolute;
    z-index: 2;
    margin-top: -1px;
}

.search-dropdown .loader {
    font-size: 3em;
    margin: 5px 0 0 0;
}

.search-dropdown .list-dd ul {
    margin:0;
    padding:0;
    list-style: none;
    display: block;
    border: 1px solid #969696;
    border-top: 0;
    background: #efefef;
    box-shadow: 0 4px 10px #ccc inset;

}
.search-dropdown .list-dd li {
    display: block;
    margin:0;
    padding: 5px 10px;
    border-top: 1px solid #969696;
    cursor: pointer;
    background: #efefef;
    box-shadow: 0 4px 10px #ccc inset;
}
.search-dropdown .list-dd li:hover {
    background: #ddd;
}

/*=== searchdropdown end ===*/

.loader {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-animation: fa-spin 2s infinite linear;
    animation: fa-spin 2s infinite linear;
}