﻿.btn-remove {
    background: #9C645E;
    color: #fff !important;
    padding: 2px 4px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;

}

    .btn-remove:hover {
        background: #E61F27;
    }

.cart-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
}


.qty-obj {
    width: 38px;
    height: 28px;
    padding: 2px 4px;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    border: 1px solid var(--line, #eae7e3);
    border-radius: 6px;
    box-sizing: border-box;
}
.sort-header {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
}

    .sort-header:hover {
        border-color: var(--line, #eae7e3);
    }

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.export-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.export-label {
    font-weight: 600;
}

.order-summary {
    display: block;
    text-align: right;
    font-size: 16px;
    margin: 4px 280px 0 0;
    color: #333;
}

.rozpocet-hidden {
    display: none;
}

.rozpocet-select {
    width: 140px;
    padding: 4px 6px;
    border-radius: 8px;
    border: 1px solid var(--line,#eae7e3);
}

.rozpocet-ddl {
    width: 100%;
    padding: 4px 6px;
    border-radius: 8px;
    border: 1px solid var(--line,#eae7e3);
    background: #fff;
    font-size: 14px;
}

/* jen pro fakturační historii, ať to nerozhodí jiné tabulky */
.hist-actions {
    display: flex;
    gap: 6px; /* mezera mezi tlačítky */
    justify-content: flex-end;
    align-items: center;
}

    .hist-actions .btn {
        margin: 0; /* kdyby globální .btn mělo margin-bottom */
        white-space: nowrap; /* aby se text nelámal na dva řádky */
    }

.page-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

    .page-header > h1 {
        margin: 0;
        justify-self: start;
    }

    .page-header .header-center {
        justify-self: center;
    }

    .page-header .export-box {
        justify-self: end;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.btn-teal {
    appearance: none;
    border: 0;
    background: #1aa7a8; /* tyrkys */
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    align-content: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 0 rgba(0,0,0,.18);
    transition: background-color .15s ease, transform .05s ease, box-shadow .05s ease;
}

    .btn-teal:hover {
        background: #169a9b;
    }

    .btn-teal:active {
        transform: translateY(1px);
        box-shadow: 0 1px 0 rgba(0,0,0,.18);
    }

    .btn-teal:focus {
        outline: none;
    }

    .btn-teal:focus-visible {
        outline: 3px solid rgba(26,167,168,.35);
        outline-offset: 2px;
    }

    /* pokud bude někdy disabled */
    .btn-teal:disabled {
        opacity: .55;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.order-note-row td {
    background: #faf9f6;
    border-top: 0;
    padding: 10px 14px;
    color: var(--muted,#6b6b6b);
    font-size: 12px;
}

.order-note-cell strong {
    color: var(--text,#3f3f3f);
    font-weight: 400;
}
.form-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 16px;
}

.label-cell {
    width: 200px;
    padding: 8px 10px;
    text-align: right;
    font-weight: 600;
    color: var(--text, #3f3f3f);
    white-space: nowrap;
}

.form-table td {
    padding: 8px 10px;
    vertical-align: middle;
}

.input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--line, #eae7e3);
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}

.actions {
    text-align: right;
    padding-right: 10px;
}

.btn {
    padding: 8px 14px;
    border: 1px solid var(--line,#eae7e3);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand,#2a9aa5);
    border-color: transparent;
    color: #fff;
}

.btn + .btn {
    margin-left: 8px;
}

.adv-table .label-cell {
    width: 140px;
    padding-right: 8px;
    white-space: nowrap;
}

.adv-table .value-cell {
    width: 100%;
}

.adv-table .op-cell {
    padding-left: 8px;
    white-space: nowrap;
}

.search-op {
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid var(--line, #eae7e3);
    background: #fff;
}
.adv-wrap {
    padding: 24px 0 0 24px;
}

.adv-panel {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line,#eae7e3);
}

    .adv-panel.open {
        display: block;
    }


.searchbox .search-row {
    display: flex;
}

#advPanel.adv-panel {
    display: none !important;
}

.searchbox.adv-mode .search-row {
    display: none !important;
}

#advPanel.adv-panel.open {
    display: block !important;
}

.adv-wrap {
    padding-top: 0;
    margin-top: 0;
}

    .adv-wrap h1 {
        margin: 0 0 6px 0;
    }

.adv-hint {
    margin: 0;
}

.adv-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px 0;
}

.adv-actions-top {
    margin-left: auto;
    white-space: nowrap;
}

/* na menších šířkách tlačítka pod text */
@media (max-width:900px) {
    .adv-head {
        flex-direction: column;
    }

    .adv-actions-top {
        margin-left: 0;
    }
}

.combo-wrap {
    position: relative !important;
    display: block;
    width: 100%;
}

.combo-datalist {
    display: none;
}
/* datalist necháme jen jako zdroj dat */

.combo-input {
    padding-right: 34px;
}
/* místo na šipku */

.combo-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--muted,#6b6b6b);
    padding: 2px 6px;
}

.combo-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    max-height: 360px;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line,#eae7e3);
    border-radius: 10px;
    box-shadow: var(--shadow, 0 10px 25px rgba(0,0,0,.12));
    z-index: 99999;
    display: none;
}

.combo-wrap.open .combo-panel {
    display: block;
}

.combo-item {
    padding: 8px 10px;
    cursor: pointer;
    white-space: nowrap;
}

    .combo-item:hover,
    .combo-item.active {
        background: #f3f3f3;
    }

.combo-wrap .combo-panel {
    position: absolute !important;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    max-height: 360px;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line,#eae7e3);
    border-radius: 10px;
    box-shadow: var(--shadow, 0 10px 25px rgba(0,0,0,.12));
    z-index: 99999;
    display: none !important;
}

.combo-wrap.open .combo-panel {
    display: block !important;
}

/* datalist jen jako zdroj dat */
.combo-datalist {
    display: none !important;
}

/* ať to není useknuté nějakým rodičem (tabulka/panel) */
.form-card, .adv-form, .form-table, .form-table td {
    overflow: visible !important;
}