﻿* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #EEEEEF;
    color: #333;
    margin: 0;
    padding: 0;
}

#content {
    max-width: 800px;
    margin: 25px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.content-lg{
    max-width: 960px;
    margin: 25px auto;
    padding: 20px;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

h4 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #444;
}

.filter-box {
    margin-bottom: 10px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 2fr;
    align-items: center;
    gap: 5px;
}

.filter-label {
    font-weight: bold;
    grid-column: 1 / 2;
}

.filter-input {
    grid-column: 2 / 3;
}

.filter-buttons {
    grid-column: 3 / 4;
}

.dataTables_filter {
    display: none;
}


/* DataTables Styling */

#maList_wrapper {
    font-size: 0.85em;
}

#maList {
    font-size: 0.85rem;
}

.dataTables_wrapper .dataTables_paginate {
    font-size: 0.85rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    font-size: 0.85rem;
}

#maList thead th {
    font-size: 0.85rem;
}
.dataTables_wrapper .paginate_button svg {
    width: 12px;
    height: 12px;
    vertical-align: middle;
}

.dataTables_wrapper .paginate_button:hover svg * {
    stroke: #558817;
}

.items-per-page {
    grid-column: 4 / 5;
    display: flex;
    align-items: center;
    gap: 3px;
}

.items-per-page input {
    width: 40px;
}

.box {
    padding: 3px;
   margin-bottom: 10px;
}

.grid-container {
    display: grid;
    grid-template-columns: 100%;
    gap: 5px;
   /* margin-bottom: 10px; */
    align-items: baseline;
}

.grid-header {
    grid-column: 1/-1;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
    background-color: #ccc;
    padding: 3px;
    border-radius: 2px;
}

.grid-container-two-columns {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 5px;
    align-items: center;
}

.grid-row {
    display: contents;
}

.grid-label {
    font-weight: bold;
    padding-right: 5px;
    font-size: 0.85em;
}

.grid-value {
    font-size: 0.85em;
}

.grid-value-with-button {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 95%
}

.grid-value-input {
    width: 60%;
    padding: 5px;
    font-size: 0.85em;
}

.grid-value-button {
    width: 30%;
    padding: 5px;
    margin-top: 3px;
    height: auto;
    background-color: #65A518;
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.85em;
    text-align: center;
    transition: background-color 0.3s;
    box-sizing: border-box;
}

.grid-value-button:hover {
    background-color: #558817;
}

.two-column-container {
    display: grid;
    /*margin-bottom: 10px;*/
    grid-template-columns: 60% 40%;
}

.two-column-container label {
    font-size: 0.9em;
}

.column {
    flex: 1;
}

.column div {
    margin-bottom: 5px;
}

/* Form Inputs */
input[type="checkbox"] {
    accent-color: #558817;
    margin-right: 3px;
    vertical-align: middle;
    width: 14px;
    height: 14px;
}

label.required::after {
    content: ' *';
}

.column label[style*="font-weight: bold"] {
    font-weight: bold;
}


.inputText {
    width: 95%;
    padding: 5px;
    margin-top: 3px;
    border: 1px solid #C6C7C8;
    border-radius: 2px;
    font-size: 0.85em;
}

.button, .button_highlight {
    font-family: Arial, sans-serif;
    padding: 5px 15px;
    border: none;
    background-color: #65A518;
    color: white;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background-color 0.3s;
    text-decoration: none;
}

.button:hover, .button:focus, .button_highlight {
    background-color: #558817;
}

.button[disabled] {
    background-color: #C1DBA3;
    cursor: not-allowed;
    opacity: 0.6;
}

.small-button {
    padding: 4px 8px;
    font-size: 0.85em;
    background-color: #65A518;
    color: white;
    border-radius: 2px;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.small-button:hover {
    background-color: #558817;
}

.small-button:disabled {
    background-color: gray;
}

nav.topnav {
    display: flex;
    align-items: center;
}

@media print {
    nav.topnav {
        display: none;
    }
}

.login-container {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.login-name {
    margin-right: 10px;
}

.logout-button, .login-button {
    font-size: 0.8rem;
    padding: 7px 10px;
    height: 30px;
    background-color: #65A518;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.logout-button:hover, .login-button:hover {
    background-color: #558817;
}

.orgabutton {
    padding: 4px 25px;
    height: 2.5rem;
    width: 20%;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #65A518;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
}

.orgabutton-left {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpolygon points='35,5 15,25 35,45' fill='white'/%3E%3C/svg%3E");
}

.orgabutton-right {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpolygon points='15,5 35,25 15,45' fill='white'/%3E%3C/svg%3E");
}
.orgabutton-container{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6rem;
}


.orgabutton:hover {
    background-color: #558817;
}
.formular-grid {
    display: grid;
    grid-template-columns: 3fr 8% 8% 3fr 4fr;
    gap: 10px 5px;
}

.bold{
    font-weight: bold;
}



.orgabutton:active {
    background-color: #558817;
    transform: scale(0.98);
}

.orgaselect{
    width:100%;
    text-align: center;
}

.orgaselect option {
    background-color: #ffffff;
    color: black;
}

.orgaselect option:checked {
    background-color: #558817;
    color: white;
}

.orgaselect:focus option:checked {
    background-color: #558817;
    color: white;
}

.orgaselect ::selection {
    background-color: #558817;
    color: white;
}

.legend-text {
    font-size: 12px;
    line-height: 1.5;
}

.info, .error {
    margin-top: 10px;
    padding: 5px;
    border-radius: 2px;
    font-size: 0.85em;
}

.info {
    background-color: #d4edda;
    color: #006729;
}

.error {
    background-color: #f8d7da;
    color: #8D1429;
}

header {
    height: 30px;
    width: 100%;
    background-color: #C1DBA3;
}

/* Dialog Backdrop */
dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.57);
}

