body, html {
    height: 100%;
    margin: 5px 0px 50px 0px;
    padding: 0px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-align: center;     
    font-size: 15px;
    background-color: #ebebeb;
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

a {
    color: #606970;
    text-decoration: none;
}

a:hover {
    color: #206589;
    text-decoration: underline;
}

a:visited {
    color: #606970;
}

#container {
    max-width: 960px;
    min-height: 1500px;
    margin:  0px auto;
    padding-bottom: 50px;
    background-color: #ffffff;
    text-align: left;
}

h1, h2, h3 {
    color: #686868;
}

.error_message {
    color: red;
    font-weight: 500;
    font-size: larger;
}

:disabled {
    opacity: 0.6;
    cursor: default !important;
}

/* Header */

#header {
    max-height: 125px;
    padding: 30px;
}

#header_content {
    width: 320px;
    float: right;
    padding: 0px 30px;
}

#logo {
    max-height: 100px;
}

/* Menu */

#menu_toggle {
    width: max-content !important;
    float: right;
    overflow: hidden;
}    

#menu a {
    text-transform: uppercase;
    float: left;
    padding: 20px 0px;
    width: 100%;
    text-indent: 40px;
    color: #094a6c;
}

#menu a:hover {
    background-color: #81cbf3 !important;
}

#menu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 999;
    top: 160px;
    border: 1px solid #ccc;
    width: 280px;
}

#header_content div span {
    font-size: 21px;
    text-transform: uppercase;
    vertical-align: middle;
}

#header_content div img {
    height: 32px;
    margin-left: 15px;
    vertical-align: middle;
}

/* Sections and elements */

.page_container {
    margin-top: 20px;
    padding: 10px 30px;
}

.page_container .h2_section {
    margin-top: 40px;
}

.page_container h2 {
    margin-left: -20px;
}

.h2_section {
    margin-top: 20px;
    padding: 10px 30px;
}

.h2_section h3 {
    margin-left: 20px;
    margin-top: 30px;
}

.narrow_element {
    margin: 0px 30px;
}

/* Input list */

.input_list div {
    margin-bottom: 15px;
}

/* Input list with image */

.input_list_img {
    margin-top: 10px;
    padding: 10px 30px;
    margin-bottom: 0px !important;
}

.input_list_img div {
    display: inline-block;
    padding-left: 20px;
    padding-top: 10px;
}

.input_list_img img {
    max-height: 100px;
    vertical-align: top;
}

.input_list_img input {
    max-width: 75%;
    margin: 15px 20px 0px 0px;
}

.input_list_img span:first-of-type {
    display: block;
}

.input_list_img ~ .indent {
    margin-bottom: 30px;
}

.input_list_img ~ .indent input {
    width: 200px;
}

