/**
 * Modal
 * 
 * Styly pro modální okna
 */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.is-active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-modal-overlay);
     backdrop-filter: blur(2px);
}

.modal__content {
    position: relative;
    background: var(--color-bg);
    border-radius: 12px;
    /*box-shadow: 0 20px 60px var(--color-modal-shadow);*/
    max-width: 720px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal__content--wide {
    max-width: 980px;
}

.modal__content--full {
    max-width: 96vw;
    max-width: 1420px;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    align-items: flex-start;
    position: relative;
}
/*
Ve většině to není
.modal__header::after {
    content: "";
    width: calc(100% - 48px);
    left: 24px;
    bottom: 0;
    height: 1px;
    background: var(--color-border);
    position: absolute;
}*/

.modal__title {
    font-size: 21px;
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
}

.modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: var(--color-label);
}

.modal__close:hover {
    opacity: 0.8;
}

.modal__close svg {
    width: 20px;
    height: 20px;
}
.modal__close span {
    width: 16px !important;
    height: 16px !important;
    margin-right: 0px !important;
}

.modal__body {
    padding: 0px 32px;
    overflow-y: auto;
}

.modal__footer {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    background: var(--color-bg);
}
/*
.modal__footer::after {
    content: "";
    width: calc(100% - 48px);
    left: 24px;
    top: 0;
    height: 1px;
    background: var(--color-border);
    position: absolute;
}
*/

.modal__footer-left {
    display: flex;
    gap: 12px;
}

.modal__footer-right {
    display: flex;
    gap: 12px;
}

/* ==================== DROPZONE ==================== */

.dropzone {
    border: 2px dashed #003145;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #E5EAEC;
}

.dropzone:hover,
.dropzone.is-dragover {
    border-color: #001D29;
    color: #001D29;
    background: #F5F9FA;
}
.dropzone:hover .dropzone__icon,
.dropzone.is-dragover .dropzone__icon {
    transform: translateY(-6px);
}

.dropzone__icon {
    width: 41px;
    height: 41px;
    background-color: #CCD6DA;
    border-radius: 50%;
    color: #003145;
    margin: 0 auto 16px;
    display: flex;
    color: var(--color-label);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.dropzone__icon .icon {
    width: 17px;
    height: 17px;
}

.dropzone__text {
    color: var(--color-text);
    font-size: 16px;
    margin: 0;
}

.dropzone__text span {
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
}

.dropzone__file {
    display: none;
}

.dropzone__selected {
    display: none;
    margin-top: 12px;
    padding: 12px 16px;
    background: #CDEACD;
    border-radius: 8px;
    font-size: 18px;
    color: #025B02;
    font-weight: 400;
    height: 52px;
    align-items: center;
}

.dropzone__selected.is-visible {
    display: flex;
}

.dropzone__selected-name {
    font-weight: 400;
    margin-left: 4px;
}
.dropzone__selected .icon {
    margin-right: 16px;
}

/* Import progress bar */
.import-progress {
    display: none;
}

.import-progress.is-active {
    display: block;
}

.import-progress__text {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 12px;
}

.import-progress__bar {
    width: 100%;
    height: 12px;
    background-color: #DFD1D5;
    border-radius: 12px;
    overflow: hidden;
}

.import-progress__fill {
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 12px;
    width: 0%;
    transition: width 0.3s ease;
}

/* ==================== DOKUP MODAL TABULKA ==================== */

.dokup-modal-table {
    width: 100%;
    border-collapse: collapse;
}
.dokup-modal-table tr {
    background-color: white !important;
}

.dokup-modal-table thead th {
    text-align: left;
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text-muted);
    padding: 8px 12px;
    border-bottom: 1px solid var(--color-border);
}

.dokup-modal-table tbody td {
    padding: 6px 6px;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border-light);
}

.dokup-modal-table tbody tr:last-child td {
    border-bottom: none;
}

.dokup-modal-table .col-produkt {
   /* width: 40%;*/
}

.dokup-modal-table .col-klient {
    width: 25%;
}

.dokup-modal-table .col-pocet {
    width: 80px;
}

.dokup-modal-table th.col-cena,
.dokup-modal-table th.col-celkem {
    width: 120px;
    text-align: left;
    position: relative;
    z-index: 1;
}
.dokup-modal-table td.col-cena,
.dokup-modal-table td.col-celkem {
    padding-right: 24px;
    padding-left: 24px; 
}
.dokup-modal-table .col-cena,
.dokup-modal-table .col-celkem {
    width: 120px;
    text-align: right;
    position: relative;
    z-index: 1;
    color: var(--color-form-text);
    font-weight: 400;
}
td.col-cena::after, td.col-celkem::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    background-color: #EAE6DF;
    z-index: -1;
    border-radius: 10px;
}
.dokup-modal-table td:first-child, .dokup-modal-table th:first-child {
    padding-left: 0px;
}
.dokup-modal-table td:last-child, .dokup-modal-table th:last-child {
    padding-right: 0px;
}


.dokup-modal-table .col-akce {
    width: 40px;
    text-align: left;
}

.dokup-modal-table .form-input {
    width: 100%;
}
.dokup-modal-table th {
    padding-bottom: 0px;
}
.dokup-modal--zvyraznena_cena {
    background-color: #EAE6DF;
}
.col-akce-modal {
    width: 40px;
}
.poukaz-nahled {
    font-size: 16px;
}
.poukaz-nahled strong {
    font-weight: 500 !important;
}