@charset "utf-8";
@import url("memo-variables.css");

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

#claimModal .modal .modal-dialog{
    width:750px;
}

.modal .eva_list_element a{
    color:var(--memo-accent-color);
}

.modal .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 0;
    border-radius: 8px;
    width: 80%;
    max-width: 750px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal .modal-header {
    background-color: #252525;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
}

.modal .modal-title {
    font-size: 18px;
    font-weight: bold;
}

.modal .close {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

.modal .close:hover,
.modal .close:focus {
    color: var(--memo-accent-color);
    text-decoration: none;
}

.modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
}

body.memo-page-theme-dark .modal {
    color-scheme: dark;
    background-color: rgba(0, 0, 0, 0.72);
}

body.memo-page-theme-dark .modal .modal-content {
    background-color: var(--memo-dark-bg-color);
    border: 1px solid var(--memo-light-border-color-soft);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    color: var(--memo-light-text-color);
}

body.memo-page-theme-dark .modal .modal-header {
    background-color: var(--memo-light-bg-color-soft);
    border-bottom: 1px solid var(--memo-light-border-color-soft);
    color: var(--memo-light-text-color);
}

body.memo-page-theme-dark .modal .modal-title {
    color: var(--memo-light-text-color);
    font-weight: 700;
}

body.memo-page-theme-dark .modal .modal-body,
body.memo-page-theme-dark .modal .modal-footer {
    background-color: var(--memo-dark-bg-color);
    color: var(--memo-light-text-color);
}

body.memo-page-theme-dark .modal .modal-footer {
    border-top: 1px solid var(--memo-light-border-color-soft);
}

body.memo-page-theme-dark .modal .form-label,
body.memo-page-theme-dark .modal label {
    color: color-mix(in srgb, var(--memo-light-text-color) 82%, transparent);
}

body.memo-page-theme-dark .modal .form-control,
body.memo-page-theme-dark .modal .form-select,
body.memo-page-theme-dark .modal input,
body.memo-page-theme-dark .modal select,
body.memo-page-theme-dark .modal textarea {
    background-color: var(--memo-light-bg-color-soft);
    border-color: var(--memo-light-border-color-soft);
    color: var(--memo-light-text-color);
}

body.memo-page-theme-dark .modal .form-select,
body.memo-page-theme-dark .modal select,
body.memo-page-theme-dark .modal select[multiple] {
    background-color: var(--memo-dark-field-bg-color) !important;
    background-image: var(--bs-form-select-bg-img) !important;
    border-color: var(--memo-light-border-color-soft) !important;
    color: var(--memo-light-text-color) !important;
    -webkit-text-fill-color: var(--memo-light-text-color) !important;

    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23aeb7c4' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

body.memo-page-theme-dark .modal .form-control::placeholder,
body.memo-page-theme-dark .modal textarea::placeholder,
body.memo-page-theme-dark .modal input::placeholder {
    color: color-mix(in srgb, var(--memo-light-text-color) 68%, transparent);
}

body.memo-page-theme-dark .modal select option {
    background-color: var(--memo-dark-field-bg-color) !important;
    color: var(--memo-light-text-color) !important;
    -webkit-text-fill-color: var(--memo-light-text-color) !important;
}

body.memo-page-theme-dark .modal .form-control:focus,
body.memo-page-theme-dark .modal .form-select:focus,
body.memo-page-theme-dark .modal input:focus,
body.memo-page-theme-dark .modal select:focus,
body.memo-page-theme-dark .modal textarea:focus {
    border-color: var(--memo-accent-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--memo-accent-color) 18%, transparent);
    outline: none;
}

body.memo-page-theme-dark .modal .btn-primary {
    background: var(--memo-accent-color);
    border-color: var(--memo-accent-color);
    color: var(--memo-light-text-color);
}

body.memo-page-theme-dark .modal .btn-primary:hover,
body.memo-page-theme-dark .modal .btn-primary:focus {
    background: var(--memo-accent-color);
    border-color: var(--memo-accent-color);
    color: var(--memo-light-text-color);
}