.violated {
    background-color: #E60018;
    color: white;
}

.disabled-button {
    background-color: gray;
    color: white;
    cursor: not-allowed;
    opacity: 0.7;
}

.button:disabled {
    background-color: #6C6F70;
    color: white;
    cursor: not-allowed;
    opacity: 0.7;
}

#resultsTable {
    font-size: 0.8em;
}

.margin-top-large {
    margin-top: 15px;
}
.margin-top-small {
    margin-top: 7px;
}

.margin-top-large {
    margin-top: 15px;
}

.button-container-right {
    display: flex;
    margin-right: 17px;
    justify-content: flex-end;
    gap: 10px;
}

.button-container-spaced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-right: 17px;
}

.clickable-row {
    cursor: pointer;
}

#certificatesTable {
    font-size: 0.7em;
    width: 100%;
}

#certificatesTable td {
    padding-top: 5px;
    padding-bottom: 5px;
}

#certificatesTable thead th {
    font-weight: bold;
}

#certificatesTable_wrapper .dataTables_paginate {
    padding-top: 5px;
}

.form-error {
    visibility: hidden;
    color: #E60018;
}

.form-error.show {
    visibility: visible;
}

.form-error :is(
    .form-error-valueMissing, .form-error-badInput,
    .form-error-typeMismatch, .form-error-patternMismatch,
    .form-error-tooLong, .form-error-tooShort,
    .form-error-rangeUnderflow, .form-error-rangeOverflow,
    .form-error-stepMismatch, .form-error-customError) {
    display: none;
}

.form-error.show :is(
    .form-error-valueMissing, .form-error-badInput,
    .form-error-typeMismatch, .form-error-patternMismatch,
    .form-error-tooLong, .form-error-tooShort,
    .form-error-rangeUnderflow, .form-error-rangeOverflow,
    .form-error-stepMismatch, .form-error-customError).show {
    display: unset;
}

#historieList_wrapper,
#historieList {
    font-size: 0.85rem;
}
.historie-grid{
    grid-template-columns: 40% 60%;
}

#historieList thead th {
    font-size: 0.85rem;
}

.hidden {
    display: none;
}
.pwvergessen-grid{
    grid-template-columns: 30% 35% 35%;
}

.pwvergessen-combobox {
    width:95%
}
.einstellungen-grid{
    grid-template-columns: 30% 70%;
}

.full-width{
    width: 100%
}

input.plz{
    width: 30%
}

input.ort{
    width: 64%
}

.small-text{
   font-size: 0.8rem;
}

.mitarbeiter-flex{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.error-box{
    margin:50px
}

#certificatesTable tbody tr.invalid {
    background-color: #e0e0e0;
}

code {
    font-size: 15px;
    padding: 1px 4px;
    border: 1px solid gray;
    background: #ececec;
    border-radius: 7px;
    line-height: 1.1rem;
}

#certList tbody tr.invalid {
    background-color: #e0e0e0;
}

#certList tbody tr.invalid td.invalid {
    background-color: #ff8888;
}

#cert-content {
    max-width: 1100px;
}

#certList {
    font-size: 0.95rem;
    width: 100%;
    border-collapse: collapse;
}

#certList th, #certList td {
    padding: 10px;
    border: 1px solid #ddd;
}

#certList .version-pill {
    line-height: 1.1rem;
    padding: 2px 5px;
    font-size: 0.85rem;
    border-radius: 5px;
    background-color: #62caf4;
    display: inline-block;
    margin: 2px;
}

#certList .hashvalue {
    word-wrap: break-word;
}

.upload-grid{
    grid-template-columns: 100%;
}

.cert-upload-details {
    grid-template-columns: 30% 40% 30%;
}

.pwinfo-head{
    clear: none
}

.vm-data {
    display: flex; gap: 10px;
}

.flex-3{
    flex: 3;
}
.flex-2{
    flex: 2;
}