/* card styles */

.project-card {
    width: 100%;
    max-width: 18rem;
    max-height: 40rem;
}


.checklist-card {
    width: 100%;
    max-width: 23rem;
}

.bergamt-card {
    width: 100%;
    max-width: 30rem;
}

.appointment-card {
    width: 100%;
    max-width: 18rem;
}

.stakeholder-card {
    max-width: 30rem;
    min-width: min(25rem, 100%);
}

.contact-card {
    max-width: 25rem;
}

.uwb-form-card {
    width: 100%;
    max-width: 40rem;
}

.application-card {
    width: 100%;
    max-width: 30rem;
}

.drill-overview-card {
    width: 100%;
    max-width: 18rem;
}

.requirement-card {
    width: 100%;
    max-width: 18rem;
}

.probe-card {
    width: 100%;
    max-width: 14rem;
}

/* button styles */
.delete {
    color: rgba(0, 0, 0, 0.2);
    font-size: 12px;
}

.delete:hover {
    color: #FF682C;
}

.sorting .list-group-item {
    cursor: move;
    cursor: -webkit-grabbing;
}

.blink {
    animation: blink-animation 0.3s steps(3, start) infinite;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

@font-face {
    font-family: "Overpass";
    font-style: normal;
    font-optical-sizing: auto;
    src: url("../fonts/Overpass-VariableFont_wght.db403ff6d758.ttf");
}

@font-face {
    font-family: "Overpass";
    font-style: italic;
    font-optical-sizing: auto;
    src: url("../fonts/Overpass-Italic-VariableFont_wght.549a6dc7e042.ttf");
}

.footer {
    font-size: 12px;
}

.myhr {
    border-top: 1.5px solid rgb(0, 0, 0) !important;
    opacity: 100 !important;
}

.mohr {
    border-top: 1px solid rgb(0, 0, 0) !important;
}

body {
    font-family: 'Overpass', sans-serif;
}

/* Must outrank .sticky-top (1020) so its dropdown-menu (1000) is not overpainted
   by sticky rows such as the calendar drag-block bar. */
#navigation-bar {
    z-index: 1030;
}

.bigrow {
    height: 25px;
}

/* Maschinenbuch Übersicht: Gerätefarben als Chips, Geräte als Karten */
.mb-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.mb-chip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mb-dot);
}

