@font-face {
 font-family: 'Quicksand';
 src: url('/include/Quicksand-VariableFont_wght.ttf') format('truetype');
}


body {
    font-family: "Quicksand";    
    width: 95%;
    margin: auto;
    font-size: 1em;
}

div.white {
    background: white;
    height: 15px;
}
    
div.navbar {
    position: fixed;
    top: 0px;
    width: 95%;
    z-index: 1;
}

div.content-box {
    margin-top: 60px;
    padding: 20px;
    background: #f9f9fb;
    }

div.footer  {
    color: white;
    background: #161c3c;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    }

div.row {
  display: flex;
}

div.column {
  flex: 50%;
}

/* FONT STYLES */
p.bold  {
    font-weight: 700;
    }
    
p.normal {
    font-weight: 500;
}

p.code  {
    font-family: monospace, monospace;
    font-weight: 100;
    margin: 0;
    margin-top: 4px;
}

p.error  {
    font-weight: bold;
    }

h2  {
    margin-top: 40px;
    }

/* IMAGES */
img.icon  {
    width: 22px;
    height: 22px;
    margin-right: 18px;
    }

/* LINKS */
a {
    color: inherit;
    text-decoration: underline;
}


/* BUTTONS */
a.button, input[type=submit], button {
    text-align: center;
    display: inline-block;
    border-radius: 30px;
    margin: 20px;
    padding: 20px;
    background: #f9f9fb;
    color: black;
    border: 2px solid black;
    font: inherit;
    font-weight: 700;
    width: 243px;
    text-decoration: none;    
}

form.button {
    display: inline-block;
}

a.button:hover, input[type=submit]:hover  {
    background: #161c3c;
    color: white;
    cursor: pointer;
}

a.button_warning:hover  {
    background: crimson;
    color: white;
}

a.minibutton  {
    border-radius: 0;
    padding: 5px;
    width: 150px;
    background: #f9f9fb;
    border: 2px solid black;
    text-decoration: none;    
    margin: 20px;
}

a.fixed_width_button {
    width: 130px;
    text-align: center;
    display: inline-block;
    margin: 0px
}

button {
    width: 243px;
    cursor: pointer;
    background: orange;
}

button:hover   {
    background: lightgreen;
}

button.minibutton {
    border-radius: 0;
    margin: 5px;
    padding: 5px;
    width: 150px;
    background: #f9f9fb;
}

/* table filters */
button.filter {
    height: 50px;
    width: 50px;
    padding: 5px;
    background-image: url('/include/edit.png');
    background-size: 40px;
    background-repeat: no-repeat;
    background-position: center;
}

div.table-controls {
    border: 0.5px solid black;
    box-sizing: border-box;
    border-radius: 5px;
}

div.table-controls-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px;
    
    
}

div.export-container {
    display: flex;
    align-items: center;
    padding: 5px;
    box-sizing: border-box;
}

button.export-button {
    background-color: transparent;
    color: black;
    border: none;
    padding: 0;
    margin: 0;
    margin-left: 6px;
    width: auto;
}

button.button-select {
    background-color: transparent;
    color: black;
    border: none;
    padding: 2px;
    margin: 6px;
    width: auto;
    border-radius: 0;
}

button.button-select:hover {
    text-decoration: underline;
}

button.export-button:hover {
    color: orange
}

/* inputs  */
input[type=text], input[type=date], input[type=password], input[type=email], input[type=datetime-local], input[type=number] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font: inherit;
}


input[type=datetime-local] {
    width: auto;
}

input.number  {
  text-align: right;
}

input[type="checkbox"], input[type="radio"] {
    opacity: 0;
}

input[type="checkbox"] + label, input[type="radio"] + label {
    padding: 10px;
    border: 2px solid black;
    margin: 0px;
    display: inline-block;
    width: 300px;
}


input[type="checkbox"]:checked + label, input[type="radio"]:checked + label {
    background: #161c3c;
    color: white;
}

/* classic checkbox, to be used in some parts of the website */
input.classic_checkbox {
    opacity: 100;
}

input.classic_radiobox {
    opacity: 100;
    margin: 0;
}

select {
    display: inline-block;
    width: 300px;
    background: white;
    margin-left: 10px;
}

select.configuration {
    display: inline-block;
    width: 70px;
    background: white;
    margin-left: 30px;
    text-align: right;
}

select.operation_task {
    display: inline-block;
    width: 250px;
    background: white;
    margin-left: 0px;
    text-align: left;
}


select.hidden {
    display: none;
}

label.hidden {
    display: none;
}

/* NAVBAR */
ul.navbar {
    list-style-type: none;
    overflow: hidden;
    border: 0px; /* 1px solid #e7e7e7;*/
    background-color: #f9f9fb;
    padding: 0;
    margin-top: 0px;
    margin-bottom: 0px;
}


li.nav a {
    display: block;
    color: #000000;
    text-align: center;
    padding: 8px 20px;
    text-decoration: none;
}

li.nav a:hover:not(.active) {
    background-color: #ddd;
}

li.nav a.active {
    color: white;
    background-color: #666666;
}


li.nav_left {
    float: left;
}

li.nav_right  {
    float: right;
}

li.main {
    font-weight: bold;
}

li.tabbutton {
    /*border:1px solid #000;*/
    font-weight: bold;    
}

li.tabbutton_selected {
    background-color: #ddd;
}


div.tabs {
    padding: 0;
    margin-left: 0;
    margin-top: 25px;
    margin-bottom: 25px;
}

