﻿.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}



/* MODAL */
.modal-stretched-content,
.modal-centered-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;    
    animation-name: showModalAnimation;
    animation-duration: 1s;
    -moz-animation-name: showModalAnimation;
    -moz-animation-duration: 1s;
    -o-animation-name: showModalAnimation;
    -o-animation-duration: 1s;
    -webkit-animation-name: showModalAnimation;
    -webkit-animation-duration: 1s;
    z-index: 1;
}
 
@keyframes showModalAnimation {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes showModalAnimation {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-moz-keyframes showModalAnimation {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-o-keyframes showModalAnimation {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-stretched-content .modal-inner,
.modal-centered-content .modal-inner { 
    border-radius: 5px;      
    position: fixed;    
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.modal-stretched-content .modal-inner-header,
.modal-centered-content .modal-inner-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start; /* align items in Main Axis */
    align-items: stretch; /* align items in Cross Axis */
    align-content: stretch; /* Extra space in Cross Axis */
}


.modal-stretched-content .modal-inner-header span,
.modal-centered-content .modal-inner-header span {
    line-height: 2em;
}

.modal-stretched-content .modal-inner-header-icon,
.modal-centered-content .modal-inner-header-icon {
    padding-left: 10px;
    padding-top: 15px;
}

.modal-stretched-content .modal-inner-header-title,
.modal-centered-content .modal-inner-header-title {
    padding: 0 15px;
    font-size: 1.5em;
}

.modal-stretched-content .modal-inner-header-actions,
.modal-centered-content .modal-inner-header-actions {    
    text-align: right;
    padding: 0 15px;
    flex-grow: 1;
}

.modal-stretched-content .modal-inner-header-actions a,
.modal-centered-content .modal-inner-header-actions a {
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    padding-top: 5px;
    margin-top: 8px;
}

.modal-stretched-content .modal-inner-content,
.modal-centered-content .modal-inner-content {    
    overflow: hidden;
    overflow-y: auto;    
}
/* END MODAL */

/* PROCESS MODAL */
.process-modal {
    display: flex;
    flex-direction: column;
    justify-content: center; /* align items in Main Axis */
    align-items: stretch; /* align items in Cross Axis */
    align-content: stretch; /* Extra space in Cross Axis */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;    
    margin: 5px;
    border-radius: 5px;    
}

    .process-modal .process-modal-inner {                
        overflow: hidden;        
        max-height: 100%;        
        text-align: center;
    }
/* END PROCESS MODAL */

/* ERROR / INFO BOX */
.error-box, .info-box {
    display: flex;
    flex-direction: row;
    justify-content: flex-start; /* align items in Main Axis */
    align-items: stretch; /* align items in Cross Axis */
    align-content: stretch; /* Extra space in Cross Axis */
    margin: 5px;
    border-radius: 5px;    
}

.error-box .error-box-icon,
.info-box .info-box-icon {
    position: relative;
    margin: 5px 10px;
    width: 20px;
}

    .error-box .error-box-icon > i,
    .info-box .info-box-icon > i {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2em;        
    }
   
    .error-box .error-box-messages,
    .info-box .info-box-messages {
        flex-grow: 1;
    }

    .error-box .error-box-messages ul,
    .info-box .info-box-messages ul {
        list-style: none;
        margin: 0;
        padding: 10px;
    }

        .error-box .error-box-messages ul li,
        .info-box .info-box-messages ul li {            
            text-align: center;
        }       
/* END ERROR / INFO BOX */
        
/* GROUP BOX */
.group-box {
    position: relative;    
    margin: 8px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    align-content: stretch;
}

    .group-box .group-box-header-toolbar {
        margin: 5px;
        margin-left: 15px;
        margin-right: 15px;
        margin-top: -5px;
        border-radius: 5px;        
    }

    .group-box .group-box-header-toolbar-inner {
        display: flex;
        flex-direction: row;
        justify-content: space-around; 
        align-items: stretch; 
        align-content: stretch; 
        height: 100%;
    }

        .group-box .group-box-header-toolbar-inner button {
            flex-grow: 1;            
            border: none;            
            height: 30px;
        }

            .group-box .group-box-header-toolbar-inner button:first-child {                
                margin-left: 1px;
            }

            .group-box .group-box-header-toolbar-inner button:last-child {                
                border-right: none;
                margin-right: 1px;
            }            

            .group-box .group-box-header-toolbar-inner button i {                
                color: inherit;
            }

    .group-box .group-box-inner {
        position: relative;
        padding: 0 10px;        
        flex-grow: 1;
    }     

    .group-box > span:first-child {
        display: block;
        font-size: 1.5em;
        padding: 5px 15px;
        padding-bottom: 20px;
    }
/* END GROUP BOX */

/* FA BUTTON */
.fa-button {
    display: block;
    height: 100%;
    /*font-size: 2em;    */
    border-radius: 5px;
}
/* END FA BUTTON */

/* FA ACTION */
.fa-action {
    padding: 5px;    
    font-size: 10px;
}    
/* END FA ACTION */

/* RESPONSIVE CONTAINER */
.responsive-container {    
    overflow: auto!important;
}

.responsive-container-x {
    overflow-x: auto!important;
}

.responsive-container-y {
    overflow-y: auto!important;
}
/* END RESPONSIVE CONTAINER */

/* DICTIONARY */
.dictionary-table {
    width: 100%;
}

    .dictionary-table tbody th{
        font-weight: normal;
        line-height: 1.5em;
    }


    .dictionary-table tbody tr th:first-child {        
        text-align: left;                
        white-space: nowrap;        
    }

    .dictionary-table tbody tr th:last-child {
        font-weight: bold;        
    }
/* END DICTIONARY */

/* CAROUSEL */
#carousel {
    width: 100%; 
    padding: 10px;
    position: relative;
}

#carousel-prev-btn,
#carousel-next-btn {
    display: inline-block;
    border-radius: 5px;
    padding: 10px;
    font-size: 20px;
    position: absolute;    
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

#carousel-prev-btn {
    left: 15px;
}


#carousel-next-btn {    
    right: 15px;    
}

.carousel-slide {
    border-radius: 5px;
    overflow: hidden;
    animation-name: showSlide;
    animation-duration: 1s;
    -moz-animation-name: showSlide;
    -moz-animation-duration: 1s;
    -o-animation-name: showSlide;
    -o-animation-duration: 1s;
    -webkit-animation-name: showSlide;
    -webkit-animation-duration: 1s;
}

@keyframes showSlide {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes showSlide {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-moz-keyframes showSlide {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-o-keyframes showSlide {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* END CAROUSEL */
/* TABLE */
.data-table {
    width: 100%;
}
          
    .data-table th {
        white-space: nowrap;
    }
        
    .data-table thead th:hover {
        cursor: pointer;
    }    

    .data-table tbody th {
        font-weight: normal;
        cursor: default;    
        padding: 0 5px;
    }

    .data-table tbody tr:first-child th {
        padding-top: 10px;        
    }

    .data-table tbody tr:last-child th {
        padding-bottom: 10px;     
    }                   

    .data-table tfoot th {        
        padding: 10px 0;
    }

    .data-table .data-table-pagger {
        text-align: right;
    }

        .data-table .data-table-pagger a {
            display: inline-block;
            text-align: center;
            text-decoration: none;            
            padding: 3px 5px;
            width: 30px;            
            cursor: pointer;
        }            

            .data-table .data-table-pagger a:first-child {
                border-top-left-radius: 5px;
                border-bottom-left-radius: 5px;
            }

            .data-table .data-table-pagger a:last-child {
                border-top-right-radius: 5px;
                border-bottom-right-radius: 5px;
            }

    .data-table .data-table-rows-selector select {
        border-radius: 5px;        
        padding: 2px 3px;
    }

.actions-table tbody tr th:last-child {    
    padding-left: 1rem;
}

.actions-table tbody tr:hover th:last-child {
    text-shadow: none;
}
/* END TABLE */

/* TABLE SCROLLER */
.table-scroller {
    position: relative;

}
    .table-scroller .table-scroller-inner {        
        overflow-x: scroll;
        overflow-y: visible;
    }

/* END TABLE SCROLLER */

/* RESULTS TABLE */
.results-table {
    width: 100%;    
}

    .results-table thead th {
        padding: 0 10px;
    }

    .results-table tbody th {
        font-weight: normal;
        line-height: 1.5em;
        font-size: 12px;
        padding: 0 10px;
        cursor: default;
        white-space: nowrap;
    }

    /*.results-table tbody tr th:nth-child(1),
    .results-table tbody tr th:nth-child(2) {
        position: absolute;        
        top: auto;        
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }

    .results-table tbody tr th:nth-child(1) {
        left: 0;
        width: 50px;
    }

    .results-table tbody tr th:nth-child(2) {
        left: 50px;        
        width: 150px;
    }*/

        /*.results-table tbody th:first-child,
        .results-table tbody th:last-child {
            padding: 0;
        }*/

        .results-table tbody th[kind=group] {
            font-size: 15px;
            padding: 5px;            
        }

            .results-table tbody th[kind=group] .fa {            
                padding-left: 5px;
                padding-top: 3px;
                cursor: pointer;
            }

        /*.results-table tbody th[kind=nclp] {            
            font-style: italic;               
        }*/

        .results-table tbody th:first-child span[kind=nclp] {
            font-style: italic;
            margin-right: .8rem;            
        }

        .results-table tbody th:first-child span[kind=unit] {
            font-style: italic;
            padding-left: .8rem;
            margin-left: auto;
        }

        .results-table tbody th[kind=method] {
            text-align: left;
            font-size: 12px;            
        }

        .results-table tbody th[kind=number] {
            text-align: right;
        }

        .results-table tbody th[kind=number],
        .results-table tbody th[kind=text] {
            width: 10px;
            font-size: 15px;            
        }

            .results-table tbody th[kind=number] a,
            .results-table tbody th[kind=text] a {
                color: inherit;
                text-decoration: none;
            }                
/* END RESULTS TABLE */


/* FIRST TWO FIXED COLUMNS TABLE  */

.cumulative-results-table th:first-child {
    position: sticky;
    left: 0;
}

/*.cumulative-results-table th:first-child,
.cumulative-results-table th:nth-child(2),
.cumulative-results-table th:nth-child(3) {
    position: sticky;
}

.cumulative-results-table th:first-child {    
    left: 0;
}

.cumulative-results-table th:nth-child(2) {    
    left: 50.5px;
}

.cumulative-results-table th:nth-child(2) {
    left: 50.5px;
}*/

/* END FIRST TWO FIXED COLUMNS TABLE */



/* TOOLBAR */
.toolbar button {
    font-size: 1.2em;
    margin: 5px;
    border-radius: 5px;
    border: none;    
    padding: 3px;    
}
/* END TOOLBAR */


.form-control-box {
    padding: 5px;    
}

    .form-control-box > * {
        width: 100%;        
    }

    .form-control-box > input[type=text],
    .form-control-box > input[type=password],
    .form-control-box > input[type=submit] {
        border-radius: 4px;
        padding: 5px;
        font-style: normal;
    }
        
    .form-control-box > input[type=text] {
        min-width: 200px;
    }

    .form-control-box > .date-time-box {        
        cursor: pointer;
    }        

    .form-control-box > input:required:invalid {
        font-style: italic;        
    }        

#modal-login-form {
    width: 100%;
    padding: 5px;    
}

#modal-login-form-inner-left {
    flex-grow: 1;
}

#modal-login-form-inner-right .fa-button {    
    width: 70px;    
}

    #modal-login-form-inner-right .fa-button:hover {
        border: none;
    }    

.text-left {
    text-align: left!important;
}

.text-right {
    text-align: right!important;
}

.text-ellipsis {
    text-overflow: ellipsis!important;
    overflow: hidden;
}

.rotate-90 {
    transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
}

/* DATE PICKER */
.date-picker {
    position: absolute;
    border-radius: 5px;       
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* align items in Main Axis */
    align-items: stretch; /* align items in Cross Axis */
    align-content: stretch; /* Extra space in Cross Axis */
    overflow: hidden;
    width: unset!important;
    z-index: 100;
    margin: 5px;    
}

    .date-picker .header {
        display: flex;
        flex-direction: row;
        justify-content: flex-start; /* align items in Main Axis */
        align-items: center; /* align items in Cross Axis */
        align-content: stretch; /* Extra space in Cross Axis */            
    }

    .date-picker .month-button {
        border: none;
        margin: 5px;                
        cursor: pointer;
    }

    .date-picker .month-desc {
        flex-grow: 1;
        text-align: center;        
    }

    .date-picker .days {
        line-height: 1em;
        display: flex;
        flex-direction: row;
        justify-content: flex-start; /* align items in Main Axis */
        align-items: stretch; /* align items in Cross Axis */
        align-content: stretch; /* Extra space in Cross Axis */
    }

    .date-picker .days-header span,
    .date-picker .day {        
        margin: 3px;
        width: 25px;
        height: 25px;
        text-align: center;            
    }

    .date-picker .day {  
        display: table-cell;
        vertical-align: middle;
        cursor: pointer;     
    }

        .date-picker .day:hover,
        .date-picker .active {         
            font-size: 1.5em;
            font-weight: normal;
        }

    .date-picker .current {
        font-weight: bold;        
    }    
/* END DATE PICKER */

/* DROP DOWN MENU */
.drop-down-menu {
    position: relative;
}

    .drop-down-menu .drop-down-menu-content {
        display: none;
        padding: 10px;        
        position: absolute;
        right: 0;
        z-index: 100000000;
        text-align: center;
        min-width: 120px;
        line-height: 2em;
    }

    .drop-down-menu .drop-down-menu-content a {
        display: block;
        width: 100%;
        text-decoration: none;
    }
            
.drop-down-menu:hover .drop-down-menu-content {
    display: block;          
}

/* END DROP DOWN MENU */

.height-100 {
    height: 100%;
}


/* TOGGLE BAR */

.toggle-bar {
    display: flex;
    flex-direction: row;
    padding: 0 1rem;    
}

.toggle-bar button {
    border: 0;
    padding: 0.4rem 1rem;
    margin: 0 .2rem;
    margin-bottom: -.2rem;
    opacity: .4;
    transform: scaleX(.8) scaleY(.8);
    transition: opacity 1s, background 1s, border-bottom 1s, transform 1s;
}

.toggle-bar button:hover,
.toggle-bar .active {
    opacity: 1;
    transform: scaleX(1) scaleY(1);
}


.toggle-bar button:first-child {
    margin-left: 0;
}

.toggle-bar button:last-child {
    margin-right: 0;
}

/* END TOGGLE BAR */