.list_item_active {
    border: 0px solid #c5c5c5;
    border-top-width: 1px;
    background-image: linear-gradient(90deg, #f3f3f3, #ffffff);
    margin-bottom: 0px !important;
    border-bottom-width: 2px;
    border-bottom-style: dashed;
    border-bottom-color: #ccc;
}

.indent .input_list_img {
    margin-top: 0px;
    padding: 10px 70px !important;
}

.indent .input_list_img div {
    display: initial;
}

.indent .input_list_img span:first-of-type {
    width: initial;
    padding: 0px 0px 15px 20px;
}

/* Input list alternative */

.input_list_alt {
    margin: 10px 30px 10px 0px;
}

.input_list_alt div {
    display: flex;
    margin-bottom: 20px;
}

.input_list_alt div span:first-of-type {
    flex-basis: 20%;
}

.input_list_alt input {
    max-width: 30%;
    margin: 0 20px;
}

.input_list_alt .indent {
    padding: 20px 0px 1px 0px;
    background-image: linear-gradient(90deg, #f3f3f3, #ffffff);
}

.input_list_alt .indent input {
    margin-left: 20px;
}

/* Indented */

.indent {
    padding: 20px 0px 30px 0px;
    background-image: linear-gradient(90deg, #f3f3f3, #ffffff);
    margin-bottom: 30px;  
}

.indent div {
    display: flex;
    padding: 10px 30px;
}

.indent span {
    width: 200px;
}

.indent span:first-of-type {
    padding-left: 40px;
}

.indent input {
    width: -webkit-fill-available;
    margin-left: 50px;
    margin: 0px 20px;
}

.indent select {
    width: 50%;
    margin-left: 5px;
}

.indent div div {
    margin-left: 0px;
}

.options_selection div {
    margin-left: 90px;
}

.indent .options_selection {
    padding-left: 0px !important;
    height: 50px;
    padding-top: 0px !important;
}

.indent .options_selection div {
    margin-left: 90px !important;
}

/* Spacer */

.spacer {
    height: 20px;
    min-width: 50%;
}

/* Accordion */

#accordion {
    background-color: #f9f9f9;
}

#accordion table {
    background-color: #f9f9f9;
}

.ui-state-active {
    border: 2px solid #206589 !important;
    background: #96aab5 !important;
}

/* Accordion custom */

.accordion {
    margin-top: 20px;
    padding: 10px 30px;
    background-color: #d9ebf5;
    border: 2px solid #a8d8eb;
    margin-bottom: 0px !important;
    font-size: 18px;
}

.accordion-active {
    background-color: #329ad3;
    color: #ffffff;
}

.accordion img {
    max-width: 30px;
    vertical-align: middle;
    margin-right: 20px;
}

.accordion span:last-of-type {
    text-align: right;
    float: right;
}

.accordion ~ .indent ~ .indent select {
    margin-left: 20px;
}

/* Table */

table {
    width: 100%;
    border: 1px;
    margin-bottom: 20px;
}

tr {
    height: 30px;
}

table tr:nth-child(even) {
    background-color: #f3f3f3;
}

table tr:nth-child(odd) {
    background-color: #f9f9f9;
}

table th {
    padding: 10px;
    background-color: #80ccf4;
    color: #206589;
}

table th span {
    margin-left: 10px;
    font-size: 13px;
    color: #606970;
}

table td {
    padding: 5px 10px;
}

table td > input {
    text-align: right;
}

table td img {
    height: 20px;
}

td.delete_product, td.edit_product {
    text-align: center;
}

/* Autocomplete */

.ui-autocomplete {
    background-color: #ffffff;
    text-align: left;
    width: 500px;
}

.ui-autocomplete li {
    padding: 5px;
    list-style-type: none;
}

.ui-autocomplete li:hover {
    background-color: #f3f3f3;
    cursor: pointer;
    list-style-type: circle;
}

.ui-menu-item, .ui-front {
    background-color: #f7f7f7;
    border: 1px solid #ebebeb;
}

.ui-helper-hidden-accessible div {
    display: none;
}

/* Flexigrid */

.flexigrid {
    margin-top: 30px;
}

.tDiv {
    border: 1px solid #fff !important;
}

.sDiv {
    display: block !important;
}

.sDiv {
    border-width: 0px !important;
}

.sDiv2 {
    float: right !important;
    width: auto !important;
    padding: 13px 0px !important;
    font-size: initial !important;
}

.sDiv2 select {
    height: 22px !important;
}

.sDiv2 input[name='enddate'] {
    margin-right: 75px;
}

.btnsearch {
    display: inline-block;
    padding: 3px 0px;
    border: 1px solid #e9e9e9;
    margin-top: -4px;
    font-size: 13px;
}

.btnsearch:hover {
    border: 1px 0px solid #ccc;
}

.btnsearch span {
    cursor: pointer;
    padding: 4px 3px;
    padding-left: 20px;
    border: 1px solid #e9e9e9;
    color: #206589;
    background: #80ccf4 url(../img/flexigrid/magnifier.png) no-repeat;
    background-attachment: local;
    background-position: 10% 50%;
}

.flexigrid div.fbutton {
    padding: 0px;
    margin-top: 10px;
}

.download {
    padding: 6px 20px !important;
    text-indent: 10px;
    border: 1px solid #e9e9e9;
    color: #206589;
    background: #80ccf4 url(../img/flexigrid/excel.png) no-repeat;
    background-attachment: local;
    background-position: 10% 50%;
}

/* Buttons and inputs */

input:-internal-autofill-selected {
    background-color: #686868 !important;
}

input {
    width: 100%;
    height: 30px;
}

input { 
    text-indent: 10px; 
}

.input_inline {
    width: 75%;
}

input[type="file"] {
    margin: 20px;
    max-width: -webkit-fill-available;
    padding: 4px;
}

input[type="checkbox"] {
    width: 30px;
    vertical-align: middle;
    position: sticky;
    left: 50%;
}

input:read-only {
    border: 1px solid gray;
    background-color: #f3f3f3;
}

select {
    width: 100%;
    height: 30px;
}

#message {
    padding-left: 30px;
}

.button {
    width: 18%;
    min-width: max-content;
    height: 36px;
    background-color: #80ccf4;
    border: none;
    color: #206589;
    font-size: 16px;
    font-weight: bold;
}

.button:hover {
    cursor: pointer;
    background-color: #329ad3;
    color: #0f3246;
}

.button_bottom {
    width: 24%;
    margin-top: 20px;
}