/* Table */
table.filter th, td {
    vertical-align: top;
}

input[type=checkbox].filter {
    margin: 0 5px 0 5px;
}

table th, td {
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}

table td.number {
    text-align: right;
}

table th.center, td.center {
    text-align: center;
    /*width: 160px;*/
}

table td.preformatted_text {
    white-space:pre;
    word-wrap: break-word;
}

table button.sortable {
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border-width: 0;
    padding: 0;
    margin: 0;
    text-align: start;
    width: auto;
}

table button.sortable.asc::after {
    content: " ▴";
}

table button.sortable.desc::after {
    content: " ▾";
}

table input[type=submit] {
    font: inherit;
    color: black;
    background-color: transparent;
    margin: 0;
    padding: 0;
    border: none;
    width: auto;
    border-radius: 0;
    font-weight: normal;
    text-decoration: underline;
}
table input[type=submit]:hover {
    background-color: transparent;
    color: black;
}

th.warning, td.warning  {
    background: yellow;
    color: black;
}

td.greyed-out {
    color: #222;
}

td.error {
    color: #c31700;
}

td.success {
    color: #24a700;
}

td.yes, td.no, td.undefined, td.separator {
    height: 10px;
    width: 10px;
    margin: 0;
    padding: 0;
}

td.yes {
    background-color: #24a700;
}

td.no {
    background-color: #c31700;
}

td.undefined {
    background-color: #AAAAAA;
}


/* Modal boxes */
 /* The Modal (background) */
.modal_box {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal_box_content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 70%; /* Could be more or less, depending on screen size */
}

/* Pagination */
div.pagination {
    margin: auto;
    width: 50%;
    text-align: center;
}

.pagination ul {
	list-style-type: none;
	padding: 0;
    margin: 0 0;
	display: inline-flex;
	justify-content: space-between;
	box-sizing: border-box;
}
.pagination li {
	box-sizing: border-box;
	padding-right: 10px;
}

.pagination p {
    margin: 0;
}

.pagination select {
    width: 60px;
}

button.page  {
    width: auto;
	border-radius: 4px;
	background-color: transparent;
	padding: 8px;
	text-decoration: none;
    margin: 10px;
    border-color: #ccc;
}

button.page:disabled {
    cursor: default;
    border: 0;
    margin: 0;
    padding: 2px;
}

button.page.next::after {
    color: #555;
    content: " >"
}

button.page.back::before {
    color: #555;
    content: "< "
}

button.page.number  {
    width: 30px;
	border-radius: 30px;
    border-style: none;
	background-color: transparent;
	padding: 8px;
    margin: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
}
button.page.invisible {
    visibility: hidden;
}

button.page.selected  {
	background-color: #518acb;
	color: #fff;
    margin: 8px;
}

summary  {
    font-weight: bold;
    margin: 10px;
    }

/* filters for the sortable table */
div.filter-container {
    padding: 10px;
    margin: 0px;
    border-top: 1px solid #555;

}

div.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

div.filter-content {
    display: flex;
    flex-wrap: wrap;
}

div.filter-content > label {
    flex: box;
}

div.filter-element > span {
    margin: 0 0 20px 0;
    font-weight: bold;
}

div.filter-element > div {
    height: 62px;

    display: flex;
    align-items: center;
}

button.filter-control {
    background-color: transparent;
    border-radius: 4px;
    color: black;
    padding: 5px;
    margin: 0px;
    width: auto;
    border: 2px solid #161c3cbf;
    height: 40px;
}

button.filter-control > a{
    text-decoration: none;
}

button.filter-control:hover {
    background-color: black;
    color: white;
}


div.table-buttons {
    display: flex;
    gap: 10px;
}

button.filter-show {
    margin: 0px;
    padding: 10px;
    background-color: transparent;
    color: #161c3c;
    border: none;
    border-radius: 0px;
    width: auto;
    box-sizing: border-box;
}
button.filter-show::before {
    content: '▶ ';
}

button.filter-show.active::before {
    content: '▼ ';
}

div.checkbox {
    display: inline-block;
    border-color: #161c3cbf;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;

    margin: 10px 5px;
    padding: 10px;
    background-color: white;
}

input[type="checkbox"].filter, input[type="checkbox"].filter:checked {
    all: revert;
    + label {
        all: revert;
        padding: 10px;       
    }   
}

/* custom dropdown for filters */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    background-color: white;
    color: black;
    padding: 10px;
    font-size: 16px;
    border: 1px solid black;
    cursor: pointer;
    margin: 10px 0;
    border-radius: 5px;
}

.dropdown-button:hover {
    background-color: #eee;
}

.dropdown-button::after {
    content: '▼';
    float: right;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    left: 0;
    top: calc(100% - 10px);
    border-radius: 5px;
}

.dropdown-content label {
    padding: 8px 8px;
    cursor: pointer;
    display: block;
}

.dropdown-content label:hover {
    background-color: #f1f1f1;
}

.dropdown-content.show {
    display: block;
    width: 100%;
}

.dropdown-control {
    border-bottom: 0.5px solid black;
}

details.title > summary {
  font-size: 1.45em;
}

.merged-details {
    display: none;
}

.merged-details.active {
    display: block;
}

.merged-radio-container {
    display: flex;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 5px;
    overflow: hidden;
}

.merged-radio-container label {
    flex: 1;
    padding: 10px 15px;
    text-align: center;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.3s;
}
.merged-radio-container input[type="radio"] {
    display: none;
}

.merged-radio-container input[type="radio"]:checked + label {
    font-weight: bold;
}

