        /* Design tokens — wspólne phone / desktop */
        :root {
            --gm-bg: #f4f6f9;
            --gm-surface: #ffffff;
            --gm-text: #212529;
            --gm-muted: #6c757d;
            --gm-primary: #0d6efd;
            --gm-border: #dee2e6;
            --gm-radius: 0.5rem;
            --gm-gap: 1.15rem;
            --gm-navbar-h: 56px;
            --gm-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            --gm-layout-max: 100%;
            --gm-karta-cols: 1fr;
        }
        @media (min-width: 768px) {
            body:not(.hp-telefon) {
                --gm-layout-max: min(1400px, 96vw);
                --gm-karta-cols: minmax(0, 1fr) minmax(0, 1.12fr);
                --gm-gap: 1.15rem 1.35rem;
            }
        }
        body {
            background-color: var(--gm-bg);
            font-family: var(--gm-font);
            touch-action: manipulation;
            color: var(--gm-text);
        }
        .mechanic-card,
        .karta-admin,
        .card-zlecenie,
        .btn {
            touch-action: manipulation;
            -webkit-tap-highlight-color: rgba(13, 110, 253, 0.18);
        }
        .navbar-brand {
            font-weight: bold;
            letter-spacing: 0.5px;
        }
        .mechanic-card {
            transition: transform 0.2s, box-shadow 0.2s;
            cursor: pointer;
            border: none;
            border-radius: 12px;
        }
        @media (hover: hover) and (pointer: fine) {
            .mechanic-card:hover {
                transform: translateY(-5px);
                box-shadow: 0 10px 20px rgba(0,0,0,0.15);
            }
        }
        .mechanic-card.zablokowane {
            opacity: 0.55;
            cursor: not-allowed;
        }
        .pin-siatka {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }
        .pin-siatka button {
            min-height: 56px;
            font-size: 1.4rem;
            font-weight: 700;
        }
        .pin-kropki {
            letter-spacing: 0.4rem;
            font-size: 1.6rem;
            min-height: 2rem;
        }
        .avatar-circle {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #0d6efd, #0dcaf0);
            color: white;
            font-size: 32px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            margin: 0 auto 15px auto;
        }
        .avatar-wrap {
            position: relative;
            display: inline-block;
            margin: 0 auto 15px auto;
        }
        .avatar-wrap .avatar-circle {
            margin: 0;
        }
        .badge-powiadom {
            position: absolute;
            top: -4px;
            right: -6px;
            min-width: 1.5rem;
            height: 1.5rem;
            padding: 0 5px;
            border-radius: 999px;
            background: #ff3b30;
            color: #fff;
            font-size: 0.78rem;
            font-weight: 800;
            line-height: 1.35rem;
            text-align: center;
            border: 2px solid #fff;
            box-shadow: 0 1px 4px rgba(0,0,0,0.35);
            pointer-events: none;
        }
        .card-zlecenie {
            cursor: pointer;
            transition: all 0.2s;
            border-left: 5px solid #0d6efd;
            border-radius: 8px;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .zlec-tablica-wrap {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 6px;
            flex-shrink: 0;
        }
        .zlec-tablica {
            display: inline-flex;
            align-items: center;
            box-sizing: border-box;
            background: #fff;
            border: 2px solid #212529;
            border-radius: 0.375rem;
            overflow: hidden;
            box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
            font-family: 'Courier New', Courier, monospace;
            letter-spacing: 3px;
            line-height: 1;
            min-height: 2.5rem;
        }
        .zlec-tablica-pasek {
            background: #002255;
            width: 16px;
            min-height: 2.5rem;
            align-self: stretch;
            flex-shrink: 0;
        }
        .zlec-tablica-nr {
            flex: 1 1 auto;
            min-width: calc(var(--zlec-rej-len, 8) * 1ch);
            font-weight: 700;
            font-size: 1.35rem;
            color: #212529;
            padding: 0.2rem 0.55rem 0.2rem 0.4rem;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
            text-align: center;
        }
        .zlec-tablica-przypisana {
            background: #d1e7dd;
            border-color: #198754;
        }
        .zlec-tablica-przypisana .zlec-tablica-nr {
            color: #0f5132;
        }
        .zlec-historia-btn {
            display: block;
            width: 100%;
            box-sizing: border-box;
            padding: 0.2rem 0.5rem;
            margin: 0;
            border: 1px solid #6c757d;
            border-radius: 0.375rem;
            background: #fff;
            color: #495057;
            font-size: 0.8rem;
            font-weight: 700;
            line-height: 1.25;
            text-align: center;
            cursor: pointer;
        }
        .zlec-historia-btn:hover,
        .zlec-historia-btn:focus {
            background: #f8f9fa;
            border-color: #0d6efd;
            color: #0d6efd;
        }
        @media (hover: hover) and (pointer: fine) {
            .card-zlecenie:hover {
                background-color: #f8f9fa;
                transform: scale(1.01);
            }
        }
        .card-zlecenie.moje-zlecenie {
            border-left-color: #fd7e14;
            background-color: #fff8f0;
        }
        .card-zlecenie.zlecenie-sprawdzone {
            border-left-color: #198754;
            background-color: #f1faf4;
        }
        .card-zlecenie.zlecenie-zatwierdzone {
            border-left-color: #198754;
            background-color: #f1faf4;
        }
        .card-zlecenie.zlecenie-nowa {
            border-left-color: #ffc107;
            background-color: #fffbeb;
        }
        .card-zlecenie.zlecenie-nowe-przydzial {
            border-left-color: #fd7e14;
            background-color: #fff4e5;
            box-shadow: 0 0 0 2px rgba(253, 126, 20, 0.4);
        }
        .card-zlecenie.zlecenie-reklamacja {
            border-left-color: #dc3545;
            background-color: #fff5f5;
            box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.35);
        }
        .sticky-header {
            position: sticky;
            top: 0;
            z-index: 1020;
            background-color: #f4f6f9;
            padding-top: 15px;
            padding-bottom: 15px;
        }
        tr.wiersz-z-bufora {
            background-color: #fff4e5 !important;
        }
        .karta-admin {
            cursor: pointer;
            border: none;
            border-radius: 12px;
            height: 100%;
            min-height: 160px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            overflow: hidden;
            padding: 0.9rem 0.6rem !important;
        }
        .karta-admin h5 {
            font-size: 1rem;
            line-height: 1.15;
            max-width: 100%;
            overflow-wrap: anywhere;
            word-break: break-word;
        }
        .karta-admin p {
            font-size: 0.72rem;
            line-height: 1.2;
            max-width: 100%;
        }
        @media (hover: hover) and (pointer: fine) {
            .karta-admin:hover {
                transform: translateY(-4px);
                box-shadow: 0 10px 20px rgba(0,0,0,0.12);
            }
        }
        .karta-admin .karta-admin-badge {
            min-height: 28px;
        }
        .karta-admin-ikona {
            position: relative;
            display: inline-block;
            margin-bottom: 0.5rem;
        }
        .karta-admin-ikona .fa-2x {
            margin-bottom: 0 !important;
        }
        .karta-admin-ikona .badge-powiadom {
            top: -8px;
            right: -14px;
        }
        .rf-stat {
            background: #fff;
            border-radius: 12px;
            padding: 0.75rem 0.85rem;
            box-shadow: 0 1px 4px rgba(0,0,0,0.06);
            height: 100%;
        }
        .rf-stat .rf-val { font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
        .rf-stat .rf-lab { font-size: 0.75rem; color: #6c757d; margin-top: 0.15rem; }
        .rf-kol-zak { background: #fd7e14; }
        .rf-kol-spr { background: #0d6efd; }
        .rf-kol-rob { background: #198754; }
        .rf-kol-zys { background: #6f42c1; }
        .rf-legenda { display: flex; flex-wrap: wrap; gap: 0.7rem; font-size: 0.75rem; color: #495057; margin-bottom: 0.6rem; }
        .rf-legenda i { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 3px; margin-right: 0.25rem; vertical-align: -1px; }
        .rf-filtry .form-label { font-size: 0.75rem; font-weight: 700; margin-bottom: 0.2rem; }
        .rf-tab-btn { flex: 1; }
        .rf-colchart { display: flex; align-items: flex-end; gap: 0.35rem; overflow-x: auto; min-height: 170px; padding: 0.4rem 0.2rem 0; }
        .rf-col { display: flex; flex-direction: column; align-items: center; min-width: 2.1rem; flex: 1 0 2.1rem; }
        .rf-col-group { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 140px; width: 100%; }
        .rf-col-bar { width: 8px; border-radius: 4px 4px 0 0; min-height: 2px; }
        .rf-col-lab { font-size: 0.62rem; color: #6c757d; margin-top: 0.25rem; text-align: center; line-height: 1.1; max-width: 3.4rem; overflow: hidden; }
        .rf-pl table { width: 100%; font-size: 0.88rem; }
        .rf-pl td { padding: 0.4rem 0.45rem; border-bottom: 1px solid #eee; }
        .rf-pl td:last-child { font-weight: 800; text-align: right; white-space: nowrap; }
        .rf-pl tr.rf-pl-sum td { font-weight: 800; background: #f8f9fa; }
        .rf-pl .rf-uwaga { font-size: 0.72rem; color: #6c757d; margin-top: 0.4rem; }
        .rozl-karta-os .form-control, .rozl-karta-os .form-select {
            max-width: 100%;
        }
        .rozl-dzien {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.35rem 0.5rem;
            padding: 0.55rem 0;
            border-bottom: 1px solid #e9ecef;
        }
        .rozl-dzien-data {
            min-width: 7.2rem;
            flex: 1 1 7.2rem;
        }
        .rozl-dzien-tyg {
            font-size: 0.68rem;
            font-weight: 500;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            opacity: 0.75;
        }
        .rozl-dzien-czas {
            font-size: 1.2rem;
            font-weight: 700;
            line-height: 1.15;
            font-variant-numeric: tabular-nums;
        }
        .rozl-dzien .form-select,
        .rozl-dzien .form-control {
            width: auto;
            min-width: 0;
        }
        .rozl-kw {
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }
        .rozl-weekend { color: #6c757d; }
        .ewid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -0.15rem; }
        .ewid-tab {
            border-collapse: collapse;
            font-size: 0.72rem;
            width: max-content;
            min-width: 100%;
        }
        .ewid-tab th, .ewid-tab td {
            border: 1px solid #dee2e6;
            text-align: center;
            padding: 0.28rem 0.12rem;
            min-width: 1.7rem;
            line-height: 1.1;
            font-variant-numeric: tabular-nums;
        }
        .ewid-tab th.ewid-name, .ewid-tab td.ewid-name {
            text-align: left;
            min-width: 7.4rem;
            max-width: 8.6rem;
            position: sticky;
            left: 0;
            z-index: 2;
            background: #fff;
            font-weight: 700;
            padding-left: 0.4rem;
            padding-right: 0.4rem;
        }
        .ewid-tab thead th { background: #f8f9fa; font-weight: 700; }
        .ewid-tab thead th.ewid-name { z-index: 3; }
        .ewid-tab .ewid-we { background: #f1f3f5; color: #868e96; }
        .ewid-tab td.ewid-we { background: #f4f6f8; }
        .ewid-ob { color: #0d6efd; font-weight: 800; }
        .ewid-uw { color: #198754; font-weight: 800; }
        .ewid-ub { color: #6c757d; font-weight: 800; }
        .ewid-uo { color: #0aa2c0; font-weight: 800; }
        .ewid-ch { color: #dc3545; font-weight: 800; }
        .ewid-legenda { font-size: 0.78rem; color: #495057; }
        .ewid-legenda span { white-space: nowrap; }
        .check-wrap,
        .check-label {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            min-width: 40px;
            margin-right: 10px;
            flex-shrink: 0;
            box-sizing: border-box;
        }
        .check-wrap {
            height: 40px;
            border-radius: 8px;
            touch-action: manipulation;
            position: relative;
            z-index: 2;
        }
        .check-label {
            height: 22px;
            font-size: 0.75rem;
            font-weight: 700;
            line-height: 1;
        }
        .check-wrap-ic {
            background: #e7f1ff;
            border: 2px solid #0d6efd;
        }
        .check-wrap-my {
            background: #fff1e6;
            border: 2px solid #e67e22;
        }
        .check-wrap-wa {
            background: #e9ecef;
            border: 2px solid #212529;
        }
        .check-hurt {
            width: 22px;
            height: 22px;
            margin: 0;
            flex-shrink: 0;
        }
        .check-hurt-ic {
            accent-color: #0d6efd;
        }
        .check-hurt-my {
            accent-color: #e67e22;
        }
        .przyj-foto {
            min-height: 96px;
            border: 2px dashed #adb5bd;
            border-radius: 12px;
            background: #fff;
            cursor: pointer;
            padding: 0.75rem;
            height: 100%;
            overflow: hidden;
            min-width: 0;
        }
        .przyj-foto.jest {
            border-style: solid;
            border-color: #198754;
            background: #f0fff4;
        }
        .przyj-foto .przyj-foto-tytul { font-weight: 700; font-size: 0.95rem; }
        .check-hurt-wa {
            accent-color: #000;
        }
        .hurt-kol-ic { color: #0d6efd; }
        .hurt-kol-my { color: #e67e22; }
        .hurt-kol-wa { color: #212529; }
        .poz-lista {
            border-top: 1px solid #e6e8eb;
        }
        .poz-wiersz {
            display: flex;
            align-items: flex-start;
            padding: 10px 0;
            border-bottom: 1px solid #e6e8eb;
        }
        .poz-wiersz:last-child {
            border-bottom: none;
        }
        .poz-nazwa {
            flex: 1 1 auto;
            min-width: 0;
            line-height: 1.25;
        }
        .poz-indeks {
            display: flex;
            align-items: center;
            gap: 0.28rem;
            margin-top: 0.15rem;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.02em;
            color: #495057;
            line-height: 1.2;
        }
        .poz-indeks .fa-barcode { font-size: 0.78rem; opacity: 0.8; }
        .poz-indeks-brak {
            font-weight: 600;
            color: #adb5bd;
            letter-spacing: 0;
        }
        .poz-marka {
            font-weight: 600;
            font-size: 0.72rem;
            color: #343a40;
            margin-top: 0.08rem;
        }
        .poz-wiersz-klik { cursor: pointer; }
        .poz-nazwa-klik {
            cursor: pointer;
            border: 0;
            background: transparent;
            text-align: left;
            width: 100%;
            border-radius: 8px;
            padding: 4px 6px;
            margin: -4px -6px;
            display: block;
        }
        .poz-wiersz-klik:active, .poz-nazwa-klik:active {
            background: #eaf2ff;
        }
        @media (hover: hover) and (pointer: fine) {
            .poz-wiersz-klik:hover, .poz-nazwa-klik:hover {
                background: #eaf2ff;
            }
            .poz-wiersz-klik:has(.poz-akcje:hover),
            .poz-wiersz-klik:has(.poz-akcje:hover) .poz-nazwa-klik {
                background: transparent;
            }
        }
        .poz-akcje {
            flex: 0 0 auto;
            margin-left: 8px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
            position: relative;
            z-index: 3;
            pointer-events: auto;
            align-self: center;
        }
        .poz-akcje .btn {
            min-height: 36px;
            min-width: 4.25rem;
            box-sizing: border-box;
            box-shadow: none !important;
            transform: none !important;
            touch-action: manipulation;
        }
        .poz-nag {
            display: flex;
            align-items: flex-end;
            padding: 0 0 4px 0;
            margin: 0;
            border-bottom: 1px solid #e6e8eb;
        }
        .btn-wa-ic {
            background-color: #0d6efd;
            border-color: #0d6efd;
            color: #fff;
        }
        .btn-wa-ic:hover, .btn-wa-ic:focus {
            background-color: #0b5ed7;
            border-color: #0b5ed7;
            color: #fff;
        }
        .btn-wa-my {
            background-color: #e67e22;
            border-color: #e67e22;
            color: #fff;
        }
        .btn-wa-my:hover, .btn-wa-my:focus {
            background-color: #ca6c1a;
            border-color: #ca6c1a;
            color: #fff;
        }
        .btn-wa-ws {
            background-color: #212529;
            border-color: #000;
            color: #fff;
        }
        .btn-wa-ws:hover, .btn-wa-ws:focus {
            background-color: #000;
            border-color: #000;
            color: #fff;
        }
        .zam-aktywne {
            border-left: 5px solid #fd7e14 !important;
        }
        .zam-zamowione {
            border-left: 5px solid #198754 !important;
            opacity: 0.92;
        }
        .btn-akcja,
        .pasek-dolny .btn,
        .para-akcji > .btn {
            min-height: 48px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: clamp(0.78rem, 2.8vw, 1rem);
            font-weight: 700;
            line-height: 1.15;
            padding-left: 0.7rem;
            padding-right: 0.7rem;
        }
        .para-akcji {
            display: flex;
            gap: 0.5rem;
            align-items: stretch;
            justify-content: space-between;
            width: 100%;
        }
        .para-akcji > .btn,
        .para-akcji > [class*="col"] > .btn {
            flex: 1 1 0;
            min-width: 0;
            max-width: 16rem;
            text-align: center;
        }
        .para-akcji > .btn:first-child {
            margin-right: auto;
        }
        .para-akcji > .btn:last-child:not(:first-child) {
            margin-left: auto;
        }
        .para-akcji-jeden {
            justify-content: center;
        }
        .para-akcji-jeden > .btn {
            flex: 0 1 16rem;
            max-width: 22rem;
            margin-left: auto;
            margin-right: auto;
            width: 100%;
        }
        .para-akcji-jeden:has(> .btn.d-none:only-child) {
            display: none;
        }
        #btn-potrzebna-pomoc,
        .btn-przekaz-start {
            width: 100%;
            max-width: 22rem;
            margin-left: auto;
            margin-right: auto;
            display: flex;
        }
        .przekaz-start-box {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .przekaz-start-box .panel-przekazanie {
            width: 100%;
            max-width: 22rem;
        }
        #pomoc-mechanik-box {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        #pomoc-mechanik-box #panel-potrzebna-pomoc,
        #pomoc-mechanik-box .przekaz-start-box {
            width: 100%;
            max-width: 22rem;
        }
        .pasek-dolny .row.g-2 {
            display: flex;
            flex-wrap: nowrap;
            justify-content: space-between;
            align-items: stretch;
            --bs-gutter-x: 0.5rem;
            margin-left: 0;
            margin-right: 0;
        }
        .pasek-dolny .col-6 {
            flex: 1 1 0;
            width: auto;
            max-width: 16rem;
            padding-left: 0;
            padding-right: 0;
        }
        .pasek-dolny .col-6:first-child {
            margin-right: auto;
        }
        .pasek-dolny .col-6:last-child:not(:first-child) {
            margin-left: auto;
        }
        .form-control,
        .form-select {
            max-width: 100%;
            min-width: 0;
        }
        input.form-control,
        select.form-select {
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .przyj-foto {
            overflow: hidden;
            min-width: 0;
        }
        .przyj-foto .przyj-foto-tytul,
        .przyj-foto .small {
            max-width: 100%;
            overflow: hidden;
            overflow-wrap: anywhere;
            word-break: break-word;
        }
        #stan-vin {
            font-family: "Courier New", Courier, monospace;
            font-size: clamp(0.68rem, 2.6vw, 0.85rem);
            letter-spacing: 0.02em;
            line-height: 1.2;
            word-break: break-all;
        }
        #przyj-vin {
            font-family: "Courier New", Courier, monospace;
            font-size: clamp(0.72rem, 3.2vw, 1.05rem);
            letter-spacing: 0.04em;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        #detal-vin-wiersz {
            min-width: 0;
        }
        #detal-vin {
            font-family: "Courier New", Courier, monospace;
            font-size: clamp(0.72rem, 3vw, 1rem);
            letter-spacing: 0.03em;
            overflow-wrap: anywhere;
            word-break: break-all;
        }
        .karta-pojazd-dane {
            min-width: 0;
        }
        .karta-pojazd-dane p {
            overflow-wrap: anywhere;
            word-break: break-word;
        }
        .porown-hurt {
            font-size: 0.82rem;
            margin-bottom: 0.75rem;
        }
        .porown-hurt th {
            white-space: nowrap;
            background: #f4f6f8;
            vertical-align: middle;
        }
        .porown-hurt td {
            vertical-align: middle;
        }
        .porown-hurt .th-ic { color: #0d6efd; }
        .porown-hurt .th-ap { color: #198754; }
        .porown-cena { font-weight: 700; white-space: nowrap; }
        .porown-stan-ok { color: #198754; font-weight: 700; }
        .porown-stan-brak { color: #dc3545; font-weight: 700; }
        .porown-stan-off { color: #6c757d; }
        .porown-glowny { background: #fff8e6; }
        .olej-zielony { color: #198754; font-weight: 700; }
        .olej-pomaranczowy { color: #e67e00; font-weight: 700; }
        .olej-czerwony { color: #dc3545; font-weight: 700; }
        .porown-hurt-wrap { overflow-x: hidden; max-width: 100%; }
            table.porown-hurt {
            width: 100%;
            min-width: 0;
            table-layout: fixed;
            border-collapse: collapse;
            font-size: 0.78rem;
            margin: 0;
        }
        table.porown-hurt th, table.porown-hurt td {
            border: 1px solid #dee2e6;
            padding: 0.3rem 0.28rem;
            vertical-align: top;
            text-align: center;
            word-break: break-word;
        }
        table.porown-hurt .porown-dost { margin-top: 0.2rem; }
        table.porown-hurt .porown-trasa {
            margin-top: 0.15rem;
            font-size: 0.65rem;
            font-weight: 500;
            color: #6c757d;
            line-height: 1.25;
            white-space: normal;
        }
        table.porown-hurt tr.porown-wiersz-do td {
            padding: 0.18rem 0.28rem;
            font-size: 0.68rem;
            font-weight: 700;
            color: #0d6efd;
            background: #eaf2ff;
        }
        table.porown-hurt td.porown-zamow-do {
            text-align: center;
        }
        table.porown-hurt th {
            background: #f8f9fa;
            font-weight: 700;
            white-space: nowrap;
        }
        table.porown-hurt th.hurt-kol-ic { color: #0d6efd; background: #eaf2ff; }
        table.porown-hurt th.hurt-kol-ap { color: #212529; background: #f1f3f5; }
        table.porown-hurt th.hurt-kol-wa { color: #212529; background: #eceff1; }
        table.porown-hurt td.porown-idx {
            text-align: left;
            font-weight: 700;
            white-space: normal;
            word-break: break-word;
            position: relative;
        }
        table.porown-hurt td.porown-idx.has-usun {
            padding-right: 1.35rem;
        }
        table.porown-hurt .porown-marka {
            font-weight: 600;
            font-size: 0.78em;
            color: #343a40;
            margin-top: 0.12rem;
        }
        table.porown-hurt .btn-usun-zam {
            position: absolute;
            top: 0.05rem;
            right: 0.05rem;
            border: none;
            background: transparent;
            color: #dc3545;
            font-weight: 700;
            font-size: 1.05rem;
            line-height: 1;
            padding: 0 0.28rem 0.1rem;
            cursor: pointer;
        }
        table.porown-hurt .btn-usun-zam:hover { color: #a71d2a; }
        table.porown-hurt .porown-cena { white-space: normal; }
        @media (max-width: 576px) {
            table.porown-hurt { font-size: 0.7rem; }
            table.porown-hurt th, table.porown-hurt td { padding: 0.22rem 0.15rem; }
            table.porown-hurt td.porown-idx .small { display: none; }
            #modalSprawdzCzesc .modal-body,
            #modalPorownajCzesc .modal-body { padding: 0.65rem; }
        }
        table.porown-hurt td.stan-ok { color: #198754; font-weight: 700; }
        table.porown-hurt td.stan-zero { color: #dc3545; font-weight: 700; }
        table.porown-hurt td.stan-brak { color: #6c757d; font-size: 0.75rem; }
        table.porown-hurt tr.porown-glowny { background: #fff8e6; }
        table.porown-hurt .btn-zamow-ic,
        table.porown-hurt .btn-dodaj-mag {
            display: block;
            width: 100%;
            margin-top: 0.35rem;
            font-size: 0.72rem;
            font-weight: 700;
            padding: 0.2rem 0.35rem;
            white-space: nowrap;
        }
        table.porown-hurt .mag-ilosc-inp {
            width: 100%;
            max-width: 5.2rem;
            margin: 0.35rem auto 0;
            display: block;
            font-weight: 700;
            text-align: center;
            font-size: 0.85rem;
            padding: 0.15rem 0.2rem;
        }
        table.porown-hurt .ic-zamowione-ok {
            margin-top: 0.25rem;
            font-size: 0.72rem;
            font-weight: 700;
            color: #198754;
        }
        table.porown-hurt td.porown-cena-min {
            background: #c8f0d4;
            box-shadow: inset 0 0 0 2px #198754;
        }
        .btn-dodaj-zam {
            display: inline-block;
            font-size: 0.82rem;
            font-weight: 700;
            padding: 0.28rem 0.85rem;
            white-space: nowrap;
        }
        #modalDodajZamiennik { z-index: 1080; }
        .tab-hist-idx { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
        .tab-hist-idx th, .tab-hist-idx td {
            border: 1px solid #dee2e6;
            padding: 0.28rem 0.35rem;
            text-align: center;
            vertical-align: middle;
        }
        .tab-hist-idx th { background: #f8f9fa; white-space: nowrap; }
        .tab-hist-idx-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        #modalPorownajCzesc { z-index: 1070; }
        .modal-backdrop.show:nth-of-type(2) { z-index: 1065; }
        #modalAppDlg { z-index: 1100; }
        #modalAppDlg .modal-content { border-radius: 16px; overflow: hidden; }
        #modalAppDlg .app-dlg-tresc { white-space: pre-wrap; font-size: 1.08rem; line-height: 1.4; }
        #modalAppDlg .modal-footer .btn { min-height: 2.75rem; font-weight: 700; }
        #app-dlg-ilosc { font-size: 1.45rem; font-weight: 700; text-align: center; }
        .czas-ok { color: #198754; }
        .czas-over { color: #dc3545; }
        .czas-licznik.czas-ok,
        .czas-licznik.czas-ok .czas-licznik-suma,
        .czas-licznik.czas-ok .czas-licznik-ikona { color: #198754 !important; }
        .czas-licznik.czas-ok { border-color: #198754 !important; }
        .czas-licznik.czas-over,
        .czas-licznik.czas-over .czas-licznik-suma,
        .czas-licznik.czas-over .czas-licznik-ikona { color: #dc3545 !important; }
        .czas-licznik.czas-over { border-color: #dc3545 !important; }
        .czas-kafelek,
        .czas-licznik {
            position: relative;
            min-width: 4.6rem;
            min-height: 2.75rem;
            height: auto;
            font-weight: 700;
            color: #212529;
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
            gap: 0.25rem;
            padding-left: 0.55rem;
            padding-right: 0.55rem;
        }
        .czas-licznik-suma {
            white-space: nowrap;
        }
        .zadanie-wiersz {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 0.55rem;
        }
        .nazwa-zadania {
            width: 100%;
            min-width: 0;
            display: flex;
            align-items: flex-start;
            gap: 0.4rem;
            white-space: normal;
            overflow-wrap: break-word;
            word-break: break-word;
            line-height: 1.3;
        }
        .nazwa-zadania-nr {
            flex: 0 0 auto;
            line-height: 1.3;
        }
        .nazwa-zadania-linie {
            flex: 1 1 auto;
            min-width: 0;
            display: flex;
            flex-direction: column;
            line-height: 1.3;
        }
        .zadanie-akcje {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
            width: 100%;
            margin-left: 0;
            flex-wrap: nowrap;
        }
        .zadanie-akcje-lewo,
        .zadanie-akcje-prawo {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            flex: 0 0 auto;
        }
        .zadanie-akcje-prawo {
            margin-left: auto;
        }
        .zadanie-czasy {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 0.4rem;
        }
        .zadanie-czas-osoba {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 0.12rem;
        }
        .zadanie-czas-etykieta {
            font-size: 0.72rem;
            font-weight: 700;
            color: #6c757d;
            line-height: 1.1;
            max-width: 11rem;
            text-align: right;
        }
        .zadanie-rmi {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 0.35rem;
            margin-top: 0.45rem;
            white-space: nowrap;
            font-size: 0.9rem;
        }
        .zadanie-rmi-blok {
            display: grid;
            grid-template-columns: auto minmax(6.8rem, auto);
            column-gap: 0.65rem;
            row-gap: 0.12rem;
            align-items: baseline;
            margin-top: 0.45rem;
            width: fit-content;
            font-size: 0.9rem;
        }
        .zadanie-rmi-wartosc {
            font-weight: 800;
            font-size: 1.15rem;
            line-height: 1.1;
            text-align: right;
            justify-self: end;
            font-variant-numeric: tabular-nums;
        }
        .zadanie-rmi .czas-rmi {
            width: 4.25rem;
            height: 2.25rem;
            min-height: 2.25rem;
            font-weight: 800;
            font-size: 1.1rem;
        }
        .zadania-przewidywany {
            font-size: 0.95rem;
            font-weight: 500;
            color: #212529;
            text-align: right;
            white-space: nowrap;
        }
        .zadania-przewidywany strong {
            font-weight: 800;
            font-size: 1.15rem;
        }
        .zadanie-zarobek {
            margin-top: 0;
            font-size: 0.9rem;
        }
        .przeglad-stan-ok { background: #198754; color: #fff; border: 0; }
        .przeglad-stan-uwaga { background: #ffc107; color: #212529; border: 0; }
        .przeglad-stan-popraw { background: #dc3545; color: #fff; border: 0; }
        .przeglad-stan-btn { min-height: 3.2rem; font-weight: 800; }
        .czas-licznik-ikona {
            position: static;
            font-size: 0.85rem;
            line-height: 1;
            flex-shrink: 0;
        }
        .czas-dziala {
            border-color: #198754 !important;
            color: #198754 !important;
        }
        .zadanie-naprawione {
            background: #e9f7ef !important;
            border-color: #198754 !important;
            color: #146c43;
        }
        .nowa-usterka-czerwona {
            color: #dc3545 !important;
            font-weight: 700;
            border-color: #dc3545 !important;
            background: #fff5f5 !important;
        }
        .zadanie-usuniete {
            background: #f8f9fa !important;
            color: #6c757d;
        }
        .zadanie-usuniete .nazwa-zadania {
            text-decoration: line-through;
        }
        .zadanie-niezatwierdzone {
            background: #ececec !important;
            border-color: #d0d0d0 !important;
            color: #8b8b8b;
        }
        .zadanie-przekazane {
            background: #e9ecef !important;
            border-color: #ced4da !important;
            color: #6c757d;
        }
        .zadanie-przekazane .nazwa-zadania {
            color: #6c757d;
        }
        .zadanie-przekazane-kto {
            font-size: 0.85rem;
            font-weight: 700;
            color: #495057;
            margin-top: 0.25rem;
        }
        .przekaz-check {
            width: 1.25rem;
            height: 1.25rem;
            flex-shrink: 0;
            margin-top: 0.15rem;
        }
        .zadanie-niezatwierdzone .nazwa-zadania {
            font-weight: 600;
        }
        .zadanie-naglowek {
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            gap: 0.5rem;
            width: 100%;
        }
        .zadanie-naglowek .nazwa-zadania {
            flex: 1 1 auto;
            min-width: 0;
        }
        .zadanie-badge-niezatw {
            flex: 0 0 auto;
            margin-left: auto;
            align-self: center;
            pointer-events: none;
            user-select: none;
            white-space: nowrap;
        }
        .karta-zwijana { cursor: pointer; user-select: none; }
        .karta-ukryta-pomoc { display: none !important; }
        .alert-nowa-usterka {
            background: #fff3cd;
            border: 2px solid #ffc107;
        }
        .pozycja-auto-weryfikuj {
            background: #fff3cd !important;
            border-color: #ffc107 !important;
        }
        .btn-ikona-akcja {
            width: 2.75rem;
            height: 2.75rem;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.15rem;
            flex: 0 0 auto;
        }
        .pozycja-auto-kafelek {
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
            flex-wrap: nowrap;
        }
        .pozycja-auto-nazwa {
            flex: 1 1 auto;
            min-width: 0;
            overflow-wrap: anywhere;
            word-break: break-word;
        }
        .pozycja-auto-akcje {
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
            align-items: flex-end;
        }
        .pozycja-auto-zablokowana {
            opacity: 0.72;
            background: #f8f9fa !important;
        }
        .karta-pojazd-dane p {
            margin: 0;
            line-height: 1.3;
        }
        #detal-mechanik-akcje {
            min-width: 12.5rem;
            max-width: 15rem;
            width: 44%;
        }
        #detal-mechanik-akcje .form-select {
            min-height: 2.75rem;
            font-size: 1rem;
        }
        #detal-mechanik-akcje .btn-akcja {
            white-space: normal;
            line-height: 1.15;
            text-align: center;
            width: 100%;
        }
        .btn-naprawione {
            min-height: 2.75rem;
            font-weight: 700;
            flex: 0 0 auto;
            white-space: nowrap;
        }
        .navbar-goral {
            position: sticky;
            top: 0;
            z-index: 1045;
            background-color: #fff;
        }
        .navbar-goral .container-fluid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
            align-items: center;
            gap: 0.35rem;
            min-height: 56px;
        }
        .navbar-brand-center {
            position: static;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            margin: 0;
            transform: none;
        }
        .navbar-logo {
            height: clamp(28px, 8vw, 48px);
            width: auto;
            max-width: min(42vw, 280px);
            object-fit: contain;
        }
        #navbar-zalogowany {
            justify-self: start;
            min-width: 0;
            font-weight: 700;
            font-size: clamp(0.72rem, 3.1vw, 1.05rem);
            color: #212529;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }
        #navbar-prawa {
            justify-self: end;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 0.35rem;
            min-width: 0;
        }
        #navbar-cofnij,
        #navbar-odswiez,
        #navbar-wyloguj {
            font-weight: 700;
            font-size: clamp(0.72rem, 3.1vw, 0.95rem);
            white-space: nowrap;
            padding: 0.25rem 0.55rem;
        }
        #navbar-cofnij,
        #navbar-odswiez {
            display: none !important;
        }
        @media (min-width: 768px) {
            body:not(.hp-telefon) #navbar-cofnij.jest,
            body:not(.hp-telefon) #navbar-odswiez.jest {
                display: inline-flex !important;
                align-items: center;
            }
            body:not(.hp-telefon) .js-pasek-cofnij,
            body:not(.hp-telefon) .js-pasek-odswiez {
                display: none !important;
            }
            body:not(.hp-telefon) .pasek-dolny:has(> .row > .js-pasek-cofnij:only-child),
            body:not(.hp-telefon) .pasek-dolny:has(> .row > .js-pasek-cofnij):has(> .row > .js-pasek-odswiez):not(:has(> .row > :not(.js-pasek-cofnij):not(.js-pasek-odswiez))) {
                display: none !important;
            }
            body:not(.hp-telefon) .pasek-dolny .para-akcji {
                justify-content: flex-end;
            }
        }
        .iko-oko-mechanik {
            color: #0d6efd;
            font-size: 0.95rem;
            flex-shrink: 0;
        }
        .screen-view {
            display: none !important;
            pointer-events: none !important;
        }
        .screen-view.active {
            display: block !important;
            pointer-events: auto !important;
            padding-bottom: 88px;
        }
        #screen-admin-raport.screen-view.active,
        #screen-admin-historia.screen-view.active,
        #screen-admin-klima.screen-view.active {
            padding-bottom: 130px;
        }
        .klima-tab th, .klima-tab td { padding: 0.32rem 0.4rem; vertical-align: middle; font-size: 0.88rem; }
        .klima-tab .klima-g { white-space: nowrap; text-align: right; }
        body.hp-telefon .hp-pdf-btn { display: none !important; }
        /* Karta zlecenia: telefon = 1 kolumna; komputer/tablet = 2 niezależne kolumny */
        .karta-pracy-siatka {
            display: flex;
            flex-direction: column;
            gap: 1.15rem;
        }
        .kp-kolumna {
            display: contents; /* na telefonie karty płyną jedna pod drugą */
        }
        .karta-pracy-siatka .card {
            margin-bottom: 0 !important;
        }
        @media (min-width: 768px) {
            body:not(.hp-telefon) .container.my-4 {
                max-width: var(--gm-layout-max);
            }
            body:not(.hp-telefon) .karta-pracy-siatka {
                display: grid;
                grid-template-columns: var(--gm-karta-cols);
                gap: var(--gm-gap);
                align-items: start;
            }
            body:not(.hp-telefon) .kp-kolumna {
                display: flex;
                flex-direction: column;
                gap: 1.15rem;
                min-width: 0;
            }
            body:not(.hp-telefon) .kp-kolumna-l {
                grid-column: 1;
            }
            body:not(.hp-telefon) .kp-kolumna-p {
                grid-column: 2;
            }
        }
        .hp-zlec { border-left: 4px solid #0d6efd; }
        .hp-linia { font-size: 0.92rem; }
        .hp-tab { font-size: 0.82rem; margin-bottom: 0; }
        .hp-tab th, .hp-tab td { padding: 0.28rem 0.35rem; vertical-align: middle; }
        .hp-tab .hp-kw { white-space: nowrap; text-align: right; }
        mark.hp-traf {
            background: #ffe566;
            color: inherit;
            padding: 0 0.12em;
            border-radius: 2px;
            font-weight: 700;
        }
        .pasek-dolny {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1040;
            background-color: #f4f6f9;
            padding: 10px 16px 14px 16px;
            box-shadow: 0 -6px 16px rgba(0,0,0,0.12);
        }
        .screen-view:not(.active) .pasek-dolny {
            display: none !important;
            pointer-events: none !important;
            visibility: hidden !important;
        }
        #ekran-serwer-padl {
            position: fixed;
            inset: 0;
            z-index: 4000;
            background: #f4f6f9;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
            text-align: center;
        }
        #ekran-serwer-padl.jest {
            display: flex;
        }
    