body.memo-page-theme-dark .modal .btn-secondary {
    background: var(--memo-light-bg-color-soft);
    border-color: var(--memo-light-border-color-soft);
    color: var(--memo-light-text-color);
}

body.memo-page-theme-dark .modal .btn-secondary:hover,
body.memo-page-theme-dark .modal .btn-secondary:focus {
    background: var(--memo-light-border-color-soft);
    border-color: var(--memo-light-border-color-soft);
    color: var(--memo-light-text-color);
}

body.memo-page-theme-dark .modal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

body.memo-page-theme-dark .modal .btn-close:hover,
body.memo-page-theme-dark .modal .btn-close:focus {
    opacity: 1;
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history {
    color: color-mix(in srgb, var(--memo-light-text-color) 82%, transparent);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-title,
body.memo-page-theme-dark #entity-search-modal .vehicle-history-meta {
    color: var(--memo-light-text-color);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-vin,
body.memo-page-theme-dark #entity-search-modal .vehicle-history-submeta,
body.memo-page-theme-dark #entity-search-modal .vehicle-history-filter-count {
    color: color-mix(in srgb, var(--memo-light-text-color) 68%, transparent);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-filters {
    background: var(--memo-light-bg-color-soft);
    border-color: var(--memo-light-border-color-soft);
    box-shadow: none;
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-filter span {
    color: color-mix(in srgb, var(--memo-light-text-color) 82%, transparent);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-filter .datepicker-wrapper input,
body.memo-page-theme-dark #entity-search-modal .vehicle-history-filter .datepicker-wrapper .flatpickr-input,
body.memo-page-theme-dark #entity-search-modal .vehicle-history-filter .datepicker-wrapper .flatpickr-input[readonly] {
    background: var(--memo-light-bg-color-soft) !important;
    border-color: var(--memo-light-border-color-soft) !important;
    color: var(--memo-light-text-color) !important;
    -webkit-text-fill-color: var(--memo-light-text-color) !important;
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-entry {
    background: var(--memo-light-bg-color-soft);
    border-color: var(--memo-light-border-color-soft);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    color: color-mix(in srgb, var(--memo-light-text-color) 82%, transparent);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-entry-header {
    background: var(--memo-light-bg-color-soft);
    color: color-mix(in srgb, var(--memo-light-text-color) 82%, transparent);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-entry-header:hover,
body.memo-page-theme-dark #entity-search-modal .vehicle-history-entry-header[aria-expanded="true"] {
    background: var(--memo-light-bg-color-soft);
    border-color: var(--memo-light-border-color-soft);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-entry-toggle,
body.memo-page-theme-dark #entity-search-modal .vehicle-history-entry-header:hover .vehicle-history-entry-toggle {
    background: var(--memo-accent-color);
    border-color: var(--memo-accent-color);
    color: var(--memo-light-text-color);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-entry-body {
    background: var(--memo-dark-bg-color);
    color: color-mix(in srgb, var(--memo-light-text-color) 82%, transparent);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-submeta span {
    background: var(--memo-light-bg-color-soft);
    border-color: var(--memo-light-border-color-soft);
    color: color-mix(in srgb, var(--memo-light-text-color) 82%, transparent);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-table th,
body.memo-page-theme-dark #entity-search-modal .vehicle-history-table td {
    border-color: var(--memo-light-border-color-soft);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-table thead th {
    background: var(--memo-light-bg-color-soft);
    color: var(--memo-light-text-color);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-table tbody tr {
    background: var(--memo-dark-bg-color);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-table tbody tr:nth-child(odd),
body.memo-page-theme-dark #entity-search-modal .vehicle-history-field {
    background: var(--memo-light-bg-color-soft);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-field,
body.memo-page-theme-dark #entity-search-modal .vehicle-history-value {
    color: color-mix(in srgb, var(--memo-light-text-color) 82%, transparent);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-value-empty {
    color: color-mix(in srgb, var(--memo-light-text-color) 68%, transparent);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-value-block {
    background: var(--memo-dark-bg-color);
    border: 1px solid var(--memo-light-border-color-soft);
    color: var(--memo-light-text-color);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-empty-state,
body.memo-page-theme-dark #entity-search-modal .vehicle-history-debug {
    background: var(--memo-accent-color-soft);
    border-color: var(--memo-accent-color);
    color: var(--memo-accent-color);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-debug h4,
body.memo-page-theme-dark #entity-search-modal .vehicle-history-debug-error {
    color: var(--memo-accent-color);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-debug-summary span,
body.memo-page-theme-dark #entity-search-modal .vehicle-history-debug-table thead th {
    background: var(--memo-accent-color-soft);
    color: var(--memo-accent-color);
}

body.memo-page-theme-dark #entity-search-modal .vehicle-history-debug-table th,
body.memo-page-theme-dark #entity-search-modal .vehicle-history-debug-table td {
    border-color: var(--memo-accent-color);
}

body.memo-page-theme-dark #claimModal .col-container.white,
body.memo-page-theme-dark #supplierClaimModal .col-container.white {
    background: var(--memo-light-bg-color-soft);
    border-color: var(--memo-light-border-color-soft);
    color: color-mix(in srgb, var(--memo-light-text-color) 82%, transparent);
}

body.memo-page-theme-dark #claimModal .form-label,
body.memo-page-theme-dark #claimModal .form-check-label,
body.memo-page-theme-dark #supplierClaimModal .form-label,
body.memo-page-theme-dark #supplierClaimModal .form-check-label {
    color: color-mix(in srgb, var(--memo-light-text-color) 82%, transparent);
}

.claim-search-trigger {
    align-items: center;
    color: var(--memo-accent-color);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.35rem;
    justify-content: center;
    margin-left: 0.5rem;
    text-decoration: none;
}

.claim-search-trigger:hover,
.claim-search-trigger:focus-visible {
    color: var(--memo-accent-color);
}

body.memo-page-theme-dark #claimModal #documentUpload.collapse.show,
body.memo-page-theme-dark #claimModal #repaymentArea.collapse.show,
body.memo-page-theme-dark #supplierClaimModal #documentSupplierUpload.collapse.show,
body.memo-page-theme-dark #supplierClaimModal #supplierDueDateArea.collapse.show {
    background-color: var(--memo-dark-bg-color) !important;
    border: 1px solid var(--memo-light-border-color-soft);
    color: var(--memo-light-text-color);
    padding: 0.75rem;
}

body.memo-page-theme-dark #claimModal .form-check:has(#documentYes:checked),
body.memo-page-theme-dark #claimModal .form-check:has(#repaymentYes:checked),
body.memo-page-theme-dark #claimModal #documentYes:checked + .form-check-label,
body.memo-page-theme-dark #claimModal #repaymentYes:checked + .form-check-label {
    background-color: transparent;
}

body.memo-page-theme-dark #claimModal .text-muted,
body.memo-page-theme-dark #claimModal .form-text,
body.memo-page-theme-dark #supplierClaimModal .text-muted,
body.memo-page-theme-dark #supplierClaimModal .form-text {
    color: color-mix(in srgb, var(--memo-light-text-color) 68%, transparent) !important;
}

body.memo-page-theme-dark #claimModal input[readonly],
body.memo-page-theme-dark #supplierClaimModal input[readonly] {
    background: var(--memo-light-bg-color-soft) !important;
    border-color: var(--memo-light-border-color-soft) !important;
    color: var(--memo-light-text-color) !important;
    -webkit-text-fill-color: var(--memo-light-text-color) !important;
}

body.memo-page-theme-dark #claimModal input[type="file"]::file-selector-button,
body.memo-page-theme-dark #supplierClaimModal input[type="file"]::file-selector-button {
    background: var(--memo-light-bg-color-soft);
    border-color: var(--memo-light-border-color-soft);
    color: var(--memo-light-text-color);
}

body.memo-page-theme-dark #claimModal input[type="file"]::file-selector-button:hover,
body.memo-page-theme-dark #claimModal input[type="file"]:hover::file-selector-button,
body.memo-page-theme-dark #claimModal input[type="file"]:focus::file-selector-button,
body.memo-page-theme-dark #claimModal input[type="file"]:active::file-selector-button,
body.memo-page-theme-dark #supplierClaimModal input[type="file"]::file-selector-button:hover,
body.memo-page-theme-dark #supplierClaimModal input[type="file"]:hover::file-selector-button,
body.memo-page-theme-dark #supplierClaimModal input[type="file"]:focus::file-selector-button,
body.memo-page-theme-dark #supplierClaimModal input[type="file"]:active::file-selector-button {
    background: var(--memo-light-bg-color-soft) !important;
    border-color: var(--memo-light-border-color-soft) !important;
    color: var(--memo-light-text-color) !important;
}

.dealer-location-trigger {
    align-items: center;
    background: var(--memo-accent-color);
    border: 1px solid var(--memo-accent-color);
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 42px;
    height: 31px;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    width: 31px;
}

.dealer-location-trigger:hover,
.dealer-location-trigger:focus {
    background: #d94f08;
    border-color: #d94f08;
    color: #fff;
}

.dealer-location-modal .modal-dialog {
    max-width: min(980px, calc(100vw - 32px));
}

.dealer-location-modal .modal-content {
    margin: 0;
    max-width: none;
    width: 100%;
}

.dealer-location-modal .modal-title {
    font-size: 1.35rem;
}

.dealer-location-modal .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.9;
}

.dealer-location-modal .btn-close:hover,
.dealer-location-modal .btn-close:focus {
    opacity: 1;
}

.dealer-location-modal .modal-body {
    max-height: min(72vh, 760px);
    overflow: auto;
}

.dealer-location-modal-content {
    display: grid;
    gap: 16px;
}

.dealer-location-modal-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.2fr);
}

