body {
    padding-top: 40px;
}

.up-down-placeholder {
    display: inline-block;
    width: 14px;
}

.check-mark {
    color: forestgreen;
}

.vertical-align {
    display: flex;
    align-items: center;
}

.vertical-align > div {
    margin-bottom: 15px;
}

input[type="file"] {
    width: 100%;
}

.sortHandle {
    cursor: move;
}

.table-col-sort-delete {
    min-width: 55px;
    width: 55px;
}

.table-col-sort-edit-delete {
    min-width: 78px;
    width: 78px;
}

.horizontal-label {
    padding-top: 8px;
}

.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 999px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

.btn {
    margin: 2px;
}

.buttonSection {
    margin-bottom: 30px;
}

.lastbuttonSection {
    margin-bottom: 50px;
}

.ngViewport.ng-scope {
    height: auto !important;
    overflow-y: hidden;
    overflow-x: hidden;
    min-height: 42px;
}

.ngViewport.ng-scope > .ngCanvas {
    height: auto !important;
    min-height: 42px;
}

.ngGrid {
    padding-bottom: 30px;
}

.ngTopPanel.ng-scope,
.ngHeaderContainer {
    width: auto !important;
}

.ngCellText {
    white-space: normal !important;
}

.ngVerticalBarVisible {
    height: 100% !important;
}

.ngCell {
    display: table-cell;
    height: auto !important;
    overflow: visible;
    position: static;
}

.ngRow {
    display: table-row;
    height: auto !important;
    position: static;
}

.ngCellText {
    height: auto !important;
    white-space: normal;
    overflow: visible;
}

.cell-row {
    margin-left: -8px;
    margin-right: -8px;
}

.cell-col {
    padding-left: 8px;
    padding-right: 8px;
}

.darker-header-color > tbody > tr > th {
    background-color: #d0d0d0 !important;
}

.schulSystemTable {
    table-layout: fixed !important;
    width: auto !important;
}

.outputProfileTable {
    table-layout: fixed !important;
    width: auto !important;
}

.headerCol {
    width: 100px;
}

.groupCol {
    width: 200px;
}

.inputdefinition-row {
    min-height: 3em;
    padding-top: 10px;
}

.inputdefinition-parameter-row {
    margin-bottom: 2em;
    border-bottom: 1px solid #ccc;
}

.inputdefinition-anpassung-calc {
    margin-top: -1.5em;
}

.inputdefinition-row p {
}

.selected-row {
    background-color: #f3f3f3;
}

.selectable-row:not(.selected-variant):hover {
    background-color: #d0d0d0 !important;
}

.selectable-row:not(.selected-variant):hover > td {
    background-color: #d0d0d0 !important;
}

.selectable-row:not(.selected-variant):hover > th {
    background-color: #d0d0d0 !important;
}

.hovered-variant-col {
    background-color: #d0d0d0 !important;
}

.selected-variant.hovered-variant-col {
    background-color: rgba(141, 153, 174, 0.8) !important;
}

th.hovered-variant-col {
    background-color: #c0c0c0 !important;
}

th.selected-variant {
    background-color: rgba(141, 153, 174, 1) !important;
}

th.selected-variant.hovered-variant-col {
    background-color: rgba(141, 153, 174, 1) !important;
}

.total-row {
    border-top: double !important;
}

.side-borders-thick {
    border-left: solid 2px !important;
    border-right: solid 2px !important;
}

.top-border-thick {
    border-top: solid 2px !important;
}

.bottom-border-thick {
    border-bottom: solid 2px !important;
}

.side-borders-black {
    border-left: solid 1px !important;
    border-right: solid 1px !important;
}

.top-border-black {
    border-top: solid 1px !important;
}

.bottom-border-black {
    border-bottom: solid 1px !important;
}

.top5 {
    margin-top: 5px;
}

.top7 {
    margin-top: 7px;
}

.top10 {
    margin-top: 10px;
}

.top15 {
    margin-top: 15px;
}

.top17 {
    margin-top: 17px;
}

.info-box {
    text-align: center;
}

.selectable-variant-div {
    padding: 30px 20px 20px 20px;
    margin: 0px -20px 0px -20px;
}

