/* =========================================================
   BASIS
   ========================================================= */

body {
    background: #eef3f8;
    color: #1d2939;
}

.nowrap {
    white-space: nowrap;
}

.small-muted {
    font-size: .85rem;
    color: #667085;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.app-nav {
    background: #0075b8;
}

.login-bg {
    background: linear-gradient(
        135deg,
        #0075b8 0%,
        #004f7d 100%
    );
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.form-card {
    max-width: 430px;
    margin: auto;
}

/* =========================================================
   CARDS
   ========================================================= */

.card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(16, 24, 40, .08);
}

.metric {
    font-size: 1.9rem;
    font-weight: 700;
}
.metric-card {
    min-height: 96px;
}

.metric-card .text-muted {
    margin-bottom: .35rem;
}

.small-metric {
    font-size: 1.05rem !important;
    line-height: 1.25;
}
/* =========================================================
   TABELLEN
   ========================================================= */

.table thead th {
    background: #dde6ef;
    color: #344054;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

.time-line {
    font-weight: 700;
}

/* =========================================================
   TAGESSTATUS
   ========================================================= */

tr.day-ok > td {
    background-color: #e8f5e9 !important;
}

tr.day-missing > td {
    background-color: #ffebee !important;
}

tr.day-weekend > td {
    background-color: #eceff3 !important;
}

/* =========================================================
   SALDO / ARBEITSZEITKONTO
   ========================================================= */

.saldo-pos,
.saldo-pos * {
    color: #8EB818 !important;   /* ASKANA Grün */
    font-weight: 700 !important;
}

.saldo-neg,
.saldo-neg * {
    color: #d92d20 !important;
    font-weight: 700 !important;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn-icon {
    width: 28px;
    height: 28px;
    padding: 0 !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    line-height: 1;
}

.sticky-actions {
    position: sticky;
    right: 0;
    background: inherit;
}

/* =========================================================
   MONATSNAVIGATION
   ========================================================= */

.monthbar {
    gap: .5rem;
}

/* =========================================================
   BUCHUNGS-EDIT-BUTTONS
   ========================================================= */

.btn-icon {
    min-width: 30px;
    height: 28px;
    padding: 0 .45rem;
    line-height: 1;
    border-width: 1px;
    background-color: transparent !important;
    font-weight: 700;
}

tr.day-ok .btn-icon {
    color: #8EB818 !important;
    border-color: #8EB818 !important;
}

tr.day-ok .btn-icon:hover {
    color: #ffffff !important;
    background-color: #8EB818 !important;
}

tr.day-missing .btn-icon {
    color: #d92d20 !important;
    border-color: #d92d20 !important;
}

tr.day-missing .btn-icon:hover {
    color: #ffffff !important;
    background-color: #d92d20 !important;
}

tr.day-weekend .btn-icon,
tr.day-empty .btn-icon {
    color: #667085 !important;
    border-color: #98a2b3 !important;
}

tr.day-weekend .btn-icon:hover,
tr.day-empty .btn-icon:hover {
    color: #ffffff !important;
    background-color: #667085 !important;
}


/* =========================================================
   ABWESENHEITEN / FEIERTAGE
   ========================================================= */

.table tbody tr.day-ok > td {
    --bs-table-bg: #e8f5e9 !important;
    background-color: #e8f5e9 !important;
}

.table tbody tr.day-missing > td {
    --bs-table-bg: #ffebee !important;
    background-color: #ffebee !important;
}

.table tbody tr.day-weekend > td {
    --bs-table-bg: #eceff3 !important;
    background-color: #eceff3 !important;
}

.table tbody tr.day-krank > td {
    --bs-table-bg: #fff3cd !important;
    background-color: #fff3cd !important;
}

.table tbody tr.day-urlaub > td {
    --bs-table-bg: #0f6b3a !important;
    background-color: #0f6b3a !important;
    color: #ffffff !important;
}

.table tbody tr.day-feiertag > td {
    --bs-table-bg: #f0e7ff !important;
    background-color: #f0e7ff !important;
}

.table tbody tr.day-urlaub .small-muted,
.table tbody tr.day-urlaub .saldo-pos,
.table tbody tr.day-urlaub .saldo-neg {
    color: #ffffff !important;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .78rem;
    border: 1px solid transparent;
}

.status-at {
    color: #344054;
    background: #ffffff;
    border-color: #d0d5dd;
}

.status-krank {
    color: #92400e;
    background: #fde68a;
    border-color: #f59e0b;
}

.status-urlaub {
    color: #ffffff;
    background: #0f6b3a;
    border-color: #ffffff;
}

.status-feiertag {
    color: #5b21b6;
    background: #ede9fe;
    border-color: #c4b5fd;
}

tr.day-urlaub .btn-outline-primary,
tr.day-urlaub .btn-outline-success,
tr.day-urlaub .btn-outline-warning,
tr.day-urlaub .btn-outline-dark,
tr.day-urlaub .btn-icon {
    color: #ffffff !important;
    border-color: #ffffff !important;
    background-color: transparent !important;
}

tr.day-urlaub .btn-outline-primary:hover,
tr.day-urlaub .btn-outline-success:hover,
tr.day-urlaub .btn-outline-warning:hover,
tr.day-urlaub .btn-outline-dark:hover,
tr.day-urlaub .btn-icon:hover {
    color: #0f6b3a !important;
    background-color: #ffffff !important;
}
.small-metric {
    font-size: 1.15rem !important;
    line-height: 1.25;
}