.btn{
    font-size: 16px !important;
    font-weight: 600;
}
.bg-primary {
    rgb(174, 151, 109) !important
}

.btn-primary {
    background-color: rgb(174, 151, 109);
    border-color: rgb(174, 151, 109);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: rgba(174, 151, 109, 0.8);
    border-color: rgb(174, 151, 109);
}

.btn-primary:active {
    background-color: rgb(174, 151, 109) !important;
    border-color: rgb(174, 151, 109) !important;
    box-shadow: none !important; /* odstraní modrý stín při stisknutí */
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(174, 151, 109, 0.5); /* změní modrý stín při fokusu */
}

.top-border-line{
    border-top: solid black 1px;
}

.pull-right{
    float: right;
}

/*!* Styl pro indikaci pozice, kam se přetahuje řádek *!*/
/*.dataTables_wrapper .ui-state-highlight {*/
/*    height: 40px; !* Nastavení výšky řádku během přetahování *!*/
/*    background-color: #e0e0e0; !* Světle šedé pozadí *!*/
/*    border: 1px dashed #ccc; !* Tečkovaný okraj pro zvýraznění pozice *!*/
/*}*/

.content-header {
    position: sticky;
    top: 0;
    z-index: 1030; /* Z-index zajistí, že hlavička bude nad ostatním obsahem */
    background-color: white; /* Zajistí, že je hlavička oddělená od obsahu pod ní */
}

/* Overlay, který deaktivuje pouze hlavní obsah */
#ajax-overlay {
    display: none;
    position: absolute; /* Zakryje pouze hlavní obsah, ne navigaci */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5); /* Poloprůhledné pozadí */
    backdrop-filter: blur(3px); /* Jemné rozmazání pozadí */
    z-index: 1900;
}

/* Centrum boxu se spinnerem */
#ajax-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2010;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Lepší vycentrování spinneru */
#ajax-spinner .spinner-border {
    display: block;
    margin: 0 auto 10px auto; /* Posune spinner nad text */
}

/* Pokud je modal aktivní, spinner se zobrazuje v něm */
.modal.show #ajax-spinner {
    z-index: 2020; /* Nad modálním oknem */
}

/* 2. Position the nested .dropdown-menu off to the right */
.dropdown-menu {
    max-height: 80vh;
    overflow-y: auto;
}

a.jstree-anchor[data-type*="empty"]{
    color: #DDDDDD;
}

fieldset .col-sm-7{
    width: 83.33333333333%;
    display: flex;
    justify-content: flex-end;
}

div.items-list{
    border: solid black 1px;
    max-width: 320px;
    max-height: 400px;
    overflow-y: auto;
    position: absolute;
    z-index: 10;
    background-color: white;
    padding: 4px;
    display: none;
}

.condition_field:focus{
    max-width: calc(100% - 200px);
}

.condition_field:focus ~ small{
    max-width: calc(100% - 200px);
    display: block;
}

.items-list label{
    font-weight: bold;
}

.items-list li, .items-list label{
    cursor: pointer;
}
.items-list li:hover, .items-list label:hover {
    background-color: #6edff6;
}

.number-wrapper {
    position: relative;
}
input.price-input:not(:disabled) {
    background: transparent;
    color: transparent;
    caret-color: black;
    position: relative;
    z-index: 2;
}
.formatted-overlay {
    position: absolute;
    top: 0;
    left: 0;
    color: black;
    pointer-events: none;
    z-index: 1;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

#graph circle{
    cursor: pointer;
}

#graph circle:hover{
    fill: #8486ff;
}

.btn-icon{
    display: flex;
    align-items: center;
    gap: 8px;
}

span.icon-label{
    margin-top: 2px;
    font-weight: 700;
    font-size: 16px;
    width: max-content; /*dont split text in the buttons*/
}

span.editable{
}

td.editable{
    position: relative;
    cursor: pointer;
}

td.editable::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;

    border-top: 10px solid black;     /* triangle color */
    border-left: 10px solid transparent;
}

td.editable.pending::after{
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;

    border: 2px solid #ccc;
    border-top-color: #000;      /* spinner “active” color */
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

textarea.editable-cell{
    resize: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
}