/* "Meine Aufträge" im Login/Dashboard (Views/Login/_DriverOrders.cshtml, js/driver-orders.js) - fuer das Smartphone gebaut:
   grosse Tippflaechen, Tour-Knoepfe und Reiter bleiben oben stehen, nur die Liste scrollt. */

/* Die Blaetter (Tour-Uhrzeit, Hall of Fame, Einsatzort, Fotos, Aviso) haengen am body, deshalb die Farben auch dort */
.do,
.do-blatt-hintergrund,
.do-toast {
    --do-blue: #0d6efd;
    --do-navy: #003366;
    --do-green: #1e7e34;
    --do-line: #d9e2ec;
    --do-muted: #6c757d;
}

.do {
    font-size: 14px;
    line-height: 1.35;
    color: #212529;
    text-align: left;
}

    .do button {
        font-family: inherit;
        line-height: 1.2;
    }

.do [hidden] {
    display: none !important;
}

/* Die Card selbst: Innenabstand der Dashboard-Card aufheben, damit der Kopf buendig steht */
.dashboard-card[data-card-type="auftraege"] .card-body {
    padding: 0 !important;
}

.do-head {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    padding: 10px 10px 8px;
    border-bottom: 1px solid var(--do-line);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}

.do-tabs {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.do-tab {
    flex: 1 1 0;
    min-height: 44px;
    border: 1px solid var(--do-line);
    border-radius: 12px;
    background: #f4f7fa;
    color: #33475b;
    font-weight: 600;
    font-size: 15px;
    padding: 6px 8px;
}

    .do-tab.aktiv {
        background: var(--do-blue);
        border-color: var(--do-blue);
        color: #fff;
    }

    /* Reiter "Erledigt": angewaehlt gruen, "Offen" bleibt blau */
    .do-tab.erledigt.aktiv {
        background: var(--do-green);
        border-color: var(--do-green);
    }

    .do-tab .do-zahl {
        display: inline-block;
        min-width: 22px;
        margin-left: 4px;
        padding: 1px 6px;
        border-radius: 10px;
        background: rgba(0, 0, 0, .12);
        font-size: 13px;
    }

.do-refresh {
    flex: 0 0 48px;
    min-height: 44px;
    border: 1px solid var(--do-line);
    border-radius: 12px;
    background: #fff;
    color: var(--do-blue);
    font-size: 17px;
    padding: 0;
}

    .do-refresh.laedt i {
        animation: do-dreh 0.9s linear infinite;
    }

@keyframes do-dreh {
    to {
        transform: rotate(360deg);
    }
}

.do-tour {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.do-tourbtn {
    flex: 1 1 0;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 6px 8px;
}

    .do-tourbtn.start {
        background: var(--do-blue);
    }

    .do-tourbtn.ende {
        background: #198754;
    }

    .do-tourbtn:disabled {
        background: #e9ecef;
        color: #6c757d;
    }

    .do-tourbtn.erledigt:disabled {
        background: #e6f4ea;
        color: var(--do-green);
    }

/* Ansicht "In Deiner Umgebung": Tour- und Einsatzort-Knoepfe farblos wie ein nicht gewaehlter Reiter */
.do-tour.neutral .do-tourbtn,
.do-tour.neutral .do-tourbtn.erledigt:disabled {
    background: #f1f4f8;
    box-shadow: inset 0 0 0 1px #d9e2ec;
    color: #33475b;
}

    .do-tour.neutral .do-tourbtn:disabled {
        color: #8a94a0;
    }

.do-hinweis.umgebung {
    background: #d9f5f1;
    color: #0f5f59;
}

.do-hinweis {
    margin: 8px 10px 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff3cd;
    color: #664d03;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.do-fehler {
    margin: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8d7da;
    color: #842029;
    font-size: 14px;
}

.do-stand {
    padding: 6px 12px 0;
    color: var(--do-muted);
    font-size: 12px;
    text-align: right;
}

.do-liste {
    padding: 4px 10px 10px;
}

.do-tag {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 14px 2px 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--do-navy);
    text-transform: none;
}

    .do-tag small {
        font-weight: 400;
        color: var(--do-muted);
    }

    .do-tag.alt {
        color: #a05a00;
    }

.do-leer {
    padding: 28px 12px;
    text-align: center;
    color: var(--do-muted);
}

    .do-leer i {
        display: block;
        font-size: 30px;
        margin-bottom: 8px;
        color: #adb5bd;
    }

/* Auftrag */
.do-auftrag {
    display: block;
    position: relative;
    margin: 0 0 8px;
    padding: 10px 34px 10px 12px;
    border: 1px solid var(--do-line);
    border-left: 5px solid #adb5bd;
    border-radius: 12px;
    background: #fff;
    color: inherit !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: rgba(13, 110, 253, .15);
}

    .do-auftrag:active {
        background: #eef5ff;
    }

    .do-auftrag.heute {
        border-left-color: var(--do-blue);
        background: #f1f8ff;
    }

    /* Heute dran, aber fuer heute schon erledigt: neutral wie ein Auftrag, an dem heute nichts mehr zu tun ist */
    .do-auftrag.heute.heute-fertig {
        border-left-color: #adb5bd;
        background: #f8f9fa;
    }

    /* Kombi-Lieferung: Auftraege einer Fuhre haengen zusammen */
    .do-auftrag.kombi {
        border-left-color: #2e9e5b;
    }

    .do-auftrag.kombi.b {
        border-left-color: #7b61c9;
    }

    .do-auftrag.kombi.folgt {
        margin-bottom: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-style: dashed;
    }

    .do-auftrag.kombi.weiter {
        border-top: 0;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    /* Stopp, der nicht heute dran ist (der andere Stopp des Auftrags ist heute): sichtlich "aus" */
    .do-stopp.anderer-tag {
        opacity: .45;
        filter: grayscale(1);
    }

        .do-stopp.anderer-tag b {
            font-weight: 500;
        }

    /* Erledigter Stopp: abgeschwaecht wie "nicht heute", statt des Navi-Knopfs ein blauer Haken (nicht antippbar) */
    .do-stopp.fertig > .do-zeit,
    .do-stopp.fertig > .do-icon,
    .do-stopp.fertig > .do-ort {
        opacity: .45;
        filter: grayscale(1);
    }

    .do-stopp.fertig b {
        font-weight: 500;
    }

    /* Pfeil "Auftrag oeffnen" in der Zeile des heutigen Stopps */
    .do-stopp.mit-pfeil {
        position: relative;
    }

        .do-stopp.mit-pfeil > .do-pfeil {
            position: absolute;
            right: -24px;
            top: 19px;
            transform: translateY(-50%);
            color: #adb5bd;
        }

    .do-auftrag > .do-pfeil {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #adb5bd;
    }

.do-stopp {
    display: grid;
    grid-template-columns: 50px 40px 1fr 40px;
    align-items: start;
    column-gap: 4px;
    min-height: 42px;
}

    .do-stopp + .do-stopp {
        margin-top: 2px;
    }

.do-zeit {
    font-weight: 700;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

    .do-zeit small {
        display: block;
        font-weight: 400;
        font-size: 12px;
        color: var(--do-muted);
    }

/* Laden immer blau mit Pfeil hinauf, Entladen immer gruen mit Pfeil hinunter */
.do-icon {
    text-align: center;
    padding-top: 2px;
    color: var(--do-blue);
    white-space: nowrap;
}

    .do-icon.entladen {
        color: var(--do-green);
    }

    .do-icon i + i {
        margin-left: 3px;
        font-size: 13px;
    }

.do-meta .do-laden i {
    color: var(--do-blue);
}

.do-meta .do-entladen i {
    color: var(--do-green);
}

.do-meta .do-laden i + i,
.do-meta .do-entladen i + i {
    width: auto;
    margin-left: -2px;
    font-size: 13px;
}

.do-ort {
    min-width: 0;
    overflow-wrap: anywhere;
}

    .do-ort b {
        font-weight: 600;
    }

    .do-ort .do-plz {
        color: var(--do-muted);
        margin-right: 4px;
    }

    .do-ort .do-kran {
        display: inline-block;
        margin-left: 4px;
        padding: 0 6px;
        border-radius: 8px;
        background: #fff3cd;
        color: #664d03;
        font-size: 12px;
    }

.do-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px dashed #9ec5fe;
    background: #f1f6fd;
    color: var(--do-blue);
    opacity: .7;
    justify-self: end;
    cursor: default;
}

.do-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e7f1ff;
    color: var(--do-blue) !important;
    text-decoration: none !important;
    justify-self: end;
}

    .do-nav:active {
        background: #cfe2ff;
    }

.do-meta {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--do-line);
    font-size: 13px;
    color: #33475b;
    overflow-wrap: anywhere;
}

    .do-meta div + div {
        margin-top: 2px;
    }

    .do-meta i {
        width: 20px;
        text-align: center;
        margin-right: 4px;
        color: var(--do-navy);
    }

    .do-meta .do-ladung i {
        color: #8b4513;
    }

    .do-meta .do-kombi {
        color: var(--do-muted);
        font-style: italic;
        font-size: 13px;
    }

