/**
* @author Raphael Hänni
* @version v0.2.0
**/

* {
    font-family: "Helvetica", "Arial";
    font-size: 16px;
}

html {
    height: 100%;
}

body {
    height: calc(100% - 15em);
}

.body-noscroll {
    overflow: hidden;
}

.element-scroll {
    overflow: visible !important;
}

.clearer {
    clear: both;
}

.hidden {
    display: none;
}

.title {
    font-size: 30pt;
    text-align: center;
}

.subtitle {
    font-size: 22pt;
    text-align: center;
}

.text-big {
    font-size: 18pt;
    font-weight: bold;
}

.title, .subtitle, .text-big, th {
    color: #232323;
}

.word-break {
    word-break: break-all;
}

.right {
    float: right;
}

.left {
    float: left;
}

.centre {
    margin-left: auto;
    margin-right: auto;
}

.text-centre {
    text-align: center;
}

/** COLOURATION **/
.btn-green {
    background-color: #008C4A;
}

.btn-green:hover {
    background-color: #00592F;
}

.btn-red {
    background-color: #D82E16;
}

.btn-red:hover {
    background-color: #BE2913;
}

.btn-orange {
    background-color: #f89406;
}

.btn-orange:hover {
    background-color: #DE8505;
}

.btn-green:disabled, .btn-red:disabled, .btn-orange:disabled {
    background-color: #AAA !important;
    cursor: not-allowed;
}

.text-white {
    color: #FFFFFF !important;
}

.text-dark {
    color: #232323;
}

.text-green {
    color: #008C4A;
}

.text-red {
    color: #D82E16;
}

.text-orange {
    color: #f89406;
}

.setting::before{
    content: "\f013";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #232323 !important;
    position: absolute;
    margin-left: -24px;
}

.success::before, .dz-image::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #008C4A !important;
  position: absolute;
  margin-left: -24px;
}

.error::before {
  content: "\f12a";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #D82E16 !important;
  position: absolute;
  margin-left: -20px;
}

.warn::before{
    content: "\f071";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #f89406 !important;
    position: absolute;
    margin-left: -24px;
}

.success, .dz-image {
    padding: 5px 5px 5px 30px;
    margin: 10px 0;
    color: #232323;
    font-weight: bold;
    background-color: #FFFFFF;

    border-left: solid 10px #008C4A;
    border-bottom: solid 1px #008C4A;
    border-right: solid 1px #008C4A;
    border-top: solid 1px #008C4A;
}

.setting {
    padding: 5px 5px 5px 30px;
    margin: 10px 0;
    color: #232323;
    font-weight: bold;
    background-color: #FFFFFF;
    min-width: calc(100%-10px);

    border-left: solid 10px #232323;
    border-bottom: solid 1px #232323;
    border-right: solid 1px #232323;
    border-top: solid 1px #232323;
}

.error {
    padding: 5px 5px 5px 30px;
    margin: 10px 0;
    color: #232323;
    font-weight: bold;
    background-color: #FFFFFF;
    min-width: calc(100%-10px);

    border-left: solid 10px #D82E16;
    border-bottom: solid 1px #D82E16;
    border-right: solid 1px #D82E16;
    border-top: solid 1px #D82E16;
}

.warn {
    padding: 5px 5px 5px 30px;
    margin: 10px 0;
    color: #232323;
    font-weight: bold;
    background-color: #FFFFFF;
    min-width: calc(100%-10px);

    border-left: solid 10px #f89406;
    border-bottom: solid 1px #f89406;
    border-right: solid 1px #f89406;
    border-top: solid 1px #f89406;
}


/** NAVIGATION **/
header {
    left: 0;
    width: 100%;
}

.wrapper-nav {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 10px);
    padding-left: 10px;
}

.logo {
    float: left;
}

.logo img {
    height: 4em;
}

.nav-bar {
    background-color: #008C4A;
    width: 100%;
    height: 4em;
    margin-left: 10px;
    display: flex;
}

.nav-box {
    text-align: center;
    border-right: 2px solid #a8d8c1;
}

.flex-filler {
    flex-grow: 1;
}

.nav-btn {
    padding: 3px 5px;
    width: 5em;
    right: 3px;
    height: 100%;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 16pt;
    background-color: rgba(0,0,0,0);
    border: none;
    cursor: pointer;
}

.nav-active {
    background-color: #00592F !important;
}

.nav-btn:focus {
    outline: none;
}

.nav-btn:hover {
    background-color: #00592F;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.not-active {
  pointer-events: none;
  text-decoration: none;
}

#nav-signout {
    margin-right: 0;
    border-left: 2px solid #a8d8c1;
}

#nav-title {
    font-size: 30pt;
    line-height: 15px;
}


/** WIDTH DECLARATIONS **/
.width-100 {
    width: 100%;
}

.width-75 {
    width: 75%;
}

.width-50 {
    width: 50%;
}

.width-2-3 {
    width: 66%;
}