.dealer-location-card {
    background: #fff;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    padding: 18px;
}

.dealer-location-card h3 {
    color: #252525;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 14px;
}

.dealer-location-current-name {
    color: #252525;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.dealer-location-current-address,
.dealer-location-current-meta,
.dealer-location-empty,
.dealer-location-loading,
.dealer-location-error {
    color: #5d6672;
    font-size: 0.95rem;
}

.dealer-location-current-meta {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
}

.dealer-location-current-meta div {
    display: grid;
    gap: 8px;
    grid-template-columns: 88px minmax(0, 1fr);
}

.dealer-location-current-meta dt {
    color: #252525;
    font-weight: 700;
}

.dealer-location-current-meta dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dealer-location-current-meta a,
.dealer-location-table a {
    color: var(--memo-accent-color);
}

.dealer-location-search-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dealer-location-search-grid label {
    color: #252525;
    display: grid;
    font-weight: 700;
    gap: 6px;
}

.dealer-location-actions {
    display: flex;
    flex-flow: row wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.dealer-location-results {
    padding: 0;
}

.dealer-location-results h3 {
    padding: 18px 18px 0;
}

.dealer-location-table-wrap {
    overflow: auto;
}

.dealer-location-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 760px;
    width: 100%;
}

.dealer-location-table th,
.dealer-location-table td {
    border-top: 1px solid #e5ebf1;
    color: #252525;
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
}

.dealer-location-table th {
    background: #f4f6f8;
    font-weight: 700;
}

.dealer-location-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.dealer-location-table-action {
    text-align: right;
    white-space: nowrap;
}

.dealer-location-empty-cell {
    color: #6d7784;
    text-align: center;
}

body.memo-page-theme-dark .dealer-location-trigger {
    background: var(--memo-accent-color);
    border-color: var(--memo-accent-color);
    color: var(--memo-light-text-color);
}

body.memo-page-theme-dark .dealer-location-modal .modal-content {
    background: var(--memo-dark-bg-color);
    border-color: var(--memo-light-border-color-soft);
}

body.memo-page-theme-dark .dealer-location-card {
    background: var(--memo-light-bg-color-soft);
    border-color: var(--memo-light-border-color-soft);
}

body.memo-page-theme-dark .dealer-location-card h3,
body.memo-page-theme-dark .dealer-location-current-name,
body.memo-page-theme-dark .dealer-location-current-meta dt,
body.memo-page-theme-dark .dealer-location-search-grid label,
body.memo-page-theme-dark .dealer-location-table th,
body.memo-page-theme-dark .dealer-location-table td {
    color: var(--memo-light-text-color);
}

body.memo-page-theme-dark .dealer-location-current-address,
body.memo-page-theme-dark .dealer-location-current-meta,
body.memo-page-theme-dark .dealer-location-empty,
body.memo-page-theme-dark .dealer-location-loading,
body.memo-page-theme-dark .dealer-location-error,
body.memo-page-theme-dark .dealer-location-empty-cell {
    color: color-mix(in srgb, var(--memo-light-text-color) 68%, transparent);
}

body.memo-page-theme-dark .dealer-location-table th {
    background: var(--memo-light-bg-color-soft);
}

body.memo-page-theme-dark .dealer-location-table th,
body.memo-page-theme-dark .dealer-location-table td {
    border-color: var(--memo-light-border-color-soft);
}

body.memo-page-theme-dark .dealer-location-table tbody tr:nth-child(even) td {
    background: var(--memo-dark-bg-color);
}

@media (max-width: 767.98px) {
    .dealer-location-modal .modal-dialog {
        max-width: calc(100vw - 20px);
    }

    .dealer-location-modal-grid,
    .dealer-location-search-grid {
        grid-template-columns: 1fr;
    }

    .dealer-location-current-meta div {
        grid-template-columns: 1fr;
    }
}

.modal-confirm {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
}

.modal-confirm-content {
    background: #fff;
    width: min(100%, 500px);
    margin: max(2rem, 10vh) auto;
    padding: 1.5rem;
    border: 1px solid #d9e0e8;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    color: #252525;
    text-align: center;
}

.modal-confirm-title {
    margin: 0 2rem 1rem;
    color: #252525;
    font-size: 1.5rem;
    font-weight: 700;
}

#modal-confirm-body {
    color: #4b5563;
    font-size: 1rem;
}