.do-aviso {
    margin-left: 6px;
}

    .do-aviso.sent {
        color: #28a745;
    }

    .do-aviso.due {
        color: #e0a800;
    }

/* Erledigt */
.do-auftrag.erledigt {
    border-left-color: #2e9e5b;
    background: #f3fbf6;
}

.do-erledigt-kopf {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 700;
}

    .do-erledigt-kopf small {
        font-weight: 400;
        color: var(--do-muted);
    }

.do-sterne {
    color: #adb5bd;
    letter-spacing: 1px;
    white-space: nowrap;
}

    .do-sterne.bewertet {
        color: #ffb300;
    }

/* Sterne als Badge-Knopf: oeffnet die Bewertung der Auftragsabwicklung */
a.do-sterne-knopf {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 2px 10px;
    border: 1px solid #d9e2ec;
    border-radius: 16px;
    background: #fff;
    color: #adb5bd;
    font-size: 15px;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    -webkit-tap-highlight-color: transparent;
}

    a.do-sterne-knopf.bewertet {
        border-color: #ffd866;
        background: #fff8e1;
        color: #ffb300;
    }

    a.do-sterne-knopf:active {
        transform: scale(.96);
    }

/* Infos unter der Liste */
.do-info {
    padding: 4px 10px 16px;
}

