        /* OmniFlow visual system polish layer */
        :root {
            --of-bg: #F4F7FA;
            --of-surface: rgba(255,255,255,.92);
            --of-surface-solid: linear-gradient(135deg, #FFFFFF 0%, #FBFCFD 55%, #F1F5FA 100%);
            --of-surface-muted: #F8FAFC;
            --of-ink: #111827;
            --of-muted: #64748B;
            --of-soft: #E6EDF3;
            --of-line: #DDE6EF;
            --of-navy: #0B1119;
            --of-navy-2: #111A25;
            --of-green: #1F6F4A;
            --of-green-2: #154735;
            --of-fire: #EA580C;
            --of-red: #DC2626;
            --of-blue: #2563EB;
            --of-violet: #7C3AED;
            --of-shadow-sm: 0 8px 22px rgba(15,23,42,.055);
            --of-shadow-md: 0 16px 42px rgba(15,23,42,.085);
            --of-shadow-lg: 0 26px 70px rgba(15,23,42,.14);
            --of-radius-sm: 12px;
            --of-radius: 18px;
            --of-radius-lg: 24px;
            --of-focus: 0 0 0 4px rgba(37,99,235,.13);
        }

        html { background:var(--of-bg); }
        body {
            background:
                radial-gradient(circle at 14% -8%, rgba(239,68,68,.10), transparent 31%),
                radial-gradient(circle at 88% 4%, rgba(37,99,235,.10), transparent 30%),
                linear-gradient(180deg, #F7FAFC 0%, #F4F7FA 44%, #EEF3F7 100%);
            color:var(--of-ink);
            font-feature-settings:"cv02","cv03","cv04","cv11";
        }

        .header {
            background:
                radial-gradient(circle at 8% 10%, rgba(234,88,12,.22), transparent 34%),
                radial-gradient(circle at 88% 18%, rgba(37,99,235,.18), transparent 36%),
                linear-gradient(135deg, #080D14 0%, #121B27 54%, #090F17 100%);
            border-bottom:1px solid rgba(255,255,255,.10);
            box-shadow:0 18px 50px rgba(2,6,23,.24);
        }
        .header-top { gap:18px; }
        .header h1 { font-weight:780; letter-spacing:.12em; }
        .header h1::before {
            width:38px;
            height:38px;
            border-radius:12px;
            box-shadow:0 14px 32px rgba(0,0,0,.34), 0 0 0 1px rgba(255,255,255,.12) inset;
        }
        .header-field label,
        .revision-manual-field label,
        .workspace-kicker,
        .today-dashboard-kicker,
        .budget-panel-title,
        .global-search-card-title,
        .history-status-title,
        .cloud-versions-title,
        .desktop-export-title,
        .desktop-export-card-title {
            letter-spacing:.105em;
            font-weight:850;
        }
        .header-field input,
        .header-field select {
            min-height:42px;
            border-radius:12px;
            background:rgba(255,255,255,.075);
            border-color:rgba(255,255,255,.16);
            box-shadow:0 1px 0 rgba(255,255,255,.04) inset;
        }
        .header-field input:focus,
        .header-field select:focus {
            border-color:rgba(125,211,252,.52);
            box-shadow:0 0 0 4px rgba(125,211,252,.11);
        }

        .container { padding-top:22px; }
        .workspace-main { gap:16px; }
        .workspace-sidebar { gap:16px; }
        .workspace-hero,
        .tabs-shell,
        .today-dashboard,
        .global-panel,
        .global-search-panel,
        .smart-client-panel,
        .service-pbz-section,
        .budget-upload-card,
        .budget-panel,
        .workflow-panel,
        .work-report-panel,
        .revision-manual-panel,
        .desktop-export-center,
        .desktop-history-detail,
        .trash-panel,
        .table-section {
            border-color:var(--of-line);
            border-radius:var(--of-radius);
            background:var(--of-surface-solid);
            box-shadow:var(--of-shadow-sm);
        }
        .workspace-hero,
        .today-dashboard,
        .global-panel,
        .global-search-panel,
        .smart-client-panel,
        .desktop-export-center {
            box-shadow:var(--of-shadow-md);
        }
        .workspace-hero {
            background:
                linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.95)),
                radial-gradient(circle at 92% 8%, rgba(37,99,235,.12), transparent 38%);
        }
        .workspace-hero::before {
            background:
                radial-gradient(circle at top right, rgba(37,99,235,.13) 0%, transparent 32%),
                radial-gradient(circle at 2% 6%, rgba(234,88,12,.11) 0%, transparent 30%),
                linear-gradient(180deg, rgba(255,255,255,.42) 0%, transparent 54%);
        }
        .workspace-title,
        .today-dashboard-title,
        .global-panel-title,
        .service-pbz-title,
        .budget-upload-title,
        .work-report-panel-title,
        .revision-manual-title {
            letter-spacing:-.025em;
        }
        .workspace-mode-badge {
            background:linear-gradient(135deg, var(--of-navy), #1D2938);
            box-shadow:0 16px 34px rgba(2,6,23,.20);
        }
        .workspace-meta-card,
        .global-kpi,
        .history-stat,
        .history-status-kpi,
        .budget-kpi-card,
        .budget-month-card,
        .workflow-step,
        .today-card,
        .pipeline-card,
        .smart-client-kpi,
        .smart-client-suggestion,
        .mobile-history-card,
        .mobile-revision-card,
        .mobile-service-cost-card,
        .desktop-export-card,
        .desktop-check-row,
        .cloud-version-row,
        .price-preview-card,
        .history-preview-card,
        .desktop-history-detail-cell {
            border-color:var(--of-soft);
            border-radius:var(--of-radius-sm);
            background:linear-gradient(180deg, #FFFFFF 0%, #F9FBFD 100%);
            box-shadow:0 1px 0 rgba(255,255,255,.85) inset;
        }
        .today-card,
        .budget-kpi-card,
        .global-kpi,
        .history-stat {
            transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
        }
        @media (hover:hover) {
            .today-card:hover,
            .budget-kpi-card:hover,
            .global-kpi:hover,
            .history-stat:hover,
            .smart-client-suggestion:hover,
            .mobile-history-card:hover,
            .mobile-revision-card:hover,
            .mobile-service-cost-card:hover {
                transform:translateY(-2px);
                box-shadow:0 16px 36px rgba(15,23,42,.09);
                border-color:#CBD5E1;
            }
        }

        .mobile-history-card,
        .mobile-service-cost-card,
        .mobile-revision-card {
            position:relative;
            border:1px solid #DDE6EE;
            border-radius:18px;
            background:
                linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.98) 100%);
            box-shadow:0 12px 26px rgba(15,23,42,.055);
        }
        .mobile-history-card::before,
        .mobile-service-cost-card::before,
        .mobile-revision-card::before {
            content:"";
            position:absolute;
            inset:0 auto 0 0;
            width:4px;
            border-radius:18px 0 0 18px;
            background:linear-gradient(180deg,#64748B,#CBD5E1);
            opacity:.9;
        }
        .history-row-status-sent::before,
        .budget-progress-row-pending::before { background:linear-gradient(180deg,var(--history-status-sent),#93C5FD); }
        .history-row-status-approved::before,
        .budget-progress-row-done::before { background:linear-gradient(180deg,var(--history-status-approved),#86EFAC); }
        .history-row-status-done::before,
        .history-row-status-invoiced::before { background:linear-gradient(180deg,var(--history-status-done),#C4B5FD); }
        .history-row-status-rejected::before,
        .budget-progress-row-unrealized::before { background:linear-gradient(180deg,var(--history-status-rejected),#FCA5A5); }
        .mobile-history-head,
        .mobile-service-cost-head,
        .mobile-revision-head {
            align-items:flex-start;
            min-width:0;
        }
        .mobile-history-title,
        .mobile-service-cost-title,
        .mobile-revision-title {
            font-size:17px;
            line-height:1.18;
            color:#0F172A;
            letter-spacing:-.01em;
            overflow-wrap:anywhere;
        }
        .mobile-history-sub,
        .mobile-service-cost-sub,
        .mobile-revision-sub {
            color:#64748B;
            line-height:1.35;
            overflow-wrap:anywhere;
        }
        .mobile-history-total,
        .mobile-service-cost-total,
        .mobile-revision-total {
            color:#0F172A;
            letter-spacing:-.02em;
            white-space:nowrap;
        }
        .mobile-history-total::before,
        .mobile-service-cost-total::before,
        .mobile-revision-total::before {
            display:block;
            margin-bottom:3px;
            color:#7A7F87;
            font-size:9px;
            font-weight:850;
            letter-spacing:.1em;
            text-transform:uppercase;
        }
        .mobile-history-total::before { content:"Hodnota"; }
        .mobile-service-cost-total::before { content:"Výsledek"; }
        .mobile-revision-total::before { content:"Cena revize"; }
        .mobile-history-meta,
        .mobile-revision-meta {
            width:100%;
        }
        .mobile-meta-box {
            border:1px solid #E5EAF0;
            border-radius:12px;
            background:rgba(255,255,255,.82);
            padding:9px 10px;
            min-width:0;
        }
        .mobile-meta-label,
        .history-preview-label {
            display:block;
            font-size:9px;
            font-weight:850;
            color:#7A7F87;
            letter-spacing:.09em;
            text-transform:uppercase;
            margin-bottom:4px;
        }
        .mobile-meta-value,
        .history-preview-value {
            display:block;
            font-size:12px;
            font-weight:800;
            color:#263241;
            line-height:1.3;
            overflow-wrap:anywhere;
        }
        .mobile-history-edit,
        .mobile-service-cost-edit,
        .mobile-revision-edit {
            padding-top:2px;
        }
        .mobile-history-edit .history-inline-select,
        .mobile-history-edit .history-inline-input,
        .mobile-service-cost-edit .revision-inline-input,
        .mobile-service-cost-edit .revision-inline-select,
        .mobile-revision-edit .revision-inline-input,
        .mobile-revision-edit .revision-inline-select,
        .mobile-revision-edit .budget-progress-select {
            min-height:42px;
            border-radius:12px;
            border-color:#DCE4EC;
            background:#FFFFFF;
            box-sizing:border-box;
        }
        .mobile-history-actions,
        .mobile-service-cost-actions,
        .mobile-revision-actions {
            display:grid;
            grid-template-columns:repeat(auto-fit,minmax(118px,1fr));
            gap:8px;
        }
        .mobile-history-actions .btn,
        .mobile-service-cost-actions .btn,
        .mobile-revision-actions .btn {
            min-height:42px;
            border-radius:12px;
            box-shadow:none;
        }

        .today-card.priority {
            background:linear-gradient(135deg, #FFF7F7 0%, #FFFFFF 100%);
            border-color:#F4CACA;
        }
        .today-card.warn {
            background:linear-gradient(135deg, #FFFBEA 0%, #FFFFFF 100%);
            border-color:#F3D977;
        }
        .today-card.ready,
        .workflow-step.ready,
        .budget-month-card.calendar.done {
            background:linear-gradient(135deg, #F1FFF6 0%, #FFFFFF 100%);
            border-color:#A9E6BF;
        }
        .today-card-value,
        .budget-kpi-value,
        .global-kpi-value,
        .history-stat-value,
        .workflow-step-value {
            font-weight:860;
            letter-spacing:-.03em;
        }

        .btn,
        button.btn,
        .history-status-toggle-btn,
        .budget-year-btn,
        .history-quick-chip {
            border-radius:12px;
            font-weight:780;
            letter-spacing:.01em;
            transition:transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
        }
        .btn {
            min-height:42px;
            background:linear-gradient(135deg, #68717C, #4E5864);
            box-shadow:0 10px 22px rgba(15,23,42,.10);
        }
        .btn:hover {
            background:linear-gradient(135deg, #55606C, #384350);
            box-shadow:0 14px 28px rgba(15,23,42,.14);
            transform:translateY(-1px);
        }
        .btn:active,
        button:active {
            transform:translateY(0) scale(.99);
        }
        .btn[style*="#0D1117"],
        .btn[style*="background:#0D1117"],
        .btn[style*="#0d1117"],
        .mobile-cloud-refresh {
            background:linear-gradient(135deg, #070B11 0%, #151F2C 100%) !important;
        }
        .btn[style*="#143d34"],
        .btn[style*="#1f5138"],
        .btn[style*="#1F5138"],
        .btn[style*="background:var(--of-primary)"],
        .btn[style*="background:var(--of-primary)"] {
            background:linear-gradient(135deg, var(--of-green), var(--of-green-2)) !important;
        }
        .btn[style*="#991B1B"],
        .btn[style*="background:#991B1B"] {
            background:linear-gradient(135deg, #B91C1C, #7F1D1D) !important;
        }
        .btn[style*="#0F766E"],
        .btn[style*="background:#0F766E"] {
            background:linear-gradient(135deg, #0F766E, #115E59) !important;
        }
        .btn[style*="#6B7280"],
        .btn[style*="#6b6b6b"],
        .btn[style*="#7A7F87"],
        .btn[style*="#4E535A"],
        .btn[style*="background:var(--of-secondary)"],
        .btn[style*="background:#6b6b6b"],
        .btn[style*="background:var(--of-secondary)"],
        .btn[style*="background:var(--of-secondary)"] {
            background:linear-gradient(135deg, #7B838E, #4B5563) !important;
        }

        @media (max-width: 1180px), (hover: none) and (pointer: coarse) {
            .mobile-history-list,
            .mobile-revision-list,
            .mobile-service-cost-list {
                grid-template-columns:1fr !important;
                gap:8px !important;
                max-width:980px;
            }
            .offer-history-detail-panel {
                display:none !important;
            }
            .mobile-compact-record {
                cursor:pointer;
                border-radius:14px !important;
                padding:9px 12px !important;
                min-height:68px !important;
                box-shadow:0 8px 18px rgba(15,23,42,.045) !important;
                position:relative;
            }
            details.mobile-compact-record {
                padding:0 !important;
            }
            details.mobile-compact-record > summary {
                padding:9px 12px !important;
                min-height:68px !important;
                display:grid;
                grid-template-columns:minmax(0,1fr) auto;
                gap:8px 10px;
                align-items:center;
                position:relative;
            }
            details.mobile-compact-record > summary::after {
                content:'' !important;
                display:none !important;
                position:absolute;
                right:12px;
                bottom:8px;
                margin:0 !important;
                padding:5px 8px !important;
                border-radius:999px;
                background:#EEF2F6;
                color:#475569;
                font-size:10px;
                font-weight:850;
                transform:none !important;
            }
            details.mobile-compact-record[open] > summary::after {
                content:'Zavřít' !important;
                display:inline-flex !important;
            }
            .mobile-history-card.mobile-compact-record,
            .mobile-history-card.mobile-compact-record.is-expanded {
                display:grid;
                grid-template-columns:minmax(0,1fr) auto;
                gap:8px 10px;
                align-items:start;
            }
            .mobile-history-card.mobile-compact-record::after {
                content:'';
                display:none;
                position:absolute;
                right:12px;
                bottom:8px;
                padding:5px 8px;
                border-radius:999px;
                background:#EEF2F6;
                color:#475569;
                font-size:10px;
                font-weight:850;
                line-height:1;
            }
            .mobile-history-card.mobile-compact-record.is-expanded::after {
                content:'Zavřít';
                display:inline-flex;
            }
            .mobile-compact-record .mobile-history-head,
            .mobile-compact-record .mobile-service-cost-head,
            .mobile-compact-record .mobile-revision-head {
                grid-column:1;
                margin:0 !important;
                min-width:0;
                display:flex;
                align-items:flex-start;
                justify-content:space-between;
                gap:8px;
                padding-right:0 !important;
            }
            .mobile-compact-record .mobile-history-title,
            .mobile-compact-record .mobile-service-cost-title,
            .mobile-compact-record .mobile-revision-title {
                font-size:14px;
                line-height:1.18;
                white-space:nowrap;
                overflow:hidden;
                text-overflow:ellipsis;
                max-width:100%;
            }
            .mobile-compact-record .mobile-history-sub,
            .mobile-compact-record .mobile-service-cost-sub,
            .mobile-compact-record .mobile-revision-sub {
                font-size:11px;
                line-height:1.25;
                display:-webkit-box;
                -webkit-line-clamp:1;
                -webkit-box-orient:vertical;
                overflow:hidden;
                margin-top:3px;
            }
            .mobile-compact-record .history-badge {
                font-size:9px;
                padding:4px 7px;
                white-space:nowrap;
                flex:0 0 auto;
            }
            .mobile-compact-record .mobile-history-total,
            .mobile-compact-record .mobile-service-cost-total,
            .mobile-compact-record .mobile-revision-total {
                grid-column:2;
                grid-row:1;
                align-self:start;
                justify-self:end;
                margin:0 !important;
                min-width:96px !important;
                padding:7px 9px !important;
                border-radius:12px !important;
                background:#F1F5F9;
                font-size:14px !important;
                line-height:1.15;
                text-align:right;
            }
            .mobile-compact-record .mobile-history-total::before,
            .mobile-compact-record .mobile-service-cost-total::before,
            .mobile-compact-record .mobile-revision-total::before {
                font-size:8px;
                margin-bottom:2px;
            }
            .mobile-history-card.mobile-compact-record:not(.is-expanded) .mobile-history-meta,
            .mobile-history-card.mobile-compact-record:not(.is-expanded) .mobile-history-edit,
            .mobile-history-card.mobile-compact-record:not(.is-expanded) .mobile-history-actions,
            .mobile-history-card.mobile-compact-record:not(.is-expanded) .mobile-history-detail,
            details.mobile-compact-record:not([open]) .mobile-revision-meta,
            details.mobile-compact-record:not([open]) .mobile-revision-edit,
            details.mobile-compact-record:not([open]) .mobile-revision-actions,
            details.mobile-compact-record:not([open]) .mobile-service-cost-edit,
            details.mobile-compact-record:not([open]) .mobile-service-cost-actions {
                display:none !important;
            }
            .mobile-history-card.mobile-compact-record.is-expanded,
            details.mobile-compact-record[open] {
                padding:14px !important;
                min-height:0 !important;
                background:linear-gradient(180deg,#FFFFFF 0%,#F8FAFC 100%);
                box-shadow:0 16px 36px rgba(15,23,42,.08) !important;
            }
            details.mobile-compact-record[open] > summary {
                min-height:0 !important;
                padding:0 !important;
                margin-bottom:10px;
            }
            .mobile-history-card.mobile-compact-record.is-expanded .mobile-history-meta,
            .mobile-history-card.mobile-compact-record.is-expanded .mobile-history-edit,
            .mobile-history-card.mobile-compact-record.is-expanded .mobile-history-actions,
            .mobile-history-card.mobile-compact-record.is-expanded .mobile-history-detail,
            details.mobile-compact-record[open] .mobile-revision-meta,
            details.mobile-compact-record[open] .mobile-revision-edit,
            details.mobile-compact-record[open] .mobile-revision-actions,
            details.mobile-compact-record[open] .mobile-service-cost-edit,
            details.mobile-compact-record[open] .mobile-service-cost-actions {
                grid-column:1 / -1;
            }
            .mobile-history-card.mobile-compact-record.is-expanded .mobile-history-title,
            details.mobile-compact-record[open] .mobile-service-cost-title,
            details.mobile-compact-record[open] .mobile-revision-title {
                white-space:normal;
                overflow:visible;
                text-overflow:clip;
            }
            .mobile-history-card.mobile-compact-record.is-expanded .mobile-history-sub,
            details.mobile-compact-record[open] .mobile-service-cost-sub,
            details.mobile-compact-record[open] .mobile-revision-sub {
                display:block;
                overflow:visible;
            }
            .mobile-history-card.mobile-compact-record.is-expanded .mobile-history-actions,
            details.mobile-compact-record[open] .mobile-revision-actions,
            details.mobile-compact-record[open] .mobile-service-cost-actions {
                margin-top:2px;
            }
            @media (max-width: 700px) {
                .mobile-compact-record {
                    min-height:72px !important;
                    padding:10px 12px !important;
                }
                details.mobile-compact-record > summary {
                    min-height:72px !important;
                    padding:10px 12px !important;
                }
                .mobile-history-card.mobile-compact-record,
                .mobile-history-card.mobile-compact-record.is-expanded,
                details.mobile-compact-record > summary {
                    grid-template-columns:minmax(0,1fr) minmax(112px,auto);
                    gap:6px 8px;
                }
                .mobile-compact-record .mobile-history-head,
                .mobile-compact-record .mobile-service-cost-head,
                .mobile-compact-record .mobile-revision-head {
                    display:block;
                }
                .mobile-compact-record .history-badge {
                    display:inline-flex;
                    margin-top:6px;
                    max-width:100%;
                }
                .mobile-compact-record .mobile-history-total,
                .mobile-compact-record .mobile-service-cost-total,
                .mobile-compact-record .mobile-revision-total {
                    min-width:112px !important;
                    padding:8px 9px !important;
                }
            }
        }

        input,
        select,
        textarea,
        .filter-input,
        .global-search-input,
        .mobile-global-search-input,
        .history-inline-select,
        .history-inline-input,
        .revision-inline-input,
        .revision-inline-select,
        .budget-toolbar input,
        .budget-toolbar select,
        .header-field input,
        .header-field select {
            border-radius:12px;
            border-color:#D8E1EA;
            transition:border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
        }
        input:focus,
        select:focus,
        textarea:focus,
        .filter-input:focus,
        .global-search-input:focus,
        .mobile-global-search-input:focus,
        .history-inline-select:focus,
        .history-inline-input:focus,
        .revision-inline-input:focus,
        .revision-inline-select:focus {
            outline:none;
            border-color:#7AA7E8;
            box-shadow:var(--of-focus);
            background:#FFFFFF;
        }

        .tabs-nav {
            padding:6px;
            border-radius:18px;
            background:rgba(241,245,249,.86);
            border-color:var(--of-line);
            box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
        }
        .tab-btn {
            min-height:42px;
            border-radius:14px;
            color:#667085;
        }
        .tab-btn:hover {
            box-shadow:0 12px 26px rgba(15,23,42,.08);
        }
        .tab-btn.active {
            background:linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
            color:var(--of-navy);
            box-shadow:0 14px 30px rgba(15,23,42,.10), 0 0 0 1px rgba(255,255,255,.72) inset;
        }

        .tablet-side-nav {
            background:
                radial-gradient(circle at top, rgba(234,88,12,.12), transparent 34%),
                linear-gradient(180deg, #07101A 0%, #0B1119 100%);
            border-right:1px solid rgba(255,255,255,.08);
            box-shadow:18px 0 42px rgba(2,6,23,.18);
        }
        .tablet-side-logo {
            box-shadow:0 14px 32px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.08) inset;
        }
        .tablet-side-btn {
            color:#9AA8B8;
            border:1px solid transparent;
            transition:background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
        }
        .tablet-side-btn span {
            max-width:100%;
            overflow:hidden;
            text-overflow:ellipsis;
            white-space:nowrap;
        }
        .tablet-side-btn.active {
            background:#FFFFFF;
            color:#07101A;
            box-shadow:0 16px 32px rgba(0,0,0,.24);
        }
        .tablet-side-btn.nav-pbz:not(.active) { color:#9AA8B8; }
        .tablet-side-btn:not(.active):hover {
            background:rgba(255,255,255,.08);
            border-color:rgba(255,255,255,.08);
            color:#F8FAFC;
        }
        .tablet-command-card,
        .tablet-command-search {
            border-color:var(--of-line);
            border-radius:16px;
            background:rgba(255,255,255,.92);
            box-shadow:var(--of-shadow-sm);
        }

        .mobile-command-center {
            gap:12px;
        }
        .mobile-cloud-status,
        .mobile-global-search,
        .mobile-transfer-panel {
            border-color:var(--of-line);
            border-radius:20px;
            background:rgba(255,255,255,.94);
            box-shadow:0 12px 30px rgba(15,23,42,.07);
        }
        .mobile-bottom-nav {
            background:rgba(255,255,255,.90);
            border-top-color:rgba(203,213,225,.86);
            box-shadow:0 -20px 48px rgba(15,23,42,.18);
        }
            .mobile-bottom-nav-btn {
                border-radius:18px;
                min-height:56px;
                font-size:9px;
            }
        .mobile-bottom-nav-btn.active {
            background:linear-gradient(135deg, #070B11 0%, #172231 100%);
            box-shadow:0 16px 32px rgba(15,23,42,.26);
        }

        .table-section {
            overflow:hidden;
            border-color:var(--of-line);
        }
        .table-top {
            background:linear-gradient(180deg, #FFFFFF, #F8FAFC);
            border-bottom-color:var(--of-line);
        }
        table {
            border-collapse:separate;
            border-spacing:0;
        }
        th {
            background:#F8FAFC;
            color:#667085;
            font-weight:850;
        }
        td {
            border-bottom-color:#EEF2F6;
        }
        tr:hover td {
            background:#F8FAFC;
        }
        .history-badge,
        .budget-progress-badge,
        .revision-priority-badge {
            box-shadow:0 1px 0 rgba(255,255,255,.75) inset;
        }
        .pipeline-step-row,
        .history-status-row,
        .budget-status-row {
            min-height:26px;
        }
        .history-status-bar,
        .budget-status-bar,
        .pipeline-step-bar {
            background:#E9EFF5;
        }

        @media (min-width: 1181px) {
            body {
                background:
                    radial-gradient(circle at 18% -8%, rgba(234,88,12,.10), transparent 26%),
                    radial-gradient(circle at 88% -8%, rgba(37,99,235,.10), transparent 28%),
                    linear-gradient(180deg, #F6F9FC 0%, #EEF3F7 100%);
            }
            .tablet-side-nav { width:108px; }
            .header,
            .container { margin-left:108px; }
            .tablet-command-bar {
                position:sticky;
                top:0;
                z-index:14;
                padding:8px 0 4px;
                backdrop-filter:blur(16px);
            }
            .page-shell:not(.work-mode) {
                gap:20px;
            }
            .workspace-sidebar {
                top:18px;
            }
            .desktop-history-detail,
            .history-table-desktop .table-wrapper {
                border-radius:var(--of-radius);
            }
        }

        @media (min-width: 701px) and (max-width: 1180px) {
            body {
                background:
                    radial-gradient(circle at 15% -8%, rgba(234,88,12,.10), transparent 30%),
                    radial-gradient(circle at 84% -10%, rgba(37,99,235,.11), transparent 30%),
                    linear-gradient(180deg, #F7FAFC 0%, #EEF3F7 100%);
            }
            .header,
            .container { margin-left:86px; }
            .container { padding-top:16px; }
            .tablet-command-bar {
                position:sticky;
                top:0;
                z-index:15;
                padding:8px 0 4px;
                background:linear-gradient(180deg, rgba(246,249,252,.92), rgba(246,249,252,.70));
                backdrop-filter:blur(14px);
            }
            .today-dashboard {
                border-radius:24px;
            }
            .page-shell:not(.work-mode) .workspace-sidebar {
                gap:16px;
            }
        }

        @media (max-width: 700px) {
            body {
                background:
                    linear-gradient(180deg, #0B1119 0 180px, #F5F8FB 180px 100%);
            }
            .header {
                background:
                    radial-gradient(circle at 0% 0%, rgba(234,88,12,.18), transparent 32%),
                    radial-gradient(circle at 100% 0%, rgba(37,99,235,.16), transparent 34%),
                    #0B1119;
            }
            .header-top {
                padding-bottom:16px;
            }
            .header h1 {
                font-size:15px;
                letter-spacing:.12em;
            }
            .header h1::before {
                width:42px;
                height:42px;
                border-radius:13px;
            }
            .header-field input,
            .header-field select {
                background:rgba(255,255,255,.08);
                border-color:rgba(255,255,255,.15);
            }
            .container {
                padding-top:12px;
            }
            .mobile-command-center {
                margin-top:0;
                margin-bottom:14px;
            }
            .mobile-cloud-status,
            .mobile-global-search {
                border-radius:22px;
                padding:14px;
            }
            .tabs-shell {
                background:#F5F8FB;
            }
            .tabs-nav {
                border-radius:18px;
                padding:6px;
                background:rgba(255,255,255,.94);
                backdrop-filter:blur(14px);
            }
            .tab-btn {
                border-radius:13px;
            }
            .next-action-panel,
            .upload-section,
            .service-pbz-section,
            .budget-upload-card,
            .budget-panel,
            .global-panel,
            .global-search-panel,
            .workflow-panel,
            .work-report-panel,
            .revision-manual-panel,
            .table-section,
            .mobile-history-card,
            .mobile-revision-card,
            .mobile-service-cost-card {
                border-radius:20px;
                box-shadow:0 10px 28px rgba(15,23,42,.055);
            }
            .today-dashboard {
                border-radius:22px;
                box-shadow:0 12px 30px rgba(15,23,42,.06);
            }
            .today-dashboard-grid,
            .pipeline-strip,
            .stats-grid,
            .global-dashboard-grid,
            .history-status-summary {
                gap:10px;
            }
            .btn {
                min-height:46px;
                border-radius:14px;
            }
            .mobile-bottom-nav {
                padding:9px 9px calc(9px + env(safe-area-inset-bottom));
            }
            .mobile-bottom-nav-btn span:last-child {
                font-size:10px;
                letter-spacing:-.01em;
            }
            .table-wrapper {
                border-radius:16px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration:.01ms !important;
                animation-iteration-count:1 !important;
                scroll-behavior:auto !important;
                transition-duration:.01ms !important;
            }
        }

        @media print {
            .page-num-label { position: absolute; bottom: 8mm; right: 12mm; font-size: 9px; color: #8B949E; font-family: 'Inter', 'Segoe UI', sans-serif; letter-spacing: 0.05em; z-index: 10; }
            * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; color-adjust: exact !important; }
            body { background: white; color: #111; font-family: 'Inter', 'Segoe UI', Calibri, sans-serif; padding: 0; }
            .header { display: none !important; }
            .container { max-width: none; margin: 0; padding: 0; }
            #topActions, .error, .filter-input, .upload-section, #tableFooter { display: none !important; }
            .tabs-nav, .tablet-side-nav, .tablet-command-bar, .mobile-bottom-nav, .mobile-command-center, #desktopExportCenter, .desktop-export-center, #tabletCockpitPanel, #todayDashboardPanel, #tabObjekty360, #tabUcpavky, #tabServis, #tabRevize, #tabRevizeBudget, #tabServisNaklady, #tabHistorie, #tabVykazy, #tabNastaveni, .servis-export-bar, .global-dashboard, .global-search-panel, .workspace-hero, .tabs-shell { display: none !important; }
            body:not(.dok-print-mode) #tabDokumentace { display: none !important; }
            #dokPrintContainer { display: none; }
            body.dok-print-mode > *:not(#dokPrintContainer) { display: none !important; }
            body.dok-print-mode #dokPrintContainer { display: block !important; }
            .print-report { display: block; margin: 0; }
            .print-report,
            #printBreakdownPage,
            #printItemPage { width: 297mm; min-height: 210mm; margin: 0; padding: 0; overflow: hidden; background: transparent; }
            #printSummary { width: 297mm; min-height: 210mm; margin: 0; padding: 0; overflow: visible; background: transparent; }
            .print-report .print-page-frame,
            #printBreakdownPage .print-page-frame,
            #printItemPage .print-page-frame { width: 297mm; min-height: 210mm; margin: 0; padding: 0; overflow: hidden; }
            #printSummary .print-summary-page { width: 297mm; min-height: 210mm; margin: 0; padding: 0; overflow: visible; }
            /* Titulku svážeme přesně na jednu stranu (297×210 landscape). Bez toho ji
               drobný přesah obsahu (sub-pixel / min-height) přetlačí na prázdnou 2. stránku.
               Jen pro nabídky (offer-print-mode) — výkazy prací se nedotkneme. */
            body.offer-print-mode .print-report .print-page-frame,
            body.offer-print-mode .print-report .offer-cover-page { height: 210mm !important; max-height: 210mm !important; overflow: hidden !important; }
            .print-report .offer-page,
            #printBreakdownPage .offer-page,
            #printItemPage .offer-page { width: 297mm; min-height: 210mm; margin: 0; border: none !important; border-radius: 0 !important; background-color: #0D1117 !important; }
            #printItemPage .offer-page-light { background-color: #ffffff !important; min-height: 210mm !important; overflow: visible !important; }
            #printBreakdownPage .offer-page,
            #printItemPage .offer-page,
            #printSummary .final-page { break-inside: avoid; page-break-inside: avoid; }
            #printItemPage { overflow: visible !important; }
            #printSummary .final-page { width: 297mm; min-height: 210mm; margin: 0; border: none !important; border-radius: 0 !important; background-color: #0D1117 !important; }
            .offer-hero { background-color: #0D1117 !important; }
            .offer-hero-glow1, .offer-hero-glow2, .offer-hero-glow3 { display: none !important; }
            .offer-cover-page::before { display: none !important; }
            .offer-bg-glow {
                display: block !important;
                position: absolute !important;
                inset: 0 !important;
                background: var(--tech-glow-variant-6) !important;
                pointer-events: none !important;
                z-index: 0 !important;
            }
            #printSummary .final-page::before {
                display: block !important;
                inset: 0 !important;
                background: var(--tech-glow-variant-6) !important;
            }
            .print-report .offer-page.offer-no-dark-brand,
            #printBreakdownPage .offer-page.offer-no-dark-brand,
            #printSummary .final-page.offer-no-dark-brand {
                background-color: #ffffff !important;
                background: #ffffff !important;
                color: #111827 !important;
                border-color: #E5E7EB !important;
            }
            .print-report .offer-page.offer-no-dark-brand::before,
            #printBreakdownPage .offer-page.offer-no-dark-brand::before,
            #printBreakdownPage .offer-page.offer-no-dark-brand .offer-bg-glow,
            #printSummary .final-page.offer-no-dark-brand::before,
            #printSummary .final-page.offer-no-dark-brand .offer-bg-glow {
                display: none !important;
                background: none !important;
            }
            .print-report .offer-page.offer-no-dark-brand .offer-hero,
            #printBreakdownPage .offer-page.offer-no-dark-brand .offer-hero {
                background-color: #ffffff !important;
                background: #ffffff !important;
            }
            .offer-content::before { display: none !important; }
            .offer-top-bar { background-color: var(--violet-ral-4008) !important; }
            .print-topline, .print-bottomline { background-color: var(--violet-ral-4008) !important; }
            .final-topbar { background-color: var(--violet-ral-4008) !important; }
            .stats-grid { display: none !important; }
            .breakdown { display: none !important; }
            .table-section { margin: 0; page-break-before: always; break-before: page; border: none !important; }
            body.offer-print-cover-only .table-section { display: none !important; }
            .print-topline { margin: 0 0 28px; height: 10px; background: linear-gradient(90deg, var(--violet-ral-4008-dark) 0%, var(--violet-ral-4008) 40%, var(--violet-ral-4008-light) 70%, var(--violet-ral-4008) 100%); }
            .print-bottomline { margin-top: auto; margin-left: 0; margin-right: 0; margin-bottom: 0; height: 10px; background: linear-gradient(90deg, var(--violet-ral-4008-dark) 0%, var(--violet-ral-4008) 40%, var(--violet-ral-4008-light) 70%, var(--violet-ral-4008) 100%); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
            #printBreakdownPage { display: block !important; page-break-before: always; break-before: page; }
            #printItemPage { display: block !important; page-break-before: always; break-before: page; }
            #printSummary { display: flex !important; flex-direction: column; page-break-before: always; break-before: page; min-height: 210mm; overflow: visible !important; }
            body.work-report-print-mode #printBreakdownPage,
            body.work-report-print-mode #printSummary,
            body.work-report-print-mode #printItemPage { display: none !important; }
            body.work-report-print-mode.has-work-report-overflow #printItemPage { display: none !important; }
            html:has(body.work-report-print-mode),
            body.work-report-print-mode {
                width: 210mm !important;
                height: 285mm !important;
                min-height: 0 !important;
                max-height: 285mm !important;
                margin: 0 !important;
                padding: 0 !important;
                overflow: hidden !important;
                background: #ffffff !important;
            }
            body.work-report-print-mode .container {
                display: block !important;
                width: 210mm !important;
                height: 285mm !important;
                max-height: 285mm !important;
                margin: 0 !important;
                padding: 0 !important;
                overflow: hidden !important;
                background: #ffffff !important;
            }
            body.work-report-print-mode .container > :not(#printReport) {
                display: none !important;
            }
            body.work-report-print-mode .print-report,
            body.work-report-print-mode #printReport {
                display: block !important;
                width: 210mm !important;
                min-height: 0 !important;
                height: 285mm !important;
                max-height: 285mm !important;
                margin: 0 !important;
                padding: 0 !important;
                overflow: hidden !important;
            }
            body.work-report-print-mode .print-report .print-page-frame,
            body.work-report-print-mode #printReport .print-page-frame {
                width: 210mm !important;
                min-height: auto !important;
                height: 285mm !important;
                max-height: 285mm !important;
                margin: 0 !important;
                padding: 0 !important;
                overflow: hidden !important;
                page-break-before: avoid !important;
                page-break-after: avoid !important;
                page-break-inside: avoid !important;
                break-before: avoid-page !important;
                break-after: avoid-page !important;
                break-inside: avoid-page !important;
            }
            body.work-report-print-mode .print-report .offer-page,
            body.work-report-print-mode #printReport .offer-page {
                width: 210mm !important;
                min-height: auto !important;
                height: 285mm !important;
                max-height: 285mm !important;
                margin: 0 !important;
                overflow: hidden !important;
                border: none !important;
                border-radius: 0 !important;
                background: #ffffff !important;
                box-shadow: none !important;
            }
            body.work-report-print-mode .print-report .offer-top-bar,
            body.work-report-print-mode #printReport .offer-top-bar {
                position: absolute !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                height: 2mm !important;
                z-index: 5 !important;
            }
            #printSummary .print-summary-page { overflow: visible !important; }
            #printSummary .final-page { overflow: visible !important; }
            #printSummary img, .print-report img { display: inline-block !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
            .psm-contact-link { color: #111 !important; }
            .table-top { display: none !important; }
            .print-table-title-row { display: table-row !important; }
            .print-table-title-cell { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--violet-ral-4008-mid); padding: 18px 0 8px; border-bottom: none; text-align: left; }
            .time-col { display: none !important; }
            .status-col { display: none !important; }
            .table-wrapper { overflow: visible; }
            table { font-size: 9px; }
            thead { display: table-header-group; }
            thead tr { border-bottom: 1px solid var(--violet-ral-4008); }
            th, td { padding: 4px 5px; }
            th { background: #fff !important; color: var(--violet-ral-4008-mid); font-size: 9px; cursor: default; letter-spacing: 1px; border-bottom: 1px solid var(--violet-ral-4008-soft); text-align: center; }
            td { color: #333; text-align: center; vertical-align: middle; }
            .right { text-align: center !important; }
            th.location-col, td.location-col { white-space: nowrap; }
            tr.unmatched { background: #faf6ef !important; }
            tr:hover { background: transparent !important; }
            .offer-page table, .offer-page thead, .offer-page thead tr, .offer-page th { border: none !important; box-shadow: none !important; outline: none !important; }
            .offer-page th { background: #0D1117 !important; color: #aaaaaa !important; border: none !important; }
            .offer-page-light table, .offer-page-light thead, .offer-page-light thead tr { border: none !important; }
            .offer-page-light th { background: #fafafa !important; color: #999 !important; border-bottom: 1.5px solid #e0e0e0 !important; font-size: 9px !important; }
            #printItemPage table tr, #printSummary .final-summary-grid, #printSummary .final-note { break-inside: avoid !important; page-break-inside: avoid !important; }
            #printItemPage thead { display: table-header-group !important; }
            #printItemPage table { border-collapse: collapse !important; table-layout: fixed !important; }
            #printItemPage .offer-page-light { overflow: visible !important; }
            #printItemPage { overflow: visible !important; }
            .print-summary-panel { border: none !important; }
            .print-summary-page { min-height: 210mm; padding-top: 0; }
            #printBreakdownPage .offer-page { width: 100%; margin: 0; }
        }

        .history-toolbar {
            align-items:stretch;
        }
        .history-toolbar input,
        .history-toolbar select,
        .template-actions input {
            min-height:42px;
            border-radius:12px;
            border-color:#DDE5EC;
            background:#FFFFFF;
        }
        .history-toolbar .btn,
        .template-actions .btn {
            min-height:42px;
            border-radius:12px;
            white-space:nowrap;
        }
        .mobile-history-list,
        .mobile-revision-list,
        .mobile-service-cost-list {
            width:100%;
        }
        .mobile-history-card,
        .mobile-revision-card,
        .mobile-service-cost-card {
            contain:layout paint;
        }
        .mobile-history-actions,
        .mobile-revision-actions,
        .mobile-service-cost-actions {
            align-items:stretch;
        }
        .mobile-history-actions .btn,
        .mobile-revision-actions .btn,
        .mobile-service-cost-actions .btn {
            display:flex;
            align-items:center;
            justify-content:center;
            text-align:center;
            line-height:1.2;
        }
        @media (min-width: 1181px) {
            .desktop-history-workbench {
                display:grid !important;
                grid-template-columns:minmax(0,1fr);
                gap:16px;
            }
            .mobile-history-list,
            .mobile-revision-list,
            .mobile-service-cost-list {
                display:grid !important;
                grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
                gap:16px;
            }
        }
        @media (min-width: 1181px) {
            .desktop-history-workbench.work-report-history-workbench {
                grid-template-columns:minmax(0,1.45fr) minmax(320px,.55fr);
                align-items:start;
            }
            .desktop-history-workbench.work-report-history-workbench .desktop-history-detail {
                display:block;
            }
        }
        #tabVykazy .service-pbz-section { display:flex; flex-direction:column; }
        #tabVykazy .service-pbz-head { order:0; }
        #tabVykazy .work-report-editor { order:1; margin:0 0 18px; }
        #tabVykazy #workReportHistoryBox { order:2; }
        #tabVykazy .work-report-card-list { display:grid; }
        #tabVykazy .work-report-editor-hero {
            padding:14px 16px;
            border-radius:16px;
            background:linear-gradient(135deg,#FFFFFF 0%,#FBFCFD 60%,#F2F5F8 100%);
            border-color:#E3E8EE;
            color:#111827;
            box-shadow:0 14px 36px rgba(15,23,42,.06);
        }
        #tabVykazy .work-report-editor-head { margin-bottom:12px; }
        #tabVykazy .work-report-editor-kicker { color:#7A7F87; }
        #tabVykazy .work-report-editor-title { font-size:18px; color:#111827; }
        #tabVykazy .work-report-editor-subtitle { max-width:680px; color:#64748B; }
        #tabVykazy .work-report-editor-badge {
            background:#F1F5F9;
            border-color:#DDE5EE;
            color:#334155;
        }
        #tabVykazy .work-report-editor-fields { grid-template-columns:1fr 1fr 1fr 1fr 1fr; gap:10px; }
        #tabVykazy .work-report-editor-fields .header-field[style*="grid-column"] { grid-column:span 5 !important; }
        #tabVykazy .work-report-editor .header-field,
        #tabVykazy .work-report-editor .header-field input,
        #tabVykazy .work-report-editor .header-field select {
            min-width:0;
            box-sizing:border-box;
        }
        #tabVykazy .work-report-number-row {
            display:grid;
            grid-template-columns:minmax(0,1fr) auto;
            gap:10px;
            align-items:end;
        }
        #tabVykazy .work-report-number-row .btn {
            min-width:112px;
            padding-left:12px;
            padding-right:12px;
            white-space:nowrap;
        }
        #tabVykazy .work-report-editor-body { grid-template-columns:minmax(0,1fr) minmax(300px,.42fr); gap:12px; }
        #tabVykazy .work-report-panel { padding:14px; border-radius:16px; }
        #tabVykazy .work-report-order-list { min-height:110px; max-height:260px; }
        #tabVykazy .work-report-export-actions { grid-template-columns:1fr; }
        @media (max-width: 1180px) {
            #tabVykazy .work-report-editor-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
            #tabVykazy .work-report-editor-fields .header-field[style*="grid-column"] { grid-column:1 / -1 !important; }
            #tabVykazy .work-report-editor-fields .header-field:nth-child(4) { grid-column:1 / -1; }
            #tabVykazy .work-report-editor-body { grid-template-columns:1fr; }
        }
        @media (max-width: 720px) {
            #tabVykazy .work-report-editor-fields,
            #tabVykazy .work-report-number-row { grid-template-columns:1fr; }
        }
        @media (min-width: 1181px) {
            #offerHistoryBox .offer-card-list {
                display:none !important;
            }
            #offerHistoryBox .offer-history-workbench {
                display:grid !important;
                grid-template-columns:minmax(0,1fr) minmax(320px,.34fr);
                gap:16px;
                align-items:stretch;
            }
            #offerHistoryBox .offer-history-workbench > .history-table-desktop,
            #offerHistoryBox .offer-history-workbench > .desktop-history-detail {
                align-self:stretch !important;
                margin-top:0 !important;
            }
            #offerHistoryBox .offer-history-workbench .desktop-history-detail {
                display:block !important;
                position:sticky;
                top:0;
                border-radius:16px;
            }
            #offerHistoryBox .offer-history-workbench .history-table-desktop {
                border-radius:16px;
                box-shadow:0 12px 28px rgba(15,23,42,.05);
                display:flex !important;
                flex-direction:column;
                min-height:100%;
                overflow:hidden;
            }
            #offerHistoryBox .offer-history-workbench .table-wrapper {
                flex:1 1 auto;
                max-height:86vh;
                min-height:650px;
                overflow-x:auto !important;
                overflow-y:auto !important;
                -webkit-overflow-scrolling:touch;
            }
            #offerHistoryBox .offer-history-workbench table {
                min-width:960px;
                width:100%;
                table-layout:auto;
            }
            #offerHistoryBox .offer-history-workbench th,
            #offerHistoryBox .offer-history-workbench td {
                white-space:normal;
                word-break:normal;
                overflow-wrap:break-word;
            }
            #offerHistoryBox .offer-history-workbench tbody td {
                padding-top:8px;
                padding-bottom:8px;
                line-height:1.22;
            }
            #offerHistoryBox .offer-history-workbench thead th {
                padding-top:10px;
                padding-bottom:10px;
                background:#F8FAFC;
                box-shadow:0 1px 0 #E5EAF0;
            }
            #offerHistoryBox .offer-history-workbench tbody tr:first-child td {
                padding-top:10px;
            }
            #offerHistoryBox .offer-history-workbench th:nth-child(1),
            #offerHistoryBox .offer-history-workbench td:nth-child(1) { width:118px; }
            #offerHistoryBox .offer-history-workbench th:nth-child(2),
            #offerHistoryBox .offer-history-workbench td:nth-child(2) { min-width:150px; }
            #offerHistoryBox .offer-history-workbench th:nth-child(3),
            #offerHistoryBox .offer-history-workbench td:nth-child(3) { min-width:220px; }
            #offerHistoryBox .offer-history-workbench th:nth-child(4),
            #offerHistoryBox .offer-history-workbench td:nth-child(4) { width:132px; }
            #offerHistoryBox .offer-history-workbench th:nth-child(5),
            #offerHistoryBox .offer-history-workbench td:nth-child(5) { width:118px; }
            #offerHistoryBox .offer-history-workbench th:nth-child(6),
            #offerHistoryBox .offer-history-workbench td:nth-child(6) { width:130px; }
            #offerHistoryBox .offer-history-workbench th:nth-child(7),
            #offerHistoryBox .offer-history-workbench td:nth-child(7) { width:118px; text-align:right; }
            #offerHistoryBox .offer-history-workbench th:nth-child(8),
            #offerHistoryBox .offer-history-workbench td:nth-child(8) { width:126px; }
            #offerHistoryBox .offer-history-workbench th:nth-child(9),
            #offerHistoryBox .offer-history-workbench td:nth-child(9) {
                width:120px;
                white-space:nowrap;
            }
            #offerHistoryBox .offer-row-actions {
                position:relative;
                display:inline-block;
                text-align:left;
            }
            #offerHistoryBox .offer-row-actions summary {
                list-style:none;
                min-width:88px;
                min-height:34px;
                display:inline-flex;
                align-items:center;
                justify-content:center;
                gap:6px;
                border-radius:12px;
                background:#0D1117;
                color:#FFFFFF;
                font-size:12px;
                font-weight:850;
                cursor:pointer;
                box-shadow:0 10px 22px rgba(15,23,42,.12);
                user-select:none;
            }
            #offerHistoryBox .offer-row-actions summary::-webkit-details-marker {
                display:none;
            }
            #offerHistoryBox .offer-row-actions summary::after {
                content:"";
                width:0;
                height:0;
                border-left:4px solid transparent;
                border-right:4px solid transparent;
                border-top:5px solid currentColor;
                opacity:.82;
            }
            #offerHistoryBox .offer-row-actions[open] summary {
                background:#1F2937;
            }
            #offerHistoryBox .offer-row-menu {
                position:absolute;
                right:0;
                top:40px;
                z-index:40;
                width:190px;
                padding:8px;
                border:1px solid #DDE6EE;
                border-radius:14px;
                background:#FFFFFF;
                box-shadow:0 20px 44px rgba(15,23,42,.18);
                display:grid;
                gap:7px;
            }
            #offerHistoryBox .offer-row-menu .btn {
                width:100%;
                min-height:36px;
                padding:8px 10px;
                border-radius:10px;
                font-size:12px;
                text-align:center;
                box-shadow:none;
            }
            #tabVykazy .work-report-card-list {
                display:none !important;
            }
            #tabVykazy .work-report-history-workbench {
                display:grid !important;
                grid-template-columns:minmax(0,1fr) minmax(320px,.34fr);
                gap:16px;
                align-items:stretch;
            }
            #tabVykazy .work-report-history-workbench > .history-table-desktop,
            #tabVykazy .work-report-history-workbench > .desktop-history-detail {
                align-self:stretch !important;
                margin-top:0 !important;
            }
            #tabVykazy .work-report-history-workbench .desktop-history-detail {
                display:block !important;
                position:sticky;
                top:0;
                border-radius:16px;
            }
            #tabVykazy .work-report-history-workbench .history-table-desktop {
                border-radius:16px;
                box-shadow:0 12px 28px rgba(15,23,42,.05);
                display:flex !important;
                flex-direction:column;
                min-height:100%;
            }
            #tabVykazy .work-report-history-workbench .history-table-desktop {
                overflow:hidden;
            }
            #tabVykazy .work-report-history-workbench .table-wrapper {
                flex:1 1 auto;
                max-height:86vh;
                min-height:650px;
                overflow-x:auto !important;
                overflow-y:auto !important;
                -webkit-overflow-scrolling:touch;
            }
            #tabVykazy .work-report-history-workbench table {
                min-width:960px;
                width:100%;
                table-layout:auto;
            }
            #tabVykazy .work-report-history-workbench th,
            #tabVykazy .work-report-history-workbench td {
                white-space:normal;
                word-break:normal;
                overflow-wrap:break-word;
            }
            #tabVykazy .work-report-history-workbench tbody td {
                padding-top:8px;
                padding-bottom:8px;
                line-height:1.22;
            }
            #tabVykazy .work-report-history-workbench thead th {
                padding-top:10px;
                padding-bottom:10px;
                background:#F8FAFC;
                box-shadow:0 1px 0 #E5EAF0;
            }
            #tabVykazy .work-report-history-workbench tbody tr:first-child td {
                padding-top:10px;
            }
            #tabVykazy .work-report-history-workbench th:nth-child(1),
            #tabVykazy .work-report-history-workbench td:nth-child(1) { width:110px; }
            #tabVykazy .work-report-history-workbench th:nth-child(2),
            #tabVykazy .work-report-history-workbench td:nth-child(2) { width:96px; }
            #tabVykazy .work-report-history-workbench th:nth-child(3),
            #tabVykazy .work-report-history-workbench td:nth-child(3) { min-width:150px; }
            #tabVykazy .work-report-history-workbench th:nth-child(4),
            #tabVykazy .work-report-history-workbench td:nth-child(4) { min-width:220px; }
            #tabVykazy .work-report-history-workbench th:nth-child(5),
            #tabVykazy .work-report-history-workbench td:nth-child(5) { width:132px; }
            #tabVykazy .work-report-history-workbench th:nth-child(6),
            #tabVykazy .work-report-history-workbench td:nth-child(6) { width:95px; }
            #tabVykazy .work-report-history-workbench th:nth-child(7),
            #tabVykazy .work-report-history-workbench td:nth-child(7) { width:110px; text-align:right; }
            #tabVykazy .work-report-history-workbench th:nth-child(8),
            #tabVykazy .work-report-history-workbench td:nth-child(8) { width:120px; }
            #tabVykazy .work-report-history-workbench th:nth-child(9),
            #tabVykazy .work-report-history-workbench td:nth-child(9) {
                width:120px;
                white-space:nowrap;
            }
            #tabVykazy .work-report-row-actions {
                position:relative;
                display:inline-block;
                text-align:left;
            }
            #tabVykazy .work-report-row-actions summary {
                list-style:none;
                min-width:88px;
                min-height:34px;
                display:inline-flex;
                align-items:center;
                justify-content:center;
                gap:6px;
                border-radius:12px;
                background:#0D1117;
                color:#FFFFFF;
                font-size:12px;
                font-weight:850;
                cursor:pointer;
                box-shadow:0 10px 22px rgba(15,23,42,.12);
                user-select:none;
            }
            #tabVykazy .work-report-row-actions summary::-webkit-details-marker {
                display:none;
            }
            #tabVykazy .work-report-row-actions summary::after {
                content:"";
                width:0;
                height:0;
                border-left:4px solid transparent;
                border-right:4px solid transparent;
                border-top:5px solid currentColor;
                opacity:.82;
            }
            #tabVykazy .work-report-row-actions[open] summary {
                background:#1F2937;
            }
            #tabVykazy .work-report-row-menu {
                position:absolute;
                right:0;
                top:40px;
                z-index:40;
                width:190px;
                padding:8px;
                border:1px solid #DDE6EE;
                border-radius:14px;
                background:#FFFFFF;
                box-shadow:0 20px 44px rgba(15,23,42,.18);
                display:grid;
                gap:7px;
            }
            #tabVykazy .work-report-row-menu .btn {
                width:100%;
                min-height:36px;
                padding:8px 10px;
                border-radius:10px;
                font-size:12px;
                text-align:center;
                box-shadow:none;
            }
            #tabServisNaklady .service-cost-workbench {
                display:grid !important;
                grid-template-columns:minmax(0,1fr) minmax(320px,.34fr);
                gap:16px;
                align-items:stretch;
            }
            #tabServisNaklady .service-cost-workbench > .service-cost-table-desktop,
            #tabServisNaklady .service-cost-workbench > .service-cost-detail {
                align-self:stretch !important;
                margin-top:0 !important;
            }
            #tabServisNaklady .service-cost-workbench .service-cost-detail {
                display:block !important;
                position:sticky;
                top:0;
                border-radius:16px;
            }
            #tabServisNaklady .service-cost-workbench .service-cost-table-desktop {
                border-radius:16px;
                box-shadow:0 12px 28px rgba(15,23,42,.05);
                display:flex !important;
                flex-direction:column;
                min-height:100%;
                overflow:hidden;
            }
            #tabServisNaklady .service-cost-workbench .table-wrapper {
                flex:1 1 auto;
                max-height:86vh;
                min-height:620px;
                overflow-x:auto !important;
                overflow-y:auto !important;
                -webkit-overflow-scrolling:touch;
            }
            #tabServisNaklady .service-cost-workbench table {
                min-width:900px;
                width:100%;
                table-layout:auto;
            }
            #tabServisNaklady .service-cost-workbench th,
            #tabServisNaklady .service-cost-workbench td {
                white-space:normal;
                word-break:normal;
                overflow-wrap:break-word;
                vertical-align:top;
            }
            #tabServisNaklady .service-cost-workbench tbody td {
                padding-top:10px;
                padding-bottom:10px;
                line-height:1.22;
            }
            #tabServisNaklady .service-cost-workbench tbody tr.is-selected td {
                background:#F0FDF4;
            }
            #tabServisNaklady .service-cost-row-actions {
                position:relative;
                display:inline-block;
                text-align:left;
            }
            #tabServisNaklady .service-cost-row-actions summary {
                list-style:none;
                min-width:88px;
                min-height:34px;
                display:inline-flex;
                align-items:center;
                justify-content:center;
                gap:6px;
                border-radius:12px;
                background:#0D1117;
                color:#FFFFFF;
                font-size:12px;
                font-weight:850;
                cursor:pointer;
                box-shadow:0 10px 22px rgba(15,23,42,.12);
                user-select:none;
            }
            #tabServisNaklady .service-cost-row-actions summary::-webkit-details-marker {
                display:none;
            }
            #tabServisNaklady .service-cost-row-actions summary::after {
                content:"";
                width:0;
                height:0;
                border-left:4px solid transparent;
                border-right:4px solid transparent;
                border-top:5px solid currentColor;
                opacity:.82;
            }
            #tabServisNaklady .service-cost-row-actions[open] summary {
                background:#1F2937;
            }
            #tabServisNaklady .service-cost-row-menu {
                position:absolute;
                right:0;
                top:40px;
                z-index:40;
                width:190px;
                padding:8px;
                border:1px solid #DDE6EE;
                border-radius:14px;
                background:#FFFFFF;
                box-shadow:0 20px 44px rgba(15,23,42,.18);
                display:grid;
                gap:7px;
            }
            #tabServisNaklady .service-cost-row-menu .btn {
                width:100%;
                min-height:36px;
                padding:8px 10px;
                border-radius:10px;
                font-size:12px;
                text-align:center;
                box-shadow:none;
            }
        }
        @media (max-width: 1180px) {
            #tabVykazy .work-report-history-workbench {
                display:none !important;
            }
            #tabServisNaklady .service-cost-workbench {
                display:none !important;
            }
        }
        @media (min-width: 701px) and (hover: hover) and (pointer: fine) {
            #tabRevizeBudget .mobile-revision-list {
                display:none !important;
            }
            #tabRevizeBudget .revision-table-desktop {
                display:block !important;
            }
            #tabServisNaklady .mobile-service-cost-list {
                display:none !important;
            }
            #tabServisNaklady .service-cost-workbench {
                display:grid !important;
                grid-template-columns:minmax(0,1fr) minmax(320px,.34fr);
                gap:16px;
                align-items:stretch;
            }
            #tabServisNaklady .service-cost-workbench .service-cost-table-desktop {
                display:flex !important;
            }
        }
        @media (max-width: 700px), (hover: none) and (pointer: coarse) {
            #tabRevizeBudget .revision-table-desktop {
                display:none !important;
            }
            #tabServisNaklady .service-cost-workbench {
                display:none !important;
            }
        }

        /* Final cross-device surface pass: keep editors/export panels light and aligned with Pracovni zona. */
        .workspace-hero,
        .today-dashboard,
        .tabs-shell,
        .global-panel,
        .global-search-panel,
        .smart-client-panel,
        .budget-panel,
        .mobile-service-cost-card,
        .desktop-export-center,
        .work-report-editor-hero,
        .work-report-panel {
            background:var(--of-surface-premium) !important;
            border-color:var(--of-surface-line) !important;
            box-shadow:var(--of-surface-shadow-soft) !important;
        }
        .workspace-hero,
        .desktop-export-head,
        .work-report-editor-hero,
        #tabVykazy .work-report-editor-hero {
            background:var(--of-surface-premium-warm) !important;
            color:var(--of-surface-title) !important;
        }
        .desktop-export-head,
        .desktop-export-center.is-work-report .desktop-export-head {
            border-bottom:1px solid var(--of-surface-line) !important;
        }
        .desktop-export-kicker,
        .work-report-editor-kicker,
        #tabVykazy .work-report-editor-kicker {
            color:#7A7F87 !important;
        }
        .desktop-export-title,
        .work-report-editor-title,
        #tabVykazy .work-report-editor-title {
            color:#111827 !important;
        }
        .desktop-export-sub,
        .work-report-editor-subtitle,
        #tabVykazy .work-report-editor-subtitle {
            color:#64748B !important;
        }
        .desktop-export-center .btn,
        .desktop-export-center .btn[style],
        .work-report-editor .btn,
        .work-report-editor .btn[style],
        .work-report-panel .btn,
        .work-report-panel .btn[style] {
            background:linear-gradient(135deg,#FFFFFF 0%,#F8FAFC 100%) !important;
            border:1px solid #D8E1EA !important;
            color:#172033 !important;
            box-shadow:0 8px 18px rgba(15,23,42,.055) !important;
        }
        .desktop-export-center .btn:hover,
        .work-report-editor .btn:hover,
        .work-report-panel .btn:hover {
            background:linear-gradient(135deg,#F8FAFC 0%,#EEF3F8 100%) !important;
            box-shadow:0 12px 24px rgba(15,23,42,.08) !important;
        }
        .work-report-editor-badge,
        #tabVykazy .work-report-editor-badge {
            background:#F1F5F9 !important;
            border-color:#DDE5EE !important;
            color:#334155 !important;
        }
        .desktop-export-checklist,
        .desktop-export-card,
        .desktop-history-detail-cell,
        .work-report-editor .header-field input,
        .work-report-editor .header-field select,
        #tabVykazy .work-report-editor .header-field,
        #tabVykazy .work-report-editor .header-field input,
        #tabVykazy .work-report-editor .header-field select {
            background:transparent !important;
            border-color:rgba(255,255,255,0.6) !important;
            color:#111827 !important;
        }
        .tablet-cockpit-panel,
        .next-action-panel,
        .mobile-transfer-panel {
            background:var(--of-surface-premium) !important;
            border-color:var(--of-surface-line) !important;
            box-shadow:var(--of-surface-shadow-soft) !important;
        }
        .tablet-cockpit-hero {
            background:var(--of-surface-premium-warm) !important;
            color:#111827 !important;
            border-bottom:1px solid var(--of-surface-line) !important;
        }
        .tablet-cockpit-kicker,
        .tablet-cockpit-card-title {
            color:#7A7F87 !important;
        }
        
        
        .tablet-cockpit-card,
        .tablet-cockpit-kpi,
        .next-action-panel {
            background:#FFFFFF !important;
            border-color:#DDE5EE !important;
        }
        .tablet-cockpit-card .btn,
        .tablet-cockpit-card .btn[style],
        .next-action-panel .btn,
        .next-action-panel .btn[style],
        .today-dashboard .btn,
        .today-dashboard .btn[style],
        .global-panel .btn,
        .global-panel .btn[style],
        .smart-client-panel .btn,
        .smart-client-panel .btn[style] {
            background:linear-gradient(135deg,#FFFFFF 0%,#F8FAFC 100%) !important;
            border:1px solid #D8E1EA !important;
            color:#172033 !important;
            box-shadow:0 8px 18px rgba(15,23,42,.055) !important;
        }
        .tablet-cockpit-actions .btn:first-child,
        .global-panel .btn[onclick*="savePortableBackupToCloud"],
        .smart-client-panel .btn[onclick*="savePortableBackupToCloud"] {
            background:linear-gradient(135deg,#EAF8F0 0%,#F8FCFA 100%) !important;
            border-color:#BFE7CF !important;
            color:#14532D !important;
        }
        #tabServisNaklady .service-all-summary-card .mobile-chart-bars {
            display:grid !important;
            grid-template-columns:1fr !important;
            gap:12px !important;
            margin-top:16px !important;
        }
        #tabServisNaklady .service-all-summary-card .mobile-chart-row {
            display:grid !important;
            grid-template-columns:minmax(96px,.32fr) minmax(0,1fr) auto !important;
            gap:10px !important;
            align-items:center !important;
        }
        #tabServisNaklady .service-all-summary-card .mobile-chart-name {
            display:flex !important;
            align-items:center !important;
            gap:8px !important;
            font-size:13px !important;
            font-weight:800 !important;
            color:#334155 !important;
            min-width:0 !important;
        }
        #tabServisNaklady .service-all-summary-card .mobile-chart-value {
            order:3 !important;
            font-size:13px !important;
            font-weight:850 !important;
            color:#111827 !important;
            white-space:nowrap !important;
            text-align:right !important;
        }
        #tabServisNaklady .service-all-summary-card .mobile-chart-track {
            grid-column:auto !important;
            height:10px !important;
            border-radius:999px !important;
            background:#E8EEF4 !important;
            overflow:hidden !important;
            min-width:0 !important;
        }
        #tabServisNaklady .service-all-summary-card .mobile-chart-fill {
            height:100% !important;
            border-radius:999px !important;
            background:linear-gradient(90deg,#245F42,#2F7A57) !important;
            min-width:8px !important;
        }
        #tabServisNaklady .revision-manual-panel {
            background:var(--of-surface-premium) !important;
            border-color:var(--of-surface-line) !important;
            box-shadow:var(--of-surface-shadow-soft) !important;
        }
        #tabServisNaklady .revision-manual-grid {
            grid-template-columns:repeat(3,minmax(0,1fr)) !important;
            gap:12px !important;
            align-items:end !important;
        }
        #tabServisNaklady .revision-manual-field {
            min-width:0 !important;
        }
        #tabServisNaklady .revision-manual-field input,
        #tabServisNaklady .revision-manual-field select {
            width:100% !important;
            min-height:54px !important;
            padding:13px 14px !important;
            border:1px solid #D8E1EA !important;
            border-radius:14px !important;
            background:#FFFFFF !important;
            color:#111827 !important;
            box-shadow:none !important;
            text-align:left !important;
            font-size:15px !important;
        }
        #tabServisNaklady #serviceCostNote {
            min-height:54px !important;
        }
        #tabServisNaklady .revision-manual-panel > div[style*="justify-content:flex-end"] {
            justify-content:stretch !important;
        }
        #tabServisNaklady .revision-manual-panel > div[style*="justify-content:flex-end"] .btn {
            width:100% !important;
            max-width:220px !important;
            margin-left:auto !important;
            min-height:54px !important;
        }
        .tablet-command-card,
        .tablet-command-search,
        .mobile-cloud-status,
        .mobile-global-search {
            box-shadow:none !important;
        }
        @media (min-width:701px) {
            .tablet-side-nav {
                border-right:0 !important;
                box-shadow:none !important;
            }
            .header,
            .container {
                border-left:0 !important;
            }
        }
        @media (max-width:700px) {
            #tabServisNaklady .service-all-summary-card .mobile-chart-row {
                grid-template-columns:minmax(0,1fr) auto !important;
            }
            #tabServisNaklady .service-all-summary-card .mobile-chart-track {
                grid-column:1 / -1 !important;
            }
            #tabServisNaklady .revision-manual-grid {
                grid-template-columns:1fr !important;
            }
            #tabServisNaklady .revision-manual-panel > div[style*="justify-content:flex-end"] .btn {
                max-width:none !important;
            }
        }

        /* Premium orange-blue work cards and clean column charts. */
        .workspace-hero,
        .today-dashboard,
        .next-action-panel,
        .tablet-cockpit-panel,
        .service-all-summary-card,
        .revision-manual-panel,
        .history-status-panel,
        .budget-panel,
        .global-panel,
        .smart-client-panel {
            position:relative !important;
            overflow:hidden !important;
            background:
                radial-gradient(circle at -6% -12%, rgba(234,88,12,.22), transparent 30%),
                radial-gradient(circle at 108% -10%, rgba(59,130,246,.20), transparent 34%),
                linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 48%, rgba(241,246,255,.96) 100%) !important;
            border-color:#DCE5EF !important;
            box-shadow:0 18px 46px rgba(15,23,42,.08) !important;
        }
        .workspace-hero::before,
        .today-dashboard::before,
        .next-action-panel::before,
        .tablet-cockpit-panel::before,
        .service-all-summary-card::before,
        .revision-manual-panel::before,
        .history-status-panel::before,
        .budget-panel::before,
        .global-panel::before,
        .smart-client-panel::before {
            content:"" !important;
            position:absolute !important;
            pointer-events:none !important;
            z-index:0 !important;
            inset:-34px -46px auto auto !important;
            width:190px !important;
            height:150px !important;
            border-radius:999px !important;
            background:
                radial-gradient(circle at 35% 50%, rgba(234,88,12,.24), transparent 52%),
                radial-gradient(circle at 72% 42%, rgba(37,99,235,.18), transparent 58%) !important;
            filter:blur(6px) !important;
            opacity:.9 !important;
        }
        .workspace-hero > *,
        .today-dashboard > *,
        .next-action-panel > *,
        .tablet-cockpit-panel > *,
        .service-all-summary-card > *,
        .revision-manual-panel > *,
        .history-status-panel > *,
        .budget-panel > *,
        .global-panel > *,
        .smart-client-panel > * {
            position:relative !important;
            z-index:1 !important;
        }
        .workspace-meta-card,
        .service-all-summary-kpi,
        .history-status-kpi,
        .budget-kpi-card,
        .budget-month-card,
        .tablet-cockpit-card,
        .tablet-cockpit-kpi,
        .today-card,
        .pipeline-card {
            background:rgba(255,255,255,.78) !important;
            border-color:#DDE7F0 !important;
            box-shadow:0 10px 24px rgba(15,23,42,.055) !important;
            backdrop-filter:blur(8px) !important;
        }
        .of-column-chart {
            display:grid !important;
            grid-auto-flow:column !important;
            grid-auto-columns:minmax(74px,1fr) !important;
            gap:14px !important;
            align-items:end !important;
            min-height:260px !important;
            margin-top:18px !important;
            padding:18px 16px 14px !important;
            border:1px solid #DDE7F0 !important;
            border-radius:18px !important;
            background:rgba(255,255,255,.72) !important;
            box-shadow:inset 0 1px 0 rgba(255,255,255,.9), 0 12px 26px rgba(15,23,42,.045) !important;
            overflow-x:auto !important;
            -webkit-overflow-scrolling:touch !important;
        }
        .of-column-chart-item {
            min-width:0 !important;
            display:grid !important;
            grid-template-rows:auto minmax(150px,1fr) auto !important;
            gap:8px !important;
            align-items:end !important;
            text-align:center !important;
        }
        .of-column-chart-value {
            min-height:30px !important;
            color:#111827 !important;
            font-size:12px !important;
            font-weight:850 !important;
            line-height:1.15 !important;
            white-space:normal !important;
        }
        .of-column-chart-track {
            width:100% !important;
            min-height:150px !important;
            height:170px !important;
            display:flex !important;
            align-items:flex-end !important;
            justify-content:center !important;
            border-radius:16px !important;
            background:linear-gradient(180deg,#EFF4F9 0%,#E7EEF6 100%) !important;
            overflow:hidden !important;
        }
        .of-column-chart-fill {
            width:72% !important;
            min-height:8px !important;
            border-radius:14px 14px 8px 8px !important;
            background:linear-gradient(180deg,#2B7A5C 0%,#1F5F43 100%) !important;
            box-shadow:0 -10px 20px rgba(31,95,67,.18) inset, 0 10px 18px rgba(31,95,67,.14) !important;
        }
        .of-column-chart-label {
            display:flex !important;
            justify-content:center !important;
            align-items:center !important;
            gap:6px !important;
            min-height:34px !important;
            color:#475569 !important;
            font-size:11px !important;
            font-weight:800 !important;
            line-height:1.15 !important;
        }
        .offer-value-chart {
            grid-auto-columns:minmax(120px,1fr) !important;
        }
        .offer-value-chart .of-column-chart-track {
            height:190px !important;
        }
        .offer-value-chart .of-column-chart-label {
            font-size:12px !important;
        }
        #tabServisNaklady .service-all-summary-card .mobile-chart-bars {
            display:none !important;
        }
        #tabServisNaklady .revision-manual-grid {
            grid-template-columns:repeat(3,minmax(0,1fr)) !important;
            column-gap:14px !important;
            row-gap:14px !important;
        }
        #tabServisNaklady .revision-manual-field {
            display:flex !important;
            flex-direction:column !important;
            gap:7px !important;
        }
        #tabServisNaklady .revision-manual-field input,
        #tabServisNaklady .revision-manual-field select {
            height:56px !important;
            min-height:56px !important;
            border-radius:15px !important;
            padding:14px 15px !important;
            background:rgba(255,255,255,.9) !important;
            border:1px solid #D8E3ED !important;
            box-shadow:0 6px 16px rgba(15,23,42,.035) !important;
            text-align:left !important;
            line-height:1.2 !important;
        }
        @media (min-width:701px) {
            .tablet-side-nav {
                background:
                    radial-gradient(circle at top left, rgba(234,88,12,.16), transparent 35%),
                    linear-gradient(180deg,#0B1119 0%,#08101A 100%) !important;
                border-right:0 !important;
                box-shadow:8px 0 24px rgba(15,23,42,.10) !important;
            }
            .tablet-side-nav::after {
                content:"" !important;
                position:absolute !important;
                top:0 !important;
                right:-18px !important;
                width:18px !important;
                height:100% !important;
                pointer-events:none !important;
                background:linear-gradient(90deg, rgba(8,16,26,.18), rgba(246,249,252,0)) !important;
            }
            .header,
            .container {
                margin-left:108px !important;
            }
        }
        @media (max-width:700px) {
            .of-column-chart {
                grid-auto-columns:minmax(70px,34%) !important;
                min-height:230px !important;
                padding:14px 12px !important;
                gap:10px !important;
            }
            .of-column-chart-track {
                height:140px !important;
                min-height:140px !important;
            }
            .of-column-chart-value {
                font-size:11px !important;
            }
        }

        /* iPad polish correction: clean command bar, unified premium surfaces and charts. */
        :root {
            --of-premium-radius:28px;
            --of-premium-inner-radius:22px;
        }
        .workspace-hero,
        .today-dashboard,
        .next-action-panel,
        .tablet-cockpit-panel,
        .service-all-summary-card,
        .revision-manual-panel,
        .history-status-panel,
        .budget-panel,
        .global-panel,
        .smart-client-panel {
            border-radius:var(--of-premium-radius) !important;
            border:1px solid #DDE7F0 !important;
            background:
                radial-gradient(circle at -8% 20%, rgba(234,88,12,.18), transparent 28%),
                radial-gradient(circle at 108% 18%, rgba(59,130,246,.18), transparent 30%),
                linear-gradient(100deg, #FFF7F0 0%, #FFFFFF 42%, #F2F7FF 100%) !important;
            box-shadow:
                0 18px 42px rgba(15,23,42,.07),
                -16px -10px 34px rgba(234,88,12,.08),
                16px -10px 34px rgba(59,130,246,.08) !important;
            overflow:hidden !important;
            isolation:isolate !important;
            background-clip:padding-box !important;
            transform:translateZ(0) !important;
            -webkit-mask-image:-webkit-radial-gradient(white, black) !important;
        }
        .workspace-hero::before,
        .today-dashboard::before,
        .next-action-panel::before,
        .tablet-cockpit-panel::before,
        .service-all-summary-card::before,
        .revision-manual-panel::before,
        .history-status-panel::before,
        .budget-panel::before,
        .global-panel::before,
        .smart-client-panel::before {
            content:"" !important;
            position:absolute !important;
            pointer-events:none !important;
            z-index:0 !important;
            inset:-38px -52px auto auto !important;
            width:190px !important;
            height:150px !important;
            border-radius:999px !important;
            background:radial-gradient(circle at 72% 38%, rgba(59,130,246,.20), transparent 64%) !important;
            filter:blur(8px) !important;
            opacity:.9 !important;
        }
        .workspace-hero::after,
        .today-dashboard::after,
        .next-action-panel::after,
        .tablet-cockpit-panel::after,
        .service-all-summary-card::after,
        .revision-manual-panel::after,
        .history-status-panel::after,
        .budget-panel::after,
        .global-panel::after,
        .smart-client-panel::after {
            content:"" !important;
            position:absolute !important;
            pointer-events:none !important;
            z-index:0 !important;
            inset:-36px auto auto -48px !important;
            width:180px !important;
            height:150px !important;
            border-radius:999px !important;
            background:radial-gradient(circle at 28% 38%, rgba(234,88,12,.18), transparent 66%) !important;
            filter:blur(8px) !important;
            opacity:.86 !important;
        }
        .workspace-meta-card,
        .service-all-summary-kpi,
        .history-status-kpi,
        .budget-kpi-card,
        .budget-month-card,
        .tablet-cockpit-card,
        .tablet-cockpit-kpi,
        .today-card,
        .pipeline-card {
            border-radius:var(--of-premium-inner-radius) !important;
        }
        .of-column-chart-track {
            background:transparent !important;
            border:0 !important;
            border-radius:0 !important;
            box-shadow:none !important;
            overflow:visible !important;
        }
        .of-column-chart-fill {
            box-shadow:none !important;
        }
        .tablet-cockpit-panel {
            background:
                radial-gradient(circle at -8% 20%, rgba(234,88,12,.18), transparent 28%),
                radial-gradient(circle at 108% 18%, rgba(59,130,246,.18), transparent 30%),
                linear-gradient(100deg, #FFF7F0 0%, #FFFFFF 42%, #F2F7FF 100%) !important;
        }
        .tablet-cockpit-hero {
            background:transparent !important;
            color:#111827 !important;
            border-bottom:0 !important;
            padding:18px 18px 8px !important;
        }
        .tablet-cockpit-kicker {
            color:#7A7F87 !important;
        }
        .tablet-cockpit-title,
        .tablet-cockpit-primary,
        .tablet-cockpit-kpi-value,
        .tablet-cockpit-row-value {
            color:#111827 !important;
        }
        .tablet-cockpit-sub,
        .tablet-cockpit-muted,
        .tablet-cockpit-row-sub {
            color:#64748B !important;
        }
        .tablet-cockpit-body {
            background:transparent !important;
            padding:14px 18px 18px !important;
        }
        .tablet-cockpit-card,
        .tablet-cockpit-kpi {
            background:rgba(255,255,255,.82) !important;
            border:1px solid #DDE7F0 !important;
            box-shadow:0 10px 24px rgba(15,23,42,.045) !important;
        }
        .tablet-cockpit-card {
            border-radius:var(--of-premium-inner-radius) !important;
        }
        .tablet-cockpit-kpi {
            border-radius:18px !important;
        }
        @media (min-width:701px) {
            .tablet-command-bar {
                background:transparent !important;
                border:0 !important;
                box-shadow:none !important;
            }
            .tablet-command-card,
            .tablet-command-search,
            .tablet-command-search input {
                border:0 !important;
                outline:0 !important;
                box-shadow:none !important;
            }
            .tablet-command-card,
            .tablet-command-search input {
                border-radius:18px !important;
                background:#FFFFFF !important;
            }
            .tablet-side-nav {
                width:108px !important;
                border-right:0 !important;
                box-shadow:none !important;
            }
            .tablet-side-nav::after {
                content:none !important;
                display:none !important;
            }
            .header,
            .container {
                margin-left:108px !important;
                border-left:0 !important;
            }
        }

        /* OmniFlow visual system pass: navigation, action colors and record cards. */
        :root {
            --of-action-primary:#0D1117;
            --of-action-save:#1F6B46;
            --of-action-update:#2B7A78;
            --of-action-secondary:#657080;
            --of-action-danger:#7A2E2E;
            --of-action-soft:#F8FAFC;
            --of-nav-muted:#95A1B2;
            --of-nav-active:#FFFFFF;
        }
        .btn,
        button.btn,
        .tablet-command-bar .btn,
        .mobile-transfer-actions .btn,
        .tablet-transfer-actions .btn,
        .desktop-history-detail-actions .btn,
        .desktop-export-actions .btn,
        .mobile-history-actions .btn,
        .mobile-revision-actions .btn,
        .mobile-service-cost-actions .btn,
        .work-report-export-actions .btn,
        .work-report-panel-actions .btn {
            min-height:44px !important;
            border-radius:16px !important;
            border:1px solid rgba(15,23,42,.08) !important;
            background:var(--of-action-primary) !important;
            color:#FFFFFF !important;
            box-shadow:0 10px 22px rgba(15,23,42,.09) !important;
            font-weight:850 !important;
            letter-spacing:0 !important;
            transition:transform .16s ease, box-shadow .16s ease, filter .16s ease !important;
        }
        .btn:hover {
            filter:brightness(1.03) !important;
            transform:translateY(-1px) !important;
        }
        .btn:active {
            transform:translateY(0) scale(.99) !important;
            box-shadow:0 6px 14px rgba(15,23,42,.10) !important;
        }
        .btn[onclick*="save"],
        .btn[onclick*="Save"],
        .btn[onclick*="schval"],
        .btn[onclick*="approve"],
        .btn[onclick*="generateNew"],
        .btn[onclick*="addService"],
        .btn[onclick*="Přidat"] {
            background:var(--of-action-save) !important;
        }
        .btn[onclick*="update"],
        .btn[onclick*="Update"],
        .btn[onclick*="refresh"],
        .btn[onclick*="Aktualizovat"] {
            background:var(--of-action-update) !important;
        }
        .btn[onclick*="load"],
        .btn[onclick*="Load"],
        .btn[onclick*="duplicate"],
        .btn[onclick*="Duplicate"],
        .btn[onclick*="reset"],
        .btn[onclick*="clear"],
        .btn[onclick*="delete"],
        .btn[onclick*="Delete"],
        .btn[onclick*="remove"],
        .btn[onclick*="Vymazat"],
        .btn[onclick*="Smazat"],
        .btn[onclick*="setCloud"],
        .btn[onclick*="configureAppLock"] {
            background:var(--of-action-secondary) !important;
        }
        .btn[onclick*="deleteDeletedBinItem"],
        .btn[onclick*="emptyDeletedBin"] {
            background:var(--of-action-danger) !important;
        }
        .btn[onclick*="open"],
        .btn[onclick*="Open"],
        .btn[onclick*="detail"],
        .btn[onclick*="Detail"],
        .btn[onclick*="export"],
        .btn[onclick*="print"] {
            background:var(--of-action-primary) !important;
        }
        .tablet-side-nav,
        .mobile-bottom-nav {
            background:linear-gradient(180deg,#0B1119 0%,#070D15 100%) !important;
        }
        .tablet-side-btn,
        .mobile-bottom-nav-btn {
            color:var(--of-nav-muted) !important;
            border:0 !important;
            box-shadow:none !important;
        }
        .tablet-side-btn svg,
        .mobile-bottom-nav-icon svg {
            width:24px !important;
            height:24px !important;
        }
        .tablet-side-btn .nav-line,
        .mobile-bottom-nav-icon .nav-line {
            stroke-width:2.05 !important;
        }
        .tablet-side-btn.active,
        .mobile-bottom-nav-btn.active {
            background:var(--of-nav-active) !important;
            color:#0D1117 !important;
            box-shadow:0 16px 34px rgba(15,23,42,.26) !important;
        }
        .tablet-side-btn:not(.active):hover,
        .mobile-bottom-nav-btn:not(.active):hover {
            background:rgba(255,255,255,.06) !important;
            color:#D7DEE8 !important;
        }
        .mobile-bottom-nav {
            border-top:1px solid rgba(15,23,42,.08) !important;
            box-shadow:0 -18px 38px rgba(15,23,42,.10) !important;
        }
        .tabs-nav {
            background:#EEF2F6 !important;
            border:1px solid #DDE6F0 !important;
            border-radius:18px !important;
            padding:5px !important;
        }
        .tab-btn {
            border-radius:14px !important;
            color:#64748B !important;
            font-weight:850 !important;
        }
        .tab-btn.active {
            background:#FFFFFF !important;
            color:#0D1117 !important;
            box-shadow:0 10px 24px rgba(15,23,42,.08) !important;
        }
        .mobile-compact-record,
        .mobile-history-card.mobile-compact-record,
        details.mobile-compact-record,
        .desktop-vp-history-card,
        .global-search-card,
        .history-preview-card,
        .price-preview-card,
        .work-report-order-item,
        .desktop-history-detail,
        .desktop-history-detail-cell,
        .desktop-history-detail-note {
            border-radius:22px !important;
            border-color:#DDE7F0 !important;
            background:#FFFFFF !important;
            box-shadow:0 10px 24px rgba(15,23,42,.045) !important;
        }
        details.mobile-compact-record > summary,
        .mobile-compact-record .mobile-history-head,
        .mobile-compact-record .mobile-service-cost-head,
        .mobile-compact-record .mobile-revision-head {
            border-radius:20px !important;
        }
        .mobile-history-card.mobile-compact-record::after {
            border-radius:22px 0 0 22px !important;
        }
        .desktop-history-detail-head {
            background:
                radial-gradient(circle at -8% 20%, rgba(234,88,12,.16), transparent 30%),
                radial-gradient(circle at 108% 18%, rgba(59,130,246,.16), transparent 32%),
                linear-gradient(100deg, #FFF7F0 0%, #FFFFFF 44%, #F2F7FF 100%) !important;
            color:#111827 !important;
            border-bottom:1px solid #DDE7F0 !important;
        }
        .desktop-history-detail-kicker {
            color:#7A7F87 !important;
        }
        .desktop-history-detail-title {
            color:#111827 !important;
        }
        .desktop-history-detail-sub {
            color:#64748B !important;
        }
        .history-table-desktop .table-wrapper,
        .offer-history-workbench .table-wrapper,
        .work-report-history-workbench .table-wrapper {
            border-radius:22px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            box-shadow:0 12px 28px rgba(15,23,42,.045) !important;
            overflow:auto !important;
        }
        .history-table-desktop table,
        .offer-history-workbench table,
        .work-report-history-workbench table {
            border-collapse:separate !important;
            border-spacing:0 !important;
        }
        .history-table-desktop tbody tr,
        .offer-history-workbench tbody tr,
        .work-report-history-workbench tbody tr {
            transition:background .14s ease !important;
        }
        .history-table-desktop tbody tr:hover,
        .offer-history-workbench tbody tr:hover,
        .work-report-history-workbench tbody tr:hover {
            background:#F8FAFC !important;
        }
        @media (max-width:700px) {
            .mobile-bottom-nav {
                border-radius:28px 28px 0 0 !important;
                padding:10px 10px calc(10px + env(safe-area-inset-bottom)) !important;
            }
            .mobile-bottom-nav-btn {
                min-height:60px !important;
                border-radius:22px !important;
            }
            .mobile-bottom-nav-btn.active {
                border-radius:24px !important;
            }
            .mobile-compact-record,
            .mobile-history-card.mobile-compact-record,
            details.mobile-compact-record {
                border-radius:28px !important;
            }
            .mobile-history-card.mobile-compact-record::after {
                border-radius:28px 0 0 28px !important;
            }
        }

        /* Panel pass: one calm dashboard language for Mac, iPad and iPhone. */
        :root {
            --of-panel-radius:28px;
            --of-panel-inner-radius:22px;
            --of-panel-border:#DDE7F0;
            --of-panel-shadow:0 18px 42px rgba(15,23,42,.06);
            --of-panel-soft-shadow:0 10px 24px rgba(15,23,42,.045);
            --of-panel-title:#0F172A;
            --of-panel-muted:#64748B;
            --of-panel-orange:rgba(249,115,22,.18);
            --of-panel-blue:rgba(59,130,246,.18);
        }
        body:not(.overview-mode) .tablet-transfer-panel,
        body:not(.overview-mode) .mobile-transfer-panel,
        body:not(.overview-mode) #mobileSmartClientPanel {
            display:none !important;
        }
        body.overview-mode .page-shell {
            gap:20px !important;
            align-items:start !important;
        }
        body.overview-mode .workspace-main,
        body.overview-mode .workspace-sidebar {
            gap:18px !important;
        }
        body.overview-mode .workspace-sidebar .global-search-panel {
            display:none !important;
        }
        body.overview-mode .workspace-hero,
        body.overview-mode .today-dashboard,
        body.overview-mode .tablet-cockpit-panel,
        body.overview-mode .global-panel,
        body.overview-mode .global-search-panel,
        body.overview-mode .smart-client-panel,
        body.overview-mode .tablet-transfer-panel,
        body.overview-mode .mobile-transfer-panel {
            position:relative !important;
            isolation:isolate !important;
            overflow:hidden !important;
            border-radius:var(--of-panel-radius) !important;
            border:1px solid var(--of-panel-border) !important;
            background:
                radial-gradient(circle at -8% 12%, var(--of-panel-orange), transparent 30%),
                radial-gradient(circle at 108% 12%, var(--of-panel-blue), transparent 30%),
                linear-gradient(100deg,#FFF8F2 0%,#FFFFFF 43%,#F2F7FF 100%) !important;
            box-shadow:var(--of-panel-shadow) !important;
            background-clip:padding-box !important;
            -webkit-mask-image:-webkit-radial-gradient(white, black) !important;
        }
        body.overview-mode .workspace-hero::before,
        body.overview-mode .workspace-hero::after,
        body.overview-mode .today-dashboard::before,
        body.overview-mode .today-dashboard::after,
        body.overview-mode .tablet-cockpit-panel::before,
        body.overview-mode .tablet-cockpit-panel::after,
        body.overview-mode .global-panel::before,
        body.overview-mode .global-panel::after,
        body.overview-mode .smart-client-panel::before,
        body.overview-mode .smart-client-panel::after,
        body.overview-mode .tablet-transfer-panel::before,
        body.overview-mode .tablet-transfer-panel::after,
        body.overview-mode .mobile-transfer-panel::before,
        body.overview-mode .mobile-transfer-panel::after {
            content:none !important;
            display:none !important;
        }
        body.overview-mode .today-dashboard > *,
        body.overview-mode .workspace-hero > *,
        body.overview-mode .tablet-cockpit-panel > *,
        body.overview-mode .global-panel > *,
        body.overview-mode .smart-client-panel > *,
        body.overview-mode .tablet-transfer-panel > *,
        body.overview-mode .mobile-transfer-panel > * {
            position:relative !important;
            z-index:1 !important;
        }
        body.overview-mode .tablet-cockpit-hero,
        body.overview-mode .global-panel-head,
        body.overview-mode .smart-client-head {
            background:transparent !important;
            color:var(--of-panel-title) !important;
            border-bottom:0 !important;
        }
        body.overview-mode .workspace-title,
        body.overview-mode .today-dashboard-title,
        body.overview-mode .tablet-cockpit-title,
        body.overview-mode .global-panel-title,
        body.overview-mode .smart-client-title {
            color:var(--of-panel-title) !important;
            letter-spacing:0 !important;
        }
        body.overview-mode .workspace-subtitle,
        body.overview-mode .today-dashboard-sub,
        body.overview-mode .tablet-cockpit-sub,
        body.overview-mode .global-panel-subtitle,
        body.overview-mode .smart-client-subtitle {
            color:var(--of-panel-muted) !important;
        }
        body.overview-mode .workspace-kicker,
        body.overview-mode .today-dashboard-kicker,
        body.overview-mode .tablet-cockpit-kicker,
        body.overview-mode .tablet-cockpit-card-title,
        body.overview-mode .smart-client-kpi-label,
        body.overview-mode .workspace-meta-label,
        body.overview-mode .today-card-label {
            color:#7A7F87 !important;
            letter-spacing:.12em !important;
        }
        body.overview-mode .workspace-meta-card,
        body.overview-mode .today-card,
        body.overview-mode .pipeline-card,
        body.overview-mode .tablet-cockpit-card,
        body.overview-mode .tablet-cockpit-kpi,
        body.overview-mode .global-dashboard-card,
        body.overview-mode .global-chart-card,
        body.overview-mode .smart-client-kpi,
        body.overview-mode .smart-client-suggestion {
            border-radius:var(--of-panel-inner-radius) !important;
            border:1px solid var(--of-panel-border) !important;
            background:rgba(255,255,255,.86) !important;
            box-shadow:var(--of-panel-soft-shadow) !important;
            background-clip:padding-box !important;
        }
        body.overview-mode .today-fin-kpi {
            border-radius:var(--of-panel-inner-radius) !important;
            border:1px solid var(--of-panel-border) !important;
            background:rgba(255,255,255,.86) !important;
            box-shadow:var(--of-panel-soft-shadow) !important;
            padding:16px 18px !important;
        }
        body.overview-mode .today-fin-kpi-value { color:#0F172A !important; font-weight:900 !important; }
        body.overview-mode .today-card {
            min-height:118px !important;
            padding:18px !important;
        }
        body.overview-mode .today-card.priority {
            border-color:#F7CFC2 !important;
            background:linear-gradient(135deg,rgba(255,247,240,.95),rgba(255,255,255,.9)) !important;
        }
        body.overview-mode .today-card.warn {
            border-color:#F6DDA5 !important;
            background:linear-gradient(135deg,rgba(255,251,235,.95),rgba(255,255,255,.9)) !important;
        }
        body.overview-mode .today-card.ready {
            border-color:#BDE8D0 !important;
            background:linear-gradient(135deg,rgba(240,253,244,.95),rgba(255,255,255,.9)) !important;
        }
        body.overview-mode .today-card-value {
            color:#0F172A !important;
            font-weight:900 !important;
        }
        body.overview-mode .pipeline-card {
            padding:18px !important;
        }
        body.overview-mode .pipeline-step-track {
            background:#E9EEF5 !important;
            border-radius:999px !important;
            overflow:hidden !important;
            box-shadow:none !important;
        }
        body.overview-mode .pipeline-step-fill {
            border-radius:999px !important;
        }
        body.overview-mode .tablet-cockpit-body {
            background:transparent !important;
        }
        body.overview-mode .tablet-cockpit-row {
            border-top-color:#E7EDF5 !important;
        }
        body.overview-mode .tablet-cockpit-actions .btn,
        body.overview-mode .today-dashboard-head .btn,
        body.overview-mode .pipeline-card .btn,
        body.overview-mode .global-panel .btn,
        body.overview-mode .smart-client-panel .btn {
            border-radius:18px !important;
        }
        @media (min-width:701px) {
            body.overview-mode .container {
                background:#F4F7FA !important;
            }
            body.overview-mode .tablet-command-bar {
                gap:12px !important;
                padding:14px 16px !important;
            }
            body.overview-mode .tablet-command-card,
            body.overview-mode .tablet-command-search input {
                border-radius:20px !important;
                background:#FFFFFF !important;
                border:0 !important;
                box-shadow:0 12px 28px rgba(15,23,42,.06) !important;
            }
            body.overview-mode .tablet-command-search {
                border:0 !important;
                box-shadow:none !important;
                background:transparent !important;
            }
            body.overview-mode .tablet-side-nav,
            body.overview-mode .header,
            body.overview-mode .container {
                border-left:0 !important;
                border-right:0 !important;
            }
        }
        @media (min-width:701px) and (max-width:1180px) {
            body.overview-mode .page-shell:not(.work-mode) .workspace-main {
                grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr) !important;
                gap:18px !important;
            }
            body.overview-mode .today-dashboard-grid {
                grid-template-columns:repeat(2,minmax(0,1fr)) !important;
            }
            body.overview-mode .tablet-cockpit-panel,
            body.overview-mode .smart-client-panel {
                border-radius:var(--of-panel-radius) !important;
            }
        }
        @media (min-width:1181px) {
            .desktop-cloud-sync-dot { display:inline-block !important; }
        }
        @media (min-width:1181px) {
            body.overview-mode .page-shell:not(.work-mode) .workspace-main {
                grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr) !important;
                gap:20px !important;
            }
            body.overview-mode .today-dashboard-grid {
                grid-template-columns:repeat(4,minmax(0,1fr)) !important;
            }
        }
        @media (max-width:700px) {
            body.overview-mode .mobile-command-center {
                gap:14px !important;
            }
            body.overview-mode .mobile-transfer-panel,
            body.overview-mode #todayDashboardPanel,
            body.overview-mode #mobileSmartClientPanel {
                margin-left:0 !important;
                margin-right:0 !important;
            }
            body.overview-mode .today-dashboard,
            body.overview-mode .mobile-transfer-panel,
            body.overview-mode .smart-client-panel {
                border-radius:28px !important;
                box-shadow:0 16px 36px rgba(15,23,42,.07) !important;
            }
            body.overview-mode .today-dashboard-grid {
                grid-template-columns:1fr !important;
            }
            body.overview-mode .today-card,
            body.overview-mode .pipeline-card,
            body.overview-mode .smart-client-kpi,
            body.overview-mode .smart-client-suggestion {
                border-radius:24px !important;
            }
            body.overview-mode .smart-client-kpis {
                grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
            }
        }

        /* CN pass: cleaner offer overview, one chart language and unified expandable records. */
        #tabHistorie .service-pbz-section {
            display:grid !important;
            gap:18px !important;
        }
        #tabHistorie .service-pbz-head {
            border-radius:28px !important;
            border:1px solid #DDE7F0 !important;
            background:
                radial-gradient(circle at -8% 14%, rgba(249,115,22,.14), transparent 30%),
                radial-gradient(circle at 108% 14%, rgba(59,130,246,.14), transparent 30%),
                linear-gradient(100deg,#FFF9F4 0%,#FFFFFF 44%,#F4F8FF 100%) !important;
            box-shadow:0 18px 42px rgba(15,23,42,.06) !important;
            padding:20px !important;
            align-items:flex-start !important;
        }
        #tabHistorie .service-pbz-title {
            color:#0F172A !important;
            font-size:24px !important;
            line-height:1.12 !important;
            letter-spacing:0 !important;
        }
        #tabHistorie .service-pbz-subtitle {
            color:#64748B !important;
            font-size:13px !important;
            line-height:1.45 !important;
            margin-top:6px !important;
        }
        #tabHistorie .history-toolbar {
            display:grid !important;
            grid-template-columns:repeat(4,minmax(150px,1fr)) !important;
            gap:10px !important;
            width:100% !important;
            align-items:end !important;
        }
        #tabHistorie .history-toolbar input,
        #tabHistorie .history-toolbar select {
            width:100% !important;
            min-height:44px !important;
            border-radius:16px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            box-shadow:none !important;
        }
        #tabHistorie .history-toolbar .btn {
            width:100% !important;
            min-height:44px !important;
            border-radius:16px !important;
        }
        #tabHistorie .history-quick-filters {
            display:flex !important;
            gap:10px !important;
            flex-wrap:wrap !important;
            padding:0 2px !important;
        }
        #tabHistorie .history-quick-chip {
            border-radius:999px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            color:#475569 !important;
            min-height:40px !important;
            padding:0 16px !important;
            font-weight:850 !important;
            box-shadow:0 10px 22px rgba(15,23,42,.04) !important;
        }
        #tabHistorie .history-quick-chip.active {
            background:#0D1117 !important;
            border-color:#0D1117 !important;
            color:#FFFFFF !important;
        }
        #offerHistoryBox {
            display:grid !important;
            gap:18px !important;
        }
        #offerHistoryBox .history-stats,
        #offerHistoryBox .history-metrics-grid,
        #offerHistoryBox .history-timeline-grid,
        #offerHistoryBox .history-status-dashboard,
        #offerHistoryBox .offer-card-list,
        #offerHistoryBox .offer-history-workbench {
            margin:0 !important;
        }
        #offerHistoryBox .history-stats,
        #offerHistoryBox .history-metrics-grid,
        #offerHistoryBox .history-timeline-grid {
            display:grid !important;
            gap:12px !important;
        }
        #offerHistoryBox .history-stats {
            grid-template-columns:repeat(4,minmax(0,1fr)) !important;
        }
        #offerHistoryBox .history-metrics-grid {
            grid-template-columns:repeat(3,minmax(0,1fr)) !important;
        }
        #offerHistoryBox .history-stat,
        #offerHistoryBox .history-metric-card,
        #offerHistoryBox .history-timeline-panel,
        #offerHistoryBox .history-status-panel {
            border-radius:24px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            box-shadow:0 12px 28px rgba(15,23,42,.045) !important;
        }
        #offerHistoryBox .history-status-panel {
            padding:18px !important;
        }
        #offerHistoryBox .history-status-dashboard {
            grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr) !important;
            gap:14px !important;
        }
        #offerHistoryBox .history-donut-wrap,
        #offerHistoryBox .history-donut-legend {
            display:none !important;
        }
        #offerHistoryBox .of-column-chart.offer-value-chart {
            display:grid !important;
            grid-auto-flow:column !important;
            grid-auto-columns:minmax(108px,1fr) !important;
            min-height:250px !important;
            padding:18px !important;
            border-radius:22px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            box-shadow:0 12px 26px rgba(15,23,42,.04) !important;
            overflow-x:auto !important;
        }
        #offerHistoryBox .offer-value-chart .of-column-chart-track {
            background:transparent !important;
            border:0 !important;
            box-shadow:none !important;
            border-radius:0 !important;
            overflow:visible !important;
            height:170px !important;
            min-height:170px !important;
        }
        #offerHistoryBox .offer-value-chart .of-column-chart-fill {
            width:64% !important;
            border-radius:18px 18px 10px 10px !important;
            box-shadow:none !important;
        }
        #offerHistoryBox .history-status-row {
            grid-template-columns:minmax(110px,.85fr) minmax(70px,.45fr) minmax(120px,1fr) minmax(110px,.7fr) !important;
            min-height:34px !important;
        }
        #offerHistoryBox .history-status-bar {
            height:8px !important;
            background:#EEF3F8 !important;
            box-shadow:none !important;
        }
        #offerHistoryBox .history-status-kpi {
            border-radius:18px !important;
            border:1px solid #DDE7F0 !important;
            background:#F8FAFC !important;
        }
        #offerHistoryBox .mobile-history-card.mobile-compact-record {
            border-radius:28px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            box-shadow:0 14px 30px rgba(15,23,42,.055) !important;
            overflow:hidden !important;
        }
        #offerHistoryBox .mobile-history-card.mobile-compact-record::after {
            width:5px !important;
            border-radius:28px 0 0 28px !important;
        }
        #offerHistoryBox .mobile-history-head {
            align-items:flex-start !important;
            gap:12px !important;
        }
        #offerHistoryBox .mobile-history-total {
            border-radius:18px !important;
            background:#F3F6FA !important;
            color:#0F172A !important;
        }
        #offerHistoryBox .mobile-meta-box,
        #offerHistoryBox .history-preview-card {
            border-radius:18px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
        }
        #offerHistoryBox .mobile-history-actions {
            gap:10px !important;
        }
        #offerHistoryBox .mobile-history-actions .btn {
            border-radius:18px !important;
        }
        #offerHistoryBox .offer-history-workbench .table-wrapper {
            border-radius:24px !important;
            border:1px solid #DDE7F0 !important;
            box-shadow:0 14px 30px rgba(15,23,42,.045) !important;
            background:#FFFFFF !important;
        }
        #offerHistoryBox .offer-history-workbench table thead th {
            background:#F8FAFC !important;
            color:#64748B !important;
            font-size:11px !important;
            letter-spacing:.08em !important;
            text-transform:uppercase !important;
        }
        #offerHistoryBox .offer-history-workbench tbody tr {
            border-radius:18px !important;
        }
        #offerHistoryBox .offer-history-workbench tbody tr:hover {
            background:#F8FAFC !important;
        }
        #offerHistoryBox .offer-history-detail-panel {
            border-radius:28px !important;
            overflow:hidden !important;
            border:1px solid #DDE7F0 !important;
            box-shadow:0 16px 34px rgba(15,23,42,.06) !important;
        }
        #offerHistoryBox .offer-history-detail-panel .desktop-history-detail-head {
            background:
                radial-gradient(circle at -8% 16%, rgba(249,115,22,.16), transparent 32%),
                radial-gradient(circle at 108% 16%, rgba(59,130,246,.16), transparent 32%),
                linear-gradient(100deg,#FFF8F2 0%,#FFFFFF 45%,#F2F7FF 100%) !important;
        }
        @media (max-width:1180px) {
            #tabHistorie .history-toolbar {
                grid-template-columns:repeat(2,minmax(0,1fr)) !important;
            }
            #offerHistoryBox .history-stats,
            #offerHistoryBox .history-metrics-grid,
            #offerHistoryBox .history-status-dashboard {
                grid-template-columns:1fr 1fr !important;
            }
            #offerHistoryBox .history-status-panel:nth-child(2) {
                grid-column:1 / -1 !important;
            }
        }
        @media (max-width:700px) {
            #tabHistorie .service-pbz-head {
                border-radius:28px !important;
                padding:18px !important;
            }
            #tabHistorie .service-pbz-title {
                font-size:22px !important;
            }
            #tabHistorie .history-toolbar,
            #offerHistoryBox .history-stats,
            #offerHistoryBox .history-metrics-grid,
            #offerHistoryBox .history-status-dashboard {
                grid-template-columns:1fr !important;
            }
            #offerHistoryBox .history-timeline-grid,
            #offerHistoryBox .history-status-panel:nth-child(2) {
                grid-column:auto !important;
            }
            #offerHistoryBox .history-stats,
            #offerHistoryBox .history-metrics-grid,
            #offerHistoryBox .history-timeline-grid,
            #offerHistoryBox .history-status-dashboard {
                gap:12px !important;
            }
            #offerHistoryBox .of-column-chart.offer-value-chart {
                grid-auto-columns:minmax(96px,1fr) !important;
                min-height:230px !important;
                padding:14px !important;
            }
            #offerHistoryBox .history-status-row {
                grid-template-columns:1fr !important;
            }
            #offerHistoryBox .history-status-count,
            #offerHistoryBox .history-status-bar { display:none !important; }
            #offerHistoryBox .history-status-summary {
                grid-template-columns:1fr !important;
            }
        }

        /* CN templates finish: align object templates with the polished offer history. */
        #tabHistorie > .service-pbz-section > .service-pbz-head:nth-of-type(2) {
            margin-top:2px !important;
            background:
                radial-gradient(circle at -8% 16%, rgba(234,88,12,.12), transparent 30%),
                radial-gradient(circle at 108% 16%, rgba(59,130,246,.12), transparent 32%),
                linear-gradient(100deg,#FFF9F4 0%,#FFFFFF 44%,#F4F8FF 100%) !important;
        }
        #tabHistorie .template-actions {
            display:grid !important;
            grid-template-columns:minmax(220px,1.1fr) minmax(220px,1fr) repeat(3,minmax(150px,.55fr)) !important;
            gap:10px !important;
            align-items:stretch !important;
            margin:0 !important;
            padding:18px !important;
            border-radius:28px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            box-shadow:0 14px 30px rgba(15,23,42,.045) !important;
        }
        #tabHistorie .template-actions input,
        #offerTemplatesBox .template-toolbar input,
        #offerTemplatesBox .template-toolbar select {
            width:100% !important;
            min-width:0 !important;
            min-height:46px !important;
            border-radius:16px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            color:#111827 !important;
            box-shadow:none !important;
            font-family:'Inter',sans-serif !important;
            font-size:13px !important;
            padding:11px 13px !important;
        }
        #tabHistorie .template-actions .btn,
        #offerTemplatesBox .template-toolbar .btn,
        #offerTemplatesBox .table-section .btn {
            width:100% !important;
            min-height:46px !important;
            border-radius:16px !important;
            box-shadow:none !important;
            font-weight:850 !important;
            padding:10px 12px !important;
        }
        #offerTemplatesBox {
            display:grid !important;
            gap:14px !important;
        }
        #offerTemplatesBox .trash-panel {
            margin:0 !important;
            border-radius:24px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            box-shadow:0 12px 28px rgba(15,23,42,.04) !important;
        }
        #offerTemplatesBox .template-toolbar {
            display:grid !important;
            grid-template-columns:minmax(220px,1fr) minmax(180px,.45fr) !important;
            gap:10px !important;
            margin:0 !important;
            padding:16px !important;
            border-radius:24px !important;
            border:1px solid #DDE7F0 !important;
            background:#F8FAFC !important;
        }
        #offerTemplatesBox .table-section.visible {
            display:block !important;
            border-radius:28px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            box-shadow:0 14px 30px rgba(15,23,42,.045) !important;
            overflow:hidden !important;
        }
        #offerTemplatesBox .table-wrapper {
            border:0 !important;
            border-radius:0 !important;
            box-shadow:none !important;
            overflow:auto !important;
            background:#FFFFFF !important;
        }
        #offerTemplatesBox table {
            min-width:1120px !important;
            border-collapse:separate !important;
            border-spacing:0 !important;
        }
        #offerTemplatesBox table thead th {
            background:#F8FAFC !important;
            color:#64748B !important;
            font-size:11px !important;
            font-weight:850 !important;
            letter-spacing:.08em !important;
            text-transform:uppercase !important;
            border-bottom:1px solid #E6EDF3 !important;
            padding:13px 12px !important;
        }
        #offerTemplatesBox table tbody td {
            color:#334155 !important;
            padding:12px !important;
            border-bottom:1px solid #EEF3F7 !important;
            vertical-align:top !important;
        }
        #offerTemplatesBox table tbody tr:hover td {
            background:#F8FAFC !important;
        }
        #offerTemplatesBox table tbody td:last-child {
            min-width:350px !important;
        }
        #offerTemplatesBox table tbody td:last-child .btn {
            display:inline-flex !important;
            align-items:center !important;
            justify-content:center !important;
            width:auto !important;
            min-width:84px !important;
            margin:3px 0 3px 6px !important;
        }
        @media (max-width:1180px) {
            #tabHistorie .template-actions {
                grid-template-columns:repeat(2,minmax(0,1fr)) !important;
            }
        }
        @media (max-width:700px) {
            #tabHistorie .template-actions,
            #offerTemplatesBox .template-toolbar {
                grid-template-columns:1fr !important;
                border-radius:28px !important;
            }
            #offerTemplatesBox table {
                min-width:980px !important;
            }
            #offerTemplatesBox table tbody td:last-child {
                min-width:260px !important;
            }
        }

