:root {
    --mas-font: "Roboto";

    --mas-blue: #0a5a77;
    --mas-light-blue: #c3e0eb;
    --mas-grey: #dadada;
    --mas-green: #4da03d;
    --mas-red: #ca5336;
    --mas-mark: #CA5336;

    --mas-content-width: 1800px;
    --bs-body-line-height: unset; /* Bootstrap */
}

*, ::after, ::before { /* Bootstrap */
    box-sizing: unset;
}

.dropdown-item  { /* Bootstrap */
    box-sizing: border-box;
    font: var(--mas-font);
    font-size: 12pt;
    font-weight: normal;
}

.form-control { /* Bootstrap */
    box-sizing: border-box;
}

table { /* Bootstrap */
    border-collapse: unset;
}

body {
    margin: 0;
    padding: 0;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    flex-direction: column;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(244, 244, 244, 0.7);
    z-index: 1000;
}

.loader-dots {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-dots div {
    width: 20px;
    height: 20px;
    background-color: var(--mas-blue);
    border-radius: 50%;
    margin: 5px;
    animation: bounce 0.6s infinite alternate;
}

.loader-dots div:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots div:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    from { transform: translateY(0px); }
    to { transform: translateY(-20px); }
}

.loading-text {
    font-family: var(--mas-font);
    font-size: 20px;
    text-align: center;
}

textarea:focus {
    outline: none !important;
    border-color: var(--mas-blue);
    box-shadow: 0 0 10px var(--mas-blue);
}

textarea {
    margin: 20px 0px;
    padding: 5px;
    width: 98%;
    resize: none;
}

.deactivated {
    opacity: 0.8;
    pointer-events: none;
    border-color: lightgray !important;
    color: darkgray !important;
    border: 2px;
}

.mas-blueline {
    height: 2px;
    background-color: var(--mas-blue);
}

.mas-grayline {
    height: 1px;
    background-color: var(--mas-grey);
}

.mas-top {
    height: 40px;
    background-color: var(--mas-blue);
    font-family: var(--mas-font);

    padding-right: 10px;

    display:flex;
    align-items:center;
    justify-content: flex-end;

    font-size: 12pt;
    color: white;
}

.mas-top a {
    margin: 0px 10px;
}

.mas-top a:hover {
    text-decoration: underline;
    cursor: pointer;
}

.mas-filter {
    width: var(--mas-content-width);
    margin: 10px auto 0px;
    display:flex;
    align-items:center;
    font-family: var(--mas-font);
    font-size: 20px;
}

.mas-filter a {
    color: black;
    font-family: var(--mas-font);
    font-weight: normal;
    font-size: 20px;
}

.mas-filter-selected {
    width: var(--mas-content-width);
    margin: 30px auto 0px auto;

    font-family: var(--mas-font);
    font-size: 12pt;
}

.mas-filter a:hover  {
    color: var(--mas-blue);
    cursor: pointer;
    text-decoration: underline;
}

.mas-filter-overlay {
    overflow: hidden;
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 1;
    top: 404;
    left: 0;
    background-color: var(--mas-blue);
    background-color: rgba(10,90,119, 0.9);
}

.mas-menu-overlay {
    z-index: 10;
    background-color: white;
    position: absolute;
    width: 100%;
    height: auto;
    top: 150px;
    left: 0px;
}

/* MAS mainmenu START */

.mas-mainmenu {
    width: var(--mas-content-width);
    margin: 0px auto;
    font-family: var(--mas-font);
    font-size: 18px;

    border-spacing: 20px;
}

.mas-mainmenu td {
    vertical-align: top;
}

.mas-mainmenu .title {
    font-weight: bold;
    color: var(--mas-blue);
    vertical-align: top;

    width: 20%;
    border-bottom: 1pt solid var(--mas-blue);
}

.mas-mainmenu input {
    font-family: var(--mas-font);
    font-size: 12pt;
    border: 1px solid var(--mas-blue);
    border-radius: 3px;
}

.mas-mainmenu input[type=radio] {
    margin: 0px 0px 15px 0px;

    text-align: center;
    width:20px;
    height:20px;

    vertical-align: top;
}

.mas-mainmenu input[type=radio]:before {
    content:'';
    display:block;
    width:100%;
    height:100%;
    border-radius:50%;
}
.mas-mainmenu label {
    padding-left: 5px;
}

.mas-mainmenu input[type=radio]:checked:before {
    background: var(--mas-blue);
}

.mas-mainmenu input[type=radio]:checked + label {
    font-weight: bold;
}

.mas-mainmenu input[type=radio]:hover + label {
    color: var(--mas-blue);
    text-decoration: underline;
    cursor: pointer;
}

/* MAS mainmenu END */

/* MAS table START */

.mas-table-menu {
    width: var(--mas-content-width);
    margin: 80px auto 0px auto;
}