.do-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    margin: 6px 0 10px;
    border-radius: 12px;
    background: var(--do-navy);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
}

/* "Heutige Route anzeigen" als Knopf (oeffnet die Card "Meine Route") */
button.do-route {
    width: 100%;
    border: 0;
    font-size: inherit;
}

/* "Heutige Route anpassen": Knopf vor der Google-Maps-Route und die Ansicht dazu */
.do-route-anpassen {
    width: 100%;
    border: 1px solid #a9d3f5;
    margin-bottom: 8px;
    background: #cfe8fc; /* babyblau, bewusst zurueckhaltender als die Google-Maps-Route darunter */
    color: var(--do-navy) !important;
    font-size: inherit;
}

.do-route-warnhinweis {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 2px solid #f59f00;
    border-radius: 12px;
    background: #fff3cd;
    color: #7a4b00;
    font-size: 14px;
    line-height: 1.35;
}

    .do-route-warnhinweis i {
        margin-top: 2px;
        color: #d9480f;
        font-size: 18px;
    }

.do-route-hinweis {
    margin: 0 0 10px;
}

.do-route-liste {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

    .do-route-liste.zieht {
        user-select: none;
        -webkit-user-select: none;
    }

.do-route-stopp {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 10px;
    border: 1px solid var(--do-line);
    border-left: 5px solid var(--do-blue);
    border-radius: 12px;
    background: #fff;
}

    .do-route-stopp.entladen {
        border-left-color: var(--do-green);
    }

    .do-route-stopp.zieht {
        border-color: #6d28d9;
        background: #f5f3ff;
        box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
    }

.do-route-zeit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 64px;
    min-height: 52px;
    padding: 4px 6px;
    border: 2px solid var(--do-line);
    border-radius: 10px;
    background: #f4f7fa;
    color: #212529;
}

    .do-route-zeit b {
        font-size: 17px;
        font-variant-numeric: tabular-nums;
    }

    .do-route-zeit:disabled {
        opacity: .7;
    }

        .do-route-zeit:disabled i {
            display: none;
        }

    .do-route-zeit i {
        color: var(--do-muted);
        font-size: 11px;
    }

/* Uhrzeit und darunter "Cancel" (Stopp an die Disposition zurueckgeben) */
.do-route-links {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    gap: 5px;
}

.do-route-cancel {
    min-height: 34px;
    padding: 2px 6px;
    border: 1px solid #f1aeb5;
    border-radius: 10px;
    background: #fff5f5;
    color: #b02a37;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.do-route-cancel-hinweis {
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff3cd;
    color: #664d03;
    font-size: 14px;
}

.do-route-grund {
    width: 100%;
    min-height: 84px;
    resize: vertical;
}

.do-blatt .do-knopf.rot {
    background: #dc3545;
    color: #fff;
}

    .do-blatt .do-knopf.rot:disabled {
        opacity: .55;
    }

.do-route-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
}

    .do-route-text small {
        color: var(--do-muted);
        font-size: 13px;
    }

.do-route-art {
    color: var(--do-blue);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.do-route-stopp.entladen .do-route-art {
    color: var(--do-green);
}

/* Geriffeltes quadratisches Feld zum Verschieben; touch-action none, damit der Finger zieht statt zu scrollen */
.do-route-griff {
    width: 52px;
    height: 52px;
    border: 1px solid #b8c2cc;
    border-radius: 10px;
    background-color: #e9edf2;
    background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 7px);
    background-size: 30px 30px;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 1px 0 #fff;
    cursor: grab;
    touch-action: none;
}

    .do-route-stopp.zieht .do-route-griff {
        cursor: grabbing;
        background-color: #ddd6fe;
    }