#todayDashboardPanel .v2-invoice-age {
    display: grid;
    gap: 7px;
    margin-top: 10px;
    text-align: start;
    text-transform: none;
    letter-spacing: normal;
}
#todayDashboardPanel .v2-invoice-age-currency { display: grid; gap: 4px; }
#todayDashboardPanel .v2-invoice-age-track {
    display: flex;
    gap: 2px;
    height: 5px;
    overflow: hidden;
    border-radius: 5px;
}
#todayDashboardPanel .v2-invoice-age-track > i { flex-basis: 0; min-width: 2px; background: var(--invoice-age, #657283); }
#todayDashboardPanel .v2-invoice-age-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 10px;
    color: var(--mono-subtle, #546274);
    font-size: 11px;
    font-weight: 560;
    line-height: 1.4;
}
#todayDashboardPanel .v2-invoice-age-labels > span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}
#todayDashboardPanel .v2-invoice-age-labels > span,
#todayDashboardPanel .v2-invoice-age-labels > span > span {
    font-size: inherit;
    letter-spacing: normal;
    text-transform: none;
}
#todayDashboardPanel .v2-invoice-age-labels b { color: var(--mono-text, #282e35); white-space: nowrap; }
#todayDashboardPanel .v2-invoice-age-labels i {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: var(--invoice-age, #657283);
}
#todayDashboardPanel .v2-invoice-age [data-age="recent"] { --invoice-age: #547085; }
#todayDashboardPanel .v2-invoice-age [data-age="waiting"] { --invoice-age: #a7773d; }
#todayDashboardPanel .v2-invoice-age [data-age="late"] { --invoice-age: #a24935; }
#todayDashboardPanel .v2-invoice-age [data-age="unknown"] { --invoice-age: #8c939b; }

