.header-center {
    text-align: center;
}
.table-sm td,
.table-sm th {
    padding: 5px;
}
.table-sm td:first-child {
    white-space: nowrap;
}
thead {
    background: #eee;
}
.cikldis {
    cursor: pointer;
    background: #eee;
    font-weight: bold;
}
.table-danger {
    background-color: #e1a4a4;
}
hr {
    border-color: #aaa;
}
.form-control[readonly] {
    background-color: initial;
    cursor: initial;
    opacity: initial;
}
/*table.schedule td:nth-child(4), table.schedule th:nth-child(4), table.schedule td:nth-child(2), table.schedule th:nth-child(2)*/
th.cab-th,
th.num-th {
    width: 50px;
    vertical-align: middle;
    white-space: nowrap;
}
/*table.schedule td:nth-child(1), table.schedule th:nth-child(1)*/
th.div-th {
    width: 30px;
    vertical-align: middle;
}
th.vsego-th,
th.prac-th {
    width: 70px;
}
th.time-th {
    width: 100px;
}
.sortable li {
    width: auto !important;
    height: auto !important;
}
li.empty {
    border: none;
    min-height: 30px;
}
table ul.list-group {
    margin-bottom: 0;
}
#droppable {
    min-height: 50px;
}
.responsive {
    overflow-y: auto;
    max-height: calc(100vh - 120px);
}
.divide,
.deletecab,
.cab,
.deletespr,
.addfac,
.delete,
[data-toggle] {
    cursor: pointer;
}
table hr {
    margin-top: 5px;
    margin-bottom: 5px;
}
.check_label {
    cursor: pointer;
    display: block;
    user-select: none;
}
.cab_places,
.match,
.locked,
.deletecab {
    width: 100px;
}
.cab {
    position: absolute;
    right: -60px;
    width: 50px;
    height: 100%;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.teacher-td {
    cursor: pointer;
    white-space: nowrap;
}
.input {
    padding: 8px;
    min-height: 100%;
    width: 100%;
}
.datalist {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    background-color: #fff;
    border: 1px solid #eee;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 8;
}
.open,
.create {
    display: flex;
    align-items: center;
}
.open span,
.create span {
    margin-right: 10px;
}
.open {
    color: #007d09;
}
.create {
    color: #950b0b;
}
.draggable li,
.sortable li {
    display: flex;
}
.teacher,
.hours,
.subject {
    display: block;
    padding: 0 7px;
}
.subject {
    width: calc(100% - 250px);
}
.sortable .subject {
    width: calc(100% - 200px);
}
.teacher {
    width: 200px;
    font-style: italic;
}
.hours {
    border-left: 1px solid #ddd;
    width: 50px;
}
li label {
    font-weight: initial;
}
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}
.table-condensed {
    padding: 3px;
    font-size: 0.9em;
}
.vertical {
    position: relative;
    height: 160px;
}
.vertical p {
    position: absolute;
    transform-origin: left top;
    transform: rotate(-90deg);
    width: 150px;
    text-align: center;
}
.table-small {
    width: initial;
}
.wide {
    position: fixed;
    height: 50%;
    width: 50%;
    top: 0;
    left: 0;
    z-index: 1500;
    display: block !important;
}
.wide > * {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.with-list {
    position: relative;
}
.with-list ul {
    max-height: 200px;
    overflow-y: auto;
    border-bottom: 1px solid #ddd;
    position: absolute;
    top: 58px;
    width: 100%;
    display: none;
    user-select: none;
}
.with-list input:focus + ul,
.with-list ul:hover {
    display: block !important;
    z-index: 155;
}
.table-joined {
    margin-top: 0;
    margin-bottom: 0;
}
#copylist .modal-body li {
    display: flex;
    justify-content: space-between;
}
#copylist .modal-body .open {
    margin-left: 20px;
}
.strong {
    font-weight: bold;
}
.pr-active {
    background: #e8c4c3 !important;
}
.kan-active {
    background: #a8d8a9 !important;
}
.print {
    font-size: 12pt;
    line-height: 13pt;
    font-family: Times New Roman;
}
.print .table-condensed > thead > tr > th,
.print .table-condensed > tbody > tr > th,
.print .table-condensed > tfoot > tr > th,
.print .table-condensed > thead > tr > td,
.print .table-condensed > tbody > tr > td,
.print .table-condensed > tfoot > tr > td {
    padding: 2px;
    font-size: 10pt;
}
.print .table-bordered > thead > tr > th,
.print .table-bordered > tbody > tr > th,
.print .table-bordered > tfoot > tr > th,
.print .table-bordered > thead > tr > td,
.print .table-bordered > tbody > tr > td,
.print .table-bordered > tfoot > tr > td {
    border: 1px solid #555;
}
.print thead {
    background: initial;
    border-top: 1px solid #555;
}

@media print {
    .noprint {
        display: none;
    }
    table.table-joined {
        page-break-inside: avoid;
    }
}