.selectable-variant-div:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.selected-variant {
    background-color: rgba(141, 153, 174, 0.6) !important;
}

.selected-variant:hover {
    background-color: rgba(141, 153, 174, 0.8) !important;
}

.cell-text-right {
    text-align: right;
}

.zero-year-pe-share-inp {
    width: 64px;
}

.vertical-middle-aligned-cell {
    vertical-align: middle !important;
}

.zero-year-param-inp-col-label {
    display: inline-block;
    white-space: nowrap;
}

.zero-year-param-inp {
    width: 110px;
}

.zero-year-param-bis-label {
    position: relative;
    float: left;
    width: 19px
}

.zero-year-param-von-label {
    position: relative;
    float: left;
    padding-left: 15px;
    width: 38px
}

.zero-year-param-anpassungsdauer-label {
    position: relative;
    float: left;
    margin-left: -1px;
}

.zero-year-param-inp-div {
    position: relative;
    padding-left: 15px;
    padding-right: 15px;
    float: left;
}

.wohnbau-stichdatum-label {
    float: left;
    position: relative;
    min-height: 1px;
    margin-left: -15px;
}

.bold {
    font-weight: bold;
}

.inline-inp-div {
    position: relative;
    padding-left: 15px;
    padding-right: 15px;
    float: left;
}

.suggestion-modal-header-right {
    line-height: 1.1;
    font-size: 18px;
    font-weight: normal;
    margin: 20px 40px 10px 0px;
    padding-top: 6px;
}

.flex-space-between {
    display: flex;
    justify-content: space-between;
}

.info-box > span {
    font-size: 20px;
    vertical-align: middle;
    padding: 0px 10px 0px 0px;
    margin-bottom: 10px;
}

.info-box-text {
    font-size: 13px;
    vertical-align: middle;
    text-align: left;
}

.sub-tabset {
    padding-top: 10px;
}

.sub-tabset > ul.nav-tabs {
    border-bottom: 0px;
}

a {
    cursor: pointer;
}

/* Support for larger screens */
@media (min-width: 768px) {
    .container {
        width: 750px;
    }

    body {
        padding-top: 200px !important;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 1100px;
    }

    body {
        padding-top: 200px !important;
    }
}

@media (min-width: 1400px) {
    .container {
        width: 1300px;
    }

    body {
        padding-top: 100px !important;
    }
}

@media (min-width: 1600px) {
    .container {
        width: 1500px;
    }

    body {
        padding-top: 100px !important;
    }
}

@media (min-width: 1900px) {
    .container {
        width: 1700px;
    }

    body {
        padding-top: 40px !important;
    }
}

@-webkit-keyframes spinner-border {
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spinner-border {
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: spinner-border 0.75s linear infinite;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 1em;
    height: 1em;
    border-width: 0.2em;
}

.form-control {
    margin-top: 2px;
}

.col-form-label {
    margin-top: 2px;
    padding-top: 6px;
    padding-bottom: 6px;
}

input[type="file"].has-error {
    color: #a94442;
}

.table-striped>tbody>tr.has-error:nth-child(odd)>td {
    background-color: #e57872;
}

.table-striped>tbody>tr.has-error:nth-child(even)>td {
    background-color: #e6b2ab;
}

.has-error .form-control:disabled,
.has-error .form-control[readonly] {
    /* no styling needed. this just overrides the bootstrap error styling for form-controls if they are disabld*/
    border-color: #cccccc;
    border-width: 1px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}

.boxed-form-group-bottom-margin-only {
    padding: 20px;
    border: 1px solid #999;
    border-radius: 5px;
    margin-bottom: 30px;
}

.boxed-form-group-bottom-margin {
    padding: 20px;
    border: 1px solid #999;
    border-radius: 5px;
    margin: 30px 0px;
}

.boxed-form-group {
    padding: 20px;
    border: 1px solid #999;
    border-radius: 5px;
    margin-top: 30px;
}

.computed > a::after {
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: -0.125em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\f1df";
}

.computed.level-1 > a:after {
    position: relative;
    left: 0px;
}

.computed.level-2 > a:after {
    position: relative;
    left: 20px;
}

.computed.level-3 > a:after {
    position: relative;
    left: 40px;
}

.computed.level-4 > a:after {
    position: relative;
    left: 60px;
}

.computed.level-5 > a:after {
    position: relative;
    left: 80px;
}

.computed.level-6 > a:after {
    position: relative;
    left: 100px;
}

.computed.level-7 > a:after {
    position: relative;
    left: 120px;
}

.computed.level-8 > a:after {
    position: relative;
    left: 140px;
}

.computed.level-9 > a:after {
    position: relative;
    left: 160px;
}

.table-vertical-scroll {
    display: block;
    overflow-x: auto;
}

/* Chrome, Safari, Edge, Opera */
input.no-arrows::-webkit-outer-spin-button,
input.no-arrows::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"].no-arrows {
    -moz-appearance: textfield;
}