.button_right {
    float: right;
    width: 20%;
    margin: 10px 4px 0px 30px;
}

.button_inline {
    float: right;
    margin-top: -2.5px;
    width: 20%;
    margin-right: 5px;
}

.button_full {
    width: 100%;
    height: 50px;
    margin: 10px 0px;
}

.button_big {
    margin-top: 20px;
    padding: 20px;
    height: 60px;
    font-size: 18px;
}

.information_box {
    display: none;
    padding: 10px 20px;
    background-color: #f4f4f4;
    border: 1px solid #cecece;
}

.information_box input {
    margin-bottom: 15px;
}

.trSelected td {
    background-color: #cfe8f5 !important;
    border-left: none !important;
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 25px;
    margin-left: 20px;
}
  
.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}
  
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}
  
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}
  
input:checked + .slider {
    background-color: #329ad3;
}
  
input:focus + .slider {
    box-shadow: 0 0 1px #329ad3;
}
  
input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.slider.round {
    border-radius: 30px;
}
  
.slider.round:before {
    border-radius: 50%;
}

/* Card navigation */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.cards_navigation {
    margin-top: 60px;
}

.cards_navigation .cards.small_cards img {
    max-height: 150px;
    max-width: 160px;
}

.cards_navigation .card_image {
    line-height: 230px;
}

.cards_navigation h2 {
    margin-left: initial;
}

.cards_navigation .small_cards .card_text {
    font-size: 14px;
}

.cards img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
  max-height: 174px;
}

.cards.small_cards img {
    max-height: initial;
}

.btn {
  color: #ffffff;
  padding: 0.8rem;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 4px;
  font-weight: 400;
  display: block;
  width: 100%;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.22);
  font-weight: bold;
}

.cards {
    display: inline-flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 auto;
    padding: 20px;
    margin-top: 50px;
}

.cards.small_cards {
    display: block;
    margin-top: 0px;
    padding: 0px;
}

.small_cards ul {
    padding-inline-start: 0px;
}

.cards_item {
    margin: 0 auto;
    display: flex;
    padding: 1rem;
}

.small_cards .cards_item {
    display: inline-block;
}

.cards_item a {
    margin: 0 auto;
}

.card_image {
    min-height: 274px;
    padding: 50px;
    margin: 0 auto;
}

.small_cards .card_image {
    min-height: 0px;
    padding: 0px;
    min-height: 0px;
    padding: 0px;
}