@media (max-width: 620px) {
    #todayDashboardPanel .v2-hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    #todayDashboardPanel .v2-hero-metrics > .v2-hero-metric:last-child {
        grid-column: 1 / -1 !important;
        border-inline-start: 0;
        border-top: 1px solid var(--mono-line, #e0dcd6);
    }
    #todayDashboardPanel .v2-operations-board > header p { display: block !important; }
}

#kalendarPanel .kal-grid-day :is(.kal-weekdays, .kal-days) {
    grid-template-columns: minmax(0, 1fr);
}

        /* VP pass: cleaner work report overview, editor and expandable records. */
        #tabVykazy .service-pbz-section {
            display:grid !important;
            gap:18px !important;
        }
        #tabVykazy .service-pbz-head {
            border-radius:28px !important;
            border:1px solid #DDE7F0 !important;
            background:
                radial-gradient(circle at -8% 14%, rgba(249,115,22,.14), transparent 30%),
                radial-gradient(circle at 108% 14%, rgba(59,130,246,.14), transparent 30%),
                linear-gradient(100deg,#FFF9F4 0%,#FFFFFF 44%,#F4F8FF 100%) !important;
            box-shadow:0 18px 42px rgba(15,23,42,.06) !important;
            padding:20px !important;
            align-items:flex-start !important;
        }
        #tabVykazy .service-pbz-title {
            color:#0F172A !important;
            font-size:24px !important;
            line-height:1.12 !important;
            letter-spacing:0 !important;
        }
        #tabVykazy .service-pbz-subtitle {
            color:#64748B !important;
            font-size:13px !important;
            line-height:1.45 !important;
            margin-top:6px !important;
        }
        #tabVykazy .history-toolbar {
            display:grid !important;
            grid-template-columns:repeat(4,minmax(150px,1fr)) !important;
            gap:10px !important;
            width:100% !important;
            align-items:end !important;
        }
        #tabVykazy .history-toolbar input,
        #tabVykazy .history-toolbar select {
            width:100% !important;
            min-height:44px !important;
            border-radius:16px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            box-shadow:none !important;
        }
        #tabVykazy .history-toolbar .btn {
            width:100% !important;
            min-height:44px !important;
            border-radius:16px !important;
        }
        #tabVykazy .history-quick-filters {
            display:flex !important;
            gap:10px !important;
            flex-wrap:wrap !important;
            padding:0 2px !important;
        }
        
        
        #workReportHistoryBox {
            display:grid !important;
            gap:18px !important;
        }
        #workReportHistoryBox .workflow-panel,
        #workReportHistoryBox .history-stats,
        #workReportHistoryBox .history-status-dashboard,
        #workReportHistoryBox .work-report-card-list,
        #workReportHistoryBox .work-report-history-workbench {
            margin:0 !important;
        }
        #workReportHistoryBox .history-stats {
            display:grid !important;
            grid-template-columns:repeat(4,minmax(0,1fr)) !important;
            gap:12px !important;
        }
        #workReportHistoryBox .history-status-dashboard {
            display:grid !important;
            grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
            gap:14px !important;
        }
        #workReportHistoryBox .history-stat,
        #workReportHistoryBox .history-status-panel,
        #workReportHistoryBox .history-status-kpi {
            border-radius:24px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            box-shadow:0 12px 28px rgba(15,23,42,.045) !important;
        }
        #workReportHistoryBox .history-status-panel {
            padding:18px !important;
        }
        #workReportHistoryBox .history-status-summary {
            display:grid !important;
            grid-template-columns:repeat(2,minmax(0,1fr)) !important;
            gap:12px !important;
        }
        #workReportHistoryBox .history-status-row {
            grid-template-columns:minmax(110px,.85fr) minmax(70px,.45fr) minmax(120px,1fr) minmax(110px,.7fr) !important;
            min-height:34px !important;
        }
        #workReportHistoryBox .history-status-bar {
            height:8px !important;
            background:#EEF3F8 !important;
            box-shadow:none !important;
        }
        #workReportHistoryBox .mobile-history-card.mobile-compact-record {
            border-radius:28px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            box-shadow:0 14px 30px rgba(15,23,42,.055) !important;
            overflow:hidden !important;
        }
        #workReportHistoryBox .mobile-history-card.mobile-compact-record::after {
            width:5px !important;
            border-radius:28px 0 0 28px !important;
        }
        #workReportHistoryBox .mobile-history-head {
            align-items:flex-start !important;
            gap:12px !important;
        }
        #workReportHistoryBox .mobile-history-total {
            border-radius:18px !important;
            background:#F3F6FA !important;
            color:#0F172A !important;
        }
        #workReportHistoryBox .mobile-meta-box,
        #workReportHistoryBox .history-preview-card {
            border-radius:18px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
        }
        #workReportHistoryBox .mobile-history-actions {
            gap:10px !important;
        }
        #workReportHistoryBox .mobile-history-actions .btn {
            border-radius:18px !important;
        }
        #workReportHistoryBox .work-report-history-workbench .table-wrapper {
            border-radius:24px !important;
            border:1px solid #DDE7F0 !important;
            box-shadow:0 14px 30px rgba(15,23,42,.045) !important;
            background:#FFFFFF !important;
        }
        #workReportHistoryBox .work-report-history-workbench table thead th {
            background:#F8FAFC !important;
            color:#64748B !important;
            font-size:11px !important;
            letter-spacing:.08em !important;
            text-transform:uppercase !important;
        }
        #workReportHistoryBox .work-report-history-workbench tbody tr:hover {
            background:#F8FAFC !important;
        }
        #workReportHistoryBox .desktop-history-detail {
            border-radius:28px !important;
            overflow:hidden !important;
            border:1px solid #DDE7F0 !important;
            box-shadow:0 16px 34px rgba(15,23,42,.06) !important;
            background:#FFFFFF !important;
        }
        #workReportHistoryBox .desktop-history-detail-head {
            background:
                radial-gradient(circle at -8% 16%, rgba(249,115,22,.16), transparent 32%),
                radial-gradient(circle at 108% 16%, rgba(59,130,246,.16), transparent 32%),
                linear-gradient(100deg,#FFF8F2 0%,#FFFFFF 45%,#F2F7FF 100%) !important;
            color:#0F172A !important;
        }
        #workReportHistoryBox .desktop-history-detail-head *,
        #workReportHistoryBox .desktop-history-detail-title {
            color:#0F172A !important;
        }
        #workReportHistoryBox .desktop-history-detail-sub {
            color:#64748B !important;
        }
        #tabVykazy .work-report-editor {
            display:grid !important;
            gap:18px !important;
            margin:0 !important;
        }
        #tabVykazy .work-report-editor-hero {
            border-radius:28px !important;
            border:1px solid #DDE7F0 !important;
            background:
                radial-gradient(circle at -8% 14%, rgba(249,115,22,.14), transparent 30%),
                radial-gradient(circle at 108% 14%, rgba(59,130,246,.14), transparent 30%),
                linear-gradient(100deg,#FFF9F4 0%,#FFFFFF 44%,#F4F8FF 100%) !important;
            box-shadow:0 18px 42px rgba(15,23,42,.06) !important;
            padding:20px !important;
            color:#0F172A !important;
            overflow:hidden !important;
        }
        #tabVykazy .work-report-editor-badge {
            background:#F1F5F9 !important;
            border:1px solid #DDE5EE !important;
            color:#334155 !important;
        }
        #tabVykazy .work-report-editor-title {
            color:#0F172A !important;
            font-size:24px !important;
            line-height:1.12 !important;
        }
        #tabVykazy .work-report-editor-subtitle {
            color:#64748B !important;
            font-size:13px !important;
        }
        #tabVykazy .work-report-editor-fields {
            grid-template-columns:repeat(4,minmax(0,1fr)) !important;
            gap:12px !important;
        }
        #tabVykazy .work-report-editor-fields .header-field {
            min-width:0 !important;
            margin:0 !important;
        }
        #tabVykazy .work-report-editor-fields .header-field[style*="grid-column"] {
            grid-column:1 / -1 !important;
        }
        #tabVykazy .work-report-editor .header-field label {
            color:#7A8797 !important;
            font-size:11px !important;
            font-weight:950 !important;
            letter-spacing:.12em !important;
            text-transform:uppercase !important;
            line-height:1.15 !important;
        }
        #tabVykazy .work-report-editor .header-field input,
        #tabVykazy .work-report-editor .header-field select {
            width:100% !important;
            height:48px !important;
            min-height:48px !important;
            padding:0 16px !important;
            box-sizing:border-box !important;
            border-radius:18px !important;
            border:1px solid #DDE7F0 !important;
            background-color:transparent !important;
            background-image:none !important;
            color:#0F172A !important;
            box-shadow:none !important;
            -webkit-appearance:none !important;
            appearance:none !important;
        }
        #tabVykazy .work-report-editor .header-field select {
            background-image:url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
            background-repeat:no-repeat !important;
            background-position:right 16px center !important;
            padding-right:42px !important;
        }
        #tabVykazy .work-report-number-row {
            grid-template-columns:minmax(0,1fr) minmax(104px,auto) !important;
            gap:10px !important;
            align-items:end !important;
        }
        #tabVykazy .work-report-number-row .btn {
            min-height:48px !important;
            border-radius:18px !important;
        }
        #tabVykazy .work-report-editor-body {
            grid-template-columns:minmax(0,1fr) minmax(300px,.42fr) !important;
            gap:14px !important;
        }
        #tabVykazy .work-report-panel {
            border-radius:28px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            box-shadow:0 14px 30px rgba(15,23,42,.045) !important;
            padding:18px !important;
        }
        #tabVykazy .work-report-meta-card,
        #tabVykazy .work-report-empty,
        #tabVykazy .work-report-order-item {
            border-radius:20px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
        }
        #tabVykazy .work-report-panel-actions .btn,
        #tabVykazy .work-report-export-actions .btn {
            border-radius:18px !important;
            min-height:44px !important;
        }
        @media (max-width:1180px) {
            #tabVykazy .history-toolbar,
            #workReportHistoryBox .history-stats,
            #workReportHistoryBox .history-status-dashboard,
            #workReportHistoryBox .history-status-summary {
                grid-template-columns:repeat(2,minmax(0,1fr)) !important;
            }
            #tabVykazy .work-report-editor-fields {
                grid-template-columns:repeat(2,minmax(0,1fr)) !important;
            }
            #tabVykazy .work-report-editor-body {
                grid-template-columns:1fr !important;
            }
        }
        @media (max-width:700px) {
            #tabVykazy .service-pbz-head,
            #tabVykazy .work-report-editor-hero,
            #tabVykazy .work-report-panel,
            #workReportHistoryBox .desktop-history-detail,
            #workReportHistoryBox .mobile-history-card.mobile-compact-record {
                border-radius:28px !important;
            }
            #tabVykazy .service-pbz-title,
            #tabVykazy .work-report-editor-title {
                font-size:22px !important;
            }
            #tabVykazy .history-toolbar,
            #workReportHistoryBox .history-stats,
            #workReportHistoryBox .history-status-dashboard,
            #workReportHistoryBox .history-status-summary,
            #tabVykazy .work-report-editor-fields,
            #tabVykazy .work-report-number-row {
                grid-template-columns:1fr !important;
            }

            #tabVykazy .work-report-editor-hero,
            #tabVykazy .work-report-panel {
                padding:18px !important;
            }
            #workReportHistoryBox .history-status-row {
                grid-template-columns:1fr !important;
            }
            #workReportHistoryBox .history-status-count,
            #workReportHistoryBox .history-status-bar { display:none !important; }
            #tabVykazy {
                overflow-x:hidden !important;
                max-width:100% !important;
                box-sizing:border-box !important;
            }
            #tabVykazy .service-pbz-section {
                overflow-x:hidden !important;
                max-width:100% !important;
                box-sizing:border-box !important;
                grid-template-columns:minmax(0,1fr) !important;
            }
            #tabVykazy .service-pbz-head {
                display:block !important;
                width:100% !important;
                max-width:100% !important;
                box-sizing:border-box !important;
                overflow:hidden !important;
            }
            #tabVykazy .work-report-editor,
            #tabVykazy .work-report-editor-hero {
                max-width:100% !important;
                width:100% !important;
                box-sizing:border-box !important;
            }
        }

        /* Servis/Revize PBZ pass: unified working catalog inputs and export controls. */
        #tabServis .service-pbz-section,
        #tabRevize .service-pbz-section {
            display:grid !important;
            gap:18px !important;
            border-radius:28px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            box-shadow:0 18px 42px rgba(15,23,42,.055) !important;
            padding:20px !important;
        }
        #tabServis .service-pbz-head,
        #tabRevize .service-pbz-head {
            margin:0 !important;
            border-radius:28px !important;
            border:1px solid #DDE7F0 !important;
            background:
                radial-gradient(circle at -8% 14%, rgba(249,115,22,.14), transparent 30%),
                radial-gradient(circle at 108% 14%, rgba(59,130,246,.14), transparent 30%),
                linear-gradient(100deg,#FFF9F4 0%,#FFFFFF 44%,#F4F8FF 100%) !important;
            box-shadow:0 16px 34px rgba(15,23,42,.05) !important;
            padding:20px !important;
            align-items:stretch !important;
        }
        #tabServis .service-pbz-title,
        #tabRevize .service-pbz-title {
            color:#0F172A !important;
            font-size:24px !important;
            line-height:1.12 !important;
            letter-spacing:0 !important;
            font-weight:900 !important;
        }
        #tabServis .service-pbz-subtitle,
        #tabRevize .service-pbz-subtitle {
            color:#64748B !important;
            font-size:13px !important;
            line-height:1.45 !important;
            margin-top:6px !important;
        }
        #tabServis .service-pbz-total,
        #tabRevize .service-pbz-total {
            min-width:220px !important;
            border-radius:22px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            color:#0F172A !important;
            text-align:left !important;
            padding:16px !important;
            box-shadow:0 12px 26px rgba(15,23,42,.04) !important;
        }
        #tabServis .service-pbz-total-label,
        #tabRevize .service-pbz-total-label {
            color:#7A8797 !important;
            font-size:10px !important;
            letter-spacing:.12em !important;
            font-weight:900 !important;
        }
        #tabServis .service-pbz-total-value,
        #tabRevize .service-pbz-total-value {
            color:#0F172A !important;
            font-size:26px !important;
            line-height:1.1 !important;
            font-weight:950 !important;
        }
        #tabServis .service-pbz-groups,
        #tabRevize .service-pbz-groups {
            display:grid !important;
            gap:14px !important;
        }
        #tabServis .service-pbz-group,
        #tabRevize .service-pbz-group {
            border-radius:24px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            overflow:hidden !important;
            box-shadow:0 12px 28px rgba(15,23,42,.04) !important;
        }
        #tabServis .service-pbz-group-title,
        #tabRevize .service-pbz-group-title {
            min-height:58px !important;
            padding:0 18px !important;
            border:0 !important;
            border-radius:0 !important;
            background:#F8FAFC !important;
            color:#0F172A !important;
            font-size:12px !important;
            letter-spacing:.09em !important;
            font-weight:950 !important;
        }
        #tabServis .service-pbz-group-title span:last-child,
        #tabRevize .service-pbz-group-title span:last-child {
            display:inline-flex !important;
            align-items:center !important;
            justify-content:center !important;
            width:30px !important;
            height:30px !important;
            border-radius:999px !important;
            background:#FFFFFF !important;
            border:1px solid #DDE7F0 !important;
            color:#64748B !important;
        }
        #tabServis .service-pbz-group.open .service-pbz-rows,
        #tabRevize .service-pbz-group.open .service-pbz-rows {
            display:grid !important;
            background:#FFFFFF !important;
            visibility:visible !important;
            height:auto !important;
            opacity:1 !important;
        }
        #tabServis .service-pbz-row,
        #tabRevize .service-pbz-row {
            display:grid !important;
            grid-template-columns:minmax(260px,1.7fr) minmax(140px,.8fr) minmax(120px,.62fr) minmax(130px,.68fr) !important;
            gap:12px !important;
            align-items:center !important;
            padding:14px 18px !important;
            border-top:1px solid #EEF3F8 !important;
            background:#FFFFFF !important;
        }
        #tabServis .service-pbz-row:hover,
        #tabRevize .service-pbz-row:hover {
            background:#F8FAFC !important;
        }
        #tabServis .service-pbz-name,
        #tabRevize .service-pbz-name {
            color:#0F172A !important;
            font-size:13px !important;
            line-height:1.38 !important;
            font-weight:750 !important;
        }
        #tabServis .service-pbz-price,
        #tabServis .service-pbz-qty,
        #tabRevize .service-pbz-price,
        #tabRevize .service-pbz-qty {
            min-width:0 !important;
        }
        #tabServis .revision-inline-unit,
        #tabRevize .revision-inline-unit {
            display:grid !important;
            grid-template-columns:minmax(0,1fr) auto !important;
            gap:8px !important;
            align-items:center !important;
            width:100% !important;
        }
        #tabServis .revision-inline-unit input,
        #tabServis .service-pbz-qty input,
        #tabRevize .revision-inline-unit input,
        #tabRevize .service-pbz-qty input {
            width:100% !important;
            height:44px !important;
            min-height:44px !important;
            padding:0 12px !important;
            box-sizing:border-box !important;
            border:1px solid #DDE7F0 !important;
            border-radius:16px !important;
            background:#FFFFFF !important;
            color:#0F172A !important;
            box-shadow:none !important;
            font-family:'Inter',sans-serif !important;
            font-size:14px !important;
            font-weight:750 !important;
            -webkit-appearance:none !important;
            appearance:none !important;
        }
        #tabServis .revision-inline-unit input:focus,
        #tabServis .service-pbz-qty input:focus,
        #tabRevize .revision-inline-unit input:focus,
        #tabRevize .service-pbz-qty input:focus {
            border-color:#9DB2C8 !important;
            box-shadow:0 0 0 4px rgba(59,130,246,.08) !important;
            outline:none !important;
        }
        #tabServis .revision-inline-unit-label,
        #tabRevize .revision-inline-unit-label {
            color:#64748B !important;
            font-size:11px !important;
            font-weight:900 !important;
            white-space:nowrap !important;
        }
        #tabServis .service-pbz-line-total,
        #tabRevize .service-pbz-line-total {
            color:#0F172A !important;
            font-size:15px !important;
            font-weight:950 !important;
            text-align:right !important;
        }
        #tabServis .servis-export-bar,
        #tabRevize .servis-export-bar {
            display:grid !important;
            grid-template-columns:repeat(4,minmax(150px,1fr)) !important;
            gap:10px !important;
            justify-content:stretch !important;
            border-radius:28px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            box-shadow:0 16px 36px rgba(15,23,42,.055) !important;
            padding:16px !important;
            margin-top:16px !important;
        }
        #tabServis .servis-export-bar .btn,
        #tabRevize .servis-export-bar .btn {
            width:100% !important;
            min-height:46px !important;
            border-radius:18px !important;
            border:1px solid #DDE7F0 !important;
            background:#FFFFFF !important;
            color:#0F172A !important;
            box-shadow:none !important;
            font-weight:900 !important;
            padding:10px 12px !important;
        }
        #tabServis .servis-export-bar .btn:nth-child(1),
        #tabRevize .servis-export-bar .btn:nth-child(1) {
            background:#0D1117 !important;
            border-color:#0D1117 !important;
            color:#FFFFFF !important;
        }
        #tabServis .servis-export-bar .btn:nth-child(3),
        #tabServis .servis-export-bar .btn:nth-child(4),
        #tabRevize .servis-export-bar .btn:nth-child(2) {
            background:#1F6F4A !important;
            border-color:#1F6F4A !important;
            color:#FFFFFF !important;
        }
        #tabServis .servis-export-bar .btn:nth-last-child(-n+2),
        #tabRevize .servis-export-bar .btn:nth-last-child(-n+2) {
            background:#F3F6FA !important;
            border-color:#DDE7F0 !important;
            color:#475569 !important;
        }
        @media (max-width:1180px) {
            #tabServis .service-pbz-row,
            #tabRevize .service-pbz-row {
                grid-template-columns:minmax(220px,1.4fr) minmax(140px,.8fr) minmax(110px,.6fr) minmax(120px,.62fr) !important;
            }
            #tabServis .servis-export-bar,
            #tabRevize .servis-export-bar {
                grid-template-columns:repeat(2,minmax(0,1fr)) !important;
            }
        }
        @media (max-width:700px) {
            #tabServis,
            #tabRevize {
                overflow-x:hidden;
                max-width:100%;
                box-sizing:border-box;
            }
            #tabServis .service-pbz-section,
            #tabRevize .service-pbz-section {
                grid-template-columns:minmax(0,1fr) !important;
                max-width:100% !important;
                box-sizing:border-box !important;
                overflow-x:hidden !important;
            }
            #tabServis .service-pbz-head,
            #tabRevize .service-pbz-head {
                display:block !important;
                width:100% !important;
                max-width:100% !important;
                box-sizing:border-box !important;
                overflow:hidden !important;
            }
            #tabServis .service-pbz-head > div:first-child,
            #tabRevize .service-pbz-head > div:first-child {
                margin-bottom:12px !important;
            }
            #tabServis .service-pbz-head > div:last-child,
            #tabRevize .service-pbz-head > div:last-child {
                display:grid !important;
                grid-template-columns:1fr !important;
                gap:10px !important;
                width:100% !important;
                box-sizing:border-box !important;
            }
            #tabServis .service-pbz-groups,
            #tabRevize .service-pbz-groups {
                min-width:0 !important;
                max-width:100% !important;
                width:100% !important;
            }
            #tabServis .service-pbz-row,
            #tabRevize .service-pbz-row {
                min-width:0 !important;
                max-width:100% !important;
            }
            #tabServis .service-pbz-section,
            #tabRevize .service-pbz-section,
            #tabServis .service-pbz-head,
            #tabRevize .service-pbz-head,
            #tabServis .service-pbz-group,
            #tabRevize .service-pbz-group,
            #tabServis .servis-export-bar,
            #tabRevize .servis-export-bar {
                border-radius:28px !important;
            }
            #tabServis .service-pbz-head,
            #tabRevize .service-pbz-head {
                padding:18px !important;
            }
            #tabServis .service-pbz-title,
            #tabRevize .service-pbz-title {
                font-size:22px !important;
            }
            #tabServis .service-pbz-total,
            #tabRevize .service-pbz-total {
                width:100% !important;
                min-width:0 !important;
            }
            #tabServis .service-pbz-row,
            #tabRevize .service-pbz-row,
            #tabServis .servis-export-bar,
            #tabRevize .servis-export-bar {
                grid-template-columns:1fr !important;
            }
            #tabServis .service-pbz-line-total,
            #tabRevize .service-pbz-line-total {
                text-align:left !important;
            }
            #tabRevize .service-pbz-group-title {
                font-size:9.5px !important;
                letter-spacing:.04em !important;
                align-items:center !important;
            }
            #tabRevize .service-pbz-group-title span:first-child {
                flex:1 !important;
                min-width:0 !important;
                overflow:hidden !important;
                text-overflow:ellipsis !important;
                white-space:nowrap !important;
            }
            #tabRevize .service-pbz-group-title span:last-child {
                flex-shrink:0 !important;
            }
            .of-pbz-add-custom {
                width:100% !important;
                max-width:100% !important;
                box-sizing:border-box !important;
            }
            .of-pbz-group-select {
                min-width:0 !important;
                width:100% !important;
                box-sizing:border-box !important;
            }
            .of-pbz-add-custom input[type="text"] {
                min-width:0 !important;
                box-sizing:border-box !important;
            }
        }

