/* Шрифты */
@font-face {
    font-family: 'Korb Regular';
    src: url('assets/fonts/Korb-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* Базовые стили body */
body {
    transition: opacity ease-in 0.2s;
    margin: 0;
    font-family: 'Korb Regular', Arial, sans-serif;
    font-weight: 400;
}

.bold {
    font-family: 'Korb Regular', Arial, sans-serif;
    font-weight: 800;

}

body[unresolved] {
    opacity: 0;
    display: block;
    overflow: hidden;
    position: relative;
}

/* Предупреждения */
.lux-no-js,
.lux-no-ie11 {
    color: red;
    font-size: 20px;
    border: 1px solid red;
    padding: 10px;
}

/* Контент */
.vp-content {
    border-top: 2px solid #d0dce6;
    padding: 20px 0 0;
}

/* Страница валидации - используем Korb Regular */
.vp-verifikation,
.vp-verifikation div {
    font-family: 'Korb Regular', Arial, sans-serif;
}

.lux-header-side-nav {
    display: flex;
}

/* Impressumbar */
.impressumbar {
    height: 30px;
    background: linear-gradient(to right, #6685a3, #39577b);
    place-content: center end;
    align-items: center;
    display: flex;
}

.linkbar {
    float: right;
}

.linkbar a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    padding-top: 10px;
    padding-right: 20px;
}

/* Mainbar */
.mainbar-title {
    align-items: center;
}

.mainbar-logos {
    place-content: center end;
    align-items: center;
}

div.mainbar div,
div.linkbar {
    font-family: 'Korb Regular', Arial, sans-serif;
}

.ihklink {
    padding-right: 20px;
}

.mainbar {
    height: 175px;
    background: linear-gradient(to right, #c6d0da, #39577c);
}

.nav-content {
    padding-bottom: 40px;
}

.nav-header {
    padding-top: 20px;
}

.bartitle {
    font-family: 'Korb Regular', Arial, sans-serif !important;
    font-size: calc(12px + 1.8vw);
    color: #fff;
}

.nowrap {
    white-space: nowrap;
}

.bartitle-small {
    font-family: 'Korb Regular', Arial, sans-serif;
    font-size: calc(6px + 1vw);
    color: #fff;
}

.nav-item {
    padding-right: calc(50px + 10vw);
    list-style: none;
    border-bottom: 2px solid #909090;
    display: list-item;
    text-align: -webkit-match-parent;
    margin: 16px 30px 16px 0;
}

.nav-item:hover {
    border-bottom: 2px solid #2d76b2;
}

.nav-item:hover a {
    color: #2d76b2;
    text-decoration: none;
}

.nav-item a:link {
    text-decoration: none;
    font-family: 'Korb Regular', Arial, sans-serif;
    font-size: 20px;
    line-height: 1.5;
}

.image {
    padding-right: 20px;
    height: calc(40px + 1vw);
    width: auto;
}

/* Иконки валидации */
.icon-warning {
    color: #f1d427;
}

.icon-invalid,
.icon-error {
    color: red;
}

.icon-valid {
    color: #92d050;
}

.caption {
    padding-bottom: 0;
    padding-left: 15px;
    font-family: 'Korb Regular', Arial, sans-serif;
    font-size: 28px;
}

div {
    font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
}

.dateTime {
    margin-top: 10px;
}

/* Material Icons */
mat-icon,
mat-icon.mat-primary,
mat-icon.mat-accent,
mat-icon.mat-warn {
    color: var(--mat-icon-color);
}

.mat-icon {
    -webkit-user-select: none;
    user-select: none;
    background-repeat: no-repeat;
    display: inline-block;
    fill: currentColor;
    height: 24px;
    width: 24px;
    overflow: hidden;
}

.mat-icon.mat-icon-inline {
    font-size: inherit;
    height: inherit;
    line-height: inherit;
    width: inherit;
}

.mat-icon.mat-ligature-font[fontIcon]::before {
    content: attr(fontIcon);
}

[dir=rtl] .mat-icon-rtl-mirror {
    transform: scale(-1, 1);
}

.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,
.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon {
    display: block;
}

.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,
.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon {
    margin: auto;
}

/* Lux Flex утилиты */
.lux-flex {
    display: flex;
}

.lux-flex-row {
    flex-direction: row;
}

.lux-flex-col {
    flex-direction: column;
}

.lux-flex-wrap {
    flex-wrap: wrap;
}

.lux-flex-1 {
    flex: 1;
}

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

.lux-flex-shrink-1 {
    flex-shrink: 1;
}

.lux-flex-basis-8\/10 {
    flex-basis: 80%;
}

.lux-flex-basis-3\/10 {
    flex-basis: 30%;
}

.lux-gap-2 {
    gap: 0.5rem;
}

.lux-gap-7 {
    gap: 1.75rem;
}

.lux-place-content-center {
    place-content: center;
}

.lux-place-content-left {
    place-content: left;
}

.lux-items-center {
    align-items: center;
}

/* Details страница - точная копия из оригинала */
.vp-details {
    place-content: center;
}

div.details {
    max-width: 500px;
}

div.details > div {
    padding-top: 30px;
}

div.details div > div:first-child {
    font-weight: 700;
    margin-bottom: 5px;
    background-color: #ccd7e6;
    vertical-align: bottom;
}

.anzahlDokumente {
    margin-top: 30px;
    margin-bottom: 30px;
}

div.absender,
div.empfaenger {
    white-space: pre;
}

div.links {
    margin-bottom: 50px;
}

div.links div:last-child {
    text-align: right;
}

div.links div:first-child {
    text-align: left;
}

.text {
    font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.lux-place-content-end {
    place-content: flex-end;
}

/* Verify Further Data страница */
.verify-further-content {
    padding: 20px 0;
}

.verify-form {
    max-width: 100%;
}

/* Двухколоночный layout для формы */
.form-field-label {
    padding: 10px 15px 10px 0;
    font-size: 15px;
    line-height: 1.6;
    font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
}

.vp-row-margin {
    margin-bottom: 10px;
}

.gt-xs\:lux-flex-basis-4\/10 {
    flex-basis: 40%;
}

.gt-xs\:lux-flex-basis-6\/10 {
    flex-basis: 60%;
}

/* Material Design input styling */
.lux-form-control-wrapper {
    display: block;
}

.lux-form-control-container-authentic {
    position: relative;
}

.lux-input-row-authentic {
    position: relative;
    display: flex;
    align-items: flex-end;
}

.mat-mdc-input-element {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.42);
    font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: transparent;
    box-sizing: border-box;
    transition: border-bottom-color 0.2s;
}

.mat-mdc-input-element:focus {
    outline: none;
    border-bottom-color: #036;
    border-bottom-width: 2px;
}

.mat-mdc-input-element.cdk-textarea-autosize {
    resize: vertical;
    min-height: 60px;
}

/* File upload */
.lux-file-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.lux-file-visible-input {
    flex: 1;
}

.lux-file-upload-button {
    padding: 4px 8px;
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.2s;
}

.lux-file-upload-button:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Material buttons */
.lux-button.mdc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 16px;
    height: 36px;
    border: none;
    border-radius: 4px;
    font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
}

.lux-button.mat-mdc-raised-button.mat-primary {
    background-color: #036;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lux-button.mat-mdc-raised-button.mat-primary:hover {
    background-color: #024580;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.lux-button.mat-mdc-button.mat-unthemed {
    background-color: transparent;
    color: #036;
    border: 1px solid rgba(0, 51, 102, 0.5);
}

.lux-button.mat-mdc-button.mat-unthemed:hover {
    background-color: rgba(0, 51, 102, 0.04);
}

.mat-mdc-button-persistent-ripple,
.mat-mdc-button-touch-target {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.mdc-button__label {
    position: relative;
    z-index: 1;
}

/* Административная панель */
.admin-container {
    padding: 40px 20px;
}

.admin-section {
    margin-bottom: 50px;
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-title {
    font-family: 'Korb Regular', Arial, sans-serif;
    font-size: 24px;
    margin-bottom: 25px;
    color: #2d76b2;
    border-bottom: 2px solid #d0dce6;
    padding-bottom: 10px;
}

.admin-form {
    max-width: 800px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d0dce6;
    border-radius: 4px;
    font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d76b2;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #2d76b2;
    color: white;
}

.btn-primary:hover {
    background-color: #1a5a8a;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead {
    background-color: #f8f9fa;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.admin-table th {
    font-weight: 600;
    color: #495057;
}

.admin-table tbody tr:hover {
    background-color: #f8f9fa;
}

.item-names-cell {
    max-width: 250px;
    white-space: pre-wrap;
    word-break: break-word;
}

.actions-cell {
    white-space: nowrap;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.2);
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.modal-content h3 {
    margin-top: 0;
    color: #2d76b2;
    font-family: 'Korb Regular', Arial, sans-serif;
}

.modal-content input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 1px solid #d0dce6;
    border-radius: 4px;
    font-size: 15px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Модальное окно для QR-кода */
.qr-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.qr-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.qr-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.qr-modal-close:hover,
.qr-modal-close:focus {
    color: #000;
}

#qrCodeContainer {
    background: white;
    display: inline-block;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#qrCodeContainer canvas {
    display: block;
    margin: 0 auto;
}

#qrTitle {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.error-message {
    color: #dc3545;
    margin-top: 10px;
    font-size: 14px;
}