.close-confirm {
    display: inline-flex;
    float: right;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    color: #252525;
    cursor: pointer;
    font-size: 1.75rem;
    line-height: 1;
}

.close-confirm:hover,
.close-confirm:focus-visible {
    background: #f0f2f4;
    color: var(--memo-accent-color);
    outline: none;
}

.modal-confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.modal-confirm-actions button {
    min-width: 7rem;
    min-height: 2.75rem;
    padding: 0.55rem 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
}

#modal-confirm-yes {
    background: var(--memo-accent-color);
    border-color: var(--memo-accent-color);
    color: var(--memo-light-text-color);
}

#modal-confirm-no {
    background: #f0f2f4;
    border-color: #d9e0e8;
    color: #252525;
}

.modal-confirm-actions button:hover,
.modal-confirm-actions button:focus-visible {
    border-color: var(--memo-accent-color);
    box-shadow: 0 0 0 3px var(--memo-accent-color-soft);
    outline: none;
}

body.memo-page-theme-dark .modal-confirm {
    background: rgba(0, 0, 0, 0.72);
}

body.memo-page-theme-dark .modal-confirm-content {
    background: var(--memo-dark-bg-color);
    border-color: var(--memo-light-border-color-soft);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    color: var(--memo-light-text-color);
}

body.memo-page-theme-dark .modal-confirm-title {
    color: var(--memo-light-text-color);
}

body.memo-page-theme-dark #modal-confirm-body {
    color: color-mix(in srgb, var(--memo-light-text-color) 82%, transparent);
}

body.memo-page-theme-dark .close-confirm {
    color: var(--memo-light-text-color);
}

body.memo-page-theme-dark .close-confirm:hover,
body.memo-page-theme-dark .close-confirm:focus-visible {
    background: var(--memo-dark-field-bg-color);
    color: var(--memo-accent-color);
}

body.memo-page-theme-dark #modal-confirm-no {
    background: var(--memo-dark-field-bg-color);
    border-color: var(--memo-light-border-color-soft);
    color: var(--memo-light-text-color);
}

.modal-link{
    cursor: pointer;
}