.card {
    width: 274px;
    height: 400px;
    border: 1px solid #a8d8eb;
    background-color: white;
    border-radius: 0.25rem;
    box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.small_cards .card {
    width: 200px;
    height: 360px;
}

.smaller_cards .card {
    height: 300px;
}

.card:hover {
    background: linear-gradient(to bottom left, #e7f7ff 40%, #eef8ff 100%);
}

.cards a:hover {
    text-decoration: none;
}

.card_content {
  padding: 1rem;
  background: linear-gradient(to bottom left, #329ad3 40%, #329ad3 100%);
  height: -webkit-fill-available;
}

.small_cards .card_content {
    height: 131px;
}

.card_content:hover {
    background: linear-gradient(to bottom left, #80ccf4 40%, #80ccf4 100%);
    color: #206589;
}

.card_title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: capitalize;
  margin: 0px;
}

.card_text {
  color: #ffffff;
  font-size: 0.89rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;    
  font-weight: 400;
}

.small_cards .card_text {
    font-size: 0.97rem;
}

/* Responsive design */

@media (min-width: 40rem) {
    .cards_item {
        width: 50%;
    }

    .small_cards .cards_item {
        width: 32%;
    }
}

@media (min-width: 56rem) {
    .cards_item {
        width: 33.3333%;
    }

    .small_cards .cards_item {
        width: 24.3%;
    }
}

@media screen and (min-width: 100px) {
    #header h1 {
        float: right !important;
    }
}

@media only screen and (max-device-width: 480px) {
    body, html {
        font-size: 17px;
    }

    h1 {
        font-size: 45px;
    }

    h2 {
        font-size: 40px !important;
    }

    h3 {
        font-size: 30px !important;;
    }

    #header {
        max-height: unset;
    }

    #logo {
        max-height: 200px;
    }

    #header_content {
        width: 480px;
    }

    #menu_toggle {     
        font-size: 160%;
        width: unset;
    }

    #menu {
        top: 240px;
        width: 450px;
        left: 500px;
        font-size: 38px;
    }

    #menu a {
        padding: 40px 0px;
    }

    #header_content div img {
        height: 64px;
    }

    #header_content div span {
        font-size: 38px;
    }

    input, select {
        font-size: 150% !important;
        border: 1px solid;
        height: 60px;
    }

    .indent select {
        width: 60%;
        margin-left: 70px;
        margin-bottom: 30px;
    }

    span {
        font-size: 30px;
    }

    input[type='checkbox'] {
        height: 40px !important;
        width: 40px !important;
    }

    .switch input {
        height: unset !important;
    }

    /* Sections and elements */

    .page_container .h2_section {
        margin-top: 60px;
    }

    .input_inline {
        width: 55%;
    }

    .input_list_alt div span:first-of-type {
        flex-basis: 40%;
    }

    .input_list_img {
        padding: 30px;
    }

    .input_list_img img {
        max-height: 200px;
    }

    .input_list_img span:first-of-type {
        padding-bottom: 15px;
    }

    .input_list_img ~ .indent {
        padding-top: 50px;
        margin-bottom: 50px !important;
    }

    .input_list_img ~ .indent span {
        width: initial !important;
        min-width: 250px;
    }

    .indent .input_list_img span:first-of-type {
        padding-top: 20px;
        padding-left: 20px;
    }

    .input_list_img ~ .indent input {
        margin: 20px;
    }

    .indent div {
        margin-left: 100px;
    }

    .spacer {
        height: 50px;
    }

    /* Accordion */

    .accordion img {
        max-width: 60px;
    }

    .accordion span {
        vertical-align: middle;
        font-size: 27px
    }

    .accordion ~ .indent span:first-of-type {
        padding-left: 0px !important;
        width: 50% !important;
    }

    .accordion span:last-of-type {
        font-size: 40px;
    }

    .accordion ~ .indent input {
        margin-top: 0px;
    }
    
    .ui-accordion .ui-accordion-header {
        font-size: 18px !important;
    }

    .ui-accordion .ui-accordion-content {
        padding: 20px 10px !important;
    }

     /* Flexigrid */

    .sDiv2 input[type="date"] {
        min-width: 130px;
    }

    input.qsbox.ui-autocomplete-input {
        max-width: 220px;
    }

    .btnsearch {
        font-size: 90%;
        font-weight: bolder;
    }
    
    .btnsearch span {
        padding: 3px 40px;
    }

    .sDiv2 {
        height: unset;
    }

    .sDiv2 select {
        height: 33px !important;
        border: 2px solid grey;
        margin-top: -1px;
        margin-right: 20px;
    }

    span.pcontrol {
        font-size: 110%;
    }

    .hDivBox div {
        font-size: 130%;
    }

    .bDiv {
        font-size: 140%;
    }

    table td img {
        height: 30px;
    }

    .pDiv2 * {
        font-size: 17px !important;
    }

    /* Buttons */

    #action_button_container {
        padding: 0px 35px;
        margin-bottom: 100px;
    }

    #action_button_container button {
        margin-top: 50px;
    }
    
    .information_box {
        padding: 40px;
        font-size: 30px;
    }

    .information_box button {
        margin-top: 40px;
    }

    .button {
        font-size: 35px !important;
        height: 100px;
        min-width: 240px;
    }

    .button_right {
        float: none;
        margin: 0px;
        width: 100%;
    }

    .button_inline {
        float: none;
        margin-top: -2.5px;
        width: 30%;
        margin-left: 55px;
    }

    .button_full {
        margin: 0px 0px 40px 0px;
    }

    .button_bottom {
        width: 35%;
    }

    .button_big {
        width: 100%;
        margin-top: 60px;
        height: 120px !important;
        min-width: 400px !important;
    }

    /* Autocomplete */

    .ui-autocomplete > * {
        font-size: 35px;
    }

    /* Navigation cards */

    .cards.small_cards {
        padding-left: 20px;
    }

    .cards_item {
        width: 50% !important;
    }

    .cards_navigation .small_cards .cards_item {
        width: 49% !important;
    }

    .small_cards .cards_item {
        width: 32% !important;
    }

    .card {
        width: 400px !important;
        height: 450px !important;
    }

    .cards_navigation .cards_item .card {
        width: 400px !important;
        height: 450px !important;
    }

    .small_cards .card {
        width: 240px !important;
        height: 465px !important;
    }

    .smaller_cards .card {
        height: 415px !important;
    }

    .cards_navigation .card_image {
        line-height: 260px;
    }

    .smaller_cards .card_title {
        font-size: 21px !important;
    }

    .cards_navigation .small_cards .card_content {
        padding: 25px 50px;
    }

    .small_cards .card_content {
        height: 190px;
    }

    .card_title {
        font-size: 29px !important;
    }

    .card_text {
        font-size: 22px;
        line-height: 1.2;
    }
}