input.unsaved {
    border-radius: 2px;
    border: 2px solid #A3B3C9;
    background-color: #B7C9E2;
}

.report-image-container {
    background-color: lightgrey;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;

    &.report-image-container-small {
        height: 200px;
    }

    &.report-image-container-large {
        height: 500px;
    }
}

.report-image {
    max-width: 100%;
    max-height: 100%;
    padding: 20px;
}

.report-image-caption {
    text-align: center;
    margin-top: -10px;
}

.report-image-delete-button-box {
    position: absolute;
    display: none;
    visibility: hidden;
}

.report-image-delete-button {
    color: white;
    background-color: #555;
    font-size: 18px;
    padding: 10px 15px;
    margin-left: 30px;
    margin-right: 30px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.report-image-container:hover .report-image-delete-button-box {
    display: block;
    visibility: visible;
}

.visibility-hidden {
    visibility: hidden;
}

.full-width {
    width: 100%;
}

label input {
    font-weight: normal;
}

.table-sticky-cols-wrapper {
  overflow: auto; /* enable horizontal/vertical scroll */
  max-height: calc(100vh - 163px);
  max-width: 100%;
  position: relative;
  border-top: 1px solid #ccc;
}

.table-sticky-cols {
  border-collapse: separate; /* <- important for visible borders */
  border-spacing: 0;         /* keep Bootstrap look */
}

.table-sticky-cols-wrapper th, td {
  white-space: nowrap;
}

/* Sticky header row */
thead .sticky-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 3;
}

/* Sticky first column */
.sticky-left {
  position: -webkit-sticky;
  position: sticky;
  z-index: 2;
}

.sticky-first {
  left: 0;
}

.sticky-second {
  left: 80px;
}

.sticky-third {
  left: 252px;
  box-shadow: 4px 0 6px -1px rgba(0, 0, 0, 0.15);
}

/* Sticky last column */
.sticky-last {
  position: -webkit-sticky;
  position: sticky;
  right: 0;
  z-index: 2;
  box-shadow: -4px 0 6px -1px rgba(0, 0, 0, 0.15);
}

.sticky-left.no-shadow,
.sticky-last.no-shadow {
  box-shadow: none;
}

.table-striped>tbody>tr:nth-child(even)>td.sticky-left,
.table-striped>thead>tr>th.sticky-left,
.table-striped>tbody>tr:nth-child(even)>td.sticky-last,
.table-striped>thead>tr>th.sticky-last {
  background-color: #ffffff;
}

thead .sticky-last, thead .sticky-left {
  z-index: 4; /* ensure header cell stays on top */
}

.workshop-schuljahr-heute-col {
  background-color: #BEC8CD !important;
}

.table-striped > tbody > tr:nth-child(odd) > td.workshop-schuljahr-heute-col {
  background-color: #A5B3BA !important;
}

.workshop-schuljahr-prognose-1-15-col {
  background-color: #85c1e9 !important;
}

.table-striped > tbody > tr:nth-child(odd) > td.workshop-schuljahr-prognose-1-15-col {
  background-color: #7fb3d5 !important;
}

/* Hide arrows (spinners) in compact number input */

/* Chrome, Safari, Edge, Opera */
.compact::-webkit-outer-spin-button,
.compact::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.compact[type=number] {
  -moz-appearance: textfield;
  padding: 6px 6px;
}

.compact-width-4[type=number] {
  width: 45px;
}