.mas-menu-group {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    justify-content: space-between;
}

.mas-legend-container {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.mas-red-square {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: var(--mas-mark);;
    margin-right: 8px;
}

.mas-legend-text {
    font-family: var(--mas-font);
    font-size: 10pt;
}

.mas-button-group {
    display: flex;
    gap: 10px;
}

.mas-table {
    border: 2px solid var(--mas-blue);
    border-collapse: collapse;

    font-family: var(--mas-font);
    color: black;
    text-align: left;

    table-layout: fixed;
    width: var(--mas-content-width);
}

.mas-table .bold {
    font-weight: bold;
}

.mas-table .right {
    text-align: right;
}

.mas-table .footer {
    color: white;
    background-color: var(--mas-blue);
}

.mas-table .footer td {
    font-size: 12pt;
    border: 2px solid var(--mas-blue);
    border-collapse: collapse;
}

.mas-table th {
    border: 1px solid var(--mas-blue);
    border-collapse: collapse;

    color: white;
    background-color: var(--mas-blue);

    padding: 6px;
}

.mas-table th p {
    float: left;
    margin: 0px;
    font-family: var(--mas-font);
    font-weight: 700;
    font-size: 12pt;
    color: white;
    padding-top: 1px;
}

.mas-table th.filtered p::after {
    content: '\1F50E';
}

.mas-table th.filtered p {
    color: var(--mas-grey);
}

.mas-table tr {
    border: 1px solid var(--mas-blue);
    border-collapse: collapse;
}

.mas-table td {
    border: 1px solid var(--mas-grey);
    border-collapse: collapse;
    padding: 6px;

    font-size: 10pt;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.mas-table td:first-child {
    border-left: 2px solid var(--mas-blue)
}

.mas-table td:last-child {
    border-right: 2px solid var(--mas-blue);
}

.mas-table tr:has(.selectRow:checked) > td {
    background-color: var(--mas-light-blue);
}

.toggle-button-group {
    padding-right: 10px;
}

.toggle-button-group input[type="checkbox"] {
    display: none !important ;
}

.toggle-button-group label {
    display: inline-block;
    padding: 10px 10px;
    margin: 5px 5px 5px 12px;
    width: 74%;
    background-color: #f0f0f0;
    border: 1px solid  var(--mas-grey);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.toggle-button-group input[type="checkbox"]:checked + label {
    background-color: var(--mas-blue);
    color: white;
    border-color: var(--mas-blue);
}

.toggle-button-group label:hover {
    background-color: #e0e0e0;
}

/* MAS table - checkbox START */

.mas-table th input[type="checkbox"] {
    background-color: white;
    border: 2px solid white;
}

.mas-table input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-content: center;
    justify-content: center;
    padding: 2px;
    border: 2px solid var(--mas-blue);
    border-radius: 2px;
    margin: 3px 4px;
}

.mas-table input[type="checkbox"]::before {
    content: "";
    width: 9px;
    height: 9px;
    clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
    transform: scale(0);
    background-color: var(--mas-blue);
}

.mas-table th input[type="checkbox"]::before {
    background-color: var(--mas-blue);
}

.mas-table input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* MAS table - checkbox END */

/* MAS table - button START */

.mas-table td button {
    font-family: var(--mas-font);
    font-size: 12px;
    font-weight: bold;

    color: white;
    background-color: var(--mas-blue);
    transition-duration: 0.5s;

    border: 2px solid var(--mas-blue);
    border-radius: 9px;

    padding: 1px 8px 1px 8px;

    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.mas-table td button:hover {
    background-color: white;
    color: var(--mas-blue);
}

.mas-table th button {
    font-family: var(--mas-font);
    font-size: 12px;
    font-weight: bold;
    float: right;
    padding: 0px 1px 0px 2px;

    color: black;
    background-color: white;

    border: 2px solid black;
    border-radius: 5px;

    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.mas-table th button:hover {
    background-color: white;
    border-color: var(--mas-blue);
    color: var(--mas-blue);
}

.portaldate-mark {
    background-color: var(--mas-mark);
}

/* MAS table - button END */

/* MAS table END */

/* MAS buttons START */

.mas-button {
    font-family: var(--mas-font);
    font-size: 12pt;
    font-weight: bold;

    background-color: var(--mas-blue);
    color: white;
    transition-duration: 0.5s;

    border: 2px solid var(--mas-blue);
    border-radius: 10px;

    padding: 1px 12px 1px 12px;
    margin: 0px 0px 8px 2px;

    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.mas-button[disabled] {
    border: 2px solid var(--mas-blue);

    opacity: 0.8;
    pointer-events: none;
    border-color: lightgray;
    color: darkgray;
}

.mas-button:hover {
    background-color: white;
    color: var(--mas-blue);
}

.mas-button-invert {
    font-family: var(--mas-font);
    font-size: 12pt;
    font-weight: bold;

    background-color: white;
    color: var(--mas-blue);
    transition-duration: 0.5s;

    border: 2px solid var(--mas-blue);
    border-radius: 10px;

    padding: 1px 12px 1px 12px;
    margin: 0px 0px 8px 2px;

    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.mas-button-invert[disabled] {
    border: 2px solid var(--mas-blue);

    opacity: 0.8;
    pointer-events: none;
    border-color: lightgray;
    color: darkgray;
}

.mas-button-invert:hover {
    background-color: var(--mas-blue);
    color: white
}

.mas-button-green {
    font-family: var(--mas-font);
    font-size: 12pt;
    font-weight: bold;

    background-color: var(--mas-green);
    color: white;
    transition-duration: 0.5s;

    border: 2px solid var(--mas-green);
    border-radius: 10px;

    padding: 1px 12px 1px 12px;
    margin: 0px 0px 8px 2px;

    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.mas-button-green[disabled] {
    border: 2px solid var(--mas-green);

    opacity: 0.8;
    pointer-events: none;
    border-color: lightgray;
    color: darkgray;
}

.mas-button-green:hover {
    background-color: white;
    color: var(--mas-green);
}

.mas-button-green-invert {
    font-family: var(--mas-font);
    font-size: 12pt;
    font-weight: bold;

    background-color: white;
    color: var(--mas-green);
    transition-duration: 0.5s;

    border: 2px solid var(--mas-green);
    border-radius: 10px;

    padding: 1px 12px 1px 12px;
    margin: 0px 0px 8px 2px;

    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.mas-button-green-invert[disabled] {
    border: 2px solid var(--mas-green);

    opacity: 0.8;
    pointer-events: none;
    border-color: lightgray;
    color: darkgray;
}

.mas-button-green-invert:hover {
    background-color: var(--mas-green);
    color: white
}

.mas-button-red {
    font-family: var(--mas-font);
    font-size: 12pt;
    font-weight: bold;

    background-color: var(--mas-red);
    color: white;
    transition-duration: 0.5s;

    border: 2px solid var(--mas-red);
    border-radius: 10px;

    padding: 1px 12px 1px 12px;
    margin: 0px 0px 8px 2px;

    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.mas-button-red[disabled] {
    border: 2px solid var(--mas-red);

    opacity: 0.8;
    pointer-events: none;
    border-color: lightgray;
    background-color: white;
    color: darkgray;
}

.mas-button-red:hover {
    background-color: white;
    color: var(--mas-red);
}

/* MAS buttons END */

.mas-button-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 30px;
    color: var(--mas-text-color, #333);
}

.maximized-overlay {
    z-index: 1000;
}

.maximized-content {
    width: 95vw !important;
    height: 90vh !important;
    overflow-y: auto;
    top: 0;
    left: 0;
}


.maximized-content .scrolling-text-box {
    max-height: 10.8em;
}

.detail-overlay {
    height: 100%;
    width: 100%;
    display: none;
    position: fixed;
    justify-content: center;
    align-items: center;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: var(--mas-blue);
    background-color: rgba(10,90,119, 0.9);
}

.detail-overlay-content {
    position: relative;
    width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background-color: white;
    border-radius: 20px;
    font-family: var(--mas-font);
}

.detail-overlay-content-head {
    font-family: var(--mas-font);
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-overlay-content-table {
    display: flex;
    margin: 20px 0px;
    font-family: var(--mas-font);
    font-size: 12pt;
}

.detail-overlay-content-table-col {
    display: flex;
    gap: 20px;
    flex-direction: column;
    flex: 1 1 50%;
    vertical-align: top;
}

.detail-overlay-content-table-row {
    display: flex;
}

.detail-overlay-content-table-row div:first-child {
    font-weight: bold;
    width: 30%;
}

.detail-overlay-content-table-row div:last-child {
    width: 70%;
}

.scrolling-text-box {
    max-height: 4.8em;
    overflow-y: auto;
    line-height: 1.2em;
    font-size: 1em;
}

.detail-overlay-content .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    text-align: left;
}

.detail-overlay-content .col {
    background: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.detail-overlay-content .col--full {
    grid-column: 1 / -1;
}

.detail-overlay-content .grayline {
    grid-column: 1 / -1;
    height: 1px;
    background-color: var(--mas-grey);
    -webkit-margin-after: 16px;
}

.detail-overlay-content .col h1, h2, h3, h4 {
    -webkit-margin-before: 0px;
}

.detail-overlay-content .col p {
    -webkit-margin-before: 0px;
}

/* von Simon start */
.center-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    flex-direction: column;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(244, 244, 244, 0.7);
    z-index: 1000;
}
/* von Simon stop */