.do-route-eingabe {
    margin: 4px 0 10px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.do-route-warnung {
    min-height: 20px;
    margin: 0 0 6px;
    color: #b02a37;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Symbol-Knoepfe rechts in den drei Kopfzeilen: gleich gross, umrandet, jeder in seiner Farbe */
.do-tabs .do-refresh {
    border-color: #b6d4fe;
    background: #e7f1ff;
}

.do-umgebung-btn {
    border-color: #99d5cf;
    background: #d9f5f1;
    color: #0f766e;
    font-size: 19px;
}

    .do-umgebung-btn.aktiv {
        border-color: #0f766e;
        background: #0f766e;
        color: #fff;
    }

.do-nachweis-btn {
    border-color: #c4b5fd;
    background: #ede9fe;
    color: #5b21b6;
    font-size: 19px;
}

    .do-nachweis-btn:disabled {
        opacity: .55;
    }

/* Ansicht "In meiner Umgebung" (statt der Auftraege): Standort, zuletzt benutzte Ziele, alle Ziele */
.do-standort {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid #99d5cf;
    border-left: 5px solid #0f766e;
    border-radius: 12px;
    background: #f0fdfa;
}

    .do-standort > i {
        flex: 0 0 22px;
        color: #0f766e;
        font-size: 18px;
        text-align: center;
    }

    .do-standort.verweigert,
    .do-standort.fehler {
        border-color: #f5c2c7;
        border-left-color: #dc3545;
        background: #fff5f5;
    }

        .do-standort.verweigert > i,
        .do-standort.fehler > i {
            color: #dc3545;
        }

.do-standort-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
}

    .do-standort-text small {
        color: var(--do-muted);
        font-size: 12px;
    }

    .do-standort-text b {
        font-size: 16px;
    }

.do-standort-knopf {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid #99d5cf;
    border-radius: 12px;
    background: #fff;
    color: #0f766e;
    font-size: 17px;
}

.do-standort-hilfe {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff3cd;
    color: #664d03;
    font-size: 14px;
}

    .do-standort-hilfe p {
        margin: 0 0 8px;
    }

.do-umgebung.zuletzt {
    padding: 12px 6px;
    border-radius: 18px;
    background: #eef2f6;
}

.do-umgebung {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 6px;
    margin: 4px 0 14px;
}

/* Ziel wie ein App-Symbol am iPhone: farbiges abgerundetes Quadrat mit weissem Zeichen, darunter der Name */
.do-umgebung-ziel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: #212529 !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}

.do-poi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 15px;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .10));
    box-shadow: 0 2px 5px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .35);
    color: #fff;
    font-size: 25px;
    transition: transform .08s ease;
}

.do-umgebung-ziel:active .do-poi-icon {
    transform: scale(.92);
    filter: brightness(.9);
}