.mb-chip-gruen { background: #d9f2e0; color: #17602e; --mb-dot: #2f9e44; }
.mb-chip-gelb { background: #fff1b8; color: #634c00; --mb-dot: #c99a00; }
.mb-chip-orange { background: #ffe6d1; color: #8a3b00; --mb-dot: #e8590c; }
.mb-chip-rot { background: #fde2e1; color: #9b1c1c; --mb-dot: #d92d20; }
.mb-chip-leer { background: #f1f3f5; color: #4b5563; --mb-dot: #9aa4b1; }

.mb-seite {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px 24px 48px;
    background: #f3f4f6;
}

.mb-seite h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.mb-seite h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.mb-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.mb-kpi {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
}

.mb-kpi-label {
    font-size: 13px;
    color: #4b5563;
}

.mb-kpi-zahl {
    font-size: 30px;
    font-weight: 700;
}

.mb-sektion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.mb-kartenraster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.mb-notiz {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
}

.mb-spalte {
    padding: 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.mb-teamzeile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    padding: 0 4px;
}

.mb-teamzeile small {
    font-size: 12px;
    color: #6b7280;
}

.mb-kpi,
.mb-sektion,
.mb-karte {
    background: #fff;
    border: 1px solid #e3e6ea;
}

.mb-kpi { border-radius: 10px; }
.mb-sektion { border-radius: 12px; }
.mb-karte { border-radius: 8px; }

.mb-kpi-rot {
    color: #9b1c1c;
}

.mb-karte {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    min-height: 84px;
    color: var(--bs-body-color);
    text-decoration: none;
}

.mb-karte:hover {
    border-color: var(--bs-primary);
    color: var(--bs-body-color);
}

.mb-teamname .badge {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 700;
    white-space: normal;
    text-align: left;
}

.mb-tabs {
    gap: 1.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #dfe3e8;
    font-size: .9375rem;
}

.mb-seite .mb-tabs {
    margin-bottom: 0;
}

.mb-tab {
    display: block;
    padding: .625rem .125rem;
    color: #4b5563;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.mb-tab:hover {
    color: #1d2433;
}

.mb-tab.active {
    color: #1d2433;
    font-weight: 600;
    border-bottom-color: #1f5fbf;
}

.mb-tabs .mb-chip::before {
    display: none;
}

.mb-karte .fw-semibold {
    font-size: 14px;
}

.mb-karte-sn {
    font-size: 12px;
    color: #6b7280;
}

.mb-raster {
    display: grid;
    grid-template-columns: 110px repeat(6, minmax(160px, 1fr));
    gap: 10px;
    min-width: 1100px;
}

.mb-raster-ecke {
    font-size: 0;
}

/* Maschinenbuch Gerät, Offene Aktionen, Auswertung, Erfassen, Zuordnung, Einstellungen (BL-2893) */
.mb-seite a:not(.btn, .mb-tab, .mb-karte) {
    color: #1f5fbf;
}

.mb-seite a:not(.btn, .mb-tab, .mb-karte):hover {
    color: #174a96;
}

.btn.mb-btn,
.btn.mb-btn2 {
    --bs-btn-padding-x: 18px;
    --bs-btn-padding-y: 0;
    --bs-btn-font-weight: 600;
    --bs-btn-font-size: 15px;
    --bs-btn-border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.btn.mb-btn {
    --bs-btn-color: #fff;
    --bs-btn-bg: #1f5fbf;
    --bs-btn-border-color: #1f5fbf;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #174a96;
    --bs-btn-hover-border-color: #174a96;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #174a96;
    --bs-btn-active-border-color: #174a96;
    --bs-btn-disabled-color: #4b5563;
    --bs-btn-disabled-bg: #dfe3e8;
    --bs-btn-disabled-border-color: #dfe3e8;
    --bs-btn-disabled-opacity: 1;
}

.btn.mb-btn2 {
    --bs-btn-padding-x: 16px;
    --bs-btn-font-size: 14px;
    --bs-btn-color: #1d2433;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #cfd5dc;
    --bs-btn-hover-color: #1d2433;
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #1f5fbf;
    --bs-btn-active-color: #1d2433;
    --bs-btn-active-bg: #f1f3f5;
    --bs-btn-active-border-color: #1f5fbf;
}

.btn.mb-btn-klein {
    --bs-btn-padding-x: 12px;
    --bs-btn-font-size: 13px;
    min-height: 36px;
}

.mb-link {
    padding: 0;
    min-height: 36px;
    border: 0;
    background: none;
    color: #1f5fbf;
    font-size: 14px;
    font-weight: 600;
}

.mb-link:hover {
    color: #174a96;
}

.mb-chip-blau { background: #e1ecfb; color: #174a96; --mb-dot: #1f5fbf; }

.mb-chip-ohne::before {
    display: none;
}

.mb-st {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    background: #f1f3f5;
    color: #1d2433;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.mb-prio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 24px;
    border-radius: 6px;
    background: #1d2433;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.mb-tabelle {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mb-tabelle th {
    padding: 10px 12px;
    border-bottom: 1px solid #dfe3e8;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.mb-tabelle td {
    padding: 12px;
    border-bottom: 1px solid #eef0f3;
    vertical-align: top;
}

.mb-tabelle tbody th {
    padding: 12px;
    border-bottom-color: #eef0f3;
    color: inherit;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
}

.mb-tabelle .mb-gruppenkopf td {
    padding: 10px 12px;
    border-bottom-color: #dfe3e8;
    background: #f6f7f9;
    font-weight: 700;
}

.mb-gedaempft {
    color: #4b5563;
}

.mb-leise {
    color: #6b7280;
    font-size: 12px;
}

.mb-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #4b5563;
    font-size: 14px;
}

.mb-filter-titel {
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
}

.mb-seite .mb-feld {
    width: auto;
    min-height: 40px;
    padding-top: 0;
    padding-bottom: 0;
    border-color: #cfd5dc;
    border-radius: 8px;
    font-size: 14px;
}

.mb-segmente {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    border: 1px solid #cfd5dc;
    border-radius: 8px;
    background: #fff;
}

.mb-segment {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    background: #fff;
    color: #1d2433;
    font-size: 14px;
    cursor: pointer;
}

.mb-segment.active,
.mb-segmente input:checked + .mb-segment {
    background: #1d2433;
    color: #fff;
    font-weight: 600;
}

.mb-segmente input:focus-visible + .mb-segment {
    outline: 2px solid #1f5fbf;
    outline-offset: -2px;
}

.mb-hinweis {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f6f7f9;
    color: #1d2433;
    font-size: 14px;
    line-height: 1.5;
}

.mb-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    color: #4b5563;
    font-size: 14px;
}

.mb-meta strong {
    color: #1d2433;
}

.mb-meta summary {
    display: inline;
    color: #1f5fbf;
    cursor: pointer;
}

.mb-meta details[open] {
    flex-basis: 100%;
}

.mb-kpi-zusatz {
    color: #6b7280;
    font-size: 12px;
}

.mb-log-zeile {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 16px;
    padding: 12px 4px;
    border-bottom: 1px solid #eef0f3;
}

.mb-log-datum {
    flex: 0 0 auto;
    width: 92px;
    padding-top: 2px;
    color: #4b5563;
    font-size: 13px;
    white-space: nowrap;
}

.mb-log-typ {
    flex: 0 0 auto;
    justify-content: center;
    width: 76px;
}

.mb-log-haupt {
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    font-size: 13px;
}

.mb-log-meldung {
    font-size: 14px;
    font-weight: 500;
}

.mb-log-wer {
    flex: 0 0 auto;
    min-width: 110px;
    color: #4b5563;
    font-size: 13px;
}

.mb-anhang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.mb-vergleich {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.mb-vergleich-name {
    width: 180px;
    font-weight: 600;
    text-decoration: none;
}

.mb-balken {
    flex: 1 1 auto;
    height: 26px;
    overflow: hidden;
    border-radius: 6px;
    background: #f1f3f5;
}

.mb-balken span {
    display: block;
    height: 100%;
    border-radius: 6px;
    background: #1f5fbf;
}

.mb-swatch {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.mb-swatch-leer {
    border: 2px dashed #9aa4b1;
}

.mb-status-raster {
    min-width: 1080px;
}

.mb-status-zeile {
    display: grid;
    grid-template-columns: 64px minmax(180px, 240px) 200px 110px 140px 140px 80px 1fr;
    align-items: center;
    gap: 0 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #eef0f3;
    font-size: 14px;
}

.mb-status-kopf {
    padding-top: 0;
    border-bottom-color: #dfe3e8;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.mb-status-zeile.mb-ausgeblendet {
    background: #f8f9fa;
    color: #6b7280;
}

.mb-status-zeile .form-control,
.mb-status-zeile .form-select {
    min-height: 40px;
    border-color: #cfd5dc;
    border-radius: 8px;
    font-size: 14px;
}

.mb-status-zeile .form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
}

.mb-pfeil {
    padding: 0 4px;
    border: 0;
    background: none;
    color: #9aa4b1;
}

.mb-pfeil:hover {
    color: #1d2433;
}

.mb-team-zeile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    padding: 12px 0;
    border-bottom: 1px solid #eef0f3;
}

.mb-team-zeile > strong {
    width: 120px;
}

.mb-teamname-klein .badge {
    padding: 1px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.mb-teamschild-gross .badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.mb-farbfeld {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #cfd5dc;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.mb-farbfeld[aria-pressed="true"] {
    border: 3px solid #1d2433;
}

.teamfarbe-auswahl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.btn-check:checked + .mb-farbfeld {
    border: 3px solid #1d2433;
}

.btn-check:focus-visible + .mb-farbfeld {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.mb-farbfeld:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.mb-dialog {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    color: #1d2433;
}

.mb-dialog-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px 12px 24px;
    border-bottom: 1px solid #eef0f3;
}

.mb-dialog-kopf h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.mb-schliessen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    color: inherit;
    font-size: 20px;
}

.mb-dialog-rumpf {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
}

.mb-dialog-fuss {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 24px 20px;
    border-top: 1px solid #eef0f3;
}

.mb-felder {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mb-feldpaar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mb-feldgruppe {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.mb-lbl,
.mb-feldgruppe > .form-label,
.mb-feldgruppe > legend {
    margin: 0;
    color: #1d2433;
    font-size: 14px;
    font-weight: 600;
}

.mb-dialog .form-control,
.mb-dialog .form-select,
.mb-dialog .ts-control {
    min-height: 44px;
    border-color: #cfd5dc;
    border-radius: 8px;
    font-size: 15px;
}

.mb-dialog .ts-control {
    align-items: center;
}

.mb-ueberzeile {
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.mb-erfassen {
    display: flex;
    flex-direction: column;
    max-width: 640px;
    margin: 16px auto;
    overflow: hidden;
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    background: #f3f4f6;
    color: #1d2433;
}

.mb-erfassen-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 0 8px 0 18px;
    background: #1d2433;
    color: #fff;
}

.mb-erfassen-kopf h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.mb-erfassen-kopf a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #fff;
    font-size: 22px;
}

.mb-erfassen-rumpf {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px;
}

.mb-erfassen .form-control,
.mb-erfassen .form-select,
.mb-erfassen .ts-control {
    min-height: 48px;
    border-color: #cfd5dc;
    border-radius: 10px;
    font-size: 16px;
}

.mb-erfassen .ts-control {
    align-items: center;
}

.mb-erfassen input[type="file"].form-control {
    padding: 10px 12px;
    border-style: dashed;
    border-color: #9aa4b1;
}

.mb-erfassen textarea.form-control {
    min-height: 88px;
    padding: 12px;
}

.mb-prio-wahl {
    display: flex;
    gap: 8px;
}

.mb-prio-wahl label {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin: 0;
    border: 1px solid #cfd5dc;
    border-radius: 10px;
    background: #fff;
    color: #1d2433;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.mb-prio-wahl input:checked + label {
    border: 2px solid #1d2433;
    background: #1d2433;
    color: #fff;
}

.mb-prio-wahl input:focus-visible + label {
    outline: 2px solid #1f5fbf;
    outline-offset: 2px;
}

.mb-erfassen .mb-segmente {
    border-radius: 10px;
}

.mb-erfassen .mb-segment {
    flex: 1 1 0;
    min-height: 44px;
    padding: 0 8px;
}

.mb-erfassen-hinweis {
    color: #4b5563;
    font-size: 13px;
}

.mb-erfassen-fuss {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 18px 18px;
    border-top: 1px solid #e3e6ea;
    background: #fff;
}

.mb-erfassen-fuss .btn.mb-btn {
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .mb-erfassen {
        margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5);
        border: 0;
        border-radius: 0;
    }

    .mb-feldpaar {
        grid-template-columns: minmax(0, 1fr);
    }
}
