﻿.row-selected {
    background-color: var(--select-background-color, royalblue) !important;
}

.row-selected td {
    color: var(--select-color, white) !important;
}

table {
    border: black;
}

.table-bordered td, .table-bordered th {
    border-color: black;
    white-space: nowrap;
    padding: 2px;
    color: black;
    font-weight: normal;
    font-size: small;
}

tbody tr {
    cursor: pointer
}

tbody tr:hover {
    background-color: var(--select-background-color, royalblue) !important;
}

tbody tr:hover td {
    color: var(--select-color) !important;
}

.table-area {
    width: 100vw;
    height: 81vh;
    overflow-y: auto;
    overflow-x: auto;
}

/*Řeší přetékání table přes šířku stránky (zobrazuje se zbytečně scrollbar)*/
.row {
    margin-right: 0;
}

.tucne {
    font-weight: bold !important;
}

@media screen and (max-width: 767px) {
    .table-area {
        width: 100vw;
        height: 100vh;
        overflow-y: auto;
        overflow-x: auto;
    }
}

td {
    line-height: normal !important;
}

td .form-control {
    display: inline-flex;
    /*width: unset;*/
    padding: 1%;
    margin: 1% 0 1% 0;
}

td .form-control:hover {
    font-weight: bolder;
    color: black;
    opacity: 1;
}

td .form-control::-webkit-inner-spin-button{
    display: none;
}

.table-datatable {
  width: 100%;
  /*border-collapse: separate; /* Don't collapse */
  border-collapse: collapse;
  border-spacing: 0;
}

.table-datatable thead th {
  position: sticky;
  top: 0;
  background-color: var(--layout-background-color, lightgray);
  color: var(--layout-color, white);
  font-weight: bold;
}

.table-in-table {
    border: none;
}

.table-in-table tr {

}

.table-in-table td {
    border: none;
    padding: 0;
}