.width-45 {
    width: 45%;
}

.width-1-3 {
    width: 33%;
}

.width-25 {
    width: 25%;
}


/** GENERAL CONTENT **/
.content {
    width: 70%;
    margin: 5em 15% 2em 15%;
    min-height: 100%;
}

.btn {
    min-height: 30px;
    padding: 3px 10px;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
}

.button-link, .button-link:active {
    text-decoration: none;
}

.icon-link {
    margin: 2px 5px;
}

.icon-link:active {
    text-decoration: none;
}

.hr-long {
    border-color: #a8d8c1;
    border-style: solid;
    width: 110%;
    margin-left: -5% !important;
}

.hr-normal {
    border-color: #a8d8c1;
    border-style: solid;
}


/** FILTER & SORT **/
.search-bar {
    width: 80%;
    height: 24px;
}

input[type='date'] {
    -webkit-appearance: none;
}

.filter-container {
    margin: 10px 0;
}

.filter-container label {
    margin-right: 15px;
}

.clear-filter-button {
    margin: 10px 0;
}


/** SWITCH **/
.switch-container {
    margin-left: 5px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}

.switch input {
    display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CCCCCC;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: #FFFFFF;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
    background-color: #008C4A;
}

input:focus + .slider {
    box-shadow: 0 0 1px #00592F;
}

input:checked + .slider:before {
    -webkit-transform: translateX(22px);
    -ms-transform: translateX(22px);
    transform: translateX(22px);
}

.flipswitch-label {
    margin-left: 5px;
    text-align: center;
    line-height: 30px;
    height: 30px;
}


/** LISTVIEW **/
.listview {
    border-collapse: collapse;
}

.sort-container td, .table-container td {
    border-bottom: 2px solid #a8d8c1;
    padding: 10px 0;
}

.table-left {
    text-align: left;
    width: 40%;
}

.table-centre {
    text-align: center;
    width: 25%;
}

.table-right {
    text-align: right;
    width: 25%;
}

.edit-form input:focus:valid, .check-input:focus:valid, .edit-form textarea:focus:valid {
    border: 3px solid #008C4A;
}

.edit-form input:invalid, .check-input:invalid, .edit-form textarea:invalid {
    border: 3px solid #D82E16;
}

.tooltip-container {
    margin-bottom: 10px;
}

.tooltip {
    position: absolute;
    display: none;
    margin-top: 27px !important;
    max-width: 40%;
    z-index: 999;
}

input:focus + .tooltip, textarea:focus + .tooltip {
    display: block;
}

.form-input {
    width: 100%;
    height: 20px;
}

.delete-icon, .edit-icon {
    cursor: pointer;
}


/** POPUP **/
.popup-wrapper {
    position: fixed;
    display: flex;
    visibility: hidden;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 99;
    background-color: rgba(40,40,40,0.7);
}

.popup {
    background-color: rgba(255,255,255,1);
    position: fixed;
    top: 30%;
    vertical-align: middle;
    width: 30em;
    padding: 20px 30px;
    margin: auto;
}

.popup-input, .popup-select {
    margin-bottom: 10px;
}


/** LOGIN **/
.login-form button, .login-form input {
    width: 100%;
    margin: 2px 0 10px 0;
}

.login-form label {
    font-weight: bold;
}


/** FURTHER EDUCATION **/



/** FURTHER EDUCATION DETAIL **/
.selection {
    width: calc(100% + 0.4em);
}

.image-proportions {
    max-width: 100%;
    height: auto;
}

#course-content {
    min-width: 100%;
    max-width: 100%;
    min-height: 10em;
}


/** EQUIPMENT **/



/** EQUIPMENT DETAIL **/



/** IMPORT **/
.collapsible {
  cursor: pointer;
}

.collapsible:hover {
  background-color: #F0F0F0;
}

.dropzone {
    display: flex !important;
    border: 2px dashed  #a8d8c1 !important;
}

.dz-progress {
    display: none !important;
}
.dz-file-preview {
    flex-grow: 1;
    width: 80%;
    margin: 0 10% !important;
}

.dz-error-message {
    left: 45px !important;
}

.dz-image {
    width: 100% !important;
    background: #fff !important;
    border-radius: 0 !important;
}


.dz-remove {
    display: block;
    color: #fff;
    text-decoration: none;
    background: #D82E16;
    width: 20%;
    margin: 2% 40%;
    padding: 2% 0;
}

.dz-remove:hover {
    text-decoration: none !important;
    background: #BE2913;
    transition: .2s;
}

#import-file-form {
    display: flex;
    flex-direction: column;
}

.import-file-input {
    display: none;
}

#import-file-form button,
#import-file-form .import-file-input {
    margin-top: 2%;
}

.drop-area {
    height: 200px;
    background-color: #990000;
}


/** LICENSE **/



/** USER **/



/** USER DETAIL **/
#permission {
    width: 60%;
    display: flex;
    flex-wrap: wrap;
}