.do-poi-name {
    max-width: 100%;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

.do-kachel {
    margin: 0 0 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f4f7fa;
    font-size: 14px;
    overflow-wrap: anywhere;
}

    .do-kachel.tippbar {
        cursor: pointer;
    }

/* Wetter und Spritpreis hintereinander in einer Box */
.do-wetter-text,
.do-wetter-text div,
.do-wetter-text p {
    display: inline;
    margin: 0;
}

.do-sprit {
    display: inline-block;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

    .do-sprit i {
        margin-right: 5px;
    }

    .do-kachel i.fa-fw,
    .do-kachel > i:first-child {
        margin-right: 6px;
    }

.do-verkehr small {
    display: block;
    margin-top: 6px;
    color: inherit;
    opacity: .85;
}

.do-led {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin: 0 6px 0 4px;
    border-radius: 50%;
    vertical-align: baseline;
}

    .do-led.green {
        background: #1eaa3a;
    }

    .do-led.yellow {
        background: #fbc02d;
    }

    .do-led.orange {
        background: #f57c00;
    }

    .do-led.red {
        background: #d32f2f;
        animation: do-puls 1s infinite alternate;
    }

@keyframes do-puls {
    to {
        background: #f57c00;
        box-shadow: 0 0 6px #d32f2f;
    }
}

/* Punkte (breit wie Offen + Erledigt) und rechts der Symbol-Knopf fuer die Card "Tools" */
.do-punkte-zeile {
    display: flex;
    gap: 6px;
    align-items: stretch;
    margin: 0 0 8px;
}

    .do-punkte-zeile .do-punkte {
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
        margin: 0;
        padding: 4px 10px;
        /* zwei Zeilen in der Hoehe eines Reiters: Punkte, darunter der HighScore */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        font-size: 13px;
        line-height: 1.25;
        white-space: nowrap;
        border: 1px solid #b6d4fe;
        background: #e7f1ff;
    }

        .do-punkte-zeile .do-punkte b {
            font-size: 15px;
        }

    .do-punkte-zeile .do-tools-btn {
        min-height: 44px;
    }

.do-tools-btn {
    border-color: #fdba74;
    background: #ffedd5;
    color: #c2410c;
    font-size: 19px;
}

    .do-tools-btn:disabled {
        opacity: .55;
    }

.do-punkte {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    color: #1565c0;
}

    .do-punkte b {
        font-size: 17px;
    }

.do-skelett {
    height: 86px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: linear-gradient(90deg, #eef2f6 25%, #f8fafc 50%, #eef2f6 75%);
    background-size: 200% 100%;
    animation: do-schimmer 1.2s linear infinite;
}

@keyframes do-schimmer {
    to {
        background-position: -200% 0;
    }
}

/* Blatt von unten (Tour-Uhrzeit, Hall of Fame) */
.do-blatt-hintergrund {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
}

.do-blatt {
    width: 100%;
    max-width: 460px;
    max-height: 92dvh;
    overflow-y: auto;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    background: #fff;
    text-align: center;
    animation: do-hoch .18s ease-out;
}

@keyframes do-hoch {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
}

.do-blatt h5 {
    margin: 0 0 4px;
    font-weight: 700;
    color: var(--do-navy);
}

.do-blatt p {
    margin: 0 0 12px;
    color: #33475b;
}

.do-blatt input[type="time"] {
    width: 170px;
    height: 54px;
    margin: 0 auto 14px;
    display: block;
    border: 2px solid var(--do-line);
    border-radius: 12px;
    font-size: 24px;
    text-align: center;
}

.do-blatt .do-knopf {
    display: block;
    width: 100%;
    min-height: 50px;
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--do-blue);
}

    .do-blatt .do-knopf.gruen {
        background: #198754;
    }

    .do-blatt .do-knopf.grau {
        background: #e9ecef;
        color: #33475b;
    }

    .do-blatt .do-knopf:disabled {
        opacity: .5;
    }

/* Hall of Fame im Arcade-Stil der Fahrer-App */
.do-blatt.hof {
    background: linear-gradient(160deg, #1a0b2e 0%, #2d1b4e 50%, #1a0b2e 100%);
    border: 2px solid #ffd700;
    border-bottom: 0;
    color: #f0f0f0;
}

    .do-blatt.hof h5 {
        color: #fff;
        letter-spacing: 2px;
        text-shadow: 0 0 8px #ffd700, 0 0 16px #ff006e;
    }

    .do-blatt.hof p {
        color: #ffd700;
        font-size: 13px;
        font-style: italic;
    }

    .do-blatt.hof table {
        width: 100%;
        margin: 8px 0;
        text-align: left;
    }

    .do-blatt.hof th {
        padding: 6px;
        color: #ffd700;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 2px solid #ffd700;
    }

    .do-blatt.hof td {
        padding: 8px 6px;
        font-weight: 700;
        border-bottom: 1px solid rgba(255, 215, 0, .15);
    }

    .do-blatt.hof td.punkte {
        color: #00e5ff;
        text-shadow: 0 0 6px rgba(0, 229, 255, .6);
    }

    .do-blatt.hof tr.ich td {
        background: rgba(255, 215, 0, .12);
    }

    .do-blatt.hof .do-knopf {
        background: linear-gradient(90deg, #ff006e, #8338ec);
    }

.do-toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 2200;
    transform: translateX(-50%);
    max-width: 90vw;
    padding: 10px 16px;
    border-radius: 22px;
    background: rgba(33, 37, 41, .92);
    color: #fff;
    font-size: 14px;
    text-align: center;
}

/* ---------- Tour ohne Auftrag: Einsatzort ---------- */

.do-tour + .do-tour {
    margin-top: 6px;
}

.do-tourbtn.an:not(:disabled) {
    background: #6f42c1;
}

.do-tourbtn.ab:not(:disabled) {
    background: #0b7285;
}

.do-auftrag.einsatz {
    padding-right: 12px;
    border-left-color: #6f42c1;
}

    .do-auftrag.einsatz .do-meta {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

/* Blatt mit Eingaben: linksbuendig */
.do-blatt.links {
    text-align: left;
}

    .do-blatt.links h5,
    .do-blatt.links > p {
        text-align: center;
    }

.do-feld {
    margin: 0 0 10px;
    text-align: left;
}

.do-feld-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    font-weight: 600;
    color: #33475b;
}

.do-mikro {
    width: 44px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #e7f1ff;
    color: var(--do-blue);
    font-size: 18px;
}

.do-eingabe {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 2px solid var(--do-line);
    border-radius: 12px;
    background: #fff;
    color: #212529;
    font: inherit;
    font-size: 16px; /* kein Zoom beim Antippen am iPhone */
}

    .do-eingabe:focus {
        border-color: var(--do-blue);
        outline: 0;
    }

textarea.do-eingabe {
    resize: vertical;
}

.do-knopfzeile {
    display: flex;
    gap: 8px;
}

    .do-knopfzeile .do-knopf {
        flex: 1 1 0;
        margin-top: 0;
        font-size: 15px;
    }

.do-blatt .do-knopf.hell {
    background: #e7f1ff;
    color: #0a58ca;
}

.do-klein {
    color: var(--do-muted);
    font-size: 13px;
}

    .do-klein.mitte {
        margin-top: 6px;
        text-align: center;
    }

.do-blatt p.do-klein {
    margin: 6px 0 4px;
    color: var(--do-muted);
}

/* Hinweis mit Knopf ("Mach ich") */
.do-toast.frage {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(92vw, 420px);
    padding: 12px 12px 12px 16px;
    border-radius: 16px;
    text-align: left;
}

    .do-toast.frage span {
        flex: 1;
    }

    .do-toast.frage button {
        flex: none;
        min-height: 44px;
        padding: 0 16px;
        border: 0;
        border-radius: 12px;
        background: #fff;
        color: #212529;
        font-weight: 700;
    }

/* Diktieren */
.do-diktat-status {
    margin: 6px 0;
    color: var(--do-muted);
    font-weight: 600;
}

    .do-diktat-status.an {
        color: #c0392b;
    }

.do-diktat-text {
    min-height: 90px;
    margin-bottom: 4px;
    padding: 12px;
    border: 2px solid var(--do-line);
    border-radius: 12px;
    background: #f8fafc;
    font-size: 17px;
    text-align: left;
    overflow-wrap: anywhere;
}

/* Fotos */
.do-foto-heute {
    margin: 6px 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f1f3f5;
    color: #33475b;
    font-size: 13px;
}

    .do-foto-heute .ok {
        color: var(--do-green);
        font-weight: 600;
    }

.do-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 6px;
}

.do-chip {
    min-height: 46px;
    padding: 0 16px;
    border: 2px solid var(--do-line);
    border-radius: 23px;
    background: #fff;
    color: #33475b;
    font-size: 15px;
    font-weight: 600;
}

    .do-chip.aktiv {
        border-color: var(--do-blue);
        background: var(--do-blue);
        color: #fff;
    }

/* Liste zum Antippen (gespeicherter Einsatzort, Auftraggeber) */
.do-wahl {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 38vh;
    margin: 0 0 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.do-wahl-zeile {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 8px 12px;
    border: 2px solid var(--do-line);
    border-radius: 12px;
    background: #fff;
    color: #212529;
    text-align: left;
}

    .do-wahl-zeile.aktiv {
        border-color: var(--do-blue);
        background: #e7f1ff;
    }

.do-wahl-punkt {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 2px solid #9fb3c8;
    border-radius: 50%;
    background: #fff;
}

.do-wahl-zeile.aktiv .do-wahl-punkt {
    border: 6px solid var(--do-blue);
}

.do-wahl-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .do-wahl-text b {
        font-size: 16px;
        overflow-wrap: anywhere;
    }

    .do-wahl-text small {
        color: var(--do-muted);
        font-size: 13px;
        overflow-wrap: anywhere;
    }

.do-ziel {
    margin: -4px 0 10px;
    color: #146c43;
    font-weight: 600;
}

.do-auftrag.einsatz .do-link {
    margin-top: 4px;
}

/* ---------- Der geoeffnete Auftrag ---------- */

.do-detail-kopf {
    display: flex;
    align-items: center;
    gap: 8px;
}

.do-zurueck {
    flex: none;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: #e7f1ff;
    color: #0a58ca;
    font-weight: 600;
    font-size: 15px;
}

.do-detail > .do-zurueck {
    margin: 0 10px 10px;
}

.do-detail-titel {
    flex: 1;
    min-width: 0;
    color: var(--do-navy);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.do-detail-inhalt {
    padding: 10px;
}

.do-abschnitt {
    margin: 0 0 10px;
    padding: 12px;
    border: 1px solid var(--do-line);
    border-radius: 14px;
    background: #fff;
}

    .do-abschnitt.laden {
        border-left: 5px solid var(--do-blue);
    }

    .do-abschnitt.entladen {
        border-left: 5px solid #198754;
    }

    .do-abschnitt.fertig {
        border-color: #a3cfbb;
        background: #f3faf6;
    }

    .do-abschnitt h6 {
        margin: 0 0 8px;
        color: var(--do-navy);
        font-size: 15px;
        font-weight: 700;
    }

        .do-abschnitt h6 small {
            display: block;
            margin-top: 2px;
            color: var(--do-muted);
            font-size: 13px;
            font-weight: 600;
        }

.do-zeile {
    display: flex;
    gap: 8px;
    padding: 3px 0;
    overflow-wrap: anywhere;
}

    .do-zeile i {
        flex: none;
        width: 20px;
        margin-top: 2px;
        color: var(--do-muted);
        text-align: center;
    }

    .do-zeile.stark {
        font-weight: 600;
    }

    .do-zeile.hinweis {
        margin-top: 4px;
        padding: 8px;
        border-radius: 10px;
        background: #fff8e1;
        white-space: pre-line;
    }

.do-adresse {
    font-size: 15px;
    overflow-wrap: anywhere;
}

    .do-adresse b {
        display: block;
    }

.do-kontakt {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--do-line);
    color: var(--do-muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.do-aktionen {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.do-aktion {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 54px;
    border: 1px solid var(--do-line);
    border-radius: 12px;
    background: #f8fafc;
    color: #0a58ca !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

    .do-aktion i {
        font-size: 18px;
    }

    .do-aktion.navi {
        background: var(--do-blue);
        border-color: var(--do-blue);
        color: #fff !important;
    }

    .do-aktion.aus {
        opacity: .4;
        pointer-events: none;
    }

    .do-aktion.aviso {
        border-color: #ffc107;
        background: #fff8e1;
        color: #7a5d00 !important;
    }

        .do-aktion.aviso.gesendet {
            border-color: #198754;
            background: #198754;
            color: #fff !important;
        }

.do-statuszeile {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.do-status {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 52px;
    padding: 6px 8px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

    .do-status.blau {
        background: var(--do-blue);
    }

    .do-status.gruen {
        background: #198754;
    }

    .do-status:disabled {
        background: #e9ecef;
        color: #868e96;
    }

    .do-status.erledigt:disabled {
        background: #e6f4ea;
        color: var(--do-green);
    }

/* Protokoll */
.do-haken {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 9px 0;
    border-top: 1px solid #eef2f6;
    font-weight: 400;
    cursor: pointer;
}

    .do-haken input {
        flex: none;
        width: 24px;
        height: 24px;
        margin: 0;
        accent-color: var(--do-blue);
    }

.do-zustand {
    margin-top: 8px;
    padding: 0 10px;
    border-radius: 10px;
    background: #f8fafc;
}

.do-link {
    display: inline-block;
    min-height: 40px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: #0a58ca;
    font-weight: 600;
    text-decoration: underline;
}

.do-skizze {
    margin: 8px 0;
}

.do-zeichenfeld {
    display: block;
    width: 100%;
    border: 2px dashed #9fb3c8;
    border-radius: 12px;
    background: #f5f5f5;
    touch-action: none; /* der Finger zeichnet, die Card scrollt nicht mit */
    cursor: crosshair;
}

    .do-zeichenfeld.aus {
        opacity: .45;
        pointer-events: none;
    }

.do-zeichenrahmen {
    max-width: 450px;
    margin: 0 auto;
}

.do-breit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    margin-top: 6px;
    border: 0;
    border-radius: 12px;
    background: var(--do-blue);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

    .do-breit.gruen {
        background: #198754;
    }

    .do-breit:disabled {
        background: #e9ecef;
        color: #868e96;
    }

/* Lieferpapiere */
.do-papier {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    margin-bottom: 6px;
    padding: 6px 8px;
    border: 2px solid var(--do-line);
    border-radius: 12px;
    background: #fff;
}

    .do-papier.waehlbar {
        cursor: pointer;
    }

    .do-papier.an {
        border-color: var(--do-blue);
        background: #eef5ff;
    }

    .do-papier > i {
        flex: none;
        width: 24px;
        color: var(--do-blue);
        font-size: 20px;
        text-align: center;
    }

.do-papier-text {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

    .do-papier-text small {
        display: block;
        color: var(--do-muted);
        font-weight: 400;
    }

.do-marke {
    flex: none;
    display: inline-block;
    padding: 5px 9px;
    border-radius: 9px;
    background: var(--do-blue);
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
}

    .do-marke.gruen {
        background: #198754;
    }

    .do-marke.gelb {
        background: #ffc107;
        color: #212529 !important;
    }

    .do-marke.grau {
        background: #6c757d;
    }

a.do-marke.grau {
    padding: 9px 11px;
}

.do-erfolg {
    margin: 0 0 10px;
    padding: 22px 14px;
    border-radius: 14px;
    background: #e6f4ea;
    color: #1b5e20;
    font-size: 16px;
    text-align: center;
}

    .do-erfolg > i {
        display: block;
        margin-bottom: 8px;
        font-size: 44px;
    }

    .do-erfolg b {
        display: block;
        font-size: 20px;
    }

    .do-erfolg.klein {
        padding: 10px;
        font-size: 14px;
    }

        .do-erfolg.klein > i {
            display: inline;
            font-size: inherit;
        }

    .do-erfolg.warnung {
        background: #fff3cd;
        color: #664d03;
    }

/* Aviso */
.do-stufe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #eef2f6;
    text-align: left;
}

    .do-stufe > div {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .do-stufe b {
        min-width: 86px;
        text-align: center;
    }

    .do-stufe button,
    .do-aviso-zeile button {
        width: 48px;
        height: 48px;
        border: 2px solid var(--do-line);
        border-radius: 12px;
        background: #fff;
        color: #33475b;
        font-size: 24px;
        font-weight: 700;
    }

.do-aviso-box {
    margin-top: 10px;
    padding: 10px;
    border-radius: 12px;
    background: #f1f8f4;
}

    .do-aviso-box small {
        display: block;
        margin-top: 4px;
        color: var(--do-muted);
    }

.do-aviso-zeile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 6px;
}

.do-aviso-ankunft {
    min-width: 130px;
    color: var(--do-green);
    font-size: 28px;
    font-weight: 700;
}

.do-aviso-tag {
    color: #8b0000;
    font-weight: 700;
}

.do-aviso-letzter {
    margin: 8px 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: #e7f5fb;
    color: #055160;
    font-size: 13px;
    text-align: left;
    overflow-wrap: anywhere;
}

.do-blatt > div > .do-marke {
    margin-bottom: 8px;
}

/* Breiter Bildschirm: die Card ist 425 px breit, es bleibt bei einer Spalte */
@media (min-width: 769px) {
    .do-blatt-hintergrund {
        align-items: center;
    }

    .do-blatt {
        border-radius: 18px;
    }

    .do-blatt.hof {
        border-bottom: 2px solid #ffd700;
    }
}

/* ---------- Kompakte Auftragsliste ----------
   Mehr Auftraege auf einen Blick (Rueckmeldung der Fahrer: mit 12 bis 15 Auftraegen zu viel Wischen): je Lade- und
   Entladestelle genau eine Zeile (lange Namen werden abgeschnitten, der ganze Name steht im Auftrag), kleinere
   Navi-Knoepfe, Fahrzeug, Ladegut und Kombi nebeneinander statt untereinander, weniger Abstand im Kopf. */
.do-head {
    padding: 6px 10px 6px;
}

.do-tab,
.do-refresh {
    min-height: 40px;
}

.do-tourbtn {
    min-height: 42px;
}

.do-tour {
    margin-top: 6px;
}

.do-stand {
    padding: 3px 12px 0;
    font-size: 11.5px;
}

.do-tag {
    margin: 8px 2px 4px;
}

.do-auftrag {
    margin-bottom: 6px;
    padding: 6px 30px 6px 10px;
}

.do-stopp {
    grid-template-columns: 46px 36px 1fr 34px;
    align-items: center;
    min-height: 34px;
}

    .do-stopp + .do-stopp {
        margin-top: 1px;
    }

    .do-stopp.mit-pfeil > .do-pfeil {
        top: 50%;
        right: -22px;
    }

.do-zeit small {
    font-size: 11px;
    line-height: 1.1;
}

.do-icon {
    padding-top: 0;
}

/* Ort in einer Zeile: PLZ, Name (wird abgeschnitten), Kran-Hinweis und Aviso bleiben sichtbar */
.do-ort {
    display: flex;
    align-items: center;
    overflow: hidden;
    overflow-wrap: normal;
    white-space: nowrap;
}

    .do-ort > * {
        flex: 0 0 auto;
    }

    .do-ort > b {
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.do-nav,
.do-check {
    width: 34px;
    height: 34px;
}

.do-auftrag:not(.erledigt):not(.einsatz) > .do-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1px 12px;
    margin-top: 3px;
    padding-top: 3px;
    font-size: 12.5px;
}

    .do-auftrag:not(.erledigt):not(.einsatz) > .do-meta > div {
        max-width: 100%;
        margin-top: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .do-auftrag:not(.erledigt):not(.einsatz) > .do-meta i {
        width: 16px;
        margin-right: 3px;
    }
