body {
    margin: 0;
    background: url('../img/background-main.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

body.bg-light-app {
    background: #f8f9fa;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
}

.card.dark {
    background-color: rgba(33, 37, 41, .92);
    color: #fff;
}

.card.dark .card-header {
    background-color: rgba(0, 0, 0, .3);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.text-light-page {
    color: #fff;
}

.badge-set-time {
    background-color: #aeb6bf;
    color: #212529;
}

.badge-wait {
    background: linear-gradient(270deg, #00d0ff, #ffffff);
}

.badge-ill {
    background-color: #edbb99;
    color: #212529;
}

.bg-set-time {
    background-color: #aeb6bf !important;
    color: #212529;
}

.bg-wait {
    background: linear-gradient(270deg, #00d0ff, #ffffff) !important;
    background-size: 400% 400% !important;
    -webkit-animation: wait 1s ease infinite;
    -moz-animation: wait 1s ease infinite;
    animation: wait 1s ease infinite;
}

.bg-ill {
    background-color: #edbb99 !important;
    color: #212529;
}

@-webkit-keyframes wait {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}
@-moz-keyframes wait {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}
@keyframes wait {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* Schichtplan-Tageszellen */
.shift-day {
    padding: 4px;
}

.shift-day .card {
    border-radius: 0;
    font-size: .75rem;
}

.shift-day select.form-control-sm {
    font-size: .7rem;
    padding: 1px;
    height: auto;
}

/* Monatsraster /smene */
.shift-table {
    max-height: 78vh;
    overflow: auto;
    background: #fff;
}

.shift-table table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.shift-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #343a40;
    color: #fff;
    font-size: .65rem;
    padding: 2px 4px;
    min-width: 34px;
}

.shift-table thead th.day-today {
    background: #0d6efd;
}

.shift-table th.worker-head {
    left: 0;
    z-index: 11;
    min-width: 210px;
    text-align: left;
}

.shift-table td.worker-cell {
    position: sticky;
    left: 0;
    z-index: 5;
    background: #e9ecef;
    font-size: .8rem;
    padding: 4px 6px;
    min-width: 210px;
}

.shift-table td.shift-cell {
    padding: 2px !important;
    text-align: center;
    font-size: .7rem;
    cursor: pointer;
    min-width: 34px;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    color: #212529;
}

.shift-table td.shift-cell.empty {
    background-color: #f8f9fa;
    color: #ced4da;
}

.shift-table td.shift-cell.bg-info,
.shift-table td.shift-cell.bg-ill {
    color: #212529;
}

.shift-table td.shift-cell:hover {
    outline: 2px solid #0d6efd;
    outline-offset: -2px;
}

.shift-table td.shift-cell.pending-delete {
    text-decoration: line-through;
}

/* Statistik-Karten */
.stat-group {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    padding: .5rem;
    height: 100%;
}

.stat-group-title {
    font-size: .7rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 700;
    margin-bottom: .3rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    font-size: .8rem;
    border-bottom: 1px dashed #e9ecef;
    padding: .15rem 0;
}

.stat-row:last-child {
    border-bottom: 0;
}

.stat-row span {
    color: #495057;
}

.stat-row b {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.stat-card {
    transition: box-shadow .15s ease-in-out;
}

.stat-card:hover {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .15);
}

/* Globaler AJAX-Loader */
#ajax_loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease-in-out, visibility .15s ease-in-out;
}

#ajax_loader.show {
    opacity: 1;
    visibility: visible;
}

/* Inline-Loader in Containern/Modals */
.loader-box {
    text-align: center;
    padding: 2.5rem;
    color: #6c757d;
}

/* A4-Seite für Vertragsvorschau */
.page {
    font-family: "Times New Roman", Times, serif;
    background: white;
    display: block;
    margin: 0 auto 0.5cm;
    box-shadow: 0 0 0.5cm rgba(0, 0, 0, 0.5);
    text-align: justify;
    font-size: 12pt;
    color: #000;
}

.page[size="A4"] {
    width: 21cm;
    min-height: 29.7cm;
    padding-top: 1.25cm;
    padding-bottom: 0.9cm;
    padding-left: 2.54cm;
    padding-right: 2cm;
}

@media print {
    .page {
        margin: 0;
        box-shadow: none;
        padding: 0;
    }
}

.timecont {
    font-variant-numeric: tabular-nums;
}

.list-group-item .form-control {
    height: auto;
}