.form-input-radio {
    flex: 1 0 25%;
    margin: 5px;
}


/** WORKER **/



/** WORKER DETAIL **/
#main-info {
    margin-bottom: 2em;
}

.btn-add {
    color: #008C4A;

}

.btn-add:hover {
    color: #00592F;
    cursor: pointer;
}

#signature {
    display: block;
    width: 100%;
}

#qualification-list {
  margin-top: 2em;
}

/** FEEDBACK **/
#feedback {
    min-width: 100%;
    max-width: 100%;
    min-height: 20em;
}


/** DOWNLOADS **/

.tile-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.tile {
    display: flex;
    flex-wrap: wrap;
    flex-basis: 30%;
    padding: 3%;
    margin: 20px 0;
    margin-left: calc(2% + 10px);
    margin-right: calc(2% + 10px);
    flex-grow: 1;
    flex-shrink: 0;
    background-color: white;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-style: solid;
    border-width: 2px;
    border-color: #a8d8c1;
    border-left: 10px solid #a8d8c1;
    position: relative;
}

.tile:after {
    content: '';
    float: left;
    height: 0;
    width: 0px;
    padding: 5% 0;
    display: inline-block;
    margin-left: -1px;
}


.tile .tile-header {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 20pt;
    border-bottom: 2px solid #a8d8c1;
}

.tile .tile-description {
    width: 100%;
    display: inline;
    margin: 2% 0;
    float: right;
}


.tile .tile-table {
    width: 100%;
    display: inline-flex;
    flex-direction: column;
}

.tile .tile-table .tile-table-row {
    display: flex;
    flex-direction: row;
}

.tile .tile-table .tile-table-row .tile-table-row-name {
    font-weight: bold;
    flex-basis: 50%;
    flex-grow: 1;
}

.tile .tile-table .tile-table-row .tile-table-row-value {
    flex-basis: 50%;
    flex-grow: 1;
}

.tile .tile-image {
    margin-top: 5%;
    text-align: center;
    width: 100%;
    flex-grow: 2;
}

.tile .tile-image * {
    fill: #008C4A;
    color: #008C4A;
}

.tile .tile-button {
    display: block;
    width: 80% !important;
    margin: 10% 10% 0 10% !important;
    bottom: 5%;
}


/** FOOTER **/
footer {
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    height: 8em;
    background: #008C4A;
}

.footer-table {
    width: 100%;
    margin-top: 3em;
}

.footer-table  tr td {
    color: #fff;
    width: 33%;
}

/** EXPORT **/
table.export-table * {
    font-family: Helvetica, Arial;
}

table.export-table {
    width: 100%;
}

table.export-table th {
    padding: 5% 0 0 0;
    border-bottom: 3px solid #008C4A;
}

table.export-table th .title {
    padding: 5% 0 1% 0;
}

table.export-table td {
    padding: 1% 2%;
    border-bottom: 1px groove #008C4A;
}

.content-export {
    width: 100%;
    margin: 0;
}



#return-to-top {
    position: fixed;
    bottom: 40px;
    right: 50px;
    width: 50px;
    height: 50px;
    background: #008C4A;
    display: block;
    text-decoration: none;
    -webkit-border-radius: 35px;
    -moz-border-radius: 35px;
    border-radius: 35px;
    border: 1px solid #FFF;
    display: none;
}

#return-to-top:hover {
    background: #00592F;
}

#return-to-top i {
    vertical-align: middle;
}

.link-downloads {
    margin: 2% auto;
    padding: 1px 10px;
    text-decoration: none;
    line-height: 30px;
    background-color: #f89406;
    color: #FFF;
}

@media only screen and (max-width: 1250px) {
    .search-bar {
        width: 100%
    }

    .switch-container {
        margin: 5px 0;
    }
}

@media only screen and (max-width: 1100px) {
    .logo {
        display: none;
    }

    .wrapper-nav {
        width: 100%;
        padding-left: 0;
    }

    .nav-bar {
        width: 100%;
        margin-left: 0;
    }
}


/** RESPONSIVE QUERIES  **/
@media only screen and (max-width: 870px) {
    [class*="width-"] {
        width: 100%;
    }

    .table-left {
        text-align: left;
        width: auto;
    }

    .table-centre {
        text-align: left;
        width: auto;
    }

    .table-right {
        text-align: right;
        width: auto;
    }

    .hr-long {
        width: 100% !important;
        margin-left: 0 !important;
        border-width: 1.5px;
    }

    .content {
        margin: 5em 0 2em 0;
        width: 100%;
    }

    .btn:not(.btn-round) {
        width: 100%;
        height: 3em;
        margin-top: 3px;
    }

    input:not([type='checkbox']), select, textarea {
        min-height: 2em;
        max-width: 98%;
    }

    .nav-btn {
        width: 100% !important;
    }

    .nav-text {
        font-size: 10pt;
    }
}
