@import '_content/Babylon.Blazor/Babylon.Blazor.kr5b2tqqv6.bundle.scp.css';
@import '_content/Blazor.Bootstrap/Blazor.Bootstrap.7t9tbfaemk.bundle.scp.css';
@import '_content/Blazored.Toast/Blazored.Toast.bundle.scp.css';

/* /Components/AssemblyPatternEditor.razor.rz.scp.css */
/* Wzór ułożenia (ASSEMBLY_PATERN). Kafelek = jedna pozycja cyklu:
   wypełniony -> produkt pokrywa ten rząd, pusty -> rząd pomijany.
   Kolory z palety Bootstrapa używanej w reszcie klienta, z jawnym
   fallbackiem, bo dialogi DevExpressa nie zawsze dziedziczą zmienne. */

.asm-pattern[b-1zsdqyfo6q] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.asm-pattern-tiles[b-1zsdqyfo6q] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.asm-pattern-tile[b-1zsdqyfo6q] {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-body-bg, #fff);
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color .12s ease, border-color .12s ease;
}

.asm-pattern-tile.is-filled[b-1zsdqyfo6q] {
    background: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    color: #fff;
    font-weight: 600;
}

.asm-pattern-tile.is-skipped[b-1zsdqyfo6q] {
    /* Przerywana ramka i skos w tle: pominięty rząd ma być czytelny także
       wtedy, gdy użytkownik nie rozróżnia odcieni wypełnienia. */
    border-style: dashed;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(108, 117, 125, .18) 0,
        rgba(108, 117, 125, .18) 2px,
        transparent 2px,
        transparent 5px);
}

.asm-pattern-tile:hover:not(:disabled)[b-1zsdqyfo6q] {
    border-color: var(--bs-primary, #0d6efd);
}

.asm-pattern-tile:disabled[b-1zsdqyfo6q],
.asm-pattern-step:disabled[b-1zsdqyfo6q] {
    cursor: default;
    opacity: .55;
}

.asm-pattern-footer[b-1zsdqyfo6q] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.asm-pattern-step[b-1zsdqyfo6q] {
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
}

.asm-pattern-step:hover:not(:disabled)[b-1zsdqyfo6q] {
    border-color: var(--bs-primary, #0d6efd);
    color: var(--bs-primary, #0d6efd);
}

.asm-pattern-count[b-1zsdqyfo6q] {
    font-size: 0.75rem;
    color: var(--bs-secondary-color, #6c757d);
    white-space: nowrap;
}

.asm-pattern-raw[b-1zsdqyfo6q] {
    margin-left: auto;
    font-size: 0.75rem;
    letter-spacing: .12em;
    color: var(--bs-secondary-color, #6c757d);
}

.asm-pattern-warning[b-1zsdqyfo6q] {
    font-size: 0.75rem;
    color: var(--bs-warning-text-emphasis, #997404);
}

/* Wariant do paska kalibracji w DrawingPopup — ten sam układ, mniejsza skala,
   bez odsuwania surowej wartości na prawy skraj (pasek jest wielokolumnowy). */
.asm-pattern--compact[b-1zsdqyfo6q] {
    gap: 3px;
    width: auto;
}

.asm-pattern--compact .asm-pattern-tile[b-1zsdqyfo6q] {
    width: 20px;
    height: 20px;
    font-size: 0.625rem;
    border-radius: 3px;
}

.asm-pattern--compact .asm-pattern-step[b-1zsdqyfo6q] {
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
}

.asm-pattern--compact .asm-pattern-raw[b-1zsdqyfo6q] {
    margin-left: 4px;
}
/* /Components/BackgroundInfo.razor.rz.scp.css */
/* Background selection styles */
.background-selection-section[b-6rwys2lrhi] {
    margin-bottom: 10px;
    padding: 0px;
}

.section-title[b-6rwys2lrhi] {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-align: left;
    margin-top: 5px;
    margin-bottom: 2px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 3px;
}

[b-6rwys2lrhi] .background-combobox {
    width: 100%;
}

[b-6rwys2lrhi] .background-combobox .dxbl-listbox {
    max-height: 300px;
    overflow-y: auto;
    border: 0px;
    border-radius: 4px;
    background-color: transparent;
}

.background-item[b-6rwys2lrhi] {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.background-item:hover[b-6rwys2lrhi] {
    background-color: #f5f5f5;
}

.background-item.workcopy-item[b-6rwys2lrhi] {
    background-color: #fff3e0;
    border-left: 3px solid #ff9800;
}

.background-item-header[b-6rwys2lrhi] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.background-name[b-6rwys2lrhi] {
    font-weight: 500;
    font-size: 12px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.workcopy-badge[b-6rwys2lrhi] {
    background-color: #ff9800;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    flex-shrink: 0;
}

.background-item-details[b-6rwys2lrhi] {
    font-size: 10px;
    line-height: 1.3;
}

[b-6rwys2lrhi] .text-muted {
    color: #999 !important;
    font-style: italic;
}

.no-backgrounds-message[b-6rwys2lrhi] {
    padding: 15px;
    text-align: center;
    color: #999;
    font-style: italic;
}
/* /Components/CalculationContent.razor.rz.scp.css */
[b-ttxtglzgc0] .products-selector-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bs-body-bg, #212529);
    color: var(--bs-body-color, #e5e5e5);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Top Panel */
[b-ttxtglzgc0] .top-panel {
    width: 100%;
    background-color: var(--bs-secondary-bg, #222222);
    border-bottom: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    padding: 8px 0;
    flex-shrink: 0;
    min-height: 55px;
    position: relative;
    z-index: 10;
}

/* Products Selection Toolbar Item */
[b-ttxtglzgc0] .products-selection-toolbar-item {
    margin-left: 10px;
}

[b-ttxtglzgc0] .products-selection-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background-color: var(--bs-tertiary-bg, #222426);
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 8px;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
}

[b-ttxtglzgc0] .products-selection-panel:hover {
    border-color: var(--bs-primary, #fe7109);
    background-color: rgba(254, 113, 9, 0.05);
}

[b-ttxtglzgc0] .products-selection-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary, #fe7109);
}

[b-ttxtglzgc0] .products-selection-icon svg {
    width: 20px;
    height: 20px;
}

[b-ttxtglzgc0] .products-selection-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

[b-ttxtglzgc0] .products-selection-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--bs-body-color, #e5e5e5);
}

/* Main Panel */
[b-ttxtglzgc0] .main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* Company List Panel (15%) */
[b-ttxtglzgc0] .company-list-panel {
    width: 15%;
    background-color: var(--bs-secondary-bg, #222222);
    border-right: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    padding: 20px 15px;
    overflow-y: auto;
}

    [b-ttxtglzgc0] .company-list-panel h3 {
        color: var(--bs-emphasis-color, #ffffff);
        margin-bottom: 20px;
        font-size: 16px;
        font-weight: 600;
    }


/* Scrollbar Styling */
[b-ttxtglzgc0]::-webkit-scrollbar {
    width: 6px;
}

[b-ttxtglzgc0]::-webkit-scrollbar-track {
    background: var(--bs-secondary-bg, #222222);
}

[b-ttxtglzgc0]::-webkit-scrollbar-thumb {
    background: var(--bs-border-color, rgba(229, 229, 229, 0.3));
    border-radius: 3px;
}

    [b-ttxtglzgc0]::-webkit-scrollbar-thumb:hover {
        background: var(--bs-primary, #fe7109);
    }


/* No selection state */
.no-selection[b-ttxtglzgc0] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    text-align: center;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
}

    .no-selection .empty-icon[b-ttxtglzgc0] {
        font-size: 48px;
        margin-bottom: 20px;
    }

    .no-selection h3[b-ttxtglzgc0] {
        color: var(--bs-emphasis-color, #ffffff);
        margin-bottom: 10px;
    }

    .no-selection p[b-ttxtglzgc0] {
        margin: 0;
    }

.calculation-header[b-ttxtglzgc0] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calculation-title h2[b-ttxtglzgc0] {
    margin: 0;
    color: #333;
}

.calculation-item-count[b-ttxtglzgc0] {
    color: #666;
    font-size: 14px;
    margin-left: 10px;
}

/* DxToolbar Styles */
[b-ttxtglzgc0] .calculation-toolbar {
    background: var(--bs-secondary-bg, #222222);
    border-bottom: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
}

[b-ttxtglzgc0] .calculation-toolbar .dxbl-toolbar-item {
    color: var(--bs-body-color, #e5e5e5);
}

[b-ttxtglzgc0] .calculation-toolbar .dxbl-toolbar-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Category Toolbar Items */
[b-ttxtglzgc0] .category-toolbar-item {
    margin: 0 4px;
}

[b-ttxtglzgc0] .category-btn-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 45px;
    padding: 8px 16px;
    background: none;
    border: 2px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 8px;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    cursor: pointer;
    transition: all 0.3s ease;
}

[b-ttxtglzgc0] .category-btn-content:hover {
    border-color: var(--bs-border-color, rgba(229, 229, 229, 0.4));
    background-color: rgba(254, 113, 9, 0.05);
}

[b-ttxtglzgc0] .category-btn-content.selected {
    border-color: var(--bs-primary, #fe7109);
    background-color: rgba(254, 113, 9, 0.1);
    color: var(--bs-primary, #fe7109);
}

[b-ttxtglzgc0] .category-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[b-ttxtglzgc0] .category-svg-icon {
    width: 24px;
    height: 24px;
}

[b-ttxtglzgc0] .category-title {
    font-size: 12px;
    font-weight: 500;
}

[b-ttxtglzgc0] .category-badge {
    background-color: var(--bs-primary, #fe7109);
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* Hidden-row counter on a category tile. Deliberately quieter than the main badge: it is a
   warning that something is out of sight, not a second count competing with the first. */
[b-ttxtglzgc0] .category-badge-hidden {
    background-color: transparent;
    /* Dark amber, not --bs-warning: the yellow disappears on the grey tile/toolbar background. */
    border: 1px dashed #a35200;
    color: #a35200;
    border-radius: 10px;
    padding: 1px 6px;
    margin-left: 4px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Selection counter in the toolbar. Reads as plain text until something is actually selected —
   the point is that a non-zero selection is impossible to miss, not that the widget is loud. */
[b-ttxtglzgc0] .selection-summary {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 13px;
    line-height: normal;
    color: var(--bs-secondary-color, #a0a0a0);
    white-space: nowrap;
}

[b-ttxtglzgc0] .selection-summary.has-selection {
    color: var(--bs-primary, #fe7109);
    background: rgba(254, 113, 9, 0.12);
    font-weight: 600;
}

[b-ttxtglzgc0] .selection-summary-item {
    display: flex;
    align-items: center;
    align-self: center;
}

/* The toolbar puts its own wrapper between the item and our template, and that wrapper is what
   was pinning the counter to the top of the strip. Centring the item alone never reached it. */
[b-ttxtglzgc0] .selection-summary-item > * {
    display: flex;
    align-items: center;
}

[b-ttxtglzgc0] .offers-toolbar-item {
    display: flex;
    align-items: center;
}

[b-ttxtglzgc0] .offers-btn-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    cursor: pointer;
    line-height: normal;
}

[b-ttxtglzgc0] .offers-badge {
    background-color: var(--bs-primary, #fe7109);
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* Primary button styling for Create Offer */
[b-ttxtglzgc0] .toolbar-btn-primary {
    background: linear-gradient(180deg, var(--bs-primary, #fe7109) 0%, #e56308 100%) !important;
    border-color: var(--bs-primary, #fe7109) !important;
    color: white !important;
    border-radius: 6px;
}

[b-ttxtglzgc0] .toolbar-btn-primary:hover {
    background: linear-gradient(180deg, #ff8a3a 0%, var(--bs-primary, #fe7109) 100%) !important;
    box-shadow: 0 2px 8px rgba(254, 113, 9, 0.4);
}

/* Category selected state for toolbar item */
[b-ttxtglzgc0] .category-selected {
    background-color: rgba(254, 113, 9, 0.15);
}

/* Legacy calculation-actions support */
.calculation-actions[b-ttxtglzgc0] {
    display: flex;
    gap: 10px;
}

.empty-calculation[b-ttxtglzgc0] {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 8px;
    margin: 20px;
}

.empty-icon[b-ttxtglzgc0] {
    font-size: 48px;
    margin-bottom: 20px;
}

.calculation-content[b-ttxtglzgc0] {
    background: white;
    border-radius: 8px;
    padding: 0px;
    margin: 0px;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

/* Filter Bar - Company dropdown */
[b-ttxtglzgc0] .filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bs-secondary-bg, #2d2d2d);
    border-radius: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

[b-ttxtglzgc0] .filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

[b-ttxtglzgc0] .filter-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    white-space: nowrap;
}

[b-ttxtglzgc0] .company-filter-combo {
    min-width: 200px;
    max-width: 300px;
}

[b-ttxtglzgc0] .filter-summary {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* "7 pustych ukrytych" + the link that shows them. Sits next to the count it qualifies, because
   apart from that count it means nothing. */
[b-ttxtglzgc0] .summary-hidden {
    font-size: 13px;
    color: #a35200;
    font-weight: 600;
    white-space: nowrap;
}

[b-ttxtglzgc0] .summary-link {
    background: none;
    border: none;
    padding: 0 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bs-primary, #fe7109);
    text-decoration: underline;
    cursor: pointer;
}

[b-ttxtglzgc0] .summary-link:hover {
    color: var(--bs-primary, #fe7109);
    filter: brightness(1.2);
}

[b-ttxtglzgc0] .summary-count {
    font-size: 13px;
    color: var(--bs-primary, #fe7109);
    font-weight: 500;
    background: rgba(254, 113, 9, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
}

/* Unified Grid Styles */
[b-ttxtglzgc0] .unified-grid {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

[b-ttxtglzgc0] .calculation-grid {
    width: 100%;
    height: 100%;
}

[b-ttxtglzgc0] .calculation-grid .dxbl-grid-group-row {
    background: linear-gradient(90deg, var(--bs-tertiary-bg, #2a2a2a) 0%, var(--bs-secondary-bg, #222222) 100%);
    font-weight: 600;
    color: var(--bs-primary, #fe7109);
}

[b-ttxtglzgc0] .calculation-grid .dxbl-grid-group-row td {
    padding: 10px 16px;
    border-bottom: 2px solid var(--bs-primary, #fe7109);
}

/* Focused/active grid row — green, whether or not it is also ticked.
   DevExpress paints a focused row with white text over a primary-coloured ::before, and a focused
   AND selected row with its own td background. The old rule reached for `.calculation-grid .dxbl-grid`
   — but that is one element, not two, so it never matched: a ticked focused row (after "Zaznacz")
   lost its green under the selection tint. The theme's overlay is switched off and the text colour
   pinned, so the green is the only highlight on the row. */
[b-ttxtglzgc0] .calculation-grid .dxbl-grid-table > tbody > tr.dxbl-grid-focused-row:not(.dxbl-grid-group-row) > td:not(.dxbl-grid-empty-cell):not(.dxbl-grid-indent-cell) {
    background-color: rgba(40, 167, 69, 0.28) !important;
    color: var(--bs-body-color, #212529) !important;
}

[b-ttxtglzgc0] .calculation-grid .dxbl-grid-table > tbody > tr.dxbl-grid-focused-row:not(.dxbl-grid-group-row) > td:first-child {
    box-shadow: inset 4px 0 0 #28a745;
}

[b-ttxtglzgc0] .calculation-grid .dxbl-grid-table > tbody > tr.dxbl-grid-focused-row > td::before {
    display: none !important;
}

/* Product-set group row: the theme's focus colour is white, and on this light-grey gradient a
   focused (clicked) group header became unreadable. Keep its own colours in every state. */
[b-ttxtglzgc0] .calculation-grid .dxbl-grid-table > tbody > tr.dxbl-grid-group-row > td {
    color: var(--bs-primary, #fe7109) !important;
    background-color: transparent !important;
}

[b-ttxtglzgc0] .calculation-grid .dxbl-grid-table > tbody > tr.dxbl-grid-group-row.dxbl-grid-focused-row > td {
    background-color: rgba(40, 167, 69, 0.12) !important;
}

/* Mobile responsive for filter bar */
@media (max-width: 768px) {
    [b-ttxtglzgc0] .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    [b-ttxtglzgc0] .filter-item {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    [b-ttxtglzgc0] .company-filter-combo {
        min-width: 100%;
        max-width: 100%;
    }

    [b-ttxtglzgc0] .filter-summary {
        margin-left: 0;
        justify-content: center;
    }

    /* Hide Unit column on mobile */
    [b-ttxtglzgc0] .calculation-grid .unit-column,
    [b-ttxtglzgc0] .calculation-grid td.unit-column,
    [b-ttxtglzgc0] .calculation-grid th.unit-column {
        display: none !important;
    }
}

.product-set-type-group[b-ttxtglzgc0] {
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.company-group[b-ttxtglzgc0] {
    margin-left: 20px;
    border-left: 3px solid #007bff;
    margin-bottom: 20px;
}

.product-set-group[b-ttxtglzgc0] {
    margin-left: 0px;
    border-left: 2px solid #28a745;
    margin-bottom: 15px;
    width:100%;
}

.group-header[b-ttxtglzgc0] {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.product-set-type-header[b-ttxtglzgc0] {
    background: #007bff;
    color: white;
}

.company-header[b-ttxtglzgc0] {
    background: #6c757d;
    color: white;
}

.product-set-header[b-ttxtglzgc0] {
    background: #28a745;
    color: white;
    cursor: pointer;
    user-select: none;
}

.product-set-header:hover[b-ttxtglzgc0] {
    background: #218838;
}

.expand-icon[b-ttxtglzgc0] {
    margin-right: 10px;
    font-size: 14px;
    transition: transform 0.2s ease;
    display: inline-block;
    width: 16px;
    text-align: center;
}

.group-checkbox[b-ttxtglzgc0] {
    margin-right: 15px;
}

.group-title[b-ttxtglzgc0] {
    margin: 0;
    flex-grow: 1;
}

.group-count[b-ttxtglzgc0] {
    font-size: 12px;
    opacity: 0.8;
}

.products-table[b-ttxtglzgc0] {
    padding: 15px;
}

    .products-table table[b-ttxtglzgc0] {
        width: 100%;
        border-collapse: collapse;
    }

    .products-table th[b-ttxtglzgc0],
    .products-table td[b-ttxtglzgc0] {
        padding: 8px 12px;
        text-align: left;
        border-bottom: 1px solid #dee2e6;
        vertical-align: middle;
    }

    .products-table th[b-ttxtglzgc0] {
        background-color: #f8f9fa;
        font-weight: 600;
        color: #495057;
    }

    .products-table tbody tr:hover[b-ttxtglzgc0] {
        background-color: #f8f9fa;
    }

.quantity-input[b-ttxtglzgc0] {
    width: 70px;
}

.products-grid[b-ttxtglzgc0] {
    padding: 15px;
    width: 100%;
    min-height: 0;
}


[b-ttxtglzgc0] .qty-column {
    display: flex;    
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

[b-ttxtglzgc0] .quantity-input-grid {
    width: 105px;
    min-width: 70px;
}

[b-ttxtglzgc0] .btn-xs {
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.2;
    border-radius: 3px;
}


/* Grid cell styling */

.offer-form[b-ttxtglzgc0] {
    padding: 20px;
}

/* Offer Success Modal Styles */
.offer-success-content[b-ttxtglzgc0] {
    padding: 30px;
    text-align: center;
}

.success-icon[b-ttxtglzgc0] {
    margin-bottom: 20px;
}

.action-buttons[b-ttxtglzgc0] {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .btn[b-ttxtglzgc0] {
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-success[b-ttxtglzgc0] {
    color: #28a745 !important;
}

.fa-4x[b-ttxtglzgc0] {
    font-size: 4rem;
}

.me-2[b-ttxtglzgc0] {
    margin-right: 0.5rem !important;
}

.mt-4[b-ttxtglzgc0] {
    margin-top: 1.5rem !important;
}

.mb-3[b-ttxtglzgc0] {
    margin-bottom: 1rem !important;
}

@media (max-width: 768px) {
    .offer-success-content[b-ttxtglzgc0] {
        padding: 20px;
    }

    .action-buttons[b-ttxtglzgc0] {
        flex-direction: column;
        align-items: center;
    }

    .action-buttons .btn[b-ttxtglzgc0] {
        width: 200px;
    }
}

/* Offer Modal Overlay */
.offer-modal-overlay[b-ttxtglzgc0] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    backdrop-filter: blur(4px);
}

.offer-modal-card[b-ttxtglzgc0] {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.offer-modal-header[b-ttxtglzgc0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #4CBB17 0%, #3a9614 100%);
    color: white;
}

.offer-modal-header h2[b-ttxtglzgc0] {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.offer-modal-close[b-ttxtglzgc0] {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.offer-modal-close:hover[b-ttxtglzgc0] {
    background: rgba(255, 255, 255, 0.3);
}

.offer-modal-body[b-ttxtglzgc0] {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    background: #f8f9fa;
}

.offer-modal-footer[b-ttxtglzgc0] {
    display: flex;
    gap: 15px;
    padding: 16px 24px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.offer-modal-footer .btn-cancel[b-ttxtglzgc0] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.offer-modal-footer .btn-cancel:hover[b-ttxtglzgc0] {
    background: #f9fafb;
    border-color: #d1d5db;
}

.offer-modal-footer .btn-create-offer[b-ttxtglzgc0] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4CBB17 0%, #3a9614 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(76, 187, 23, 0.35);
}

.offer-modal-footer .btn-create-offer:hover[b-ttxtglzgc0] {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 187, 23, 0.45);
}

/* Product Summary Section */
.offer-summary-section[b-ttxtglzgc0] {
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.offer-summary-header[b-ttxtglzgc0] {
    color: #166534;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #86efac;
}

.offer-summary-grid[b-ttxtglzgc0] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.offer-summary-row[b-ttxtglzgc0] {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    font-size: 13px;
}

.offer-summary-total[b-ttxtglzgc0] {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 10px;
    background: #4CBB17;
    color: white;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 13px;
}

.offer-summary-type[b-ttxtglzgc0] {
    color: #1e293b;
    font-weight: 500;
}

.offer-summary-products[b-ttxtglzgc0] {
    color: #475569;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-summary-total .offer-summary-type[b-ttxtglzgc0],
.offer-summary-total .offer-summary-products[b-ttxtglzgc0] {
    color: white;
}

/* Compact Form Layout */
[b-ttxtglzgc0] .offer-form-layout {
    background: white;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

[b-ttxtglzgc0] .offer-form-layout .dxbl-fl-group {
    margin-bottom: 8px;
}

[b-ttxtglzgc0] .offer-form-layout .dxbl-fl-item {
    margin-bottom: 4px;
}

/* Grid columns are flex items: without min-width:0 an editor's intrinsic width
   pushes the last column of a row (e.g. the postcode) past the card's right edge. */
[b-ttxtglzgc0] .offer-form-layout .dxbl-fl-item,
[b-ttxtglzgc0] .offer-form-layout .dxbl-fl-ctrl {
    min-width: 0;
}

[b-ttxtglzgc0] .offer-form-layout .dxbl-fl-ctrl > * {
    width: 100%;
    max-width: 100%;
}

[b-ttxtglzgc0] .offer-form-layout .dxbl-fl-cpt {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 2px;
    font-weight: 500;
}

.offer-checkbox-label[b-ttxtglzgc0] {
    font-size: 13px;
    color: #374151;
}

/* Specification dialog styles moved to SpecificationDialog.razor.css with the dialog itself. */

/* Responsive adjustments */
@media (max-width: 600px) {
    .offer-modal-card[b-ttxtglzgc0] {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .offer-modal-footer[b-ttxtglzgc0] {
        flex-direction: column;
    }

    .offer-summary-row[b-ttxtglzgc0],
    .offer-summary-total[b-ttxtglzgc0] {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .offer-summary-count[b-ttxtglzgc0],
    .offer-summary-value[b-ttxtglzgc0] {
        text-align: left;
    }
}

/* Offer Success Dialog */
[b-ttxtglzgc0] .offer-success-dialog-content {
    padding: 20px;
    text-align: center;
}

[b-ttxtglzgc0] .offer-success-dialog-content .success-header {
    margin-bottom: 24px;
}

[b-ttxtglzgc0] .offer-success-dialog-content .success-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(40, 167, 69, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(40, 167, 69, 0.3);
}

[b-ttxtglzgc0] .offer-success-dialog-content .success-icon-wrapper i {
    font-size: 28px;
    color: #28a745;
}

[b-ttxtglzgc0] .offer-success-dialog-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bs-body-color, #e5e5e5);
}

[b-ttxtglzgc0] .offer-success-dialog-content p {
    margin: 0;
    color: var(--bs-secondary-color, #adb5bd);
    font-size: 0.9rem;
}

[b-ttxtglzgc0] .offer-success-dialog-content .success-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Features of product sets (docs/product_codes/impl_plan.md §6.2). */
[b-ttxtglzgc0] .features-missing-link {
    font-size: 0.75rem;
    padding: 0;
}


/* Row text colour, not a theme colour — a focused row is highlighted, and a coloured link on it
   disappears. Recognisable as a link by the dotted underline. */
[b-ttxtglzgc0] .features-label-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.75rem;
    color: inherit;
    opacity: 0.8;
    text-align: left;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
    cursor: pointer;
}

[b-ttxtglzgc0] .features-label-link:hover {
    opacity: 1;
    text-decoration-style: solid;
}
/* /Components/CalculationFeaturesDialog.razor.rz.scp.css */
.cf-body[b-2zg3w8ywqq] {
    min-height: 160px;
    padding: 4px 2px;
}

.cf-state[b-2zg3w8ywqq] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #95a5a6;
    padding: 32px 16px;
}

.cf-state.small[b-2zg3w8ywqq] {
    justify-content: flex-start;
    padding: 16px 0;
}

.cf-sets[b-2zg3w8ywqq] {
    font-weight: 600;
    font-size: 1rem;
}

.cf-muted[b-2zg3w8ywqq] {
    color: #8a949e;
    font-size: 0.82rem;
}

.cf-editor[b-2zg3w8ywqq] {
    margin: 14px 0;
}

.cf-info[b-2zg3w8ywqq] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #5f6b76;
    font-size: 0.85rem;
}

.cf-footer[b-2zg3w8ywqq] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}
/* /Components/CanvasZoomer.razor.rz.scp.css */
.canvas-zoomer-container[b-qhw25jrc08] {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

.zoom-controls-section[b-qhw25jrc08] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zoom-label[b-qhw25jrc08] {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin-right: 4px;
}

.zoom-buttons-group[b-qhw25jrc08] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.zoom-display[b-qhw25jrc08] {
    min-width: 45px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    padding: 0 8px;
}

.scale-measurement-section[b-qhw25jrc08] {
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 1px solid #e0e0e0;
    padding-left: 20px;
}

.scale-display[b-qhw25jrc08] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.scale-label[b-qhw25jrc08] {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.scale-value[b-qhw25jrc08] {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    min-width: 80px;
}

[b-qhw25jrc08] .zoom-btn,
[b-qhw25jrc08] .scale-measure-btn {
    border-radius: 4px !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
    min-width: 32px;
}

[b-qhw25jrc08] .zoom-btn:hover,
[b-qhw25jrc08] .scale-measure-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Ikona przyciągania do punktów z PDF-a: magnes z napisem "PDF" obok.
   ::deep, bo element <i> renderuje DevExpress wewnątrz przycisku i nie ma atrybutu
   zakresu komponentu — tak samo jak reguły .scale-measure-btn wyżej.

   Napis stoi OBOK glifu, nie na nim, i jest w currentColor — czyli dokładnie w tym
   samym kolorze co magnes, wprost na tle przycisku. Wersja z plakietką na glifie
   wymagałaby wypełnienia w kolorze tła przycisku, którego CSS tutaj nie zna;
   `background: currentColor` tego nie rozwiązuje, bo currentColor rozwija się do
   własnego `color` pseudoelementu — tło i litery wychodzą wtedy jednym kolorem
   i widać goły prostokąt. */
[b-qhw25jrc08] .pdf-snap-icon {
    position: relative;
    /* Napis wychodzi poza pole glifu; przycięcie zjadłoby jego brzeg. */
    overflow: visible;
    /* Miejsce na napis po prawej stronie magnesu. */
    padding-right: 15px;
}

[b-qhw25jrc08] .pdf-snap-icon::after {
    content: "PDF";
    position: absolute;
    right: 0;
    bottom: -1px;
    font-family: system-ui, "Segoe UI", sans-serif;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

@media (max-width: 768px) {
    .canvas-zoomer-container[b-qhw25jrc08] {
        flex-direction: column;
        gap: 12px;
        padding: 8px;
    }

    .zoom-label[b-qhw25jrc08] {
        display: none;
    }

    .scale-measurement-section[b-qhw25jrc08] {
        border-left: none;
        border-top: 1px solid #e0e0e0;
        padding-left: 0;
        padding-top: 12px;
    }
}
/* /Components/ColourSelector.razor.rz.scp.css */
/* ColourSelector Component - Uses shared inspector styles from app.scss */
/* This file only contains component-specific overrides */

/* Component uses these shared classes from app.scss:
   - .inspector-container
   - .inspector-form-grid
   - .inspector-label / .inspector-label-inline
   - .inspector-dx-spinner
*/

/* Colour item in dropdown */
.colour-item[b-zytd2fhg2j] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

/* Colour swatch preview */
.colour-swatch[b-zytd2fhg2j] {
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Ensure combo box fits nicely */
[b-zytd2fhg2j] .colour-combo {
    min-width: 180px;
}

[b-zytd2fhg2j] .colour-combo .dx-texteditor {
    border-radius: 4px;
}
/* /Components/CompactPictureInfo.razor.rz.scp.css */
.compact-picture-info[b-2pria05vcs] {
    padding: 8px 10px;
    background-color: inherit;
    border-top: 1px solid #e0e0e0;
}

.compact-info-text[b-2pria05vcs] {
    font-size: 11px;
    color: #666;
    line-height: 1.2;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[b-2pria05vcs] .text-muted {
    color: #999 !important;
    font-style: italic;
}
/* /Components/CropConfirmationDialog.razor.rz.scp.css */
.crop-preview-container[b-atots2k6lu] {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    overflow: hidden;
}

.preview-info[b-atots2k6lu] {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.info-item[b-atots2k6lu] {
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.preview-image-container[b-atots2k6lu] {
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    overflow: hidden;
}

.preview-image[b-atots2k6lu] {
    text-align: center;
    max-width: 100%;
    max-height: 100%;
}

.preview-image img[b-atots2k6lu] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.preview-actions[b-atots2k6lu] {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
/* /Components/DropOutletsPanel.razor.rz.scp.css */
.dropout-panel[b-3owlamqpdv] {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 6px;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    font-size: 0.875rem;
}

.dropout-panel.compact[b-3owlamqpdv] {
    margin-top: 0;
    padding: 4px 8px;
    border: none;
    background: transparent;
}

.dropout-header[b-3owlamqpdv] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.dropout-title[b-3owlamqpdv] {
    font-weight: 600;
}

.dropout-total[b-3owlamqpdv] {
    color: var(--bs-secondary-color, #6c757d);
}

.dropout-table[b-3owlamqpdv] {
    width: 100%;
    border-collapse: collapse;
}

.dropout-table th[b-3owlamqpdv] {
    font-weight: 500;
    color: var(--bs-secondary-color, #6c757d);
    text-align: left;
    padding: 2px 6px;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.dropout-table td[b-3owlamqpdv] {
    padding: 3px 6px;
    vertical-align: middle;
}

.dropout-table .num[b-3owlamqpdv] {
    text-align: right;
    white-space: nowrap;
}

.dropout-table tr.pending td[b-3owlamqpdv] {
    background: var(--bs-warning-bg-subtle, #fff3cd);
}

.dropout-stepper[b-3owlamqpdv] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.step-btn[b-3owlamqpdv],
.reset-btn[b-3owlamqpdv] {
    min-width: 26px;
    height: 26px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 4px;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    line-height: 1;
    cursor: pointer;
}

.step-btn:disabled[b-3owlamqpdv] {
    opacity: 0.4;
    cursor: default;
}

.step-btn:not(:disabled):hover[b-3owlamqpdv],
.reset-btn:hover[b-3owlamqpdv] {
    border-color: var(--bs-primary, #0d6efd);
}

.step-value[b-3owlamqpdv] {
    min-width: 22px;
    text-align: center;
    font-weight: 600;
}

.step-value.auto[b-3owlamqpdv] {
    color: var(--bs-secondary-color, #6c757d);
    font-weight: 400;
}

.dropout-state[b-3owlamqpdv] {
    white-space: nowrap;
}

.chip[b-3owlamqpdv] {
    display: inline-block;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    line-height: 18px;
}

.chip-auto[b-3owlamqpdv] {
    background: var(--bs-secondary-bg, #e9ecef);
    color: var(--bs-secondary-color, #6c757d);
}

.chip-user[b-3owlamqpdv] {
    background: var(--bs-primary-bg-subtle, #cfe2ff);
    color: var(--bs-primary-text-emphasis, #052c65);
}

.auto-ref[b-3owlamqpdv] {
    margin-left: 6px;
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.75rem;
}

.reset-btn[b-3owlamqpdv] {
    margin-left: 4px;
    min-width: 22px;
    height: 22px;
}

.warn[b-3owlamqpdv] {
    margin-left: 6px;
    color: var(--bs-warning-text-emphasis, #997404);
    cursor: help;
}

.dropout-warning[b-3owlamqpdv] {
    margin-top: 6px;
    color: var(--bs-danger-text-emphasis, #842029);
}

.dropout-hint[b-3owlamqpdv] {
    margin-top: 6px;
    color: var(--bs-secondary-color, #6c757d);
    font-style: italic;
}

.dropout-panel.overlay[b-3owlamqpdv] {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: auto;
    max-width: calc(100% - 16px);
    padding: 6px 10px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.dropout-overlay-label[b-3owlamqpdv] {
    font-size: 0.75rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 2px;
}
/* /Components/EdgeCalculatorPanel.razor.rz.scp.css */
.ecalc-panel[b-o95ae5hozs] {
    /* One hue per quantity, shared by the field badge and its side or arc in the drawing. */
    --ecalc-a: #1f6feb;
    --ecalc-b: #1a8a4a;
    --ecalc-c: #d9600b;
    --ecalc-alpha: #8a3ffc;
    --ecalc-beta: #5f6b7a;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    font-size: 0.85rem;
}

.ecalc-header[b-o95ae5hozs] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 10px;
    background: var(--bs-secondary-bg, #e9ecef);
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.ecalc-link[b-o95ae5hozs] {
    border: none;
    background: none;
    padding: 0 2px;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--bs-link-color, #0d6efd);
    cursor: pointer;
}

.ecalc-body[b-o95ae5hozs] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ecalc-hint[b-o95ae5hozs] {
    font-size: 0.75rem;
    color: var(--bs-secondary-color, #6c757d);
}

/* ===== drawing ===== */

.ecalc-drawing[b-o95ae5hozs] {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 6px;
    background: var(--bs-body-bg, #fff);
    padding: 2px;
}

.ecalc-drawing svg[b-o95ae5hozs] {
    display: block;
    width: 100%;
    height: auto;
}

.ecalc-right-angle[b-o95ae5hozs] {
    fill: none;
    stroke: var(--bs-secondary-color, #6c757d);
    stroke-width: 1.5;
}

.ecalc-seg[b-o95ae5hozs] {
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-width 0.12s;
}

.ecalc-seg.dashed[b-o95ae5hozs] {
    stroke-dasharray: 7 5;
}

.ecalc-seg.hot[b-o95ae5hozs],
.ecalc-arc.hot[b-o95ae5hozs] {
    stroke-width: 6;
}

.ecalc-hit[b-o95ae5hozs] {
    stroke: transparent;
    stroke-width: 18;
    cursor: pointer;
}

.ecalc-arc[b-o95ae5hozs] {
    fill: none;
    stroke-width: 2;
    cursor: pointer;
}

.ecalc-arc.dashed[b-o95ae5hozs] {
    stroke-dasharray: 4 3;
}

.ecalc-label[b-o95ae5hozs] {
    cursor: pointer;
}

/* ===== fields ===== */

.ecalc-rows[b-o95ae5hozs] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ecalc-row[b-o95ae5hozs] {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 84px 18px 28px;
    gap: 6px;
    align-items: center;
    padding: 3px 4px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.ecalc-row.hot[b-o95ae5hozs] {
    border-color: var(--bs-border-color, #dee2e6);
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.ecalc-sym[b-o95ae5hozs] {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
}

.ecalc-name[b-o95ae5hozs] {
    line-height: 1.15;
    margin: 0;
}

.ecalc-name small[b-o95ae5hozs] {
    display: block;
    font-size: 0.68rem;
    color: var(--bs-secondary-color, #6c757d);
}

.ecalc-input[b-o95ae5hozs] {
    width: 100%;
    box-sizing: border-box;
    text-align: right;
    font-variant-numeric: tabular-nums;
    padding: 3px 6px;
    border: 1px solid;
    border-radius: 3px;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
}

.ecalc-row.given .ecalc-input[b-o95ae5hozs] {
    border-width: 2px;
    padding: 2px 5px;
    font-weight: 600;
}

.ecalc-row.computed .ecalc-input[b-o95ae5hozs] {
    border-style: dashed;
    background: var(--bs-secondary-bg, #e9ecef);
}

.ecalc-unit[b-o95ae5hozs] {
    font-size: 0.75rem;
    color: var(--bs-secondary-color, #6c757d);
}

.ecalc-use[b-o95ae5hozs] {
    width: 28px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 3px;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    cursor: pointer;
}

.ecalc-use:hover:not(:disabled)[b-o95ae5hozs] {
    border-color: #4CAF50;
    color: #4CAF50;
}

.ecalc-use:disabled[b-o95ae5hozs] {
    opacity: 0.35;
    cursor: default;
}

.ecalc-legend[b-o95ae5hozs] {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.7rem;
    color: var(--bs-secondary-color, #6c757d);
}

.ecalc-legend span[b-o95ae5hozs] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ecalc-sw[b-o95ae5hozs] {
    width: 18px;
    height: 12px;
    border: 2px solid var(--bs-secondary-color, #6c757d);
    border-radius: 2px;
}

.ecalc-sw-computed[b-o95ae5hozs] {
    border-width: 1px;
    border-style: dashed;
    background: var(--bs-secondary-bg, #e9ecef);
}

.ecalc-formula[b-o95ae5hozs] {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.7;
    padding: 6px 8px;
    border-radius: 4px;
    background: var(--bs-secondary-bg, #e9ecef);
}

.ecalc-formula-key[b-o95ae5hozs] {
    color: var(--bs-secondary-color, #6c757d);
}

.ecalc-error[b-o95ae5hozs] {
    font-size: 0.75rem;
    padding: 6px 8px;
    border-radius: 4px;
    color: #d32f2f;
    background: rgba(211, 47, 47, 0.08);
}

.ecalc-extra[b-o95ae5hozs] {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--bs-secondary-color, #6c757d);
}

.ecalc-extra b[b-o95ae5hozs] {
    color: var(--bs-body-color, #212529);
    font-weight: 600;
}

.ecalc-pull[b-o95ae5hozs] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ecalc-pull button[b-o95ae5hozs] {
    text-align: left;
    font-size: 0.75rem;
    padding: 4px 8px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 4px;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    cursor: pointer;
}

.ecalc-pull button:hover:not(:disabled)[b-o95ae5hozs] {
    border-color: #4CAF50;
}

.ecalc-pull button:disabled[b-o95ae5hozs] {
    opacity: 0.45;
    cursor: default;
}
/* /Components/EdgeEditor.razor.rz.scp.css */
/* EdgeEditor Component - Uses shared inspector styles from app.scss */
/* This file only contains component-specific overrides */

/* Component uses these shared classes from app.scss:
   - .inspector-container (for edge-editor div)
   - .inspector-property-box (for edge-length-input)
   - .inspector-label
   - .inspector-dx-spinner (wrap DxSpinEdit with this class)
   - .inspector-btn-primary (for action buttons)
   - .inspector-action-buttons (for button rows)
*/

/* No component-specific styles needed - all styles are shared */
/* /Components/EdgeInfo.razor.rz.scp.css */
/* EdgeInfo Component - Uses shared inspector styles from app.scss */
/* This file only contains component-specific overrides */

/* Component uses these shared classes from app.scss:
   - .inspector-container (for edge-info div)
   - .inspector-property-box
   - .inspector-form-grid / .inspector-form-grid-full
   - .inspector-label
   - .inspector-value
   - .inspector-toggle
   - .inspector-no-selection
   - Toggle switch styles are inherited from .inspector-toggle
*/

/* Edge type field sits outside the label|value grid: the label and the dropdown
   each take the full container width and stack vertically, so a long translated
   label never squeezes the <select> and the grid below keeps its label | value
   convention intact. */
.inspector-edge-type[b-pzm0qchkn1] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.inspector-edge-type .inspector-label[b-pzm0qchkn1],
.inspector-edge-type .form-select[b-pzm0qchkn1] {
    width: 100%;
}
/* /Components/EmailComposerDialog.razor.rz.scp.css */
.email-composer-dialog[b-027c046194] {
    padding: 20px;
}

.sending-progress[b-027c046194] {
    text-align: center;
    padding: 20px;
}

.async-status[b-027c046194] {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.async-status code[b-027c046194] {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.send-result[b-027c046194] {
    padding: 10px 0;
}

.alert[b-027c046194] {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.alert-success[b-027c046194] {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger[b-027c046194] {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.email-details[b-027c046194] {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
}

.detail-row[b-027c046194] {
    display: flex;
    margin-bottom: 8px;
    align-items: flex-start;
    gap: 10px;
}

.detail-row:last-child[b-027c046194] {
    margin-bottom: 0;
}

.detail-row strong[b-027c046194] {
    min-width: 80px;
    flex-shrink: 0;
}

.email-options[b-027c046194] {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.attachment-section[b-027c046194] {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.attachment-section h6[b-027c046194] {
    margin-bottom: 10px;
    color: #495057;
}

.attachment-info[b-027c046194] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.no-attachment[b-027c046194] {
    display: flex;
    align-items: center;
    color: #6c757d;
}

.send-options[b-027c046194] {
    padding: 10px 0;
}

.email-templates[b-027c046194] {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.email-templates h6[b-027c046194] {
    margin-bottom: 10px;
    color: #495057;
}

.template-buttons[b-027c046194] {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.template-buttons .btn[b-027c046194] {
    font-size: 0.875rem;
}

.popup-footer[b-027c046194] {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

.me-2[b-027c046194] {
    margin-right: 0.5rem;
}

.w-100[b-027c046194] {
    width: 100%;
}

.text-danger[b-027c046194] {
    color: #dc3545;
}

.text-info[b-027c046194] {
    color: #17a2b8;
}

.text-muted[b-027c046194] {
    color: #6c757d;
}

@media (max-width: 768px) {
    .email-composer-dialog[b-027c046194] {
        padding: 15px;
    }
    
    .popup-footer[b-027c046194] {
        flex-direction: column;
    }
    
    .template-buttons[b-027c046194] {
        flex-direction: column;
    }
    
    .template-buttons .btn[b-027c046194] {
        justify-content: center;
    }
    
    .detail-row[b-027c046194] {
        flex-direction: column;
        gap: 4px;
    }
    
    .detail-row strong[b-027c046194] {
        min-width: auto;
    }
    
    .attachment-info[b-027c046194] {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* /Components/ErpCodesDialog.razor.rz.scp.css */
/* Scoped to this component — nothing is inherited from the offer editor (scoped CSS is per component). */

.erp-body[b-ayfing3pf9] {
    height: 580px;
    overflow-y: auto;
    padding: 4px 2px;
}

.erp-state[b-ayfing3pf9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #95a5a6;
    padding: 48px 16px;
}

.erp-state .oi[b-ayfing3pf9] {
    font-size: 1.4rem;
}

.erp-banner[b-ayfing3pf9] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.erp-banner.warn[b-ayfing3pf9] {
    background: #fff7e6;
    border: 1px solid #f5d08a;
    color: #8a5a00;
}

.erp-banner.error[b-ayfing3pf9] {
    background: #fdecec;
    border: 1px solid #f1b0b0;
    color: #9b2c2c;
}

.erp-summary[b-ayfing3pf9] {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.erp-chip[b-ayfing3pf9] {
    font-size: 0.82rem;
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.erp-chip.exact[b-ayfing3pf9] { background: #e8f6ee; color: #1e7a46; border-color: #bfe6cf; }
.erp-chip.partial[b-ayfing3pf9] { background: #fff4e0; color: #8a5a00; border-color: #f2d49b; }
.erp-chip.none[b-ayfing3pf9] { background: #f1f3f5; color: #6c757d; border-color: #dee2e6; }

.erp-table[b-ayfing3pf9] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.erp-table th[b-ayfing3pf9] {
    text-align: left;
    font-weight: 600;
    color: #5f6b76;
    border-bottom: 2px solid #e5e8ec;
    padding: 6px 8px;
    position: sticky;
    top: 0;
    background: #fff;
}

.erp-table td[b-ayfing3pf9] {
    border-bottom: 1px solid #eef0f2;
    padding: 6px 8px;
    vertical-align: top;
}

.erp-table tr.is-none td[b-ayfing3pf9] {
    background: #fafbfc;
}

.col-check[b-ayfing3pf9] {
    width: 32px;
    text-align: center;
}

.erp-product[b-ayfing3pf9] {
    font-weight: 500;
}

.erp-features[b-ayfing3pf9] {
    color: #495057;
}

.erp-code[b-ayfing3pf9] {
    font-family: Consolas, "Courier New", monospace;
}

.erp-change[b-ayfing3pf9] {
    font-family: inherit;
    font-size: 0.72rem;
    color: #8a5a00;
    background: #fff4e0;
    border-radius: 4px;
    padding: 0 4px;
    margin-right: 4px;
}

.erp-muted[b-ayfing3pf9] {
    color: #8a949e;
    font-size: 0.8rem;
}

.erp-hint[b-ayfing3pf9] {
    margin-top: 4px;
    max-width: 220px;
}

.erp-badge[b-ayfing3pf9] {
    display: inline-block;
    font-size: 0.78rem;
    padding: 1px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.erp-badge.exact[b-ayfing3pf9] { background: #e8f6ee; color: #1e7a46; }
.erp-badge.partial[b-ayfing3pf9] { background: #fff4e0; color: #8a5a00; white-space: normal; }
.erp-badge.none[b-ayfing3pf9] { background: #f1f3f5; color: #6c757d; }

.erp-footer[b-ayfing3pf9] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.erp-footer-buttons[b-ayfing3pf9] {
    display: flex;
    gap: 8px;
}

.erp-link[b-ayfing3pf9] {
    padding: 0;
    font-size: 0.8rem;
}
/* /Components/ErpExportDialog.razor.rz.scp.css */
.ee-body[b-qc7c32a3t3] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 2px;
}

.ee-banner[b-qc7c32a3t3] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.ee-banner.warn[b-qc7c32a3t3] {
    background: #fff7e6;
    border: 1px solid #f5d08a;
    color: #8a5a00;
}

.ee-section-title[b-qc7c32a3t3] {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-top: 6px;
}

.ee-formats[b-qc7c32a3t3] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ee-format[b-qc7c32a3t3] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e5e8ec;
    border-radius: 6px;
    cursor: pointer;
    margin: 0;
}

.ee-format.is-selected[b-qc7c32a3t3] {
    border-color: #8cc63f;
    background: #f5fbec;
}

.ee-format input[b-qc7c32a3t3] {
    margin-top: 3px;
}

.ee-format-text[b-qc7c32a3t3] {
    display: flex;
    flex-direction: column;
}

.ee-format-name[b-qc7c32a3t3] {
    font-weight: 600;
}

.ee-format-desc[b-qc7c32a3t3] {
    font-size: 0.82rem;
    color: #6c757d;
}

.ee-check[b-qc7c32a3t3] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin: 0;
}

.ee-check.is-disabled[b-qc7c32a3t3] {
    opacity: 0.55;
}

.ee-summary[b-qc7c32a3t3] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ee-chip[b-qc7c32a3t3] {
    font-size: 0.82rem;
    padding: 2px 10px;
    border-radius: 12px;
    background: #f1f3f5;
    color: #495057;
}

.ee-chip.ok[b-qc7c32a3t3] { background: #e8f6ee; color: #1e7a46; }
.ee-chip.warn[b-qc7c32a3t3] { background: #fff4e0; color: #8a5a00; }

.ee-muted[b-qc7c32a3t3] {
    color: #8a949e;
    font-size: 0.82rem;
}

.ee-footer[b-qc7c32a3t3] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}
/* /Components/ExpressionNumberInput.razor.rz.scp.css */
.exn-input[b-jri7h2ask6] {
    box-sizing: border-box;
    height: 26px;
    padding: 2px 6px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    border: 1px solid var(--bs-border-color, #ced4da);
    border-radius: 4px;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
}

.exn-input:focus[b-jri7h2ask6] {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.exn-invalid[b-jri7h2ask6],
.exn-invalid:focus[b-jri7h2ask6] {
    border-color: #d32f2f;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.15);
}
/* /Components/InspectorZoomEditor.razor.rz.scp.css */
/* Premium Inspector Zoom Editor Styling - Optimized for Vertical Space */

.inspector-zoom-editor[b-d7v5zjyyjx] {
    padding: 12px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8faf9 100%);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(76, 187, 23, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.inspector-zoom-editor:hover[b-d7v5zjyyjx] {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
    border-color: rgba(76, 187, 23, 0.25);
}

/* Header Section */
.zoom-header[b-d7v5zjyyjx] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(76, 187, 23, 0.2);
}

.zoom-header h4[b-d7v5zjyyjx] {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    position: relative;
    padding-left: 12px;
}

.zoom-header h4[b-d7v5zjyyjx]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: linear-gradient(135deg, #4CBB17, #3da012);
    border-radius: 2px;
}

.zoom-info[b-d7v5zjyyjx] {
    display: flex;
    gap: 8px;
    font-size: 0.8125rem;
    color: #4a5568;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.zoom-info span[b-d7v5zjyyjx] {
    padding: 3px 8px;
    background: linear-gradient(135deg, #f7faf8, #ffffff);
    border-radius: 5px;
    border-left: 3px solid #4CBB17;
    line-height: 1.3;
}

/* Coordinate Input Fields */
.zoom-coordinate-inputs[b-d7v5zjyyjx] {
    display: flex;
    gap: 4px;
    align-items: center;
}

.zoom-coordinate-inputs label[b-d7v5zjyyjx] {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #4a5568;
    margin: 0;
    white-space: nowrap;
}

[b-d7v5zjyyjx] .zoom-spin {
    max-width: 90px;
}

[b-d7v5zjyyjx] .zoom-spin input {
    font-size: 0.8125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    padding: 2px 4px;
    height: 28px;
}

/* Zoom Canvas Container */
.zoom-canvas-container[b-d7v5zjyyjx] {
    position: relative;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), inset 0 0 0 2px rgba(76, 187, 23, 0.1);
    padding: 12px;
    aspect-ratio: 1;
    width: 100%;
}

.zoom-canvas-container canvas[b-d7v5zjyyjx] {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Overlay Controls (Directional Buttons) */
.zoom-canvas-overlay-controls[b-d7v5zjyyjx] {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    pointer-events: none;
}

.overlay-button[b-d7v5zjyyjx] {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #f8faf9);
    border: 2px solid #4CBB17;
    box-shadow: 0 2px 8px rgba(76, 187, 23, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #4CBB17;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 10;
}

.overlay-button:hover[b-d7v5zjyyjx] {
    background: linear-gradient(135deg, #4CBB17, #3da012);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(76, 187, 23, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.overlay-button:active[b-d7v5zjyyjx] {
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(76, 187, 23, 0.3);
}

.overlay-button.up[b-d7v5zjyyjx] {
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
}

.overlay-button.down[b-d7v5zjyyjx] {
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
}

.overlay-button.left[b-d7v5zjyyjx] {
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
}

.overlay-button.right[b-d7v5zjyyjx] {
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
}

/* Step Size Indicator */
.step-size-indicator[b-d7v5zjyyjx] {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #2d3748, #1a202c);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Context Indicator (Live/Frozen) */
.context-indicator[b-d7v5zjyyjx] {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.context-indicator.live[b-d7v5zjyyjx] {
    background: linear-gradient(135deg, #4CBB17, #3da012);
    color: white;
}

.context-indicator.frozen[b-d7v5zjyyjx] {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    animation: pulse-glow-b-d7v5zjyyjx 2s infinite;
}

@keyframes pulse-glow-b-d7v5zjyyjx {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }
    50% {
        opacity: 0.85;
        box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
    }
}

/* Step Size Control */
.step-size-control[b-d7v5zjyyjx] {
    margin-bottom: 0;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8ede9;
    transition: all 0.2s ease;
}

.step-size-control:hover[b-d7v5zjyyjx] {
    border-color: rgba(76, 187, 23, 0.3);
    box-shadow: 0 2px 8px rgba(76, 187, 23, 0.08);
}

.step-size-control h5[b-d7v5zjyyjx] {
    margin: 0 0 8px 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    position: relative;
    padding-left: 10px;
}

.step-size-control h5[b-d7v5zjyyjx]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 12px;
    background: linear-gradient(135deg, #4CBB17, #3da012);
    border-radius: 2px;
}

.step-buttons[b-d7v5zjyyjx] {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.step-button[b-d7v5zjyyjx] {
    flex: 1;
    padding: 8px 14px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 38px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-button:hover[b-d7v5zjyyjx] {
    border-color: rgba(76, 187, 23, 0.4);
    color: #4CBB17;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(76, 187, 23, 0.15);
}

.step-button.active[b-d7v5zjyyjx] {
    background: linear-gradient(135deg, #4CBB17, #3da012);
    color: white;
    border-color: #4CBB17;
    box-shadow: 0 3px 10px rgba(76, 187, 23, 0.3);
    transform: translateY(-1px);
}

.step-button:active[b-d7v5zjyyjx] {
    transform: translateY(0);
}

.step-button:focus[b-d7v5zjyyjx] {
    outline: none;
    box-shadow: 0 0 0 4px rgba(76, 187, 23, 0.15);
}

/* Smaller step button variant */
.step-button-sm[b-d7v5zjyyjx] {
    padding: 5px 10px;
    font-size: 0.75rem;
    min-height: 28px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .inspector-zoom-editor[b-d7v5zjyyjx] {
        padding: 14px;
    }

    .zoom-header[b-d7v5zjyyjx] {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .zoom-header h4[b-d7v5zjyyjx] {
        font-size: 1rem;
        padding-left: 12px;
    }

    .zoom-header h4[b-d7v5zjyyjx]::before {
        width: 3px;
        height: 16px;
    }

    .zoom-info[b-d7v5zjyyjx] {
        font-size: 0.75rem;
        gap: 6px;
    }

    .zoom-info span[b-d7v5zjyyjx] {
        padding: 3px 6px;
    }

    .zoom-canvas-container[b-d7v5zjyyjx] {
        padding: 14px;
        margin-bottom: 14px;
    }

    .overlay-button[b-d7v5zjyyjx] {
        width: 44px;
        height: 44px;
        border-radius: 22px;
        font-size: 18px;
        touch-action: manipulation;
    }

    .overlay-button.up[b-d7v5zjyyjx] {
        top: -22px;
    }

    .overlay-button.down[b-d7v5zjyyjx] {
        bottom: -22px;
    }

    .overlay-button.left[b-d7v5zjyyjx] {
        left: -22px;
    }

    .overlay-button.right[b-d7v5zjyyjx] {
        right: -22px;
    }

    .step-size-control[b-d7v5zjyyjx] {
        padding: 12px;
    }

    .step-size-control h5[b-d7v5zjyyjx] {
        font-size: 0.8125rem;
        margin-bottom: 8px;
    }

    .step-buttons[b-d7v5zjyyjx] {
        gap: 4px;
    }

    .step-button[b-d7v5zjyyjx] {
        padding: 12px 14px;
        font-size: 0.8125rem;
        min-height: 48px;
    }
}

/* Tablet Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .overlay-button[b-d7v5zjyyjx] {
        width: 38px;
        height: 38px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .inspector-zoom-editor[b-d7v5zjyyjx],
    .zoom-canvas-container[b-d7v5zjyyjx],
    .overlay-button[b-d7v5zjyyjx],
    .step-button[b-d7v5zjyyjx],
    .step-size-control[b-d7v5zjyyjx] {
        transition: none;
    }

    .context-indicator.frozen[b-d7v5zjyyjx] {
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .inspector-zoom-editor[b-d7v5zjyyjx] {
        border: 2px solid #4CBB17;
    }

    .zoom-canvas-container[b-d7v5zjyyjx] {
        box-shadow: 0 0 0 3px rgba(76, 187, 23, 0.3);
    }

    .overlay-button[b-d7v5zjyyjx] {
        border-width: 3px;
    }

    .step-button[b-d7v5zjyyjx] {
        border-width: 3px;
    }

    .step-size-control[b-d7v5zjyyjx] {
        border: 2px solid #4a5568;
    }
}
/* /Components/LeadingPointsEditor.razor.rz.scp.css */
/* LeadingPointsEditor Component - Uses shared inspector styles from app.scss */
/* This file only contains component-specific overrides */

/* Component uses these shared classes from app.scss:
   - .inspector-container (for leading-point-editor div)
   - .inspector-property-box (for edge-length-input)
   - .inspector-label
   - .inspector-dx-spinner (wrap DxSpinEdit with this class)
   - .inspector-btn-primary
   - .inspector-btn-secondary
   - .inspector-action-buttons (for action button rows)
*/

/* Podpowiedź wymiaru z rysunku PDF stoi w bloku <style> w .razor —
   powstaje w RenderFragment, a style zakresowe tam nie sięgają. */
/* /Components/ManufacturerIndexLookupDialog.razor.rz.scp.css */
/* Scoped to this component. Blazor's scoped CSS is per component, so nothing here is inherited from
   the offer editor even where a class name looks familiar — a component without its own stylesheet
   renders unstyled. */

.lookup-body[b-y161b9rdmg] {
    height: 620px;
    overflow-y: auto;
    padding: 4px 2px;
}

.lookup-state[b-y161b9rdmg] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #95a5a6;
    padding: 48px 16px;
}

.lookup-state.small[b-y161b9rdmg] {
    flex-direction: row;
    padding: 16px;
    justify-content: flex-start;
    font-size: 0.88rem;
}

.lookup-state .oi[b-y161b9rdmg] {
    font-size: 1.4rem;
}

.lookup-row[b-y161b9rdmg] {
    border: 1px solid #e5e8ec;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fff;
    overflow: hidden;
}

.lookup-row.is-open[b-y161b9rdmg] {
    border-color: #bcd6ea;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.10);
}

.lookup-row-head[b-y161b9rdmg] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
}

.lookup-row-head:hover[b-y161b9rdmg] {
    background: #f8fafc;
}

.lookup-caret[b-y161b9rdmg] {
    color: #7f8c8d;
    font-size: 0.7rem;
}

.lookup-row-title[b-y161b9rdmg] {
    flex: 1;
    min-width: 0;
}

.lookup-line-name[b-y161b9rdmg] {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lookup-line-meta[b-y161b9rdmg] {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2px;
    font-size: 0.8rem;
}

/* One class, five states. Each colour means one thing and each is spelled out in words beside it —
   scanning the list is the whole reason this exists, and a colour nobody can name is not a state. */
.lookup-status[b-y161b9rdmg] {
    font-weight: 600;
}

.lookup-status.is-ok[b-y161b9rdmg] { color: #1e8449; font-weight: 400; }
.lookup-status.is-pending[b-y161b9rdmg] { color: #b9770e; }

/* The one state that is work for the user right now: several candidates, nobody has picked. Blue, so
   it does not read as a fault — nothing is wrong, somebody just has to choose. */
.lookup-status.is-choose[b-y161b9rdmg] { color: #2471a3; }

/* Dead ends: the manufacturer answered with nothing, or the lookup itself failed. */
.lookup-status.is-missing[b-y161b9rdmg] { color: #c0392b; }

/* Nothing has been asked yet. Grey, because a freshly opened dialog is not a list of problems. */
.lookup-status.is-new[b-y161b9rdmg] { color: #95a5a6; font-weight: 400; }

.lookup-status code[b-y161b9rdmg] {
    background: #eef2f7;
    padding: 1px 6px;
    border-radius: 3px;
}

.lookup-status.is-ok code[b-y161b9rdmg] { background: #eafaf1; }
.lookup-status.is-pending code[b-y161b9rdmg] { background: #fef5e7; }

.lookup-picked-name[b-y161b9rdmg] {
    color: #5a6b7b;
    margin-left: 6px;
}

/* A status dot carries the state at a glance, so scanning forty rows does not mean reading forty
   labels. Colour is never the ONLY signal — the text beside it says the same thing. */
.lookup-dot[b-y161b9rdmg] {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.lookup-dot.is-ok[b-y161b9rdmg] { background: #27ae60; }
.lookup-dot.is-pending[b-y161b9rdmg] { background: #e6a23c; }
.lookup-dot.is-choose[b-y161b9rdmg] { background: #2e86c1; }
.lookup-dot.is-missing[b-y161b9rdmg] { background: #c0392b; }
.lookup-dot.is-new[b-y161b9rdmg] { background: #cfd8dc; }

.lookup-variant[b-y161b9rdmg] {
    color: #7f8c8d;
}

.lookup-badge[b-y161b9rdmg] {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    white-space: nowrap;
}

.lookup-badge-off[b-y161b9rdmg] {
    background: #f2f3f4;
    color: #7f8c8d;
}

.lookup-row-body[b-y161b9rdmg] {
    border-top: 1px solid #eef2f7;
    padding: 12px 14px 14px;
    background: #fcfdfe;
}

.lookup-controls[b-y161b9rdmg] {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.lookup-filter[b-y161b9rdmg] {
    display: flex;
    flex-direction: column;
    min-width: 260px;
}

.lookup-filter label[b-y161b9rdmg] {
    font-weight: 600;
    color: #34495e;
    font-size: 0.82rem;
    margin-bottom: 3px;
}

.lookup-filter-box[b-y161b9rdmg] {
    max-width: 260px;
}

.lookup-hint[b-y161b9rdmg] {
    color: #95a5a6;
    font-size: 0.76rem;
    margin-top: 3px;
}

.lookup-hint code[b-y161b9rdmg] {
    background: #eef2f7;
    padding: 1px 5px;
    border-radius: 3px;
    user-select: all;
}

.lookup-search-btn[b-y161b9rdmg] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.lookup-warn[b-y161b9rdmg] {
    background: #fef5e7;
    border-left: 4px solid #f39c12;
    padding: 9px 12px;
    color: #7e5109;
    margin: 8px 0;
    font-size: 0.86rem;
}

/* Truncation is the one message on this screen that changes what the user should DO next, so it is
   the loudest thing here. */
.lookup-warn-truncated[b-y161b9rdmg] {
    background: #fdf2e9;
    border-left-color: #e67e22;
    font-weight: 600;
}

.lookup-result-head[b-y161b9rdmg] {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin: 6px 0;
}

.lookup-count[b-y161b9rdmg] {
    font-weight: 600;
    color: #34495e;
    font-size: 0.88rem;
}

.lookup-narrow[b-y161b9rdmg] {
    max-width: 320px;
    margin-bottom: 8px;
}

.lookup-items[b-y161b9rdmg] {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #e5e8ec;
    border-radius: 6px;
}

.lookup-table[b-y161b9rdmg] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.lookup-table th[b-y161b9rdmg] {
    position: sticky;
    top: 0;
    background: #f4f6f8;
    text-align: left;
    padding: 7px 8px;
    color: #5a6b7b;
    font-weight: 600;
    border-bottom: 1px solid #e5e8ec;
    z-index: 1;
}

.lookup-table td[b-y161b9rdmg] {
    padding: 7px 8px;
    border-bottom: 1px solid #f2f4f7;
    vertical-align: top;
}

.lookup-table tbody tr[b-y161b9rdmg] {
    cursor: pointer;
}

.lookup-table tbody tr:hover td[b-y161b9rdmg] {
    background: #f8fafc;
}

.lookup-table tbody tr.is-selected td[b-y161b9rdmg] {
    background: #eaf4fc;
}

.lookup-table code[b-y161b9rdmg] {
    background: #eef2f7;
    padding: 1px 6px;
    border-radius: 3px;
    user-select: all;
}

.col-pick[b-y161b9rdmg] { width: 34px; }
.col-uom[b-y161b9rdmg] { width: 70px; }
.col-price[b-y161b9rdmg] { width: 130px; text-align: right; white-space: nowrap; }

.lookup-mono[b-y161b9rdmg] {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.76rem;
    color: #7f8c8d;
    word-break: break-word;
}

.lookup-apply[b-y161b9rdmg] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 10px;
}

.lookup-check[b-y161b9rdmg] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    color: #34495e;
}

.lookup-footer[b-y161b9rdmg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

/* Stated before the list, because the list itself cannot say it: most rows in a mixed offer have no
   catalogue behind them, and a screen of "not connected" badges reads as a fault. */
.lookup-summary[b-y161b9rdmg] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eef4fb;
    border: 1px solid #d3e3f2;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-size: 0.86rem;
    color: #34495e;
}

/* The bulk bar. One colour usually covers the whole roof, so this is the control most of the work
   goes through — it sits above the list and stays there. */
.lookup-bulk[b-y161b9rdmg] {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #e5e8ec;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.lookup-bulk-spacer[b-y161b9rdmg] {
    flex: 1;
}

.lookup-bulk .btn[b-y161b9rdmg] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    white-space: nowrap;
}
/* /Components/ManufacturerOrderWizard.razor.rz.scp.css */
/*
    Styles for the order wizard.

    Its own file rather than borrowed class names: every "modal-*" and "settings-*" rule in this
    project lives in some component's SCOPED stylesheet, so reusing the names gave an unstyled block
    in normal flow — invisible behind the offer editor's full-screen overlay. That is exactly how
    this component first shipped.
*/

.wizard-backdrop[b-ukig0ejwlp] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;

    /* Above the offer editor's overlay (1040), which is what this is opened from. */
    z-index: 1060;
}

.wizard-card[b-ukig0ejwlp] {
    background: #fff;
    border-radius: 8px;
    padding: 24px;

    /* Szersza niż typowy modal, bo mieści dwie kolumny: lista pozycji i formularz. Na wąskim
       ekranie 94vw i tak wygrywa, a kolumny schodzą pod siebie (media query niżej). */
    width: min(1120px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Lista pozycji obok formularza, nie nad nim. Zaznaczenie nie jest krokiem, który się odhacza
   i zostawia — adres i karty zamówień opisują to, co jest zaznaczone, więc pomyłkę widać tylko
   wtedy, gdy jedno stoi przy drugim. W pionie pozycje oferty spychały przycisk „Wyślij"
   o półtora ekranu w dół. */
.wizard-body[b-ukig0ejwlp] {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.wizard-col[b-ukig0ejwlp] {
    min-width: 0;
}

.wizard-col-lines[b-ukig0ejwlp] {
    flex: 0 0 40%;
}

.wizard-col-form[b-ukig0ejwlp] {
    flex: 1 1 auto;
}

/* Nagłówek pierwszej sekcji w kolumnie nie odsuwa się od góry — inaczej kolumny startują
   na różnych wysokościach. */
.wizard-col > h4:first-child[b-ukig0ejwlp] {
    margin-top: 0;
}

.wizard-card h3[b-ukig0ejwlp] {
    margin: 0 0 16px 0;
    font-size: 18px;
}

.wizard-card h4[b-ukig0ejwlp] {
    margin: 18px 0 8px 0;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

.form-row[b-ukig0ejwlp] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.form-row label[b-ukig0ejwlp] {
    font-weight: 600;
    font-size: 13px;
    color: #555;
}

.form-row-split[b-ukig0ejwlp] {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.form-row-split > div[b-ukig0ejwlp] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-control[b-ukig0ejwlp] {
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
}

.form-control:focus[b-ukig0ejwlp] {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-hint[b-ukig0ejwlp] {
    font-size: 12px;
    color: #666;
}

/* Lista pozycji do zaznaczenia — najważniejszy blok tego okna: to tutaj rozstrzyga się, co pojedzie
   na halę producenta, a co sprzedawca ma na magazynie albo robi sam. */
.lines-toolbar[b-ukig0ejwlp] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    font-size: 12px;
    color: #666;
}

.lines-toolbar-actions[b-ukig0ejwlp] {
    display: flex;
    gap: 12px;
}

.btn-link[b-ukig0ejwlp] {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

.lines-picker[b-ukig0ejwlp] {
    border: 1px solid #e0e0e0;
    border-radius: 6px;

    /* Długa oferta nie może rozciągnąć okna — lista przewija się u siebie. W kolumnie obok
       formularza może być wyższa, bo nie odsuwa niczego w dół. */
    max-height: min(52vh, 460px);
    overflow-y: auto;
}

.line-row[b-ukig0ejwlp] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    cursor: pointer;
}

.line-row:last-child[b-ukig0ejwlp] {
    border-bottom: none;
}

.line-row:hover[b-ukig0ejwlp] {
    background: #f8f9fa;
}

/* Usługa albo towar bez producenta: widoczny, ale nie do zaznaczenia — ukrycie takiej pozycji każe
   szukać, „czemu tego nie ma na liście". */
.line-row.is-locked[b-ukig0ejwlp] {
    color: #999;
    cursor: default;
}

.line-row.is-locked:hover[b-ukig0ejwlp] {
    background: none;
}

.line-main[b-ukig0ejwlp] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.line-name[b-ukig0ejwlp] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-meta[b-ukig0ejwlp] {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #888;
}

.line-mfg[b-ukig0ejwlp] {
    font-weight: 600;
}

.line-flags[b-ukig0ejwlp] {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.line-flag[b-ukig0ejwlp] {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.line-flag.muted[b-ukig0ejwlp] {
    background: #eee;
    color: #666;
}

/* „Już zamówione" jest ostrzeżeniem, nie błędem: domawianie reszty oferty bywa normalne, ale drugi
   raz tej samej pozycji — prawie nigdy. */
.line-flag.ordered[b-ukig0ejwlp] {
    background: #fff8e1;
    color: #8a5a00;
}

.line-flag.missing[b-ukig0ejwlp] {
    background: #fdecea;
    color: #b71c1c;
}

.lines-hint[b-ukig0ejwlp] {
    font-size: 12px;
    color: #666;
    margin: 8px 0 0 0;
}

.recalculating[b-ukig0ejwlp] {
    font-weight: 400;
    font-size: 12px;
    color: #888;
    margin-left: 8px;
}

.card-lines[b-ukig0ejwlp] {
    margin: 0 0 8px 0;
    padding-left: 18px;
    font-size: 12px;
    color: #555;
}

.wizard-order-card[b-ukig0ejwlp] {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}

.order-card-header[b-ukig0ejwlp] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    gap: 12px;
}

.mono-small[b-ukig0ejwlp] {
    font-size: 12px;
    color: #666;
}

/* Blocking problems and skipped lines: different colours because they demand different reactions —
   one has to be fixed, the other only understood. */
.wizard-problems[b-ukig0ejwlp] {
    border-left: 3px solid #b71c1c;
    background: #fdecea;
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 0 6px 6px 0;
}

.wizard-skipped[b-ukig0ejwlp] {
    border-left: 3px solid #b26a00;
    background: #fff8e1;
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 0 6px 6px 0;
}

.wizard-problems h4[b-ukig0ejwlp],
.wizard-skipped h4[b-ukig0ejwlp] {
    margin-top: 0;
    border: none;
}

.wizard-problems ul[b-ukig0ejwlp],
.wizard-skipped ul[b-ukig0ejwlp] {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
}

.settings-message[b-ukig0ejwlp] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 8px;
}

.settings-message.success[b-ukig0ejwlp] {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.settings-message.error[b-ukig0ejwlp] {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.modal-actions[b-ukig0ejwlp] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.btn[b-ukig0ejwlp] {
    padding: 9px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn:disabled[b-ukig0ejwlp] {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary[b-ukig0ejwlp] {
    background: #007bff;
    color: #fff;
}

.btn-secondary[b-ukig0ejwlp] {
    background: #6c757d;
    color: #fff;
}

/* Adres jest wpisywany w tym oknie, więc jego walidacja stoi PRZY POLACH, a nie na liście
   „do poprawienia gdzie indziej" — i wskazuje konkretne pole, nie cały blok. */
.required[b-ukig0ejwlp] {
    color: #b71c1c;
}

.form-control.is-invalid[b-ukig0ejwlp] {
    border-color: #d32f2f;
    background: #fffafa;
}

.form-control.is-invalid:focus[b-ukig0ejwlp] {
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

.field-error[b-ukig0ejwlp] {
    font-size: 12px;
    color: #b71c1c;
}

/* Telefon i wąskie okno: kolumny pod siebie, w kolejności pracy — najpierw co zamawiamy, potem
   dokąd. Lista pozycji dostaje własne, niższe okno przewijania, żeby adres dostawy i przycisk
   wysyłki były w zasięgu kciuka, a nie za listą całej oferty. */
@media (max-width: 900px) {
    .wizard-body[b-ukig0ejwlp] {
        flex-direction: column;
        gap: 0;
    }

    .wizard-col-lines[b-ukig0ejwlp],
    .wizard-col-form[b-ukig0ejwlp] {
        flex: 1 1 auto;
        width: 100%;
    }

    .wizard-col-form > h4:first-child[b-ukig0ejwlp] {
        margin-top: 18px;
    }

    .lines-picker[b-ukig0ejwlp] {
        max-height: 240px;
    }

    /* Kod pocztowy obok miasta jest czytelny na monitorze; na telefonie to dwa ściśnięte pola. */
    .form-row-split[b-ukig0ejwlp] {
        flex-direction: column;
        gap: 12px;
    }
}
/* /Components/MaterialDefIcon.razor.rz.scp.css */
.material-def-icon[b-mtlxi6yjc7] {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 4px;
    background-color: var(--bs-secondary-bg, #222222);
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    cursor: help;
}

.material-def-glyph[b-mtlxi6yjc7] {
    display: block;
    background-color: currentColor;
    -webkit-mask: var(--material-icon) center / contain no-repeat;
    mask: var(--material-icon) center / contain no-repeat;
}
/* /Components/NotificationDisplay.razor.rz.scp.css */
.notification-container[b-pwv1oolkwf] {
    position: relative;
    z-index: 1050;
    margin-bottom: 0.5rem;
}

.notification-container.hidden[b-pwv1oolkwf] {
    display: none;
}

[b-pwv1oolkwf] .alert {
    margin-bottom: 0;
    border-radius: 0.375rem;
}

[b-pwv1oolkwf] .alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

[b-pwv1oolkwf] .alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.btn-close[b-pwv1oolkwf] {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.5;
}

.btn-close:hover[b-pwv1oolkwf] {
    opacity: 1;
}
/* /Components/OfferAddFromCalculationDialog.razor.rz.scp.css */
/* Popup is 640px tall; header + footer + padding take roughly 170px. An explicit height is needed
   because the popup's content area is not a flex parent, so height:100% resolves to nothing and the
   grid grows past the popup instead of scrolling inside it. */
.offer-add-body[b-ij8djbanu2] {
    display: flex;
    flex-direction: column;
    height: 460px;
    max-height: 460px;
    min-height: 0;
    gap: 10px;
}

.offer-add-grid-wrap[b-ij8djbanu2] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.offer-add-toolbar[b-ij8djbanu2] {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px 2px 8px;
    border-bottom: 1px solid var(--bs-border-color, #e0e0e0);
}

.offer-add-hint[b-ij8djbanu2] {
    font-size: 12px;
    color: var(--bs-secondary, #6c757d);
}

.offer-add-state[b-ij8djbanu2] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1;
    min-height: 240px;
    color: var(--bs-secondary, #6c757d);
    font-size: 14px;
}

.offer-add-state .oi[b-ij8djbanu2] {
    font-size: 36px;
    opacity: .5;
}

.offer-add-product-cell[b-ij8djbanu2] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.offer-add-badge[b-ij8djbanu2] {
    font-size: 10px;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

.offer-add-badge.is-existing[b-ij8djbanu2] {
    background: #fff3cd;
    color: #856404;
}

.offer-add-badge.is-spec[b-ij8djbanu2] {
    background: #e7f3ff;
    color: #0b5ed7;
}

.offer-add-footer[b-ij8djbanu2] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: flex-end;
}

.offer-add-count[b-ij8djbanu2] {
    margin-right: auto;
    font-size: 13px;
    color: var(--bs-secondary, #6c757d);
}

.spin[b-ij8djbanu2] {
    display: inline-block;
    animation: offer-add-spin-b-ij8djbanu2 1s linear infinite;
}

@keyframes offer-add-spin-b-ij8djbanu2 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

[b-ij8djbanu2] .offer-add-grid {
    flex: 1;
    min-height: 0;
}
/* /Components/OfferAddFromCatalogDialog.razor.rz.scp.css */
/* Popup is 760px tall; header + footer + padding take roughly 180px. The body needs a real height
   because the popup's content area is not a flex parent — with height:100% the panes had nothing to
   resolve against and grew past the popup instead of scrolling inside it. */
.catalog-body[b-ueah5juuel] {
    display: flex;
    gap: 16px;
    height: 580px;
    max-height: 580px;
}

/* ---- Filter rail ---- */

.catalog-filters[b-ueah5juuel] {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 12px;
    border-right: 1px solid var(--bs-border-color, #e0e0e0);
}

.catalog-filter-group[b-ueah5juuel] {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.catalog-filter-group h6[b-ueah5juuel] {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bs-secondary, #6c757d);
}

.catalog-filter-search[b-ueah5juuel] {
    width: 100%;
    margin-bottom: 8px;
}

.catalog-filter-list[b-ueah5juuel] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Both facet lists scroll on their own: a manufacturer can have 30 material definitions, and a
   full-catalog subscription lists every brand. */
.catalog-filter-list.is-scroll[b-ueah5juuel] {
    max-height: 240px;
    overflow-y: auto;
}

.catalog-pick[b-ueah5juuel] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 6px 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 13px;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

.catalog-pick:hover:not(:disabled)[b-ueah5juuel] {
    background: var(--bs-tertiary-bg, #f5f7fa);
}

.catalog-pick.is-active[b-ueah5juuel] {
    background: #e7f3ff;
    border-color: #b6d9ff;
    font-weight: 600;
}

.catalog-pick:disabled[b-ueah5juuel] {
    opacity: .5;
    cursor: default;
}

.catalog-item-note[b-ueah5juuel] {
    font-size: 11px;
    color: var(--bs-secondary, #6c757d);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---- Product list ---- */

.catalog-list[b-ueah5juuel] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    gap: 8px;
}

.catalog-list-toolbar[b-ueah5juuel] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.catalog-search[b-ueah5juuel] {
    flex: 1;
    max-width: 380px;
}

.catalog-list-count[b-ueah5juuel] {
    margin-left: auto;
    font-size: 12px;
    color: var(--bs-secondary, #6c757d);
    white-space: nowrap;
}

.catalog-warning[b-ueah5juuel] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
    font-size: 12px;
    flex: 0 0 auto;
}

/* The grid is the only part allowed to take the leftover height, and it scrolls internally. */
.catalog-grid-wrap[b-ueah5juuel] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.catalog-pager[b-ueah5juuel] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 0 0 auto;
    padding-top: 4px;
}

.catalog-pager-info[b-ueah5juuel] {
    font-size: 12px;
    color: var(--bs-secondary, #6c757d);
    font-variant-numeric: tabular-nums;
}

.catalog-state[b-ueah5juuel] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1;
    min-height: 160px;
    color: var(--bs-secondary, #6c757d);
    font-size: 14px;
    text-align: center;
}

.catalog-state.small[b-ueah5juuel] {
    min-height: 48px;
    font-size: 12px;
    flex-direction: row;
}

.catalog-state .oi[b-ueah5juuel] {
    font-size: 32px;
    opacity: .5;
}

.catalog-state.small .oi[b-ueah5juuel] {
    font-size: 14px;
}

.catalog-product-cell[b-ueah5juuel] {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.catalog-product-name[b-ueah5juuel] {
    font-size: 13px;
}

.catalog-product-meta[b-ueah5juuel] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-product-code[b-ueah5juuel] {
    font-size: 11px;
    color: var(--bs-secondary, #6c757d);
}

.catalog-badge[b-ueah5juuel] {
    font-size: 10px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 10px;
    background: #eef1f5;
    color: #55606e;
    white-space: nowrap;
}

/* A product sold on its own, outside every set — worth noticing, not a warning. */
.catalog-badge.is-outside[b-ueah5juuel] {
    background: #e8f3ec;
    color: #2f6b45;
}

/* ---- Footer ---- */

.offer-add-footer[b-ueah5juuel] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: flex-end;
}

.offer-add-count[b-ueah5juuel] {
    margin-right: auto;
    font-size: 13px;
    color: var(--bs-secondary, #6c757d);
}

.spin[b-ueah5juuel] {
    display: inline-block;
    animation: catalog-spin-b-ueah5juuel 1s linear infinite;
}

@keyframes catalog-spin-b-ueah5juuel {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

[b-ueah5juuel] .catalog-qty {
    width: 100%;
}

/* Quantity that comes from the specification: right-aligned like the editor it replaces, muted so the
   row reads as "not yours to type" without an extra icon. */
[b-ueah5juuel] .catalog-qty-locked {
    display: block;
    width: 100%;
    text-align: right;
    padding-right: 6px;
    color: #6c757d;
    cursor: help;
}

/* ---- Product baskets: mode switch (docs/product_basket/plan.md) ---- */

.catalog-mode[b-ueah5juuel] {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    margin-bottom: 12px;
    background: var(--bs-tertiary-bg, #f1f3f6);
    border-radius: 6px;
}

.catalog-mode-btn[b-ueah5juuel] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    font-size: 13px;
    color: var(--bs-secondary, #6c757d);
    cursor: pointer;
}

.catalog-mode-btn:hover[b-ueah5juuel] {
    color: inherit;
}

.catalog-mode-btn.is-active[b-ueah5juuel] {
    background: #fff;
    color: inherit;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

/* The switch takes ~44px; the body gives them back so the popup does not start scrolling. */
.catalog-body.has-modes[b-ueah5juuel] {
    height: 536px;
    max-height: 536px;
}

.basket-list.is-scroll[b-ueah5juuel] {
    max-height: 360px;
}

.catalog-hint[b-ueah5juuel] {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding: 8px 10px;
    background: var(--bs-tertiary-bg, #f5f7fa);
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--bs-secondary, #6c757d);
}

.catalog-hint .oi[b-ueah5juuel] {
    margin-top: 2px;
}

.basket-qty-row[b-ueah5juuel] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding-top: 6px;
    border-top: 1px solid var(--bs-border-color, #e0e0e0);
    font-size: 13px;
}

[b-ueah5juuel] .basket-qty {
    width: 120px;
}

[b-ueah5juuel] .basket-qty.is-invalid input {
    border-color: #dc3545;
}

.basket-qty-error[b-ueah5juuel] {
    font-size: 12px;
    color: #dc3545;
}
/* /Components/OfferEditDialog.razor.rz.scp.css */
/* Full Screen Overlay */
.offer-edit-overlay[b-3u7sl5khlg] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn-b-3u7sl5khlg 0.2s ease;
}

@keyframes fadeIn-b-3u7sl5khlg {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Main Container */
.offer-edit-container[b-3u7sl5khlg] {
    width: 95vw;
    height: 95vh;
    background: var(--bs-body-bg, #1a1a1a);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp-b-3u7sl5khlg 0.3s ease;
}

@keyframes slideUp-b-3u7sl5khlg {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toolbar */
.offer-edit-toolbar[b-3u7sl5khlg] {
    background: var(--bs-secondary-bg, #222222);
    border-bottom: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    padding: 8px 16px;
    flex-shrink: 0;
}

.close-btn[b-3u7sl5khlg] {
    width: 36px;
    height: 36px;
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 6px;
    background: transparent;
    color: var(--bs-body-color, #e5e5e5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover[b-3u7sl5khlg] {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

/* Main Content Layout */
.offer-edit-content[b-3u7sl5khlg] {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Left Panel */
.offer-edit-left-panel[b-3u7sl5khlg] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
}

/* Header Panel */
.offer-edit-header-panel[b-3u7sl5khlg] {
    background: var(--bs-tertiary-bg, #222426);
    padding: 20px;
    border-bottom: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    flex-shrink: 0;
}

.header-title[b-3u7sl5khlg] {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.header-title h4[b-3u7sl5khlg] {
    margin: 0;
    color: var(--bs-emphasis-color, #ffffff);
}

.status-badge[b-3u7sl5khlg] {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-workcopy[b-3u7sl5khlg] {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.status-badge.status-sent[b-3u7sl5khlg] {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.status-badge.status-sold[b-3u7sl5khlg] {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.status-badge.status-lost[b-3u7sl5khlg] {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Form Layout */
.header-form[b-3u7sl5khlg] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row[b-3u7sl5khlg] {
    display: flex;
    gap: 16px;
}

.form-group[b-3u7sl5khlg] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group.flex-2[b-3u7sl5khlg] {
    flex: 2;
}

.form-group label[b-3u7sl5khlg] {
    font-size: 12px;
    font-weight: 500;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[b-3u7sl5khlg] .form-control-custom .dxbl-textbox,
[b-3u7sl5khlg] .form-control-custom .dxbl-combobox,
[b-3u7sl5khlg] .form-control-custom .dxbl-date-edit {
    background: var(--bs-body-bg, #1a1a1a);
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 6px;
    color: var(--bs-body-color, #e5e5e5);
}

[b-3u7sl5khlg] .form-control-custom .dxbl-textbox:focus-within,
[b-3u7sl5khlg] .form-control-custom .dxbl-combobox:focus-within,
[b-3u7sl5khlg] .form-control-custom .dxbl-date-edit:focus-within {
    border-color: var(--bs-primary, #fe7109);
    box-shadow: 0 0 0 2px rgba(254, 113, 9, 0.2);
}

/* Grid Panel */
.offer-edit-grid-panel[b-3u7sl5khlg] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px;
}

.grid-header[b-3u7sl5khlg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.grid-header h5[b-3u7sl5khlg] {
    margin: 0;
    color: var(--bs-emphasis-color, #ffffff);
}

.lines-count[b-3u7sl5khlg] {
    font-size: 13px;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    background: var(--bs-tertiary-bg, #222426);
    padding: 4px 12px;
    border-radius: 12px;
}

[b-3u7sl5khlg] .offer-lines-grid {
    flex: 1;
    overflow: auto;
}

/* Bold, but never its own colour: the theme's accent is green and so is the selected row, which hid
   the gross value exactly when the user was looking at it. Inheriting keeps it readable in both the
   normal and the selected row instead of fighting whatever the row background is. */
.line-total[b-3u7sl5khlg] {
    font-weight: 600;
    color: inherit;
}

/* Right Panel */
.offer-edit-right-panel[b-3u7sl5khlg] {
    width: 320px;
    background: var(--bs-tertiary-bg, #222426);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
}

/* Summary Panel */
.summary-panel[b-3u7sl5khlg] {
    padding: 20px;
    flex: 1;
}

.summary-panel h5[b-3u7sl5khlg] {
    margin: 0 0 16px 0;
    color: var(--bs-emphasis-color, #ffffff);
    font-size: 16px;
}

.summary-panel h6[b-3u7sl5khlg] {
    margin: 12px 0 8px 0;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-section[b-3u7sl5khlg] {
    padding: 8px 0;
}

.summary-row[b-3u7sl5khlg] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.summary-row.small[b-3u7sl5khlg] {
    font-size: 13px;
}

.summary-label[b-3u7sl5khlg] {
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
}

.summary-value[b-3u7sl5khlg] {
    color: var(--bs-body-color, #e5e5e5);
    font-weight: 500;
}

.summary-value.discount[b-3u7sl5khlg] {
    color: #22c55e;
}

.summary-divider[b-3u7sl5khlg] {
    height: 1px;
    background: var(--bs-border-color, rgba(229, 229, 229, 0.2));
    margin: 8px 0;
}

.total-section[b-3u7sl5khlg] {
    background: rgba(254, 113, 9, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin: 0 -12px;
}

.total-row .summary-label[b-3u7sl5khlg] {
    font-size: 14px;
    font-weight: 600;
    color: var(--bs-body-color, #e5e5e5);
}

.grand-total[b-3u7sl5khlg] {
    font-size: 20px;
    font-weight: 700;
    color: var(--bs-primary, #fe7109);
}

/* Quick Actions Panel */
.quick-actions-panel[b-3u7sl5khlg] {
    padding: 16px 20px;
    border-top: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    background: var(--bs-secondary-bg, #222222);
}

.quick-actions-panel h6[b-3u7sl5khlg] {
    margin: 0 0 12px 0;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-actions-buttons[b-3u7sl5khlg] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Specification Dialog Content */
/* Drawing Popup */
.drawing-popup-overlay[b-3u7sl5khlg] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1045;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawing-popup-container[b-3u7sl5khlg] {
    width: 95vw;
    height: 95vh;
    background: var(--bs-body-bg, #1a1a1a);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.drawing-popup-header[b-3u7sl5khlg] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    background: var(--bs-tertiary-bg, #222426);
}

.drawing-popup-header-left[b-3u7sl5khlg] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawing-popup-title[b-3u7sl5khlg] {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-emphasis-color, #ffffff);
}

.drawing-popup-structure-info[b-3u7sl5khlg] {
    font-size: 0.85rem;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
}

.drawing-popup-header-center[b-3u7sl5khlg] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawing-popup-nav-info[b-3u7sl5khlg] {
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
    color: var(--bs-body-color, #e5e5e5);
}

.drawing-popup-header-right[b-3u7sl5khlg] {
    display: flex;
    align-items: center;
}

.drawing-popup-body[b-3u7sl5khlg] {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.drawing-popup-canvas-container[b-3u7sl5khlg] {
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-tertiary-bg, #222426);
    overflow: hidden;
}

/* Responsive adjustments */
/* The summary toggle exists only where the summary is a drawer (below). */
[b-3u7sl5khlg] .summary-toggle-item {
    display: none !important;
}

/* Tablet and narrower: the summary panel would leave the description column a few letters wide, so it
   becomes a drawer over the right edge, opened from the toolbar. It is not dropped: it holds the
   totals and "Generuj PDF". */
@media (max-width: 1300px) {
    [b-3u7sl5khlg] .summary-toggle-item {
        display: flex !important;
    }

    .offer-edit-right-panel[b-3u7sl5khlg] {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 320px;
        z-index: 20;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.2s ease, visibility 0.2s;
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
    }

    .offer-edit-content.summary-open .offer-edit-right-panel[b-3u7sl5khlg] {
        transform: none;
        visibility: visible;
    }

    .offer-edit-left-panel[b-3u7sl5khlg] {
        border-right: none;
    }
}

@media (max-width: 1200px) {
    .form-row[b-3u7sl5khlg] {
        flex-wrap: wrap;
    }

    .form-group[b-3u7sl5khlg] {
        min-width: 200px;
    }
}

@media (max-width: 992px) {
    .offer-edit-content[b-3u7sl5khlg] {
        flex-direction: column;
    }

    .offer-edit-left-panel[b-3u7sl5khlg] {
        border-right: none;
    }
}

/* ==========================================================================
   "Add" gallery — the three ways a line can enter the offer
   ========================================================================== */

.add-menu[b-3u7sl5khlg] {
    display: flex;
    flex-direction: column;
    padding: 4px;
}

.add-menu-card[b-3u7sl5khlg] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
}

.add-menu-card + .add-menu-card[b-3u7sl5khlg] {
    border-top: 1px solid var(--bs-border-color, #f0f0f0);
    border-radius: 0 0 6px 6px;
}

.add-menu-card:hover:not(.is-disabled)[b-3u7sl5khlg] {
    background: var(--bs-tertiary-bg, #f5f7fa);
}

.add-menu-card.is-disabled[b-3u7sl5khlg] {
    opacity: .45;
    cursor: default;
}

.add-menu-icon[b-3u7sl5khlg] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    height: 32px;
    border-radius: 6px;
    background: #e7f3ff;
    color: #0b5ed7;
}

.add-menu-text[b-3u7sl5khlg] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.add-menu-title[b-3u7sl5khlg] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.add-menu-badge[b-3u7sl5khlg] {
    font-size: 10px;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 10px;
    background: #0b5ed7;
    color: #fff;
    font-weight: 600;
}

.add-menu-desc[b-3u7sl5khlg] {
    font-size: 12px;
    color: var(--bs-secondary, #6c757d);
    white-space: normal;
}

/* Indeks producenta — pole i jego dwa stany bez wartości: jest podpowiedź albo jej nie ma. */
.mfg-index-na[b-3u7sl5khlg] {
    color: var(--text-muted, #999);
}

.mfg-index-hint[b-3u7sl5khlg] {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mfg-index-hint .btn-link[b-3u7sl5khlg] {
    padding: 0;
    text-align: left;
    font-size: 0.8rem;
}

.mfg-index-origin[b-3u7sl5khlg] {
    font-size: 0.72rem;
    color: var(--text-muted, #777);
}

/* Bez indeksu pozycja nie pojedzie do producenta — to nie jest kosmetyka, tylko blokada zamówienia. */
.mfg-index-missing[b-3u7sl5khlg] {
    font-size: 0.72rem;
    color: #b26a00;
}

/* Kod ERP firmy (z Huba) pod nazwą produktu — informacja, nie pole do edycji. */
/* Kolor tekstu wiersza, nie motywu: podświetlony wiersz jest zielony, a zielony link na nim znika. */
.erp-code-tag[b-3u7sl5khlg] {
    font-size: 0.72rem;
    color: inherit;
    opacity: 0.75;
    font-family: Consolas, "Courier New", monospace;
}

/* Cechy pozycji pod nazwą — link do ich zmiany. Kolor jak wyżej; link poznać po podkreśleniu. */
.features-link[b-3u7sl5khlg] {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.75rem;
    text-align: left;
    color: inherit;
    opacity: 0.8;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
    cursor: pointer;
}

.features-link:hover[b-3u7sl5khlg] {
    opacity: 1;
    text-decoration-style: solid;
}

/* ---- Compact header: fields in groups, narrow fields at fixed widths ---- */

.header-form.compact[b-3u7sl5khlg] {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
}

/* Three columns: offer + prices stacked | investor with address (needs the room) | narrow "other". */
.hdr-col[b-3u7sl5khlg] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.hdr-col.col-offer[b-3u7sl5khlg]    { flex: 1 1 380px; }
.hdr-col.col-investor[b-3u7sl5khlg] { flex: 1.8 1 520px; }
.hdr-col.col-other[b-3u7sl5khlg]    { flex: 0 1 240px; min-width: 200px; }

.hdr-group[b-3u7sl5khlg] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* Group caption: a thin rule with a small title, so the groups read as groups without boxes. */
.hdr-group-caption[b-3u7sl5khlg] {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.6));
    border-bottom: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.15));
    padding-bottom: 1px;
    margin-bottom: 2px;
}

.hdr-fields[b-3u7sl5khlg] {
    display: flex;
    gap: 8px;
}

.hdr-fields.stacked[b-3u7sl5khlg] {
    flex-direction: column;
    gap: 4px;
}

.form-group.flex-15[b-3u7sl5khlg] {
    flex: 1.5;
}

.header-form.compact .form-group[b-3u7sl5khlg] {
    gap: 1px;
    min-width: 0;
}

.header-form.compact .form-group label[b-3u7sl5khlg] {
    font-size: 10.5px;
    letter-spacing: 0.3px;
    text-transform: none;
}

.form-group.w-xs[b-3u7sl5khlg]   { flex: 0 0 90px;  min-width: 90px; }
.form-group.w-zip[b-3u7sl5khlg]  { flex: 0 0 100px; min-width: 100px; }
.form-group.w-date[b-3u7sl5khlg] { flex: 0 0 140px; min-width: 140px; }
.form-group.w-md[b-3u7sl5khlg]   { flex: 0 0 160px; min-width: 160px; }
.form-group.w-lg[b-3u7sl5khlg]   { flex: 0 0 200px; min-width: 140px; }

/* Header panel: tighter padding — the lines grid below is what the user works in. */
.offer-edit-header-panel[b-3u7sl5khlg] {
    padding: 10px 16px 12px;
}

.offer-edit-header-panel .header-title[b-3u7sl5khlg] {
    margin-bottom: 8px;
}

/* Red dot on "Zapisz" — same signal as on the investment page. */
[b-3u7sl5khlg] .save-toolbar-item.is-dirty {
    position: relative;
}

[b-3u7sl5khlg] .save-toolbar-item.is-dirty::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #dc3545;
    box-shadow: 0 0 0 2px var(--bs-body-bg, #fff);
    pointer-events: none;
}

/* ---- Hub price list (docs/pricelist/plan.md) ---- */

/* The button sits on the inputs' baseline, not on their labels'. */
.form-group.pricing-action[b-3u7sl5khlg] {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.pricing-notices[b-3u7sl5khlg] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: -4px;
    font-size: 0.78rem;
}

.pricing-notice.info[b-3u7sl5khlg] {
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
}

.pricing-notice.warn[b-3u7sl5khlg] {
    color: #e0a040;
}

/* Amber, like a missing manufacturer index: a gap to fill, not an error. */
.price-missing-hint[b-3u7sl5khlg] {
    font-size: 0.72rem;
    color: #e0a040;
}

/* Muted, not amber: the price is there and valid, just not for exactly the chosen colour. */
.price-approx-hint[b-3u7sl5khlg] {
    font-size: 0.72rem;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    cursor: help;
}

[b-3u7sl5khlg] .grid-edit-spin.price-missing .dxbl-spin-edit,
[b-3u7sl5khlg] .grid-edit-spin.price-missing.dxbl-spin-edit {
    border-color: #e0a040;
}

.summary-value.no-price[b-3u7sl5khlg] {
    color: #e0a040;
    font-weight: 600;
}
/* /Components/OfferLineFeaturesDialog.razor.rz.scp.css */
.lf-body[b-3pqnezuyif] {
    min-height: 160px;
    padding: 4px 2px;
}

.lf-state[b-3pqnezuyif] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #95a5a6;
    padding: 32px 16px;
}

.lf-state.small[b-3pqnezuyif] {
    justify-content: flex-start;
    padding: 16px 0;
}

.lf-product[b-3pqnezuyif] {
    font-weight: 600;
    font-size: 1rem;
}

.lf-muted[b-3pqnezuyif] {
    color: #8a949e;
    font-size: 0.82rem;
}

.lf-editor[b-3pqnezuyif] {
    margin: 14px 0;
}

.lf-check[b-3pqnezuyif] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    margin: 6px 0;
}

.lf-warning[b-3pqnezuyif] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff7e6;
    border: 1px solid #f5d08a;
    color: #8a5a00;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
    margin-top: 8px;
}

.lf-footer[b-3pqnezuyif] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}
/* /Components/OffersListDialog.razor.rz.scp.css */
.offers-dialog-header[b-a5emdxvre1] {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.offers-edit-icon[b-a5emdxvre1] {
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
    cursor: pointer;
}

.offers-edit-icon:hover[b-a5emdxvre1] {
    opacity: 0.75;
}

.full-width-grid-control[b-a5emdxvre1] {
    width: 100%;
}

.badge[b-a5emdxvre1] {
    font-size: 0.75em;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}

.spinner-border[b-a5emdxvre1] {
    width: 3rem;
    height: 3rem;
}
/* /Components/PdfGeneratorDialog.razor.rz.scp.css */
.pdf-generator-dialog[b-l58z3os5th] {
    padding: 20px;
}

.generation-progress[b-l58z3os5th] {
    text-align: center;
}

.current-step[b-l58z3os5th] {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

.generation-result[b-l58z3os5th] {
    padding: 10px 0;
}

.alert[b-l58z3os5th] {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.alert-success[b-l58z3os5th] {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger[b-l58z3os5th] {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.pdf-info[b-l58z3os5th] {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
}

.info-row[b-l58z3os5th] {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.info-row:last-child[b-l58z3os5th] {
    margin-bottom: 0;
}

.generation-options[b-l58z3os5th] {
    padding: 10px 0;
}

.template-display[b-l58z3os5th] {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-weight: 500;
}

.generation-settings[b-l58z3os5th] {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.generation-settings .form-check[b-l58z3os5th] {
    margin-bottom: 10px;
}

.generation-settings .form-check:last-child[b-l58z3os5th] {
    margin-bottom: 0;
}

.form-label[b-l58z3os5th] {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.popup-footer[b-l58z3os5th] {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

.popup-footer .btn[b-l58z3os5th] {
    display: flex;
    align-items: center;
}

.me-2[b-l58z3os5th] {
    margin-right: 0.5rem;
}

.w-100[b-l58z3os5th] {
    width: 100%;
}

@media (max-width: 768px) {
    .pdf-generator-dialog[b-l58z3os5th] {
        padding: 15px;
    }
    
    .popup-footer[b-l58z3os5th] {
        flex-direction: column;
    }
    
    .popup-footer .btn[b-l58z3os5th] {
        justify-content: center;
    }
    
    .info-row[b-l58z3os5th] {
        flex-direction: column;
        gap: 4px;
    }
}
/* /Components/PdfTemplateSelector.razor.rz.scp.css */
.pdf-template-selector[b-2vvify4th3] {
    padding: 20px;
}

.template-grid[b-2vvify4th3] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.template-card[b-2vvify4th3] {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.template-card:hover[b-2vvify4th3] {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.template-card.selected[b-2vvify4th3] {
    border-color: #007bff;
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.template-preview[b-2vvify4th3] {
    width: 100%;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-image[b-2vvify4th3] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-placeholder[b-2vvify4th3] {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.preview-placeholder i[b-2vvify4th3] {
    font-size: 2rem;
}

.template-info[b-2vvify4th3] {
    text-align: left;
}

.template-name[b-2vvify4th3] {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.template-description[b-2vvify4th3] {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.template-metadata[b-2vvify4th3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badge[b-2vvify4th3] {
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.badge-primary[b-2vvify4th3] {
    background-color: #007bff;
    color: white;
}

.badge-secondary[b-2vvify4th3] {
    background-color: #6c757d;
    color: white;
}

.template-version[b-2vvify4th3] {
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}

.template-options[b-2vvify4th3] {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.popup-footer[b-2vvify4th3] {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .template-grid[b-2vvify4th3] {
        grid-template-columns: 1fr;
    }
    
    .pdf-template-selector[b-2vvify4th3] {
        padding: 15px;
    }
    
    .popup-footer[b-2vvify4th3] {
        flex-direction: column;
    }
}
/* /Components/PerspectiveCameraEditor.razor.rz.scp.css */
/* Premium Perspective Camera Editor Styling - Optimized for Vertical Space */

[b-butjxhzb20] .perspective-camera-editor {
    padding: 14px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8faf9 100%);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(76, 187, 23, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[b-butjxhzb20] .perspective-camera-editor:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
    border-color: rgba(76, 187, 23, 0.25);
}

/* Perspective Toggle Section */
[b-butjxhzb20] .perspective-toggle {
    margin-bottom: 10px;
    padding: 10px;
    background: linear-gradient(135deg, #f8faf9, #ffffff);
    border-radius: 8px;
    border: 2px solid #e8ede9;
    transition: all 0.2s ease;
}

[b-butjxhzb20] .perspective-toggle:hover {
    border-color: rgba(76, 187, 23, 0.3);
    box-shadow: 0 2px 8px rgba(76, 187, 23, 0.08);
}

/* Toggle Switch */
[b-butjxhzb20] .perspective-toggle .form-check {
    margin-bottom: 8px;
}

[b-butjxhzb20] .perspective-toggle .form-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

[b-butjxhzb20] .perspective-toggle .form-check-input[type="checkbox"][role="switch"] {
    width: 2.75rem;
    height: 1.375rem;
    margin: 0;
    background-color: #cbd5e0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 1.375rem;
    border: 2px solid #cbd5e0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

[b-butjxhzb20] .perspective-toggle .form-check-input[type="checkbox"][role="switch"]:hover {
    border-color: #a0aec0;
}

[b-butjxhzb20] .perspective-toggle .form-check-input[type="checkbox"][role="switch"]:checked {
    background-color: #4CBB17;
    background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
    border-color: #4CBB17;
    box-shadow: 0 0 0 4px rgba(76, 187, 23, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

[b-butjxhzb20] .perspective-toggle .form-check-input[type="checkbox"][role="switch"]:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(76, 187, 23, 0.15);
}

[b-butjxhzb20] .perspective-toggle .form-check-label {
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.3;
    user-select: none;
}

/* Form Text (Status) */
[b-butjxhzb20] .perspective-toggle .form-text {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 6px;
    font-style: italic;
    padding-left: 4px;
    line-height: 1.3;
}

/* Angle Deviation Section */
[b-butjxhzb20] .angle-deviation-section {
    padding: 12px;
    background: white;
    border: 2px solid rgba(76, 187, 23, 0.3);
    border-radius: 8px;
    margin-top: 0;
    box-shadow: 0 2px 8px rgba(76, 187, 23, 0.08);
}

[b-butjxhzb20] .angle-deviation-section h5 {
    margin: 0 0 10px 0;
    font-size: 0.9375rem;
    color: #2d3748;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    position: relative;
    padding-left: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(76, 187, 23, 0.2);
}

[b-butjxhzb20] .angle-deviation-section h5::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(135deg, #4CBB17, #3da012);
    border-radius: 2px;
}

/* Deviation Info Display */
[b-butjxhzb20] .deviation-info {
    margin-bottom: 12px;
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #e8f5e1, #f0f9ec);
    border-radius: 8px;
    border: 2px solid rgba(76, 187, 23, 0.2);
}

[b-butjxhzb20] .deviation-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4CBB17;
    display: block;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    line-height: 1.2;
}

[b-butjxhzb20] .deviation-info .form-text {
    font-size: 0.75rem;
    color: #4a5568;
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}

/* Button Groups */
[b-butjxhzb20] .deviation-buttons {
    margin-bottom: 0;
}

[b-butjxhzb20] .button-group {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

[b-butjxhzb20] .button-group .btn {
    flex: 1;
    min-width: 80px;
    max-width: 115px;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Secondary Buttons (Adjust) */
[b-butjxhzb20] .btn-outline-secondary {
    border: 2px solid #a0aec0;
    color: #4a5568;
    background: white;
}

[b-butjxhzb20] .btn-outline-secondary:hover {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    border-color: #4a5568;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(74, 85, 104, 0.3);
}

[b-butjxhzb20] .btn-outline-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(74, 85, 104, 0.3);
}

[b-butjxhzb20] .btn-outline-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(74, 85, 104, 0.15);
}

/* Primary Button (Reset) */
[b-butjxhzb20] .btn-outline-primary {
    border: 2px solid #4CBB17;
    color: #4CBB17;
    background: white;
}

[b-butjxhzb20] .btn-outline-primary:hover {
    background: linear-gradient(135deg, #4CBB17, #3da012);
    border-color: #4CBB17;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(76, 187, 23, 0.3);
}

[b-butjxhzb20] .btn-outline-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(76, 187, 23, 0.3);
}

[b-butjxhzb20] .btn-outline-primary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(76, 187, 23, 0.15);
}

/* Reset Button Special Styling */
[b-butjxhzb20] .reset-btn {
    margin: 0;
    font-weight: 700;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    [b-butjxhzb20] .perspective-camera-editor {
        padding: 16px;
    }

    [b-butjxhzb20] .perspective-toggle {
        padding: 14px;
        margin-bottom: 14px;
    }

    [b-butjxhzb20] .angle-deviation-section {
        padding: 16px;
    }

    [b-butjxhzb20] .deviation-info {
        padding: 14px;
        margin-bottom: 16px;
    }

    [b-butjxhzb20] .deviation-value {
        font-size: 1.5rem;
    }

    [b-butjxhzb20] .button-group {
        gap: 6px;
    }

    [b-butjxhzb20] .button-group .btn {
        font-size: 0.75rem;
        padding: 10px 12px;
        min-width: 75px;
        min-height: 48px;
    }

    [b-butjxhzb20] .perspective-toggle .form-check-input[type="checkbox"][role="switch"] {
        width: 2.5rem;
        height: 1.25rem;
    }
}

/* Tablet Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    [b-butjxhzb20] .button-group .btn {
        min-width: 85px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    [b-butjxhzb20] .perspective-camera-editor,
    [b-butjxhzb20] .perspective-toggle,
    [b-butjxhzb20] .perspective-toggle .form-check-input,
    [b-butjxhzb20] .button-group .btn {
        transition: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    [b-butjxhzb20] .perspective-camera-editor {
        border: 2px solid #4CBB17;
    }

    [b-butjxhzb20] .perspective-toggle {
        border-width: 3px;
    }

    [b-butjxhzb20] .angle-deviation-section {
        border-width: 3px;
    }

    [b-butjxhzb20] .deviation-info {
        border-width: 3px;
    }

    [b-butjxhzb20] .button-group .btn {
        border-width: 3px;
    }
}
/* /Components/PointInfo.razor.rz.scp.css */
/* PointInfo Component - Uses shared inspector styles from app.scss */
/* This file only contains component-specific overrides */

/* Component uses these shared classes from app.scss:
   - .inspector-container (base container)
   - .inspector-property-box
   - .inspector-form-grid
   - .inspector-label / .inspector-label-inline
   - .inspector-static-value
   - .inspector-no-selection
*/

/* Component-specific styles for connected edges display */
[b-dweet954nr] .edges-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 6px;
}

[b-dweet954nr] .edge-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background-color: rgba(76, 187, 23, 0.05);
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

[b-dweet954nr] .edge-item:hover {
    background-color: rgba(76, 187, 23, 0.1);
}

[b-dweet954nr] .edge-item .edge-name {
    font-weight: 600;
    color: #2d3748;
}

[b-dweet954nr] .edge-item .edge-length,
[b-dweet954nr] .edge-item .edge-type {
    color: #718096;
    font-size: 0.875rem;
}
/* /Components/ProductFeaturesEditor.razor.rz.scp.css */
.features-editor[b-rgmvtin27f] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.features-row[b-rgmvtin27f] {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 10px;
}

.features-label[b-rgmvtin27f] {
    font-weight: 500;
    color: #495057;
    margin: 0;
}
/* /Components/ProductsSelector.razor.rz.scp.css */
[b-hxm7u7bxkd] .products-selector-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bs-body-bg, #212529);
    color: var(--bs-body-color, #e5e5e5);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Toolbar Panel */
[b-hxm7u7bxkd] .toolbar-panel {
    width: 100%;
    background-color: var(--bs-secondary-bg, #222222);
    border-bottom: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    padding: 8px 0;
}

[b-hxm7u7bxkd] .toolbar-panel .dxbl-toolbar {
    background: transparent;
}

/* Category Toolbar Items */
[b-hxm7u7bxkd] .category-toolbar-item {
    margin: 0 4px;
}

[b-hxm7u7bxkd] .category-btn-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 45px;
    padding: 8px 16px;
    background: none;
    border: 2px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 8px;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    cursor: pointer;
    transition: all 0.3s ease;
}

[b-hxm7u7bxkd] .category-btn-content:hover {
    border-color: var(--bs-border-color, rgba(229, 229, 229, 0.4));
    background-color: rgba(254, 113, 9, 0.05);
}

[b-hxm7u7bxkd] .category-btn-content.selected {
    border-color: var(--bs-primary, #fe7109);
    background-color: rgba(254, 113, 9, 0.1);
    color: var(--bs-primary, #fe7109);
}

[b-hxm7u7bxkd] .category-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[b-hxm7u7bxkd] .category-svg-icon {
    width: 40px;
    height: 40px;
}

[b-hxm7u7bxkd] .category-title {
    font-size: 12px;
    font-weight: 500;
}

/* Search Toolbar Item */
[b-hxm7u7bxkd] .search-toolbar-item {
    flex-grow: 1;
    max-width: 400px;
    margin: 0 20px;
}

/* Search Panel */
[b-hxm7u7bxkd] .search-panel {
    display: flex;
    align-items: center;
    width: 100%;
}

[b-hxm7u7bxkd] .product-search-box {
    width: 100%;
}

/* Search scope switch — discreet: muted until active */
[b-hxm7u7bxkd] .search-scope-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    margin-left: 6px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.6));
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

    [b-hxm7u7bxkd] .search-scope-toggle:hover {
        color: var(--bs-body-color, #e5e5e5);
        border-color: var(--bs-border-color, rgba(229, 229, 229, 0.2));
    }

    [b-hxm7u7bxkd] .search-scope-toggle.active {
        color: var(--bs-primary, #fe7109);
        border-color: rgba(254, 113, 9, 0.4);
        background-color: rgba(254, 113, 9, 0.08);
    }

[b-hxm7u7bxkd] .product-search-box .dxbl-textbox {
    background-color: var(--bs-tertiary-bg, #222426);
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 8px;
    color: var(--bs-body-color, #e5e5e5);
    font-size: 14px;
    transition: all 0.3s ease;
}

[b-hxm7u7bxkd] .product-search-box .dxbl-textbox:focus-within {
    border-color: var(--bs-primary, #fe7109);
    background-color: var(--bs-body-bg, #212529);
    box-shadow: 0 0 0 2px rgba(254, 113, 9, 0.2);
}

/* Calculation Toolbar Item */
[b-hxm7u7bxkd] .calculation-toolbar-item {
    margin-left: 10px;
}

[b-hxm7u7bxkd] .calculation-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background-color: var(--bs-tertiary-bg, #222426);
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 8px;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
}

[b-hxm7u7bxkd] .calculation-panel:hover {
    border-color: var(--bs-primary, #fe7109);
    background-color: rgba(254, 113, 9, 0.05);
}

[b-hxm7u7bxkd] .calculation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary, #fe7109);
}

[b-hxm7u7bxkd] .calculation-icon svg {
    width: 20px;
    height: 20px;
}

[b-hxm7u7bxkd] .calculation-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

[b-hxm7u7bxkd] .calculation-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--bs-body-color, #e5e5e5);
}

[b-hxm7u7bxkd] .calculation-count {
    font-size: 14px;
    font-weight: bold;
    color: var(--bs-primary, #fe7109);
    background-color: rgba(254, 113, 9, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

/* Main Panel */
[b-hxm7u7bxkd] .main-panel {
    flex: 1;
    display: flex;
    height: calc(100vh - 85px);
}

/* Company List Panel (15%) */
[b-hxm7u7bxkd] .company-list-panel {
    width: 15%;
    background-color: var(--bs-secondary-bg, #222222);
    border-right: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    padding: 20px 15px;
    overflow-y: auto;
}

    [b-hxm7u7bxkd] .company-list-panel h3 {
        color: var(--bs-emphasis-color, #ffffff);
        margin-bottom: 20px;
        font-size: 16px;
        font-weight: 600;
    }

[b-hxm7u7bxkd] .company-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 8px;
    border: 1px solid transparent;
    position: relative; /* anchors .own-company-badge */
}

    [b-hxm7u7bxkd] .company-item:hover {
        background-color: rgba(254, 113, 9, 0.05);
    }

    [b-hxm7u7bxkd] .company-item.selected {
        background-color: rgba(254, 113, 9, 0.1);
        border: 1px solid var(--bs-primary, #fe7109);
    }

[b-hxm7u7bxkd] .company-initials {
    width: 32px;
    height: 32px;
    background-color: var(--bs-primary, #fe7109);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
}

[b-hxm7u7bxkd] .company-info {
    flex: 1;
    min-width: 0;
}

[b-hxm7u7bxkd] .company-name {
    font-weight: 500;
    font-size: 13px;
    line-height: 1.2;
    color: var(--bs-emphasis-color, #ffffff);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[b-hxm7u7bxkd] .company-location {
    font-size: 11px;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
}

/* Favorite toggle button on each company item */
[b-hxm7u7bxkd] .favorite-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 4px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.55));
    transition: color 0.15s ease, transform 0.15s ease;
}

    [b-hxm7u7bxkd] .favorite-btn:hover {
        color: #fe7109;
        transform: scale(1.15);
    }

    [b-hxm7u7bxkd] .favorite-btn.is-fav {
        color: #fe7109;
    }

/* "Ulubione produkty" shortcut entry at the top of the company list */
[b-hxm7u7bxkd] .company-item.favorite-products-entry {
    border: 1px dashed rgba(254, 113, 9, 0.45);
    margin-bottom: 8px;
}

[b-hxm7u7bxkd] .company-initials.favorite-products-icon {
    background: transparent;
    border: 1px solid var(--bs-primary, #fe7109);
    color: var(--bs-primary, #fe7109);
    font-size: 16px;
}

/* Favorite products view (content panel) */
.products-list.favorite-products-list[b-hxm7u7bxkd] {
    width: 100%;
    border-right: none;
}

.favorite-products-header h3[b-hxm7u7bxkd] {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--bs-emphasis-color, #ffffff);
}

.favorite-products-hint[b-hxm7u7bxkd] {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.65));
}

.favorite-products-group[b-hxm7u7bxkd] {
    margin: 16px 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
}

/* Own products: always a favorite, the heart is a marker, not a toggle */
[b-hxm7u7bxkd] .favorite-btn.always-fav {
    cursor: default;
    opacity: 0.75;
}

    [b-hxm7u7bxkd] .favorite-btn.always-fav:hover {
        transform: none;
    }

/* Sets outside the company assortment — dimmed when unfolded, folded behind one button otherwise */
.product-item.outside-assortment[b-hxm7u7bxkd] {
    opacity: 0.6;
}

    .product-item.outside-assortment:hover[b-hxm7u7bxkd],
    .product-item.outside-assortment.selected[b-hxm7u7bxkd] {
        opacity: 1;
    }

.outside-assortment-toggle[b-hxm7u7bxkd] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    background: transparent;
    border: 1px dashed var(--bs-border-color, rgba(229, 229, 229, 0.3));
    border-radius: 8px;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

    .outside-assortment-toggle:hover[b-hxm7u7bxkd] {
        border-color: var(--bs-primary, #fe7109);
        color: var(--bs-emphasis-color, #ffffff);
    }

/* Favorites / All filter tabs */
[b-hxm7u7bxkd] .favorites-filter-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

[b-hxm7u7bxkd] .favorites-filter-tab {
    flex: 1;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--bs-border-color, rgba(255, 255, 255, 0.15));
    background: transparent;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

    [b-hxm7u7bxkd] .favorites-filter-tab:hover {
        background-color: rgba(254, 113, 9, 0.08);
    }

    [b-hxm7u7bxkd] .favorites-filter-tab.active {
        background-color: rgba(254, 113, 9, 0.15);
        border-color: var(--bs-primary, #fe7109);
        color: var(--bs-emphasis-color, #ffffff);
    }

/* Content Panel (85%) */
[b-hxm7u7bxkd] .content-panel {
    width: 85%;
    display: flex;
    flex-direction: column;
}

/* Company Info Panel (10% of content panel) */
[b-hxm7u7bxkd] .company-info-panel {
    height: 10%;
    background-color: var(--bs-body-bg, #212529);
    border-bottom: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

[b-hxm7u7bxkd] .company-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

[b-hxm7u7bxkd] .company-initials-large {
    width: 50px;
    height: 50px;
    background-color: var(--bs-primary, #fe7109);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.company-details h2[b-hxm7u7bxkd] {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--bs-emphasis-color, #ffffff);
}

.company-meta[b-hxm7u7bxkd] {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
}

.company-meta span[b-hxm7u7bxkd] {
    display: flex;
    align-items: center;
}

/* Products Panel (90% of content panel) */
.products-panel[b-hxm7u7bxkd] {
    height: 90%;
    display: flex;
}

/* Products List (60% of products panel) */
.products-list[b-hxm7u7bxkd] {
    width: 60%;
    background-color: var(--bs-secondary-bg, #222222);
    border-right: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    padding: 20px;
    overflow-y: auto;
}

.product-item[b-hxm7u7bxkd] {
    background-color: var(--bs-tertiary-bg, #222426);
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-item:hover[b-hxm7u7bxkd] {
    border-color: var(--bs-border-color, rgba(229, 229, 229, 0.4));
    background-color: rgba(254, 113, 9, 0.05);
}

.product-item.selected[b-hxm7u7bxkd] {
    border-color: var(--bs-primary, #fe7109);
    background-color: rgba(254, 113, 9, 0.1);
}

.product-header-row[b-hxm7u7bxkd] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.product-name[b-hxm7u7bxkd] {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--bs-emphasis-color, #ffffff);
}

.product-manufacturer[b-hxm7u7bxkd] {
    flex: 0 0 auto;
    max-width: 50%;
    font-size: 11px;
    font-weight: 500;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.6));
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-description[b-hxm7u7bxkd] {
    font-size: 14px;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    line-height: 1.4;
    margin: 0;
}

/* Product Details Panel (40% of products panel) */
.product-details-panel[b-hxm7u7bxkd] {
    width: 40%;
    background-color: var(--bs-body-bg, #212529);
    padding: 20px;
    overflow-y: auto;
}

.product-image[b-hxm7u7bxkd] {
    width: 100%;
    margin-bottom: 20px;
}

.product-image img[b-hxm7u7bxkd] {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    background-color: var(--bs-tertiary-bg, #222426);
}

.product-title[b-hxm7u7bxkd] {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--bs-primary, #fe7109);
}

.product-specs h4[b-hxm7u7bxkd] {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--bs-emphasis-color, #ffffff);
}

.product-specs table[b-hxm7u7bxkd] {
    width: 100%;
    border-spacing: 0;
    margin-bottom: 30px;
}

.product-specs table tr[b-hxm7u7bxkd] {
    border-bottom: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
}

.product-specs table td[b-hxm7u7bxkd] {
    padding: 8px 0;
    font-size: 14px;
}

.product-specs table td:first-child[b-hxm7u7bxkd] {
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    width: 40%;
}

.product-specs table td:last-child[b-hxm7u7bxkd] {
    color: var(--bs-emphasis-color, #ffffff);
    font-weight: 500;
}

.product-actions[b-hxm7u7bxkd] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.btn-add-calculation[b-hxm7u7bxkd] {
    padding: 10px 24px;
    border-radius: 6px;
    border: 1px solid var(--bs-primary, #4CBB17);
    background-color: var(--bs-primary, #4CBB17);
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-add-calculation:hover:not(:disabled)[b-hxm7u7bxkd] {
    opacity: 0.85;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 187, 23, 0.3);
}

.btn-add-calculation:disabled[b-hxm7u7bxkd] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-add-basket[b-hxm7u7bxkd], .btn-more-details[b-hxm7u7bxkd] {
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-add-basket[b-hxm7u7bxkd] {
    background-color: var(--bs-primary, #fe7109);
    color: white;
    border: 1px solid var(--bs-primary, #fe7109);
}

.btn-add-basket:hover[b-hxm7u7bxkd] {
    background-color: var(--bs-primary-text-emphasis, #feaa6b);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(254, 113, 9, 0.3);
}

.btn-more-details[b-hxm7u7bxkd] {
    background-color: transparent;
    color: var(--bs-primary, #fe7109);
    border: 1px solid var(--bs-primary, #fe7109);
}

.btn-more-details:hover[b-hxm7u7bxkd] {
    background-color: rgba(254, 113, 9, 0.1);
    transform: translateY(-1px);
}

/* Scrollbar Styling */
[b-hxm7u7bxkd]::-webkit-scrollbar {
    width: 6px;
}

[b-hxm7u7bxkd]::-webkit-scrollbar-track {
    background: var(--bs-secondary-bg, #222222);
}

[b-hxm7u7bxkd]::-webkit-scrollbar-thumb {
    background: var(--bs-border-color, rgba(229, 229, 229, 0.3));
    border-radius: 3px;
}

[b-hxm7u7bxkd]::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary, #fe7109);
}

/* Loading State */
.loading-container[b-hxm7u7bxkd] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    gap: 20px;
}

.loading-spinner[b-hxm7u7bxkd] {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-top: 3px solid var(--bs-primary, #fe7109);
    border-radius: 50%;
    animation: spin-b-hxm7u7bxkd 1s linear infinite;
}

@keyframes spin-b-hxm7u7bxkd {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text[b-hxm7u7bxkd] {
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    font-size: 14px;
    margin: 0;
}

/* Empty State */
.empty-state[b-hxm7u7bxkd] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    text-align: center;
    padding: 40px 20px;
}

.empty-text[b-hxm7u7bxkd] {
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    font-size: 16px;
    margin: 0 0 10px 0;
}

.empty-subtext[b-hxm7u7bxkd] {
    color: var(--bs-tertiary-color, rgba(229, 229, 229, 0.5));
    font-size: 14px;
    margin: 0;
}

/* Product Members Section */
.product-members-section[b-hxm7u7bxkd] {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--bs-tertiary-bg, #222426);
    border-radius: 8px;
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
}

.product-members-section h4[b-hxm7u7bxkd],
.mobile-included-products h4[b-hxm7u7bxkd] {
    font-size: 14px;
    margin: 0;
    color: var(--bs-emphasis-color, #ffffff);
    font-weight: 600;
}

/* Included products — header with selection count, filter and bulk toggles */
.members-header[b-hxm7u7bxkd] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.members-selected-count[b-hxm7u7bxkd] {
    font-size: 12px;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    white-space: nowrap;
}

.members-toolbar[b-hxm7u7bxkd] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.members-filter[b-hxm7u7bxkd] {
    flex: 1;
    min-width: 0;
    padding: 5px 9px;
    font-size: 13px;
    color: var(--bs-body-color, #e5e5e5);
    background-color: var(--bs-body-bg, #212529);
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 6px;
    outline: none;
}

    .members-filter:focus[b-hxm7u7bxkd] {
        border-color: var(--bs-primary, #fe7109);
    }

.members-bulk-btn[b-hxm7u7bxkd] {
    flex-shrink: 0;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--bs-primary, #fe7109);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

    .members-bulk-btn:hover:not(:disabled)[b-hxm7u7bxkd] {
        border-color: rgba(254, 113, 9, 0.4);
    }

    .members-bulk-btn:disabled[b-hxm7u7bxkd] {
        color: var(--bs-tertiary-color, rgba(229, 229, 229, 0.35));
        cursor: default;
    }

.members-no-match[b-hxm7u7bxkd] {
    font-size: 13px;
    color: var(--bs-tertiary-color, rgba(229, 229, 229, 0.5));
    margin: 6px 0;
}

.product-member-item.excluded .member-name[b-hxm7u7bxkd] {
    color: var(--bs-tertiary-color, rgba(229, 229, 229, 0.45));
}

.product-members-list[b-hxm7u7bxkd] {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-member-item[b-hxm7u7bxkd] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.1));
}

.product-member-item:last-child[b-hxm7u7bxkd] {
    border-bottom: none;
}

.member-image[b-hxm7u7bxkd] {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
    background-color: var(--bs-secondary-bg, #222222);
    flex-shrink: 0;
}

.member-image-placeholder[b-hxm7u7bxkd] {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bs-secondary-bg, #222222);
    border-radius: 4px;
    font-size: 18px;
    flex-shrink: 0;
}

.member-info[b-hxm7u7bxkd] {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-name[b-hxm7u7bxkd] {
    font-size: 13px;
    color: var(--bs-body-color, #e5e5e5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-checkbox[b-hxm7u7bxkd] {
    flex-shrink: 0;
}

.member-badge[b-hxm7u7bxkd] {
    font-size: 10px;
    padding: 2px 6px;
    background-color: var(--bs-primary, #fe7109);
    color: white;
    border-radius: 3px;
    font-weight: 500;
    flex-shrink: 0;
}

.more-members-hint[b-hxm7u7bxkd] {
    font-size: 12px;
    color: var(--bs-primary, #fe7109);
    margin: 10px 0 0 0;
    font-style: italic;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.more-members-hint:hover[b-hxm7u7bxkd] {
    color: var(--bs-primary-text-emphasis, #ff8c3a);
    text-decoration: underline;
}

/* Details Loading State */
.details-loading[b-hxm7u7bxkd] {
    height: 100%;
    min-height: 300px;
}

/* Product Description Section */
.product-description-section[b-hxm7u7bxkd] {
    margin-bottom: 15px;
    padding: 12px;
    background-color: var(--bs-tertiary-bg, #222426);
    border-radius: 6px;
    border-left: 3px solid var(--bs-primary, #fe7109);
}

.product-description-text[b-hxm7u7bxkd] {
    font-size: 13px;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.85));
    line-height: 1.5;
    margin: 0;
}

/* Product Properties Section */
.product-properties-section[b-hxm7u7bxkd] {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--bs-tertiary-bg, #222426);
    border-radius: 8px;
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
}

.product-properties-section h4[b-hxm7u7bxkd] {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--bs-emphasis-color, #ffffff);
    font-weight: 600;
}

.properties-grid[b-hxm7u7bxkd] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.property-row[b-hxm7u7bxkd] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.property-row label[b-hxm7u7bxkd] {
    font-size: 12px;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    font-weight: 500;
}

.property-row .property-selector[b-hxm7u7bxkd] {
    width: 100%;
}

[b-hxm7u7bxkd] .property-selector .dxbl-combobox {
    background-color: var(--bs-secondary-bg, #222222);
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 4px;
    color: var(--bs-body-color, #e5e5e5);
}

[b-hxm7u7bxkd] .property-selector .dxbl-combobox:focus-within {
    border-color: var(--bs-primary, #fe7109);
    box-shadow: 0 0 0 2px rgba(254, 113, 9, 0.2);
}

/* Company List Header with Filter */
[b-hxm7u7bxkd] .company-list-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

[b-hxm7u7bxkd] .company-list-header h3 {
    margin: 0;
}

[b-hxm7u7bxkd] .country-filter-combo {
    width: 100%;
}

[b-hxm7u7bxkd] .country-filter-combo .dxbl-combobox {
    background-color: var(--bs-tertiary-bg, #222426);
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 6px;
    font-size: 12px;
}

[b-hxm7u7bxkd] .company-search-box {
    width: 100%;
    margin-top: 6px;
}

[b-hxm7u7bxkd] .company-search-box .dxbl-text-edit {
    background-color: var(--bs-tertiary-bg, #222426);
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 6px;
    font-size: 12px;
}

/* Own Company Styling — no frame of its own: a border here looked exactly like the selection,
   so two tiles appeared selected at once. The star badge marks it. */

[b-hxm7u7bxkd] .own-company-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[b-hxm7u7bxkd] .company-initials.own {
    background: linear-gradient(135deg, var(--bs-primary, #fe7109) 0%, #ff9500 100%);
    box-shadow: 0 2px 8px rgba(254, 113, 9, 0.4);
}

[b-hxm7u7bxkd] .company-initials-large.own {
    background: linear-gradient(135deg, var(--bs-primary, #fe7109) 0%, #ff9500 100%);
    box-shadow: 0 3px 12px rgba(254, 113, 9, 0.4);
}

/* Own Company Info Panel */
[b-hxm7u7bxkd] .company-info-panel.own-company {
    background: linear-gradient(135deg, rgba(254, 113, 9, 0.08) 0%, rgba(254, 113, 9, 0.02) 100%);
    border-bottom: 2px solid var(--bs-primary, #fe7109);
}

/* Company Logo */
[b-hxm7u7bxkd] .company-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bs-tertiary-bg, #222426);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

[b-hxm7u7bxkd] .company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Company Title Row */
[b-hxm7u7bxkd] .company-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

[b-hxm7u7bxkd] .company-title-row h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--bs-emphasis-color, #ffffff);
}

[b-hxm7u7bxkd] .own-company-label {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #333;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Company Contact Info */
[b-hxm7u7bxkd] .company-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
}

[b-hxm7u7bxkd] .company-contact-info > span {
    display: flex;
    align-items: center;
    gap: 6px;
}

[b-hxm7u7bxkd] .company-contact-info svg {
    color: var(--bs-primary, #fe7109);
    flex-shrink: 0;
}

[b-hxm7u7bxkd] .company-contact-info a {
    color: var(--bs-primary, #fe7109);
    text-decoration: none;
    transition: color 0.2s ease;
}

[b-hxm7u7bxkd] .company-contact-info a:hover {
    color: var(--bs-primary-text-emphasis, #ff8c3a);
    text-decoration: underline;
}

[b-hxm7u7bxkd] .company-country {
    font-weight: 500;
    color: var(--bs-body-color, #e5e5e5);
}

[b-hxm7u7bxkd] .company-vat {
    font-size: 11px;
    color: var(--bs-tertiary-color, rgba(229, 229, 229, 0.5));
}

/* ===========================================
   MOBILE RESPONSIVE STYLES
   =========================================== */

/* Hide mobile elements on desktop */
[b-hxm7u7bxkd] .mobile-toolbar {
    display: none;
}

[b-hxm7u7bxkd] .mobile-company-header {
    display: none;
}

[b-hxm7u7bxkd] .product-mobile-actions {
    display: none;
}

/* Mobile breakpoint (768px and below) */
@media screen and (max-width: 768px) {
    /* Hide desktop toolbar, show mobile toolbar */
    [b-hxm7u7bxkd] .desktop-toolbar {
        display: none;
    }

    [b-hxm7u7bxkd] .mobile-toolbar {
        display: flex;
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }

    [b-hxm7u7bxkd] .mobile-toolbar-row {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    [b-hxm7u7bxkd] .mobile-toolbar-row .calculation-panel {
        flex-shrink: 0;
        min-width: auto;
        padding: 8px 12px;
    }

    [b-hxm7u7bxkd] .mobile-toolbar-row .calculation-label {
        display: none;
    }

    [b-hxm7u7bxkd] .mobile-search-panel {
        flex: 1;
        display: flex;
        align-items: center;
    }

    [b-hxm7u7bxkd] .mobile-search-panel .search-scope-label {
        display: none;
    }

    [b-hxm7u7bxkd] .mobile-category-row {
        width: 100%;
    }

    [b-hxm7u7bxkd] .mobile-category-dropdown {
        width: 100%;
    }

    [b-hxm7u7bxkd] .mobile-category-dropdown .dxbl-combobox {
        background-color: var(--bs-tertiary-bg, #222426);
        border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
        border-radius: 8px;
    }

    [b-hxm7u7bxkd] .mobile-category-item {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    [b-hxm7u7bxkd] .mobile-category-icon {
        display: flex;
        align-items: center;
    }

    [b-hxm7u7bxkd] .mobile-category-icon svg {
        width: 20px;
        height: 20px;
    }

    /* Main panel - vertical stack on mobile */
    [b-hxm7u7bxkd] .main-panel {
        flex-direction: column;
        height: auto;
        overflow-y: auto;
    }

    /* Company list panel - full width on mobile */
    [b-hxm7u7bxkd] .company-list-panel {
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
        padding: 0;
    }

    /* Mobile company header (collapsed state indicator) */
    [b-hxm7u7bxkd] .mobile-company-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 15px;
        background-color: var(--bs-tertiary-bg, #222426);
        cursor: pointer;
        border-bottom: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    }

    [b-hxm7u7bxkd] .mobile-company-header:hover {
        background-color: rgba(254, 113, 9, 0.05);
    }

    [b-hxm7u7bxkd] .mobile-company-header .company-info {
        flex: 1;
    }

    [b-hxm7u7bxkd] .mobile-company-header .expand-icon {
        color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    }

    [b-hxm7u7bxkd] .select-company-hint {
        flex: 1;
        color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
        font-style: italic;
    }

    /* Company list content - collapsible on mobile */
    [b-hxm7u7bxkd] .company-list-panel.collapsed .company-list-content {
        display: none;
    }

    [b-hxm7u7bxkd] .company-list-panel.expanded .company-list-content {
        display: block;
        max-height: 50vh;
        overflow-y: auto;
        padding: 10px 15px;
    }

    /* Content panel - full width on mobile */
    [b-hxm7u7bxkd] .content-panel {
        width: 100%;
        flex-direction: column;
    }

    /* Hide company info panel on mobile (info shown in collapsed header) */
    [b-hxm7u7bxkd] .company-info-panel {
        display: none;
    }

    /* Products panel - vertical stack on mobile */
    [b-hxm7u7bxkd] .products-panel {
        flex-direction: column;
        height: auto;
    }

    /* Products list - full width on mobile */
    [b-hxm7u7bxkd] .products-list {
        width: 100%;
        border-right: none;
        padding: 15px;
        max-height: none;
    }

    /* Product item with mobile actions */
    [b-hxm7u7bxkd] .product-item {
        padding: 15px;
    }

    [b-hxm7u7bxkd] .product-mobile-actions {
        display: flex;
        gap: 10px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.1));
        position: relative;
        z-index: 10;
    }

    [b-hxm7u7bxkd] .btn-mobile-details,
    [b-hxm7u7bxkd] .btn-mobile-add {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 12px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        pointer-events: auto;
        position: relative;
        z-index: 11;
        -webkit-tap-highlight-color: rgba(254, 113, 9, 0.3);
        touch-action: manipulation;
    }

    [b-hxm7u7bxkd] .btn-mobile-details {
        background-color: transparent;
        border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.3));
        color: var(--bs-body-color, #e5e5e5);
    }

    [b-hxm7u7bxkd] .btn-mobile-details:hover {
        background-color: rgba(229, 229, 229, 0.1);
        border-color: var(--bs-body-color, #e5e5e5);
    }

    [b-hxm7u7bxkd] .btn-mobile-add {
        background-color: var(--bs-primary, #fe7109);
        border: 1px solid var(--bs-primary, #fe7109);
        color: white;
    }

    [b-hxm7u7bxkd] .btn-mobile-add:hover {
        background-color: var(--bs-primary-text-emphasis, #feaa6b);
    }

    [b-hxm7u7bxkd] .btn-mobile-details:active {
        background-color: rgba(229, 229, 229, 0.2);
        transform: scale(0.98);
    }

    [b-hxm7u7bxkd] .btn-mobile-add:active {
        background-color: #e56308;
        transform: scale(0.98);
    }

    /* Hide desktop product details panel on mobile */
    [b-hxm7u7bxkd] .product-details-panel {
        display: none;
    }
}

/* ===========================================
   MOBILE DETAILS POPUP
   =========================================== */

[b-hxm7u7bxkd] .mobile-details-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    animation: fadeIn-b-hxm7u7bxkd 0.2s ease;
}

@keyframes fadeIn-b-hxm7u7bxkd {
    from { opacity: 0; }
    to { opacity: 1; }
}

[b-hxm7u7bxkd] .mobile-details-popup {
    width: 100%;
    max-height: 90vh;
    background-color: var(--bs-body-bg, #212529);
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    animation: slideUp-b-hxm7u7bxkd 0.3s ease;
}

@keyframes slideUp-b-hxm7u7bxkd {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

[b-hxm7u7bxkd] .mobile-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    flex-shrink: 0;
}

[b-hxm7u7bxkd] .mobile-details-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--bs-emphasis-color, #ffffff);
    flex: 1;
    padding-right: 10px;
}

[b-hxm7u7bxkd] .btn-close-popup {
    background: none;
    border: none;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

[b-hxm7u7bxkd] .btn-close-popup:hover {
    background-color: rgba(229, 229, 229, 0.1);
    color: var(--bs-body-color, #e5e5e5);
}

[b-hxm7u7bxkd] .mobile-details-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

[b-hxm7u7bxkd] .mobile-product-image {
    width: 100%;
    margin-bottom: 20px;
}

[b-hxm7u7bxkd] .mobile-product-image img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    background-color: var(--bs-tertiary-bg, #222426);
}

[b-hxm7u7bxkd] .mobile-product-image .image-placeholder {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bs-tertiary-bg, #222426);
    border-radius: 8px;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.5));
}

[b-hxm7u7bxkd] .mobile-product-description {
    margin-bottom: 20px;
    padding: 12px;
    background-color: var(--bs-tertiary-bg, #222426);
    border-radius: 6px;
    border-left: 3px solid var(--bs-primary, #fe7109);
}

[b-hxm7u7bxkd] .mobile-product-description p {
    margin: 0;
    font-size: 14px;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.85));
    line-height: 1.5;
}

[b-hxm7u7bxkd] .mobile-product-specs {
    margin-bottom: 20px;
}

[b-hxm7u7bxkd] .mobile-product-specs h4,
[b-hxm7u7bxkd] .mobile-product-properties h4,
[b-hxm7u7bxkd] .mobile-included-products h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--bs-emphasis-color, #ffffff);
    margin-bottom: 12px;
}

[b-hxm7u7bxkd] .mobile-product-specs table {
    width: 100%;
    border-spacing: 0;
}

[b-hxm7u7bxkd] .mobile-product-specs table tr {
    border-bottom: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.1));
}

[b-hxm7u7bxkd] .mobile-product-specs table td {
    padding: 10px 0;
    font-size: 14px;
}

[b-hxm7u7bxkd] .mobile-product-specs table td:first-child {
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    width: 35%;
}

[b-hxm7u7bxkd] .mobile-product-specs table td:last-child {
    color: var(--bs-emphasis-color, #ffffff);
    font-weight: 500;
}

[b-hxm7u7bxkd] .mobile-product-specs table td a {
    color: var(--bs-primary, #fe7109);
}

[b-hxm7u7bxkd] .mobile-product-properties {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--bs-tertiary-bg, #222426);
    border-radius: 8px;
}

[b-hxm7u7bxkd] .mobile-included-products {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--bs-tertiary-bg, #222426);
    border-radius: 8px;
}

[b-hxm7u7bxkd] .mobile-details-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    flex-shrink: 0;
}

[b-hxm7u7bxkd] .mobile-details-footer .btn-add-basket {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
}

/* Tablet breakpoint adjustments (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    [b-hxm7u7bxkd] .company-list-panel {
        width: 25%;
    }

    [b-hxm7u7bxkd] .content-panel {
        width: 75%;
    }

    [b-hxm7u7bxkd] .products-list {
        width: 55%;
    }

    [b-hxm7u7bxkd] .product-details-panel {
        width: 45%;
    }

    [b-hxm7u7bxkd] .category-title {
        display: none;
    }

    [b-hxm7u7bxkd] .category-btn-content {
        padding: 8px 12px;
    }
}
/* ---- Own Products (SubscriptionHub-sourced catalog) ---- */

/* Locked tile: still visible and clickable — the feature is meant to advertise itself to
   RDB-* seats, so it is muted rather than hidden or disabled. */
[b-hxm7u7bxkd] .company-item.company-locked {
    background: linear-gradient(135deg, rgba(120, 120, 120, 0.10) 0%, rgba(120, 120, 120, 0.04) 100%);
    border: 1px dashed rgba(120, 120, 120, 0.45);
}

[b-hxm7u7bxkd] .company-item.company-locked:hover {
    background: linear-gradient(135deg, rgba(120, 120, 120, 0.16) 0%, rgba(120, 120, 120, 0.08) 100%);
    border-color: rgba(120, 120, 120, 0.65);
}

[b-hxm7u7bxkd] .company-item.company-locked .company-name,
[b-hxm7u7bxkd] .company-item.company-locked .company-location {
    opacity: 0.7;
}

/* Overrides the gold gradient of the ★ badge — a padlock reads as "unavailable", not "favourite". */
[b-hxm7u7bxkd] .own-company-badge.locked {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    color: #fff;
    font-size: 11px;
}

/* Upsell shown in place of the product list when the seat is not entitled. */
[b-hxm7u7bxkd] .ownprod-upsell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    gap: 12px;
}

[b-hxm7u7bxkd] .ownprod-upsell-icon {
    font-size: 40px;
    line-height: 1;
    opacity: 0.55;
}

[b-hxm7u7bxkd] .ownprod-upsell-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--bs-body-color, #212529);
}

[b-hxm7u7bxkd] .ownprod-upsell-desc {
    margin: 0;
    max-width: 520px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--bs-secondary-color, #6c757d);
}

[b-hxm7u7bxkd] .ownprod-upsell-cta {
    margin-top: 8px;
    padding: 10px 22px;
    border-radius: 6px;
    background: var(--bs-primary, #fe7109);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.15s ease-in-out;
}

[b-hxm7u7bxkd] .ownprod-upsell-cta:hover {
    filter: brightness(1.08);
    color: #fff;
}

/* Secondary to the upsell CTA on purpose: refreshing is a diagnostic step, not the action we want
   the eye to land on when both are on screen. */
[b-hxm7u7bxkd] .ownprod-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 18px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 6px;
    background: #fff;
    color: var(--bs-body-color, #212529);
    cursor: pointer;
    transition: background 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

[b-hxm7u7bxkd] .ownprod-refresh-btn:hover {
    background: var(--bs-light, #f8f9fa);
    border-color: var(--bs-primary, #fe7109);
}

/* Missing products prompt — above the company list, separated from it so it does not read as an entry. */
[b-hxm7u7bxkd] .missing-products-prompt {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    display: flex;
    flex-direction: column;
    gap: 4px;
}

[b-hxm7u7bxkd] .missing-products-question {
    font-size: 12px;
    line-height: 1.4;
    color: var(--bs-secondary-color, rgba(255, 255, 255, 0.6));
}

[b-hxm7u7bxkd] .missing-products-link {
    align-self: flex-start;
    padding: 0;
    border: none;
    background: none;
    color: var(--bs-primary, #fe7109);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

[b-hxm7u7bxkd] .missing-products-link:hover {
    text-decoration: underline;
}

[b-hxm7u7bxkd] .missing-products-link.empty-state-link {
    align-self: center;
    margin-top: 12px;
}

/* Company list empty / error state — a catalog that failed to load must say so here, next to the
   list it replaces, instead of leaving the panel silently blank. */
[b-hxm7u7bxkd] .company-list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    text-align: center;
}

[b-hxm7u7bxkd] .company-list-empty-text {
    margin: 0;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    font-size: 13px;
    line-height: 1.4;
}

[b-hxm7u7bxkd] .company-list-retry-btn {
    padding: 6px 14px;
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 6px;
    background: none;
    color: var(--bs-primary, #fe7109);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

[b-hxm7u7bxkd] .company-list-retry-btn:hover {
    background-color: var(--bs-tertiary-bg, #222426);
}

[b-hxm7u7bxkd] .ownprod-hub-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 8px 4px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(13, 110, 253, 0.25);
    background: rgba(13, 110, 253, 0.06);
    font-size: 13px;
    line-height: 1.45;
    color: var(--bs-body-color, #212529);
}

[b-hxm7u7bxkd] .ownprod-hub-info .bi {
    color: #0d6efd;
    font-size: 15px;
    line-height: 1.3;
}

[b-hxm7u7bxkd] .ownprod-hub-info a {
    font-weight: 600;
    white-space: nowrap;
}
/* /Components/RoofAssemblyDialog.razor.rz.scp.css */
.rasm-body[b-b4gcq7d9s7] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
}

.rasm-info[b-b4gcq7d9s7],
.rasm-muted[b-b4gcq7d9s7],
.rasm-legend[b-b4gcq7d9s7] {
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.8rem;
}

.rasm-empty[b-b4gcq7d9s7] {
    padding: 16px 0;
}

.rasm-layout[b-b4gcq7d9s7] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 14px;
    align-items: start;
}

@media (max-width: 760px) {
    .rasm-layout[b-b4gcq7d9s7] {
        grid-template-columns: 1fr;
    }
}

.rasm-preview[b-b4gcq7d9s7] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rasm-svg[b-b4gcq7d9s7] {
    width: 100%;
    height: 340px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 6px;
    background: var(--bs-body-bg, #fff);
}

.rasm-side[b-b4gcq7d9s7] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    max-height: 60vh;
    overflow-y: auto;
}

.rasm-section[b-b4gcq7d9s7] {
    font-weight: 600;
    margin-top: 4px;
}

.rasm-table[b-b4gcq7d9s7] {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.rasm-table th[b-b4gcq7d9s7],
.rasm-table td[b-b4gcq7d9s7] {
    padding: 3px 6px;
    border-bottom: 1px solid var(--bs-border-color-translucent, #eee);
    white-space: nowrap;
}

.rasm-table th[b-b4gcq7d9s7] {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-secondary-color, #6c757d);
    text-align: left;
}

.rasm-table .num[b-b4gcq7d9s7] {
    text-align: right;
}

.rasm-excluded td[b-b4gcq7d9s7] {
    opacity: 0.5;
}

.rasm-bad td[b-b4gcq7d9s7] {
    color: #d32f2f;
    font-weight: 600;
}

.rasm-swatch[b-b4gcq7d9s7] {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 6px;
    vertical-align: middle;
}

.rasm-override[b-b4gcq7d9s7] {
    width: 52px;
    text-align: right;
    padding: 1px 4px;
    border: 1px solid var(--bs-border-color, #ced4da);
    border-radius: 3px;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
}

.rasm-warnings[b-b4gcq7d9s7] {
    margin: 0;
    padding-left: 18px;
    color: #b26a00;
}
/* /Components/RoofInfo.razor.rz.scp.css */
/* RoofInfo Component - Uses shared inspector styles from app.scss */
/* This file only contains component-specific overrides */

/* Component uses these shared classes from app.scss:
   - .inspector-container
   - .inspector-header
   - .inspector-subheader
   - .inspector-property-box
   - .inspector-label
   - .inspector-value
   - .inspector-no-selection
*/

/* Visibility toggle button in header */
[b-pumy1cj9jb] .inspector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[b-pumy1cj9jb] .header-toggle-group {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

[b-pumy1cj9jb] .visibility-toggle {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

[b-pumy1cj9jb] .visibility-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

[b-pumy1cj9jb] .visibility-toggle.visible {
    color: #4cbb17;
}

[b-pumy1cj9jb] .visibility-toggle.hidden {
    color: #9ca3af;
}

[b-pumy1cj9jb] .visibility-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 187, 23, 0.3);
}

/* Component-specific styles for info items */
[b-pumy1cj9jb] .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e8ede9;
}

[b-pumy1cj9jb] .info-item:last-child {
    border-bottom: none;
}

/* Component-specific styles for slopes list */
[b-pumy1cj9jb] .slopes-list {
    margin-top: 10px;
}

[b-pumy1cj9jb] .slope-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    border-bottom: 1px solid #f1f3f5;
    transition: all 0.2s ease;
}

[b-pumy1cj9jb] .slope-item:last-child {
    border-bottom: none;
}

[b-pumy1cj9jb] .slope-item:hover {
    background-color: rgba(76, 187, 23, 0.05);
}

[b-pumy1cj9jb] .slope-name {
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 500;
}

[b-pumy1cj9jb] .slope-area {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.875rem;
}

/* Tabs for slopes/edges */
[b-pumy1cj9jb] .roof-info-tabs {
    display: flex;
    border-bottom: 2px solid #e8ede9;
    margin-bottom: 8px;
}

[b-pumy1cj9jb] .roof-info-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

[b-pumy1cj9jb] .roof-info-tab:hover {
    color: #374151;
    background-color: rgba(0, 0, 0, 0.03);
}

[b-pumy1cj9jb] .roof-info-tab.active {
    color: #4cbb17;
    border-bottom-color: #4cbb17;
    font-weight: 600;
}

/* Edges list */
[b-pumy1cj9jb] .edges-list {
    margin-top: 4px;
}

[b-pumy1cj9jb] .edge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-bottom: 1px solid #f1f3f5;
    transition: all 0.2s ease;
}

[b-pumy1cj9jb] .edge-item:last-child {
    border-bottom: none;
}

[b-pumy1cj9jb] .edge-item:hover {
    background-color: rgba(76, 187, 23, 0.05);
}

[b-pumy1cj9jb] .edge-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

[b-pumy1cj9jb] .edge-type-name {
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 500;
    flex: 1;
}

[b-pumy1cj9jb] .edge-total-length {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.85rem;
    min-width: 60px;
    text-align: right;
}

[b-pumy1cj9jb] .edge-count {
    font-size: 0.75rem;
    color: #9ca3af;
    min-width: 20px;
    text-align: right;
}
/* /Components/RoofParameterEditor.razor.rz.scp.css */
/* RoofParameterEditor Component - Uses shared inspector styles from app.scss */
/* This file only contains component-specific overrides */

/* Component uses these shared classes from app.scss:
   - .inspector-container
   - .inspector-title
   - .inspector-form-grid
   - .inspector-label / .inspector-label-inline
   - .inspector-dx-spinner
   - .inspector-toggle
   - .inspector-validation-errors
   - .inspector-error
   - .inspector-actions
   - .inspector-btn-primary
   - .inspector-btn-secondary
   - .inspector-help-text
*/

/* Component-specific: the roof type's own description, and the help marker that carries a
   parameter's description as a tooltip — the definitions explain what each number means and the
   form had no room to say it. */

[b-kpga1rohlw] .roof-type-description {
    margin: 0 0 8px;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #6b7280;
}

/* The shared grid sizes its label column to the longest label, so a help marker there would eat
   the spinner's width. Here the column is fixed and the name ellipsises instead — the full text
   stays available as the label's tooltip. */
[b-kpga1rohlw] .inspector-form-grid {
    grid-template-columns: minmax(0, 96px) minmax(0, 1fr);
}

[b-kpga1rohlw] .inspector-label-inline {
    display: flex;
    align-items: center;
    min-width: 0;
}

[b-kpga1rohlw] .inspector-label-inline .param-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

[b-kpga1rohlw] .inspector-dx-spinner {
    min-width: 0;
}

[b-kpga1rohlw] .param-help {
    flex: 0 0 auto;
    margin-left: 4px;
    color: #9ca3af;
    cursor: help;
    font-size: 0.85em;
}

[b-kpga1rohlw] .param-help:hover,
[b-kpga1rohlw] .param-help:focus {
    color: #4CBB17;
    outline: none;
}
/* /Components/RoofTypeSelector.razor.rz.scp.css */
/* Compact RoofTypeSelector using shared inspector styles */

[b-g3khf4lqbp] .roof-type-selector {
    padding: 8px;
}

[b-g3khf4lqbp] .type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 8px 0;
}

[b-g3khf4lqbp] .type-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

[b-g3khf4lqbp] .type-card:hover {
    border-color: #4CBB17;
    box-shadow: 0 2px 6px rgba(76, 187, 23, 0.15);
    transform: translateY(-1px);
}

[b-g3khf4lqbp] .type-card.selected {
    border-color: #4CBB17;
    background-color: #ecfdf5;
    box-shadow: 0 2px 8px rgba(76, 187, 23, 0.2);
}

[b-g3khf4lqbp] .type-preview {
    width: 100%;
    height: 60px;
    object-fit: contain;
    margin-bottom: 4px;
}

[b-g3khf4lqbp] .type-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
}

[b-g3khf4lqbp] .type-card.selected .type-name {
    color: #111827;
}

[b-g3khf4lqbp] .selection-actions {
    display: flex;
    gap: 8px;
    justify-content: stretch;
    margin-top: 8px;
}

[b-g3khf4lqbp] .selection-actions button {
    flex: 1;
}

/* Responsive: single column on very small screens */
@media (max-width: 300px) {
    [b-g3khf4lqbp] .type-grid {
        grid-template-columns: 1fr;
    }
}
/* /Components/ScaleInputDialog.razor.rz.scp.css */
.scale-input-container[b-wjqxshiyfn] {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.5rem;
}

.measurement-info[b-wjqxshiyfn] {
    text-align: center;
    padding: 0.3rem 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.input-row[b-wjqxshiyfn] {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.input-distance[b-wjqxshiyfn] {
    flex: 2;
}

.input-unit[b-wjqxshiyfn] {
    flex: 1;
}

.input-label[b-wjqxshiyfn] {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.15rem;
}

[b-wjqxshiyfn] .measurement-input,
[b-wjqxshiyfn] .unit-selector {
    width: 100%;
}

.scale-preview[b-wjqxshiyfn] {
    padding: 0.25rem 0.5rem;
    background-color: #e3f2fd;
    border-radius: 4px;
    text-align: center;
}

.dialog-actions[b-wjqxshiyfn] {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #dee2e6;
}
/* /Components/Settings/ManufacturerAccountsSettings.razor.rz.scp.css */
/*
    Scoped styles for the manufacturer-partnership settings page.

    Its own file because "settings-section", "settings-message" and friends are not global — each
    settings component in this project carries its own copy (see PricingSettings.razor.css).
*/

.settings-section[b-9h63nrr7hd] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.section-header[b-9h63nrr7hd] {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.section-header h3[b-9h63nrr7hd] {
    margin: 0 0 6px 0;
    font-size: 18px;
}

.section-header p[b-9h63nrr7hd] {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.section-content[b-9h63nrr7hd] {
    padding: 20px;
}

.company-line[b-9h63nrr7hd] {
    margin-bottom: 16px;
    font-size: 14px;
}

.partnership-list[b-9h63nrr7hd] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* One card per manufacturer. The left border carries the status, so a page of manufacturers can be
   read down its edge without parsing a word of it. */
.partnership-card[b-9h63nrr7hd] {
    border: 1px solid #e0e0e0;
    border-left-width: 4px;
    border-radius: 6px;
    padding: 14px 16px;
}

.partnership-card.is-active[b-9h63nrr7hd] { border-left-color: #28a745; }
.partnership-card.is-pending[b-9h63nrr7hd] { border-left-color: #ffc107; }
.partnership-card.is-suspended[b-9h63nrr7hd] { border-left-color: #dc3545; }
.partnership-card.is-none[b-9h63nrr7hd] { border-left-color: #ccc; }

.partnership-head[b-9h63nrr7hd] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.partnership-name[b-9h63nrr7hd] {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.partnership-status[b-9h63nrr7hd] {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.partnership-status.is-active[b-9h63nrr7hd] { background: #d4edda; color: #155724; }
.partnership-status.is-pending[b-9h63nrr7hd] { background: #fff3cd; color: #856404; }
.partnership-status.is-suspended[b-9h63nrr7hd] { background: #f8d7da; color: #721c24; }
.partnership-status.is-none[b-9h63nrr7hd] { background: #eee; color: #666; }

.partnership-body[b-9h63nrr7hd] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.partnership-field[b-9h63nrr7hd] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
}

.field-label[b-9h63nrr7hd] {
    color: #666;
}

.field-value.mono[b-9h63nrr7hd] {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 600;
}

.field-value.muted[b-9h63nrr7hd] {
    color: #999;
    font-style: italic;
}

/* Granted and denied capabilities are both shown. A missing chip would read as "not applicable"
   rather than "you were not given this", which is the distinction the whole screen exists for. */
.partnership-scopes[b-9h63nrr7hd] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.scope-chip[b-9h63nrr7hd] {
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.scope-chip.granted[b-9h63nrr7hd] {
    background: #e8f5e9;
    color: #1b5e20;
    border-color: #c8e6c9;
}

.scope-chip.denied[b-9h63nrr7hd] {
    background: #fafafa;
    color: #999;
    border-color: #e0e0e0;
    text-decoration: line-through;
}

.form-hint[b-9h63nrr7hd] {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.settings-message[b-9h63nrr7hd] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 16px;
}

.settings-message.success[b-9h63nrr7hd] {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.settings-message.error[b-9h63nrr7hd] {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* /Components/Settings/MarkdownEditor.razor.rz.scp.css */
.md-editor[b-d9yjydy8nt] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.md-toolbar[b-d9yjydy8nt] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.md-tabs[b-d9yjydy8nt] {
    display: flex;
    gap: 2px;
}

.md-tab[b-d9yjydy8nt] {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #4b5563;
    padding: 3px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
}

.md-tab.active[b-d9yjydy8nt] {
    background: #fff;
    border-color: #2563eb;
    color: #2563eb;
}

.md-buttons[b-d9yjydy8nt] {
    display: flex;
    gap: 2px;
}

.md-buttons button[b-d9yjydy8nt] {
    border: 1px solid #e5e7eb;
    background: #fff;
    min-width: 30px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #374151;
}

.md-buttons button:hover[b-d9yjydy8nt] {
    background: #f3f4f6;
}

.md-editor textarea[b-d9yjydy8nt] {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    resize: vertical;
}

.md-preview[b-d9yjydy8nt] {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px;
    background: #fff;
    font-size: 0.9rem;
}

.md-preview[b-d9yjydy8nt]  p {
    margin: 0 0 6px;
}

.md-preview[b-d9yjydy8nt]  ul,
.md-preview[b-d9yjydy8nt]  ol {
    margin: 0 0 6px;
    padding-left: 1.4em;
}

.md-empty[b-d9yjydy8nt] {
    color: #9ca3af;
}

.md-hint[b-d9yjydy8nt] {
    color: #9ca3af;
    font-size: 0.75rem;
}
/* /Components/Settings/MyPricesSettings.razor.rz.scp.css */
/* Settings shell — the same look as PricingSettings.razor.css (scoped CSS is per component, nothing
   here is inherited from it). */
.settings-section[b-yd0lgz54fo] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.section-header[b-yd0lgz54fo] {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.section-header h3[b-yd0lgz54fo] {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.section-header p[b-yd0lgz54fo] {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.section-content[b-yd0lgz54fo] {
    padding: 20px;
}

.my-prices[b-yd0lgz54fo] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.my-prices-muted[b-yd0lgz54fo] {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.my-prices-hint[b-yd0lgz54fo] {
    color: #666;
    font-size: 12px;
    font-style: italic;
    margin: 0;
}

/* ---- filters ---- */

.my-prices-filters[b-yd0lgz54fo] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
}

.filter[b-yd0lgz54fo] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.filter.grow[b-yd0lgz54fo] {
    flex: 1;
    min-width: 180px;
}

.filter label[b-yd0lgz54fo] {
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.filter-check[b-yd0lgz54fo] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    padding-bottom: 8px;
}

.form-select[b-yd0lgz54fo],
.form-input[b-yd0lgz54fo] {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}

.form-select:focus[b-yd0lgz54fo],
.form-input:focus[b-yd0lgz54fo] {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-input:disabled[b-yd0lgz54fo],
.form-select:disabled[b-yd0lgz54fo] {
    background: #f3f3f3;
    color: #888;
}

/* ---- adding from the catalog ---- */

.my-prices-add[b-yd0lgz54fo] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.my-prices-catalog[b-yd0lgz54fo] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.my-prices-catalog .my-prices-table[b-yd0lgz54fo] {
    background: #fff;
}

.my-prices-catalog td.code[b-yd0lgz54fo],
.my-prices-catalog .catalog-cell[b-yd0lgz54fo] {
    padding-top: 10px;
}

.catalog-action[b-yd0lgz54fo] {
    text-align: right;
    white-space: nowrap;
}

.catalog-action .my-prices-muted[b-yd0lgz54fo] {
    display: inline-block;
    padding-top: 4px;
    font-size: 12px;
}

.btn.btn-small[b-yd0lgz54fo] {
    padding: 5px 12px;
    font-size: 13px;
}

.btn-link[b-yd0lgz54fo] {
    align-self: flex-start;
    border: none;
    background: none;
    padding: 0;
    color: #007bff;
    font-size: 13px;
    cursor: pointer;
}

.btn-link:hover[b-yd0lgz54fo] {
    text-decoration: underline;
}

.row-name[b-yd0lgz54fo] {
    font-weight: 400;
    font-size: 12px;
    color: #666;
    padding-top: 2px;
}

/* ---- grid ---- */

.my-prices-table-wrap[b-yd0lgz54fo] {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.my-prices-table[b-yd0lgz54fo] {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.my-prices-table th[b-yd0lgz54fo] {
    text-align: left;
    padding: 8px 10px;
    background: #f8f9fa;
    color: #555;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
}

.my-prices-table td[b-yd0lgz54fo] {
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.my-prices-table .num[b-yd0lgz54fo] {
    text-align: right;
    white-space: nowrap;
}

.my-prices-table td.num[b-yd0lgz54fo] {
    padding-top: 13px;
}

.my-prices-table td.code[b-yd0lgz54fo] {
    padding-top: 13px;
    font-weight: 500;
}

.my-prices-table tr.mine td.code[b-yd0lgz54fo]::before {
    content: "●";
    color: #007bff;
    font-size: 9px;
    margin-right: 6px;
    vertical-align: middle;
}

.my-prices-table tr.dirty[b-yd0lgz54fo] {
    background: #fffbea;
}

.my-prices-table tr.has-problem[b-yd0lgz54fo] {
    background: #fff1f1;
}

.value-input[b-yd0lgz54fo] {
    width: 130px;
}

.discount-input[b-yd0lgz54fo] {
    width: 80px;
}

.form-input.invalid[b-yd0lgz54fo] {
    border-color: #dc3545;
}

.preview[b-yd0lgz54fo] {
    font-style: italic;
    color: #7a5b00;
}

.notes[b-yd0lgz54fo] {
    min-width: 160px;
}

.note[b-yd0lgz54fo] {
    font-size: 12px;
    line-height: 1.3;
    padding-top: 4px;
}

.note.error[b-yd0lgz54fo] {
    color: #c82333;
}

.note.warn[b-yd0lgz54fo] {
    color: #b26a00;
}

.icon-btn[b-yd0lgz54fo] {
    border: none;
    background: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
}

.icon-btn:hover:not(:disabled)[b-yd0lgz54fo] {
    color: #dc3545;
}

.my-prices-pager[b-yd0lgz54fo] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    color: #555;
}

/* ---- messages & actions ---- */

.settings-message[b-yd0lgz54fo] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.settings-message.success[b-yd0lgz54fo] {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.settings-message.error[b-yd0lgz54fo] {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.settings-message.warning[b-yd0lgz54fo] {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.form-actions[b-yd0lgz54fo] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn[b-yd0lgz54fo] {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn:disabled[b-yd0lgz54fo] {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary[b-yd0lgz54fo] {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover:not(:disabled)[b-yd0lgz54fo] {
    background: #0056b3;
}

.btn-secondary[b-yd0lgz54fo] {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover:not(:disabled)[b-yd0lgz54fo] {
    background: #545b62;
}

.btn-danger[b-yd0lgz54fo] {
    background: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
    margin-left: auto;
}

.btn-danger:hover:not(:disabled)[b-yd0lgz54fo] {
    background: #dc3545;
    color: #fff;
}
/* /Components/Settings/PdfTemplateEditorDialog.razor.rz.scp.css */
.tpl-editor[b-uoqb3iak60] {
    display: grid;
    grid-template-columns: minmax(300px, 380px) 1fr;
    gap: 16px;
    height: min(78vh, 900px);
}

@media (max-width: 900px) {
    .tpl-editor[b-uoqb3iak60] {
        grid-template-columns: 1fr;
        height: auto;
    }
    .tpl-preview[b-uoqb3iak60] {
        height: 70vh;
    }
}

.tpl-editor-left[b-uoqb3iak60] {
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tpl-editor-right[b-uoqb3iak60] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.tpl-label[b-uoqb3iak60] {
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 8px;
    color: #374151;
}

.tpl-muted[b-uoqb3iak60] {
    color: #6b7280;
    font-size: 0.85rem;
}

.tpl-sections[b-uoqb3iak60] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tpl-section[b-uoqb3iak60] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
}

.tpl-section[draggable="true"][b-uoqb3iak60] {
    cursor: grab;
}

.tpl-section.off .tpl-section-name[b-uoqb3iak60] {
    color: #9ca3af;
    text-decoration: line-through;
}

.tpl-section.dragging[b-uoqb3iak60] {
    opacity: 0.5;
    border-style: dashed;
}

.tpl-grip[b-uoqb3iak60] {
    color: #9ca3af;
    font-size: 0.8rem;
    letter-spacing: -2px;
    user-select: none;
}

.tpl-dot[b-uoqb3iak60] {
    width: 16px;
    text-align: center;
    color: #16a34a;
}

.tpl-section-name[b-uoqb3iak60] {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    min-width: 0;
}

.tpl-tag[b-uoqb3iak60] {
    color: #6b7280;
    font-size: 0.72rem;
}

.tpl-warn[b-uoqb3iak60] {
    color: #b45309;
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tpl-actions[b-uoqb3iak60] {
    display: flex;
    gap: 0;
}

.tpl-actions .btn[b-uoqb3iak60] {
    padding: 0 4px;
    text-decoration: none;
}

.tpl-add[b-uoqb3iak60] {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.tpl-fix[b-uoqb3iak60] {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #b45309;
}

.tpl-preview-bar[b-uoqb3iak60] {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tpl-preview-bar select[b-uoqb3iak60] {
    flex: 1;
    min-width: 0;
}

.tpl-preview[b-uoqb3iak60] {
    flex: 1;
    min-height: 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f3f4f6;
    overflow: hidden;
}

.tpl-preview iframe[b-uoqb3iak60] {
    width: 100%;
    height: 100%;
    border: 0;
}

.tpl-preview-empty[b-uoqb3iak60] {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.9rem;
    padding: 16px;
    text-align: center;
}

.tpl-footer[b-uoqb3iak60] {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    width: 100%;
}
/* /Components/Settings/PdfTemplateGallery.razor.rz.scp.css */
.tpl-gallery-head h4[b-dewnro4eal] {
    margin-bottom: 2px;
}

.tpl-gallery-head .form-hint[b-dewnro4eal] {
    display: block;
    color: #6b7280;
    margin-bottom: 8px;
}

.tpl-muted[b-dewnro4eal] {
    color: #6b7280;
    font-size: 0.85rem;
}

.tpl-group-title[b-dewnro4eal] {
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    margin: 14px 0 8px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.tpl-usage[b-dewnro4eal] {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.8rem;
}

.tpl-cards[b-dewnro4eal] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.tpl-card[b-dewnro4eal] {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 128px;
    position: relative;
}

.tpl-card.is-default[b-dewnro4eal] {
    border-color: #f59e0b;
    box-shadow: 0 0 0 1px #f59e0b inset;
}

.tpl-card-top[b-dewnro4eal] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
}

.tpl-card-name[b-dewnro4eal] {
    font-weight: 600;
    line-height: 1.25;
    word-break: break-word;
}

.tpl-star[b-dewnro4eal] {
    border: 0;
    background: none;
    font-size: 1.25rem;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 2px;
}

.tpl-star.on[b-dewnro4eal],
.tpl-star:hover[b-dewnro4eal] {
    color: #f59e0b;
}

.tpl-card-meta[b-dewnro4eal] {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    gap: 8px;
}

.tpl-warn[b-dewnro4eal] {
    color: #b45309;
}

.tpl-card-warn[b-dewnro4eal] {
    font-size: 0.75rem;
    color: #b45309;
    line-height: 1.3;
}

.tpl-card-actions[b-dewnro4eal] {
    margin-top: auto;
    display: flex;
    gap: 6px;
    align-items: center;
}

.tpl-card-new[b-dewnro4eal] {
    border-style: dashed;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    cursor: pointer;
    text-align: center;
}

.tpl-card-new:hover[b-dewnro4eal] {
    border-color: #2563eb;
    color: #2563eb;
}

.tpl-plus[b-dewnro4eal] {
    font-size: 1.6rem;
    line-height: 1;
}

.tpl-menu[b-dewnro4eal] {
    position: relative;
}

.tpl-menu-list[b-dewnro4eal] {
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    z-index: 20;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    min-width: 220px;
    padding: 4px 0;
}

.tpl-menu-list button[b-dewnro4eal] {
    border: 0;
    background: none;
    text-align: left;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
}

.tpl-menu-list button:hover:not(:disabled)[b-dewnro4eal] {
    background: #f3f4f6;
}

.tpl-menu-list button:disabled[b-dewnro4eal] {
    color: #9ca3af;
    cursor: default;
}

.tpl-menu-list button.danger[b-dewnro4eal] {
    color: #dc2626;
}

.tpl-dup[b-dewnro4eal] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tpl-label[b-dewnro4eal] {
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 6px;
    color: #374151;
}

.tpl-footer[b-dewnro4eal] {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    width: 100%;
}
/* /Components/Settings/PricingSettings.razor.rz.scp.css */
/* Shared settings styles - copied from UserSettings.razor.css */
[b-23m4h5pigh] .user-settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[b-23m4h5pigh] .settings-header {
    margin-bottom: 30px;
}

[b-23m4h5pigh] .settings-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

[b-23m4h5pigh] .settings-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

[b-23m4h5pigh] .settings-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

[b-23m4h5pigh] .section-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

[b-23m4h5pigh] .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[b-23m4h5pigh] .section-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

[b-23m4h5pigh] .section-content {
    padding: 20px;
}

[b-23m4h5pigh] .pricing-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

[b-23m4h5pigh] .pricing-settings .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

[b-23m4h5pigh] .pricing-settings .form-group label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

[b-23m4h5pigh] .pricing-settings .form-group input[type="number"] {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    max-width: 200px;
}

[b-23m4h5pigh] .pricing-settings .form-group input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

[b-23m4h5pigh] .pricing-settings .form-group .form-select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    max-width: 200px;
    background-color: white;
}

[b-23m4h5pigh] .pricing-settings .form-group .form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

[b-23m4h5pigh] .pricing-settings .form-group .form-hint {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

[b-23m4h5pigh] .settings-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

[b-23m4h5pigh] .settings-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

[b-23m4h5pigh] .settings-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

[b-23m4h5pigh] .settings-message .message-icon {
    font-size: 16px;
}

[b-23m4h5pigh] .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

[b-23m4h5pigh] .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

[b-23m4h5pigh] .btn-primary {
    background: #007bff;
    color: white;
}

[b-23m4h5pigh] .btn-primary:hover:not(:disabled) {
    background: #0056b3;
}

/* Component-specific styles can be added here if needed */
/* /Components/Settings/RSdachy5IntegrationSettings.razor.rz.scp.css */
/* Shared settings styles - copied from UserSettings.razor.css */
[b-3nlwjs0gj3] .user-settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[b-3nlwjs0gj3] .settings-header {
    margin-bottom: 30px;
}

[b-3nlwjs0gj3] .settings-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

[b-3nlwjs0gj3] .settings-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

[b-3nlwjs0gj3] .settings-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

[b-3nlwjs0gj3] .section-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

[b-3nlwjs0gj3] .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[b-3nlwjs0gj3] .section-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

[b-3nlwjs0gj3] .section-content {
    padding: 20px;
}

[b-3nlwjs0gj3] .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

[b-3nlwjs0gj3] .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

[b-3nlwjs0gj3] .btn-primary {
    background: #007bff;
    color: white;
}

[b-3nlwjs0gj3] .btn-primary:hover:not(:disabled) {
    background: #0056b3;
}

[b-3nlwjs0gj3] .connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

[b-3nlwjs0gj3] .connection-status.connected {
    color: #28a745;
}

[b-3nlwjs0gj3] .connection-status.disconnected {
    color: #dc3545;
}

[b-3nlwjs0gj3] .status-indicator {
    font-size: 12px;
}

[b-3nlwjs0gj3] .connected-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

[b-3nlwjs0gj3] .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

[b-3nlwjs0gj3] .info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

[b-3nlwjs0gj3] .info-item label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

[b-3nlwjs0gj3] .info-item span {
    color: #333;
    font-size: 14px;
}

[b-3nlwjs0gj3] .not-connected-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

[b-3nlwjs0gj3] .not-connected-info p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

[b-3nlwjs0gj3] .connection-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
}

[b-3nlwjs0gj3] .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

[b-3nlwjs0gj3] .form-group label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

[b-3nlwjs0gj3] .form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

[b-3nlwjs0gj3] .form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

[b-3nlwjs0gj3] .error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #721c24;
    font-size: 14px;
}

[b-3nlwjs0gj3] .error-icon {
    flex-shrink: 0;
}

[b-3nlwjs0gj3] .action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

[b-3nlwjs0gj3] .form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Component-specific styles can be added here if needed */
/* /Components/Settings/SalespersonSettings.razor.rz.scp.css */
.sps-page[b-hukk6thg1x] {
    padding: 16px;
    max-width: 1100px;
}

.sps-header h3[b-hukk6thg1x] {
    margin: 4px 0 2px;
}

.sps-header p[b-hukk6thg1x] {
    color: #6b7280;
    margin-bottom: 16px;
}

.sps-back[b-hukk6thg1x] {
    padding-left: 0;
}

.sps-form[b-hukk6thg1x] {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sps-card[b-hukk6thg1x] {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.sps-grid[b-hukk6thg1x] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 20px;
    align-items: start;
}

.sps-grid-images[b-hukk6thg1x] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .sps-grid[b-hukk6thg1x],
    .sps-grid-images[b-hukk6thg1x] {
        grid-template-columns: 1fr;
    }
}

.sps-field[b-hukk6thg1x] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.sps-label[b-hukk6thg1x] {
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
    margin: 0;
}

.sps-hint[b-hukk6thg1x] {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.35;
}

.sps-hint code[b-hukk6thg1x] {
    background: #f3f4f6;
    color: #374151;
    border-radius: 4px;
    padding: 0 4px;
    font-size: 0.78rem;
    white-space: nowrap;
}

.sps-image-box[b-hukk6thg1x] {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    height: 140px;
    overflow: hidden;
}

.sps-image-box img[b-hukk6thg1x] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sps-photo img[b-hukk6thg1x] {
    max-height: 124px;
    border-radius: 6px;
}

.sps-signature[b-hukk6thg1x] {
    background: #fff;
}

.sps-signature img[b-hukk6thg1x] {
    max-height: 90px;
    padding: 4px;
}

.sps-placeholder[b-hukk6thg1x] {
    font-size: 2.2rem;
    color: #d1d5db;
}

.sps-image-actions[b-hukk6thg1x] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sps-image-actions[b-hukk6thg1x]  input[type="file"] {
    font-size: 0.85rem;
    max-width: 100%;
}

.sps-image-actions[b-hukk6thg1x]  input[type="file"]::file-selector-button {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    padding: 4px 12px;
    margin-right: 10px;
    cursor: pointer;
}

.sps-image-actions[b-hukk6thg1x]  input[type="file"]::file-selector-button:hover {
    background: #f3f4f6;
}

.sps-message[b-hukk6thg1x] {
    padding: 10px 12px;
    border-radius: 6px;
}

.sps-message.success[b-hukk6thg1x] {
    background: #d1fae5;
    color: #065f46;
}

.sps-message.error[b-hukk6thg1x] {
    background: #fee2e2;
    color: #991b1b;
}

.sps-actions[b-hukk6thg1x] {
    display: flex;
    gap: 12px;
}
/* /Components/Settings/SystemHealthSettings.razor.rz.scp.css */
/* Shared settings styles - copied from UserSettings.razor.css */
[b-job73t2xsu] .user-settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[b-job73t2xsu] .settings-header {
    margin-bottom: 30px;
}

[b-job73t2xsu] .settings-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

[b-job73t2xsu] .settings-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

[b-job73t2xsu] .settings-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

[b-job73t2xsu] .section-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

[b-job73t2xsu] .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[b-job73t2xsu] .section-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

[b-job73t2xsu] .section-content {
    padding: 20px;
}

[b-job73t2xsu] .health-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

[b-job73t2xsu] .health-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

[b-job73t2xsu] .health-item label {
    font-weight: 600;
    color: #555;
}

[b-job73t2xsu] .health-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

[b-job73t2xsu] .health-status.healthy {
    color: #28a745;
}

[b-job73t2xsu] .health-status.unhealthy {
    color: #dc3545;
}

[b-job73t2xsu] .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

[b-job73t2xsu] .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

[b-job73t2xsu] .btn-primary {
    background: #007bff;
    color: white;
}

[b-job73t2xsu] .btn-primary:hover:not(:disabled) {
    background: #0056b3;
}

@media (max-width: 768px) {
    [b-job73t2xsu] .health-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Component-specific styles can be added here if needed */
/* /Components/Settings/WarrantySettingsPage.razor.rz.scp.css */
.warr-page[b-wkbff3ntog] {
    padding: 16px;
    max-width: 1400px;
}

.warr-header h3[b-wkbff3ntog] {
    margin: 4px 0 2px;
}

.warr-header p[b-wkbff3ntog] {
    color: #6b7280;
    margin-bottom: 12px;
}

.warr-back[b-wkbff3ntog] {
    padding-left: 0;
}

.warr-topbar[b-wkbff3ntog] {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.warr-topbar label[b-wkbff3ntog] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin: 0;
}

.warr-sample[b-wkbff3ntog] {
    margin-left: auto;
}

.warr-badge[b-wkbff3ntog] {
    background: #fef3c7;
    color: #92400e;
    border-radius: 10px;
    padding: 2px 10px;
    font-size: 0.8rem;
}

.warr-muted[b-wkbff3ntog] {
    color: #6b7280;
    font-size: 0.85rem;
}

.warr-loading[b-wkbff3ntog] {
    padding: 32px;
}

.warr-error[b-wkbff3ntog] {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 6px;
}

.warr-layout[b-wkbff3ntog] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 20px;
    align-items: start;
}

@media (max-width: 1000px) {
    .warr-layout[b-wkbff3ntog] {
        grid-template-columns: 1fr;
    }
}

.warr-form[b-wkbff3ntog] {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.warr-card[b-wkbff3ntog] {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.warr-card h4[b-wkbff3ntog] {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 4px;
}

.warr-label[b-wkbff3ntog] {
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
    margin: 6px 0 0;
}

.warr-years[b-wkbff3ntog] {
    max-width: 120px;
}

.warr-hint[b-wkbff3ntog] {
    color: #6b7280;
    font-size: 0.8rem;
}

.warr-radios[b-wkbff3ntog] {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.form-check[b-wkbff3ntog] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input[b-wkbff3ntog] {
    margin: 0;
}

.warr-grid[b-wkbff3ntog] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.warr-message[b-wkbff3ntog] {
    padding: 10px 12px;
    border-radius: 6px;
}

.warr-message.success[b-wkbff3ntog] {
    background: #d1fae5;
    color: #065f46;
}

.warr-message.error[b-wkbff3ntog] {
    background: #fee2e2;
    color: #991b1b;
}

.warr-actions[b-wkbff3ntog] {
    display: flex;
    gap: 12px;
}

.warr-preview-wrap[b-wkbff3ntog] {
    position: sticky;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.warr-preview-title[b-wkbff3ntog] {
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
}

.warr-preview[b-wkbff3ntog] {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 18px 20px;
    font-size: 0.82rem;
    color: #212121;
    max-height: 78vh;
    overflow-y: auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.warr-preview h2[b-wkbff3ntog] {
    font-size: 1.15rem;
    color: #2E7D32;
    border-bottom: 2px solid #2E7D32;
    padding-bottom: 4px;
    margin: 0 0 10px;
}

.warr-preview h3[b-wkbff3ntog] {
    font-size: 0.95rem;
    margin: 0 0 6px;
}

.pv-block[b-wkbff3ntog] {
    background: #F5F5F5;
    border-left: 4px solid #2E7D32;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 10px 0;
}

.pv-mfg[b-wkbff3ntog] {
    border-left-color: #F57C00;
}

.pv-excl[b-wkbff3ntog] {
    border-left-color: #9E9E9E;
}

.pv-claims[b-wkbff3ntog] {
    background: #E8F5E9;
}

.pv-head[b-wkbff3ntog] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.pv-years[b-wkbff3ntog] {
    color: #2E7D32;
    white-space: nowrap;
}

.pv-years b[b-wkbff3ntog] {
    font-size: 1.4rem;
}

.pv-qr-row[b-wkbff3ntog] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.pv-qr[b-wkbff3ntog] {
    width: 44px;
    height: 44px;
    border: 1px dashed #9E9E9E;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9E9E9E;
    font-size: 0.7rem;
    flex: 0 0 auto;
}

.pv-qr-text[b-wkbff3ntog] {
    color: #757575;
}

.pv-contact[b-wkbff3ntog] {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #E0E0E0;
}

.md[b-wkbff3ntog]  p {
    margin: 0 0 6px;
}

.md[b-wkbff3ntog]  ul,
.md[b-wkbff3ntog]  ol {
    margin: 0 0 6px;
    padding-left: 1.4em;
}
/* /Components/ShapeLibraryPanel.razor.rz.scp.css */
.shl-panel[b-lp9lxl7dw5] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    font-size: 0.85rem;
}

.shl-header[b-lp9lxl7dw5] {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 10px;
    background: var(--bs-secondary-bg, #e9ecef);
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.shl-header-detail[b-lp9lxl7dw5] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shl-back[b-lp9lxl7dw5] {
    border: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-body-bg, #fff);
    border-radius: 4px;
    line-height: 1;
    padding: 2px 8px;
    cursor: pointer;
}

.shl-detail-name[b-lp9lxl7dw5] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shl-target[b-lp9lxl7dw5] {
    padding: 4px 10px;
    font-size: 0.75rem;
    color: var(--bs-secondary-color, #6c757d);
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

/* ===== gallery ===== */

.shl-grid[b-lp9lxl7dw5] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 6px;
    padding: 8px;
}

.shl-tile[b-lp9lxl7dw5] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 4px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 6px;
    background: var(--bs-body-bg, #fff);
    cursor: pointer;
}

.shl-tile:hover[b-lp9lxl7dw5] {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.shl-tile-art[b-lp9lxl7dw5] {
    display: block;
    width: 100%;
    height: 56px;
}

/* The preview is injected as markup, so it carries no scope attribute — ::deep is the
   only way a scoped stylesheet reaches it. */
.shl-tile-art[b-lp9lxl7dw5]  svg {
    display: block;
    width: 100%;
    height: 100%;
}

.shl-tile-name[b-lp9lxl7dw5] {
    font-size: 0.68rem;
    line-height: 1.15;
    text-align: center;
    color: var(--bs-body-color, #212529);
}

/* ===== dimensions ===== */

.shl-detail[b-lp9lxl7dw5] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shl-preview[b-lp9lxl7dw5] {
    height: 170px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 6px;
    background: var(--bs-body-bg, #fff);
    padding: 6px;
}

.shl-preview[b-lp9lxl7dw5]  svg {
    display: block;
    width: 100%;
    height: 100%;
}

.shl-params[b-lp9lxl7dw5] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 6px;
}

.shl-param[b-lp9lxl7dw5] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.shl-param-id[b-lp9lxl7dw5] {
    font-weight: 700;
    color: #E64A19;
    min-width: 14px;
}

.shl-unit[b-lp9lxl7dw5] {
    font-size: 0.7rem;
    color: var(--bs-secondary-color, #6c757d);
}

.shl-error[b-lp9lxl7dw5] {
    color: #b3261e;
    background: rgba(179, 38, 30, 0.08);
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 0.75rem;
}

.shl-hint[b-lp9lxl7dw5] {
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.72rem;
}

.shl-insert[b-lp9lxl7dw5] {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: #4CAF50;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.shl-insert:disabled[b-lp9lxl7dw5] {
    background: var(--bs-secondary-bg, #e9ecef);
    color: var(--bs-secondary-color, #6c757d);
    cursor: not-allowed;
}
/* /Components/SheetLengthGroupingEditor.razor.rz.scp.css */
.slg-editor[b-b4p0e2ccug] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.slg-row[b-b4p0e2ccug] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slg-label[b-b4p0e2ccug] {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

[b-b4p0e2ccug] .slg-input {
    width: 110px;
}

.slg-unit[b-b4p0e2ccug] {
    font-size: 0.875rem;
    color: var(--bs-secondary-color, #6c757d);
}

.slg-hint[b-b4p0e2ccug] {
    font-size: 0.75rem;
    color: var(--bs-secondary-color, #6c757d);
}

.slg-summary[b-b4p0e2ccug] {
    font-size: 0.8125rem;
    color: var(--bs-secondary-color, #6c757d);
}

.slg-summary-effect[b-b4p0e2ccug] {
    color: var(--bs-success-text-emphasis, #0a3622);
    font-weight: 600;
}

.slg-row[b-b4p0e2ccug] {
    flex-wrap: wrap;
}

.slg-quick-label[b-b4p0e2ccug] {
    margin-left: 16px;
    font-size: 0.8125rem;
    color: var(--bs-secondary-color, #6c757d);
}

.slg-chip[b-b4p0e2ccug] {
    border: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    border-radius: 999px;
    padding: 1px 10px;
    font-size: 0.8125rem;
    line-height: 1.6;
    cursor: pointer;
}

.slg-chip:hover[b-b4p0e2ccug] {
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.slg-chip-active[b-b4p0e2ccug] {
    border-color: var(--bs-primary, #0d6efd);
    background: var(--bs-primary-bg-subtle, #cfe2ff);
    font-weight: 600;
}

.slg-tiles[b-b4p0e2ccug] {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
}

.slg-tile[b-b4p0e2ccug] {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 6px;
    padding: 6px 10px;
    min-width: 0;
}

.slg-tile-effect[b-b4p0e2ccug] {
    border-color: var(--bs-success-border-subtle, #a3cfbb);
    background: var(--bs-success-bg-subtle, #d1e7dd);
}

.slg-tile-caption[b-b4p0e2ccug] {
    font-size: 0.75rem;
    color: var(--bs-secondary-color, #6c757d);
}

.slg-tile-value[b-b4p0e2ccug] {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slg-tile-delta[b-b4p0e2ccug] {
    font-size: 0.75rem;
    color: var(--bs-success-text-emphasis, #0a3622);
}

@media (max-width: 900px) {
    .slg-tiles[b-b4p0e2ccug] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* /Components/SkeletonEditor.razor.rz.scp.css */
/* SkeletonEditor Component - Uses shared inspector styles from app.scss */
/* This file only contains component-specific overrides */

/* Component uses these shared classes from app.scss:
   - .inspector-container (for skeleton-editor div)
   - .inspector-toggle (for skeleton-toggle)
   - .inspector-subheader (for h5 headers)
   - .inspector-btn-outline-primary
   - .inspector-btn-outline-danger
   - .inspector-button-group (for button groups)
*/

/* No component-specific styles needed - all styles are shared */
/* /Components/SlopeDrawing.razor.rz.scp.css */
.slope-drawing-svg[b-awvv2rjff6] {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}
/* /Components/SlopeEditor.razor.rz.scp.css */
/* SlopeEditor Component - Uses shared inspector styles from app.scss */
/* This file only contains component-specific overrides */

/* Component uses these shared classes from app.scss:
   - .inspector-container (for slope-editor div)
   - .inspector-form-grid-wide
   - .inspector-label / .inspector-label-inline
   - .inspector-static-value
   - .inspector-input
   - .inspector-toggle (for edge-type-toggle)
   - .inspector-btn-primary
   - .inspector-btn-secondary
   - .inspector-dx-spinner (wrap DxSpinEdit divs with this class)
   - .inspector-no-selection
   - .inspector-workflow-panel (for dormer-workflow-panel)
   - .inspector-placement-instructions
   - .inspector-char-limit (for character limit indicators)
*/

/* Slope preview button */
.inspector-area-with-button[b-8lblcpz0x0] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slope-preview-btn[b-8lblcpz0x0] {
    padding: 2px 6px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slope-preview-btn:hover[b-8lblcpz0x0] {
    background-color: var(--bs-primary, #fe7109);
    border-color: var(--bs-primary, #fe7109);
    color: white;
}

/* Slope preview popup */
[b-8lblcpz0x0] .slope-preview-container {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-light, #f8f9fa);
    padding: 16px;
    border-radius: 6px;
}

[b-8lblcpz0x0] .slope-preview-svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    cursor: grab;
    touch-action: none; /* let pointer events drive panning instead of the browser */
}

[b-8lblcpz0x0] .slope-preview-svg-dragging {
    cursor: grabbing;
}

/* Zoom toolbar above the preview */
[b-8lblcpz0x0] .slope-preview-toolbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

[b-8lblcpz0x0] .slope-preview-zoom-value {
    min-width: 48px;
    text-align: center;
    font-size: 12px;
    color: var(--bs-secondary-color, #6c757d);
}

/* Pastel blue fill for outline */
[b-8lblcpz0x0] .slope-outline-shape {
    fill: rgba(173, 216, 230, 0.6);
    stroke: #5b9bd5;
    stroke-width: 2;
}

/* White fill for holes */
[b-8lblcpz0x0] .slope-hole-shape {
    fill: rgba(255, 255, 255, 0.9);
    stroke: #e67e22;
    stroke-width: 1.5;
}

/* Vertex points for outline */
[b-8lblcpz0x0] .slope-vertex {
    r: 4;
    fill: #2c3e50;
    stroke: #ffffff;
    stroke-width: 1.5;
}

/* Vertex points for holes */
[b-8lblcpz0x0] .slope-hole-vertex {
    r: 3;
    fill: #e67e22;
    stroke: #ffffff;
    stroke-width: 1;
}

/* Edge measurement labels */
[b-8lblcpz0x0] .slope-edge-label {
    font-size: 10px;
    font-family: Arial, sans-serif;
    fill: #2c3e50;
    text-anchor: middle;
    dominant-baseline: middle;
    font-weight: 500;
    paint-order: stroke fill;
    stroke: #ffffff;
    stroke-width: 3px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hole edge labels - slightly smaller */
[b-8lblcpz0x0] .slope-hole-edge-label {
    font-size: 9px;
    fill: #c0392b;
}

/* Coordinate rulers (left = Y, bottom = X)
   Axis/tick stroke is set inline in the component - the viewBox is in centimetres,
   so a fixed CSS stroke-width would be invisible on larger slopes. */
[b-8lblcpz0x0] .slope-ruler-label {
    font-size: 9px;
    font-family: Arial, sans-serif;
    fill: #566573;
    text-anchor: middle;
    dominant-baseline: hanging;
    font-weight: 400;
}

[b-8lblcpz0x0] .slope-ruler-label-left {
    text-anchor: end;
    dominant-baseline: middle;
}

/* Eave edge highlight (red) */
[b-8lblcpz0x0] .slope-eave-edge {
    stroke: #e74c3c;
    stroke-width: 4;
    stroke-linecap: round;
}

/* Slope preview body layout: drawing on the left, edge list as a full-height right column.
   NOTE: this is the outermost element of the popup template, so its ancestors are DevExpress
   wrappers without the scope attribute - "::deep" (= "[b-xxx] .foo") would never match it.
   Both forms are listed so the rule holds whether or not the element itself carries the scope. */
.slope-preview-body[b-8lblcpz0x0],
[b-8lblcpz0x0] .slope-preview-body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    /* definite height (popup height minus header/padding) so the columns can size themselves
       even if the DevExpress wrappers above do not pass a height down; capped by the parent
       whenever that parent does have one */
    height: calc(min(900px, 92vh) - 96px);
    max-height: 100%;
    min-height: 0;
    gap: 12px;
}

/* Drawing column (toolbar + canvas) */
[b-8lblcpz0x0] .slope-preview-main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Edge table container */
[b-8lblcpz0x0] .slope-edge-table-container {
    flex: 0 0 15%;
    min-width: 150px;
    height: 100%;
    overflow-y: auto;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 6px;
    background: var(--bs-body-bg, #fff);
}

/* Narrow screens: stack the list back under the drawing */
@media screen and (max-width: 768px) {
    .slope-preview-body[b-8lblcpz0x0],
    [b-8lblcpz0x0] .slope-preview-body {
        flex-direction: column;
    }

    [b-8lblcpz0x0] .slope-edge-table-container {
        flex: 0 0 auto;
        height: auto;
        max-height: 180px;
    }
}

/* Edge table */
[b-8lblcpz0x0] .slope-edge-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    table-layout: fixed;
}

[b-8lblcpz0x0] .slope-edge-table thead {
    position: sticky;
    top: 0;
    background: var(--bs-tertiary-bg, #f8f9fa);
    z-index: 1;
}

[b-8lblcpz0x0] .slope-edge-table th {
    padding: 6px 6px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--bs-border-color, #dee2e6);
    color: var(--bs-body-color, #212529);
}

[b-8lblcpz0x0] .slope-edge-table td {
    padding: 5px 6px;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    color: var(--bs-body-color, #212529);
    overflow-wrap: anywhere; /* the column is narrow - never let a long name overflow */
}

[b-8lblcpz0x0] .slope-edge-table tbody tr:hover {
    background: var(--bs-tertiary-bg, #f8f9fa);
}

/* Eave edge row highlight */
[b-8lblcpz0x0] .slope-edge-eave-row {
    background: rgba(231, 76, 60, 0.1);
}

[b-8lblcpz0x0] .slope-edge-eave-row:hover {
    background: rgba(231, 76, 60, 0.2) !important;
}

/* Edge color indicator cell */
[b-8lblcpz0x0] .slope-edge-color-cell {
    width: 18px;
    padding: 5px 2px 5px 6px !important;
}

/* Edge color indicator dot */
[b-8lblcpz0x0] .slope-edge-color-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
/* /Components/SlopePitchRecalcDialog.razor.rz.scp.css */
.spr-body[b-7rnd3y66ns] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
}

.spr-label[b-7rnd3y66ns],
.spr-legend[b-7rnd3y66ns],
.spr-mode-desc[b-7rnd3y66ns] {
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.8rem;
}

.spr-pitch-row[b-7rnd3y66ns] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
}

.spr-pitch-current[b-7rnd3y66ns],
.spr-pitch-new[b-7rnd3y66ns] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spr-pitch-current strong[b-7rnd3y66ns] {
    font-size: 1rem;
}

[b-7rnd3y66ns] .spr-spin {
    width: 110px;
}

.spr-section[b-7rnd3y66ns] {
    font-weight: 600;
}

.spr-modes[b-7rnd3y66ns] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

@media (max-width: 640px) {
    .spr-modes[b-7rnd3y66ns] {
        grid-template-columns: 1fr;
    }
}

.spr-mode[b-7rnd3y66ns] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 6px;
    cursor: pointer;
    margin: 0;
}

.spr-mode input[b-7rnd3y66ns] {
    margin-top: 3px;
}

.spr-mode-active[b-7rnd3y66ns] {
    border-color: #4e79a7;
    background: rgba(78, 121, 167, 0.08);
}

.spr-mode-off[b-7rnd3y66ns] {
    opacity: 0.55;
    cursor: not-allowed;
}

.spr-mode-text[b-7rnd3y66ns] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.spr-mode-name[b-7rnd3y66ns] {
    font-weight: 600;
}

.spr-layout[b-7rnd3y66ns] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

@media (max-width: 640px) {
    .spr-layout[b-7rnd3y66ns] {
        grid-template-columns: 1fr;
    }
}

.spr-preview[b-7rnd3y66ns],
.spr-side[b-7rnd3y66ns] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.spr-svg[b-7rnd3y66ns] {
    width: 100%;
    height: 220px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 6px;
    background: var(--bs-body-bg, #fff);
}

.spr-table[b-7rnd3y66ns] {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.spr-table th[b-7rnd3y66ns],
.spr-table td[b-7rnd3y66ns] {
    padding: 3px 6px;
    border-bottom: 1px solid var(--bs-border-color-translucent, #eee);
    white-space: nowrap;
}

.spr-table th[b-7rnd3y66ns] {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-secondary-color, #6c757d);
    text-align: left;
}

.spr-table .num[b-7rnd3y66ns] {
    text-align: right;
}

.spr-changed td[b-7rnd3y66ns] {
    font-weight: 600;
}

.spr-kept td[b-7rnd3y66ns] {
    color: var(--bs-secondary-color, #6c757d);
}

.spr-warning[b-7rnd3y66ns] {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fff4e5;
    color: #8a4b00;
    border: 1px solid #f0c27a;
}
/* /Components/SlopePointsEditor.razor.rz.scp.css */
.slope-points-editor[b-8bznfzkxnu] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    font-family: inherit;
    outline: none;
}

/* ===== DxToolbar wrappers ===== */
[b-8bznfzkxnu] .spe-dx-toolbar {
    width: 100%;
    display: block;
    flex: 0 0 auto;
    background: var(--bs-tertiary-bg, #f5f5f5);
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

[b-8bznfzkxnu] .spe-dx-toolbar > .dxbl-toolbar,
[b-8bznfzkxnu] .spe-dx-toolbar .dxbl-toolbar {
    width: 100%;
}

[b-8bznfzkxnu] .spe-dx-toolbar-line1 {
    padding: 2px 6px;
}

[b-8bznfzkxnu] .spe-dx-toolbar-line2 {
    padding: 2px 6px;
    background: var(--bs-body-bg, #fff);
}

/* Allow items inside 2nd toolbar to wrap onto a new visual line */
[b-8bznfzkxnu] .spe-dx-toolbar-line2 .dxbl-toolbar,
[b-8bznfzkxnu] .spe-dx-toolbar-line2 .dxbl-toolbar-item-container,
[b-8bznfzkxnu] .spe-dx-toolbar-line2 ul,
[b-8bznfzkxnu] .spe-dx-toolbar-line2 > div {
    flex-wrap: wrap !important;
    row-gap: 4px;
}

/* Force edge-length group to start a new visual row */
[b-8bznfzkxnu] .spe-dx-toolbar-line2 .spe-tb-wrap-break {
    flex-basis: 100%;
    margin-left: 0 !important;
}

/* DxSpinEdit inside toolbar — compact sizing */
[b-8bznfzkxnu] .spe-dx-spin {
    width: 110px;
}

[b-8bznfzkxnu] .spe-dx-spin .dxbl-spin-edit,
[b-8bznfzkxnu] .spe-dx-spin .dxbl-text-edit {
    min-height: 26px;
}

/* Wide enough for a short expression such as "1250-387,5" before it is evaluated. */
[b-8bznfzkxnu] .spe-input-xyz {
    width: 130px;
}

[b-8bznfzkxnu] .spe-dx-save .dxbl-toolbar-item-btn,
[b-8bznfzkxnu] .spe-dx-save {
    background: #4CAF50;
    color: #fff;
}

/* Template groups that host inline inputs inside DxToolbarItem */
.spe-tb-name-group[b-8bznfzkxnu],
.spe-tb-slope-group[b-8bznfzkxnu],
.spe-tb-coord-group[b-8bznfzkxnu] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
    white-space: nowrap;
}

.spe-tb-coord-group label[b-8bznfzkxnu] {
    font-size: 0.82rem;
    font-weight: 500;
    margin: 0;
    min-width: 22px;
    text-align: right;
}

/* X/Y/Z: label on top of the spinedit */
.spe-tb-coord-stack[b-8bznfzkxnu] {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 0 4px;
    white-space: nowrap;
}

.spe-tb-coord-stack > label[b-8bznfzkxnu] {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--bs-secondary-color, #666);
    margin: 0;
    line-height: 1;
    letter-spacing: 0.02em;
}

.spe-tb-coord-stack.spe-delta > label[b-8bznfzkxnu] {
    color: #c77700;
}

.spe-tb-coord-stack.spe-delta[b-8bznfzkxnu]  .spe-input-xyz {
    background: #fffde7 !important;
}

.spe-label[b-8bznfzkxnu] {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Inputs */
.spe-input[b-8bznfzkxnu] {
    padding: 2px 6px;
    border: 1px solid var(--bs-border-color, #ccc);
    border-radius: 3px;
    font-size: 0.85rem;
    width: 70px;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #333);
}

.spe-input-name[b-8bznfzkxnu] { width: 140px; }
.spe-input-slope[b-8bznfzkxnu] { width: 55px; }
.spe-unit[b-8bznfzkxnu] { font-size: 0.85rem; }

.spe-input-delta[b-8bznfzkxnu] {
    background: #fffde7 !important;
}

/* Buttons (used inside drawer) */
.spe-btn[b-8bznfzkxnu] {
    padding: 3px 10px;
    border: 1px solid var(--bs-border-color, #ccc);
    border-radius: 3px;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #333);
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}

.spe-btn:hover:not(:disabled)[b-8bznfzkxnu] {
    background: var(--bs-secondary-bg, #e9ecef);
}

.spe-btn:disabled[b-8bznfzkxnu] {
    opacity: 0.5;
    cursor: not-allowed;
}

.spe-btn-danger[b-8bznfzkxnu] {
    color: #d32f2f;
    border-color: #d32f2f;
}

/* Drag axis mode: segmented Free / ↔ / ↕ */
.spe-axis-mode[b-8bznfzkxnu] {
    display: inline-flex;
    border: 1px solid var(--bs-border-color, #ccc);
    border-radius: 4px;
    overflow: hidden;
}

.spe-axis-btn[b-8bznfzkxnu] {
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    border: none;
    border-left: 1px solid var(--bs-border-color, #ccc);
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #333);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.spe-axis-btn:first-child[b-8bznfzkxnu] {
    border-left: none;
}

.spe-axis-btn:hover:not(.active)[b-8bznfzkxnu] {
    background: var(--bs-secondary-bg, #e9ecef);
}

.spe-axis-btn.active[b-8bznfzkxnu] {
    background: #FF5722;
    color: #fff;
}

/* ===== Main content ===== */
.spe-content[b-8bznfzkxnu] {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

/* SVG Canvas */
.spe-canvas-panel[b-8bznfzkxnu] {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: var(--bs-body-bg, #fff);
    border-right: 1px solid var(--bs-border-color, #dee2e6);
}

.spe-svg[b-8bznfzkxnu] {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
}


/* ===== Right drawer (desktop) ===== */
.spe-right-panel[b-8bznfzkxnu] {
    flex: 0 0 280px;
    width: 280px;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.spe-drawer-open[b-8bznfzkxnu] { /* marker class, no additional rules */ }

/* The shape gallery needs room for two columns of tiles. */
.spe-right-panel-wide[b-8bznfzkxnu] {
    flex: 0 0 340px;
    width: 340px;
    min-width: 300px;
}

.spe-right-panel-mobile[b-8bznfzkxnu] {
    width: 100%;
    min-width: 0;
    height: 100%;
    overflow-y: auto;
}

.spe-grid-header[b-8bznfzkxnu] {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 10px;
    background: var(--bs-secondary-bg, #e9ecef);
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.spe-points-grid[b-8bznfzkxnu] {
    flex: 1;
    overflow-y: auto;
    max-height: 100%;
}

.spe-table[b-8bznfzkxnu] {
    width: 100%;
    font-size: 0.8rem;
    border-collapse: collapse;
}

.spe-table th[b-8bznfzkxnu] {
    padding: 3px 6px;
    text-align: right;
    background: var(--bs-secondary-bg, #e9ecef);
    font-weight: 500;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.spe-table th:first-child[b-8bznfzkxnu] {
    text-align: center;
    width: 30px;
}

.spe-table td[b-8bznfzkxnu] {
    padding: 3px 6px;
    text-align: right;
    border-bottom: 1px solid var(--bs-border-color-translucent, #eee);
    cursor: pointer;
}

.spe-table td:first-child[b-8bznfzkxnu] {
    text-align: center;
    color: var(--bs-secondary-color, #999);
}

.spe-yr-cell[b-8bznfzkxnu] {
    color: var(--bs-secondary-color, #888);
    font-style: italic;
}

.spe-row-selected[b-8bznfzkxnu] {
    background: rgba(33, 150, 243, 0.15) !important;
}

.spe-table tbody tr:hover[b-8bznfzkxnu] {
    background: rgba(0, 0, 0, 0.04);
}

/* Orientation hint — reminds that the eave (orange edge) is always drawn at the bottom */
.spe-orientation-hint[b-8bznfzkxnu] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.3;
    color: var(--bs-secondary-color, #777);
    background: rgba(255, 152, 0, 0.08);
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

/* Keyboard legend, pushed to the far end of the hint bar. */
.spe-shortcut-hint[b-8bznfzkxnu] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.spe-kbd[b-8bznfzkxnu] {
    display: inline-block;
    min-width: 18px;
    padding: 0 4px;
    font-family: inherit;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    color: var(--bs-body-color, #333);
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #c6c6c6);
    border-bottom-width: 2px;
    border-radius: 3px;
}

.spe-orientation-swatch[b-8bznfzkxnu] {
    flex: 0 0 auto;
    width: 18px;
    height: 4px;
    border-radius: 2px;
    background: #FF9800;
}

/* Contour switcher bar (outline / holes) */
.spe-contour-bar[b-8bznfzkxnu] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bs-body-bg, #fff);
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.spe-contour-label[b-8bznfzkxnu] {
    font-size: 12px;
    color: var(--bs-secondary-color, #777);
}

.spe-contour-chip[b-8bznfzkxnu] {
    border: 1px solid var(--bs-border-color, #ccc);
    background: transparent;
    border-radius: 14px;
    padding: 2px 12px;
    font-size: 12px;
    cursor: pointer;
    color: var(--bs-body-color, #333);
}

.spe-contour-chip:hover[b-8bznfzkxnu] {
    background: rgba(0, 0, 0, 0.04);
}

.spe-contour-chip.active[b-8bznfzkxnu] {
    background: #2196F3;
    border-color: #2196F3;
    color: #fff;
}

.spe-contour-add[b-8bznfzkxnu] {
    border: 1px dashed #4CAF50;
    background: transparent;
    border-radius: 14px;
    padding: 2px 12px;
    font-size: 12px;
    color: #2E7D32;
    cursor: pointer;
}

.spe-contour-add:hover[b-8bznfzkxnu] {
    background: rgba(76, 175, 80, 0.1);
}

.spe-contour-remove[b-8bznfzkxnu] {
    border: 1px solid #E57373;
    background: transparent;
    border-radius: 14px;
    padding: 2px 12px;
    font-size: 12px;
    color: #C62828;
    cursor: pointer;
    margin-left: auto;
}

.spe-contour-remove:hover[b-8bznfzkxnu] {
    background: rgba(229, 57, 53, 0.1);
}

.spe-reorder-cell[b-8bznfzkxnu] {
    text-align: center;
    white-space: nowrap;
    cursor: default;
}

.spe-move-btn[b-8bznfzkxnu] {
    border: none;
    background: transparent;
    padding: 0 3px;
    font-size: 11px;
    line-height: 1;
    color: var(--bs-secondary-color, #777);
    cursor: pointer;
}

.spe-move-btn:hover:not(:disabled)[b-8bznfzkxnu] {
    color: #2196F3;
}

.spe-move-btn:disabled[b-8bznfzkxnu] {
    opacity: 0.25;
    cursor: default;
}

/* Drawer input section (eave + edge length) */
.spe-input-section[b-8bznfzkxnu] {
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}

.spe-input-row[b-8bznfzkxnu] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
}

.spe-input-row label[b-8bznfzkxnu] {
    font-size: 0.82rem;
    font-weight: 500;
    width: 30px;
    text-align: right;
}

.spe-input-row .spe-input[b-8bznfzkxnu] {
    flex: 1;
}

.spe-button-row[b-8bznfzkxnu] {
    display: flex;
    gap: 4px;
    padding: 4px 10px;
}

.spe-button-row .spe-btn[b-8bznfzkxnu] {
    flex: 1;
}

/* Status bar */
.spe-statusbar[b-8bznfzkxnu] {
    padding: 4px 10px;
    font-size: 0.78rem;
    background: var(--bs-tertiary-bg, #f5f5f5);
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    color: var(--bs-secondary-color, #666);
}

.spe-status-warning[b-8bznfzkxnu] {
    margin-left: 12px;
    font-weight: 600;
    color: var(--bs-danger, #dc3545);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .spe-right-panel:not(.spe-right-panel-mobile)[b-8bznfzkxnu] {
        display: none !important;
    }

    .spe-input-name[b-8bznfzkxnu] { width: 100px; }
    .spe-tb-coord-group label[b-8bznfzkxnu] { min-width: 18px; }
    .spe-input[b-8bznfzkxnu] { width: 60px; }
}
/* /Components/SlopeTransformationSelector.razor.rz.scp.css */
/* Reuses same styling pattern as RoofTypeSelector */

[b-taya2p1ki4] .transformation-selector {
    padding: 8px;
}

[b-taya2p1ki4] .type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 8px 0;
}

[b-taya2p1ki4] .type-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

[b-taya2p1ki4] .type-card:hover {
    border-color: #4CBB17;
    box-shadow: 0 2px 6px rgba(76, 187, 23, 0.15);
    transform: translateY(-1px);
}

[b-taya2p1ki4] .type-card.selected {
    border-color: #4CBB17;
    background-color: #ecfdf5;
    box-shadow: 0 2px 8px rgba(76, 187, 23, 0.2);
}

[b-taya2p1ki4] .type-preview {
    width: 100%;
    height: 60px;
    object-fit: contain;
    margin-bottom: 4px;
}

[b-taya2p1ki4] .type-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
}

[b-taya2p1ki4] .type-card.selected .type-name {
    color: #111827;
}

[b-taya2p1ki4] .selection-actions {
    display: flex;
    gap: 8px;
    justify-content: stretch;
    margin-top: 8px;
}

[b-taya2p1ki4] .selection-actions button {
    flex: 1;
}

@media (max-width: 300px) {
    [b-taya2p1ki4] .type-grid {
        grid-template-columns: 1fr;
    }
}
/* /Components/SlopeWizardDialog.razor.rz.scp.css */
[b-5jovnfu2hp] .slope-wizard-container {
    padding: 12px;
}

[b-5jovnfu2hp] .wizard-help-text {
    font-size: 0.875rem;
    color: #4a5568;
    margin-bottom: 12px;
}

[b-5jovnfu2hp] .category-cards {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

[b-5jovnfu2hp] .category-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

[b-5jovnfu2hp] .category-card:hover {
    border-color: #4cbb17;
    background: rgba(76, 187, 23, 0.04);
}

[b-5jovnfu2hp] .category-card.active {
    border-color: #4cbb17;
    background: rgba(76, 187, 23, 0.1);
    box-shadow: 0 0 0 1px #4cbb17;
}

[b-5jovnfu2hp] .category-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3748;
    text-align: center;
}

[b-5jovnfu2hp] .category-range {
    font-size: 0.7rem;
    color: #718096;
    margin-top: 2px;
}

[b-5jovnfu2hp] .exact-angle-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

[b-5jovnfu2hp] .exact-angle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    white-space: nowrap;
}

[b-5jovnfu2hp] .exact-angle-input {
    display: flex;
    align-items: center;
    gap: 4px;
}

[b-5jovnfu2hp] .wizard-spin-edit {
    width: 90px;
}

[b-5jovnfu2hp] .angle-unit {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

[b-5jovnfu2hp] .impact-table-section {
    margin-bottom: 12px;
}

[b-5jovnfu2hp] .impact-table-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

[b-5jovnfu2hp] .impact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

[b-5jovnfu2hp] .impact-table th {
    background: #f7fafc;
    padding: 6px 8px;
    text-align: right;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
}

[b-5jovnfu2hp] .impact-table th:first-child {
    text-align: left;
}

[b-5jovnfu2hp] .impact-table td {
    padding: 4px 8px;
    text-align: right;
    color: #2d3748;
    border-bottom: 1px solid #f1f3f5;
}

[b-5jovnfu2hp] .impact-table td:first-child {
    text-align: left;
    font-weight: 500;
}

[b-5jovnfu2hp] .impact-table tr:hover {
    background: rgba(76, 187, 23, 0.04);
}

[b-5jovnfu2hp] .impact-table tr.selected-row {
    background: rgba(76, 187, 23, 0.12);
    font-weight: 600;
}

[b-5jovnfu2hp] .impact-table tr.selected-row td {
    color: #1a5e00;
}

[b-5jovnfu2hp] .wizard-summary {
    font-size: 0.85rem;
    color: #4a5568;
    padding: 8px 0;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

[b-5jovnfu2hp] .wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
/* /Components/SpecificationDialog.razor.rz.scp.css */
/* 80vw × 80vh popup: the content fills the body and the grid takes whatever height is left, so a
   long cutting list scrolls inside the grid (virtual scrolling) instead of paging 5 rows at a time.
   The explicit heights on the DevExpress internals are what make the grid fill rather than overflow. */
.specification-dialog-content[b-1194eayq4h] {
    width: 100%;
    height: calc(80vh - 120px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 16px;
    overflow: hidden;
}

.specification-grouping[b-1194eayq4h] {
    flex-shrink: 0;
    padding: 8px 12px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 6px;
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.specification-toolbar[b-1194eayq4h] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

[b-1194eayq4h] .specification-filter {
    width: 220px;
}

.specification-edit-header[b-1194eayq4h] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.specification-edit-title[b-1194eayq4h] {
    font-weight: 600;
}

.specification-filter-chip[b-1194eayq4h] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 1px 4px 1px 10px;
    border-radius: 999px;
    background: var(--bs-primary-bg-subtle, #cfe2ff);
    font-size: 0.8125rem;
}

.specification-filter-clear[b-1194eayq4h] {
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
}

.specification-toolbar-host[b-1194eayq4h] {
    flex: 0 0 auto;
}

/* Takes all height left between the toolbar and the footer summary. The grid is pinned to it
   absolutely, which gives DxGrid the definite height virtual scrolling needs — and nothing inside
   the grid is overridden: with height: 100% !important forced on its internal elements (left over
   from the paged version of this dialog) the virtual-scrolling grid collapsed to its header row at
   the bottom edge. */
.specification-grid-host[b-1194eayq4h] {
    flex: 1 1 0;
    min-height: 0;
    position: relative;
}

[b-1194eayq4h] .specification-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

[b-1194eayq4h] .specification-list-grid .dxbl-grid-table > tbody > tr {
    cursor: pointer;
}

.specification-length[b-1194eayq4h] {
    font-variant-numeric: tabular-nums;
}

.specification-grouped[b-1194eayq4h] {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--bs-success-text-emphasis, #0a3622);
    cursor: help;
}

.specification-sources[b-1194eayq4h] {
    font-size: 0.8125rem;
    color: var(--bs-secondary-color, #6c757d);
}

.specification-footer-summary[b-1194eayq4h] {
    flex-shrink: 0;
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
/* /Components/Tutorial/TutorialOverlay.razor.rz.scp.css */
.tut-panel[b-mjk3819dk1] {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    z-index: 1995;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 32px rgba(17, 24, 39, .22);
    border: 1px solid #e5e7eb;
    font-size: 14px;
    color: #111827;
    overflow: hidden;
}

.tut-header[b-mjk3819dk1] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #1f2937;
    color: #fff;
}

.tut-title[b-mjk3819dk1] {
    flex: 1;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tut-counter[b-mjk3819dk1] {
    font-size: 12px;
    opacity: .8;
}

.tut-icon-btn[b-mjk3819dk1] {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    padding: 2px 6px;
}

.tut-progress[b-mjk3819dk1] {
    height: 4px;
    background: #e5e7eb;
}

.tut-progress-bar[b-mjk3819dk1] {
    height: 100%;
    background: #fe7109;
    transition: width .3s ease;
}

.tut-body[b-mjk3819dk1] {
    padding: 12px 14px;
}

.tut-text[b-mjk3819dk1] {
    line-height: 1.45;
}

.tut-text-passed[b-mjk3819dk1] {
    color: #15803d;
}

.tut-check[b-mjk3819dk1] {
    font-weight: 700;
    margin-right: 6px;
}

.tut-partial[b-mjk3819dk1] {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.tut-hint[b-mjk3819dk1] {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}

.tut-warning[b-mjk3819dk1] {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.tut-link[b-mjk3819dk1] {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
}

.tut-actions[b-mjk3819dk1] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
}

.tut-footer[b-mjk3819dk1] {
    margin-top: 8px;
    text-align: right;
}

.tut-btn[b-mjk3819dk1] {
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}

.tut-btn-primary[b-mjk3819dk1] {
    background: #fe7109;
    color: #fff;
}

.tut-btn-secondary[b-mjk3819dk1] {
    background: #fff;
    border-color: #d1d5db;
    color: #111827;
}

.tut-btn-link[b-mjk3819dk1] {
    background: transparent;
    color: #6b7280;
    padding: 6px 4px;
}

.tut-done[b-mjk3819dk1] {
    font-size: 16px;
    font-weight: 600;
    color: #15803d;
    margin-bottom: 8px;
}

.tut-summary[b-mjk3819dk1] {
    width: 100%;
    border-collapse: collapse;
}

.tut-summary td[b-mjk3819dk1] {
    padding: 4px 0;
    border-bottom: 1px solid #f3f4f6;
}

.tut-summary td:last-child[b-mjk3819dk1] {
    text-align: right;
}

.tut-muted[b-mjk3819dk1] {
    color: #6b7280;
    font-size: 12px;
}

.tut-footer[b-mjk3819dk1] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tut-author-toggle[b-mjk3819dk1] {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    gap: 4px;
    align-items: center;
    margin: 0;
}

.tut-author[b-mjk3819dk1] {
    margin: 10px 0;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f5f3ff;
    border: 1px dashed #c4b5fd;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.tut-image[b-mjk3819dk1] {
    display: block;
    margin-top: 10px;
    text-align: center;
    cursor: zoom-in;
}

.tut-image img[b-mjk3819dk1] {
    width: 100%;
    height: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
}

.tut-image-missing[b-mjk3819dk1] {
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    font-size: 12px;
}
/* /Components/Tutorial/TutorialTile.razor.rz.scp.css */
.tut-lessons[b-mmk0uylvvb] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tut-lesson[b-mmk0uylvvb] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.tut-lesson:last-child[b-mmk0uylvvb] {
    border-bottom: 0;
}

.tut-lesson-tick[b-mmk0uylvvb] {
    flex: 0 0 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.tut-lesson-done .tut-lesson-tick[b-mmk0uylvvb] {
    background: #16a34a;
    border-color: #16a34a;
}

.tut-lesson-body[b-mmk0uylvvb] {
    flex: 1;
    min-width: 0;
}

.tut-lesson-title[b-mmk0uylvvb] {
    font-weight: 600;
}

.tut-lesson-meta[b-mmk0uylvvb] {
    font-size: 12px;
    color: #6b7280;
}

/* Full row under the lesson (and its buttons), aligned with the title past the tick. */
.tut-lesson-stats[b-mmk0uylvvb] {
    flex: 1 0 100%;
    padding-left: 32px;
    font-size: 12px;
    color: #4b5563;
}

.tut-lesson-stat-row[b-mmk0uylvvb] {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    max-width: 420px;
}

.tut-lesson-stat-diff[b-mmk0uylvvb] {
    color: #9ca3af;
}

.tut-lesson-actions[b-mmk0uylvvb] {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.tut-no-subscription[b-mmk0uylvvb] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 6px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 13px;
}
/* /Components/View2DInspector.razor.rz.scp.css */
.view-description[b-6c1gjvwn9p] {
    line-height: 1.5;
}

.orientation-display[b-6c1gjvwn9p] {
    border: 1px solid #e0e0e0;
}

.orientation-display svg[b-6c1gjvwn9p] {
    max-width: 100%;
    height: auto;
}
/* /Components/WallInfo.razor.rz.scp.css */
/* WallInfo Component - Uses shared inspector styles from app.scss */
/* This file only contains component-specific overrides */

/* Component uses these shared classes from app.scss:
   - .inspector-container (for wall-editor div)
   - .inspector-form-grid-wide
   - .inspector-label / .inspector-label-inline
   - .inspector-static-value
   - .inspector-property-box
   - .inspector-btn-primary
   - .inspector-btn-secondary
   - .inspector-no-selection
   - .inspector-workflow-panel
   - .inspector-placement-instructions
*/

/* No component-specific styles needed - all styles are shared */
/* /Components/WorkCopyReplacementDialog.razor.rz.scp.css */
.workcopy-confirmation-container[b-gvjkzny94p] {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    gap: 1rem;
}

.warning-section[b-gvjkzny94p] {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
}

.warning-section p[b-gvjkzny94p] {
    margin: 0;
    color: #856404;
    font-weight: 500;
}

.image-comparison[b-gvjkzny94p] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.current-image[b-gvjkzny94p], .target-image[b-gvjkzny94p] {
    text-align: center;
    flex: 1;
}

.current-image h6[b-gvjkzny94p], .target-image h6[b-gvjkzny94p] {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 600;
}

.image-name[b-gvjkzny94p] {
    font-weight: 500;
    color: #212529;
    display: block;
    margin-bottom: 0.25rem;
}

.replacement-arrow[b-gvjkzny94p] {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 1rem;
    font-size: 1.5rem;
}

.warning-text[b-gvjkzny94p] {
    margin-top: auto;
}

[b-gvjkzny94p] .warning-text .alert {
    margin: 0;
    font-size: 0.9rem;
}

.dialog-footer[b-gvjkzny94p] {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
}
/* /Pages/Admin/ManufacturerCatalog.razor.rz.scp.css */
/* Scoped to this page. Nothing here is inherited from PartnerApi.razor.css — Blazor's scoped CSS is
   per component, so a shared-looking class name is a coincidence, not a link. */

.catalog-admin-container[b-7m1jh5leqk] {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.page-header[b-7m1jh5leqk] {
    margin-bottom: 20px;
}

.page-header h2[b-7m1jh5leqk] {
    color: #2c3e50;
    margin: 8px 0 4px;
}

.subtitle[b-7m1jh5leqk] {
    color: #7f8c8d;
    margin: 0;
}

.toolbar[b-7m1jh5leqk] {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.data-table[b-7m1jh5leqk] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th[b-7m1jh5leqk] {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 2px solid #e5e8ec;
    color: #5a6b7b;
    font-weight: 600;
    white-space: nowrap;
}

.data-table td[b-7m1jh5leqk] {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: top;
}

.data-table tr:hover td[b-7m1jh5leqk] {
    background: #f8fafc;
}

.empty[b-7m1jh5leqk] {
    text-align: center;
    color: #95a5a6;
    padding: 32px 8px;
}

.row-inactive td[b-7m1jh5leqk] {
    opacity: 0.55;
}

.mono-small[b-7m1jh5leqk] {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
    color: #7f8c8d;
    word-break: break-all;
}

.actions[b-7m1jh5leqk] {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-sm[b-7m1jh5leqk] {
    padding: 3px 10px;
    font-size: 0.8rem;
}

.badge[b-7m1jh5leqk] {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 6px;
    white-space: nowrap;
}

.badge-ok[b-7m1jh5leqk] { background: #eafaf1; color: #1e8449; }
.badge-warn[b-7m1jh5leqk] { background: #fef5e7; color: #b9770e; }
.badge-off[b-7m1jh5leqk] { background: #f2f3f4; color: #7f8c8d; }

.status-chip[b-7m1jh5leqk] {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #eef2f7;
    font-size: 0.78rem;
    font-weight: 600;
    color: #34495e;
}

.warn-inline[b-7m1jh5leqk] {
    color: #c0392b;
    font-size: 0.82rem;
}

.warn-strong[b-7m1jh5leqk] {
    background: #fef5e7;
    border-left: 4px solid #f39c12;
    padding: 10px 12px;
    color: #7e5109;
    margin: 12px 0;
}

.warn-strong ul[b-7m1jh5leqk] {
    margin: 6px 0 0;
    padding-left: 18px;
}

.modal-backdrop-custom[b-7m1jh5leqk] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-card[b-7m1jh5leqk] {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    width: min(640px, 92vw);
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* The profile editor and the test result are both wide by nature: JSON that wraps is JSON nobody can
   read, and a result table with five columns in 640px is a column of fragments. */
.wide-card[b-7m1jh5leqk] {
    width: min(1040px, 96vw);
}

.modal-card h3[b-7m1jh5leqk] {
    margin-top: 0;
    color: #2c3e50;
}

.modal-actions[b-7m1jh5leqk] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.test-actions[b-7m1jh5leqk] {
    margin-top: 4px;
}

.form-grid[b-7m1jh5leqk] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0 16px;
}

.form-row[b-7m1jh5leqk] {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

.form-row label[b-7m1jh5leqk] {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 4px;
    font-size: 0.88rem;
}

.hint[b-7m1jh5leqk] {
    color: #95a5a6;
    font-size: 0.78rem;
    margin-top: 3px;
}

.check-inline[b-7m1jh5leqk] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 14px;
    margin-top: 6px;
    font-weight: 400 !important;
}

.profile-editor[b-7m1jh5leqk] {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
    tab-size: 2;
}

.profile-editor.is-invalid[b-7m1jh5leqk] {
    border-color: #c0392b;
    background: #fffafa;
}

.profile-tools[b-7m1jh5leqk] {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.test-summary[b-7m1jh5leqk] {
    background: #f8fafc;
    border: 1px solid #e5e8ec;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 12px 0;
}

.test-summary-row[b-7m1jh5leqk] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 3px 0;
}

.test-label[b-7m1jh5leqk] {
    font-weight: 600;
    color: #5a6b7b;
    font-size: 0.82rem;
    min-width: 150px;
}

.test-summary-row code[b-7m1jh5leqk] {
    background: #eef2f7;
    padding: 2px 8px;
    border-radius: 4px;
    user-select: all;
    word-break: break-all;
}

.loading-container[b-7m1jh5leqk] {
    display: flex;
    justify-content: center;
    padding: 48px 0;
}
/* /Pages/Admin/ManufacturerPartnerships.razor.rz.scp.css */
/*
    Scoped styles for the partnership registry viewer.

    Its own file because the admin classes in this project are not global — each admin page carries
    its own copy (see ManufacturerCatalog.razor.css).
*/

.admin-container[b-7f3sh8967v] {
    padding: 20px;
}

.admin-header h2[b-7f3sh8967v] {
    margin: 0 0 6px 0;
    font-size: 20px;
}

.admin-header p[b-7f3sh8967v] {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 13px;
}

.partnership-filters[b-7f3sh8967v] {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-input[b-7f3sh8967v] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 260px;
}

.filter-input:focus[b-7f3sh8967v] {
    outline: none;
    border-color: #007bff;
}

.btn[b-7f3sh8967v] {
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.btn-primary[b-7f3sh8967v] {
    background: #007bff;
    color: #fff;
}

.btn:disabled[b-7f3sh8967v] {
    opacity: 0.6;
    cursor: not-allowed;
}

.admin-table[b-7f3sh8967v] {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th[b-7f3sh8967v],
.admin-table td[b-7f3sh8967v] {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.admin-table th[b-7f3sh8967v] {
    background: #f8f9fa;
    font-weight: 600;
}

/* Identifiers are read character by character when somebody is comparing them with a support
   ticket, which is the whole job of this screen. */
.mono-small[b-7f3sh8967v] {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    color: #666;
}

.status-pill[b-7f3sh8967v] {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-pill.is-active[b-7f3sh8967v] { background: #d4edda; color: #155724; }
.status-pill.is-pending[b-7f3sh8967v] { background: #fff3cd; color: #856404; }
.status-pill.is-suspended[b-7f3sh8967v] { background: #f8d7da; color: #721c24; }
.status-pill.is-none[b-7f3sh8967v] { background: #eee; color: #666; }

.scope-pill[b-7f3sh8967v] {
    display: inline-block;
    margin: 1px 3px 1px 0;
    padding: 1px 7px;
    border-radius: 8px;
    background: #e8f5e9;
    color: #1b5e20;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.admin-hint[b-7f3sh8967v] {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.admin-message.error[b-7f3sh8967v] {
    padding: 12px 16px;
    border-radius: 6px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    font-size: 14px;
}
/* /Pages/Admin/PartnerApi.razor.rz.scp.css */
.partner-api-container[b-d9d3xzpuzm] {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.page-header[b-d9d3xzpuzm] {
    margin-bottom: 20px;
}

.page-header h2[b-d9d3xzpuzm] {
    color: #2c3e50;
    margin: 8px 0 4px;
}

.subtitle[b-d9d3xzpuzm] {
    color: #7f8c8d;
    margin: 0;
}

.tab-bar[b-d9d3xzpuzm] {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e5e8ec;
    margin-bottom: 16px;
}

.tab[b-d9d3xzpuzm] {
    background: none;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    color: #5a6b7b;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab.active[b-d9d3xzpuzm] {
    color: #2c3e50;
    font-weight: 600;
    border-bottom-color: #3498db;
}

.toolbar[b-d9d3xzpuzm] {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.search-box[b-d9d3xzpuzm] {
    max-width: 420px;
}

.data-table[b-d9d3xzpuzm] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th[b-d9d3xzpuzm] {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 2px solid #e5e8ec;
    color: #5a6b7b;
    font-weight: 600;
    white-space: nowrap;
}

.data-table td[b-d9d3xzpuzm] {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: top;
}

.data-table tr:hover td[b-d9d3xzpuzm] {
    background: #f8fafc;
}

.empty[b-d9d3xzpuzm] {
    text-align: center;
    color: #95a5a6;
    padding: 32px 8px;
}

.row-inactive td[b-d9d3xzpuzm] {
    opacity: 0.55;
}

.row-denied td[b-d9d3xzpuzm] {
    background: #fff6f6;
}

.mono-small[b-d9d3xzpuzm] {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
    color: #7f8c8d;
    word-break: break-all;
}

.actions[b-d9d3xzpuzm] {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-sm[b-d9d3xzpuzm] {
    padding: 3px 10px;
    font-size: 0.8rem;
}

.badge[b-d9d3xzpuzm] {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 6px;
    white-space: nowrap;
}

.badge-sandbox[b-d9d3xzpuzm] { background: #e8f4fd; color: #2980b9; }
.badge-off[b-d9d3xzpuzm] { background: #f2f3f4; color: #7f8c8d; }
.badge-rotating[b-d9d3xzpuzm] { background: #fef5e7; color: #b9770e; }
.badge-purged[b-d9d3xzpuzm] { background: #eafaf1; color: #1e8449; }

.status-chip[b-d9d3xzpuzm] {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #eef2f7;
    font-size: 0.78rem;
    font-weight: 600;
    color: #34495e;
}

/* An empty IP allowlist is a deliberate choice, not a failure — but it is one worth seeing. */
.warn-inline[b-d9d3xzpuzm] {
    color: #b9770e;
    font-size: 0.82rem;
}

.warn-strong[b-d9d3xzpuzm] {
    background: #fef5e7;
    border-left: 4px solid #f39c12;
    padding: 10px 12px;
    color: #7e5109;
    margin: 12px 0;
}

.modal-backdrop-custom[b-d9d3xzpuzm] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-card[b-d9d3xzpuzm] {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    width: min(640px, 92vw);
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.modal-card h3[b-d9d3xzpuzm] {
    margin-top: 0;
    color: #2c3e50;
}

.modal-actions[b-d9d3xzpuzm] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.form-row[b-d9d3xzpuzm] {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

.form-row label[b-d9d3xzpuzm] {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 4px;
    font-size: 0.88rem;
}

.hint[b-d9d3xzpuzm] {
    color: #95a5a6;
    font-size: 0.78rem;
    margin-top: 3px;
}

.check-inline[b-d9d3xzpuzm] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 14px;
    font-weight: 400 !important;
}

/* The secret is readable exactly once, so it gets room to be selected and copied without wrapping
   into something a reader could mis-transcribe. */
.secret-card[b-d9d3xzpuzm] {
    width: min(760px, 94vw);
}

.secret-row[b-d9d3xzpuzm] {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.secret-row label[b-d9d3xzpuzm] {
    font-size: 0.78rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.secret-row code[b-d9d3xzpuzm] {
    background: #f4f6f8;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 0.95rem;
    word-break: break-all;
    user-select: all;
}

.secret-value[b-d9d3xzpuzm] {
    border: 2px solid #3498db;
}
/* /Pages/InvestmentDetail-lidar.razor.rz.scp.css */
/* "Dane LIDAR" tab: two toolbars (as on "Pomiar"), the 3D view with its overlays, and the
   context panel on the right. Scoped — the tab's own classes only. */

.lidar-tab[b-9urhw5cn12] {
    display: flex;
    flex-direction: column;
}

.lidar-card[b-9urhw5cn12] {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* The page gives the tab no height of its own, and before a cloud is loaded everything in the
   view is laid over it (absolutely positioned), so without a height here the body collapses to
   a few pixels. It reaches down to the bottom of the window: 270px stands for what is above
   it (page header, tab title, two toolbar rows). */
.lidar-body[b-9urhw5cn12] {
    flex: 1 0 auto;
    height: max(420px, calc(100vh - 270px));
    display: flex;
}

/* ---- 3D view and what sits on top of it ---- */

.lidar-view[b-9urhw5cn12] {
    flex: 1;
    min-width: 0;
    position: relative;
    background: #f1f3f6;
}

.lidar-empty[b-9urhw5cn12] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}

.lidar-empty-over[b-9urhw5cn12] {
    z-index: 5;
    background: rgba(241, 243, 246, .85);
}

.lidar-empty-card[b-9urhw5cn12] {
    max-width: 440px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #d5dae0;
    border-radius: 10px;
    text-align: center;
}

.lidar-empty-wide[b-9urhw5cn12] {
    max-width: 640px;
}

.lidar-hint[b-9urhw5cn12] {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    max-width: calc(100% - 24px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: #1f2933;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
}

.lidar-toast[b-9urhw5cn12] {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    max-width: 320px;
    padding: 8px 12px;
    background: #e3f5e8;
    border: 1px solid #8fcf9f;
    border-radius: 8px;
    color: #14532d;
    font-size: 13px;
}

.lidar-toast-error[b-9urhw5cn12] {
    background: #fde8e8;
    border-color: #f1a7a7;
    color: #7f1d1d;
}

.lidar-legend[b-9urhw5cn12],
.lidar-radius[b-9urhw5cn12] {
    position: absolute;
    bottom: 12px;
    z-index: 3;
    padding: 6px 12px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid #d5dae0;
    border-radius: 8px;
    font-size: 12px;
}

.lidar-legend[b-9urhw5cn12] {
    left: 12px;
    max-width: calc(100% - 260px);
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
}

.lidar-radius[b-9urhw5cn12] {
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lidar-radius input[b-9urhw5cn12] {
    width: 120px;
}

.lidar-radius span[b-9urhw5cn12] {
    min-width: 44px;
    text-align: right;
}

.lidar-swatch[b-9urhw5cn12] {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    vertical-align: middle;
}

.lidar-swatch-line[b-9urhw5cn12] {
    display: inline-block;
    width: 18px;
    height: 4px;
    border-radius: 2px;
    vertical-align: middle;
}

/* ---- context panel ---- */

.lidar-panel[b-9urhw5cn12] {
    width: 340px;
    min-width: 280px;
    flex-shrink: 0;
    overflow-y: auto;
    border-left: 1px solid #d5dae0;
    background: #fff;
    font-size: 13px;
}

.lidar-sel[b-9urhw5cn12] {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 14px;
    background: #f7f8fa;
    border-bottom: 1px solid #d5dae0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lidar-sel-kicker[b-9urhw5cn12] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #59616b;
}

.lidar-sel-title[b-9urhw5cn12] {
    font-size: 15px;
    font-weight: 600;
}

.lidar-sel-grid[b-9urhw5cn12] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.lidar-sel-grid-2[b-9urhw5cn12] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lidar-sel-grid span[b-9urhw5cn12] {
    display: block;
    font-size: 12px;
    color: #59616b;
}

.lidar-alerts[b-9urhw5cn12] {
    padding: 8px 14px;
    border-bottom: 1px solid #e1e5ea;
}

.lidar-sec[b-9urhw5cn12] {
    border-bottom: 1px solid #e1e5ea;
}

.lidar-sec > summary[b-9urhw5cn12] {
    padding: 9px 14px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.lidar-sec > summary:hover[b-9urhw5cn12] {
    background: #f4f6f8;
}

.lidar-cnt[b-9urhw5cn12] {
    float: right;
    font-weight: 500;
    color: #59616b;
}

.lidar-sec table[b-9urhw5cn12] {
    font-size: 12px;
}

.lidar-sec table th:first-child[b-9urhw5cn12],
.lidar-sec table td:first-child[b-9urhw5cn12] {
    padding-left: 14px;
}

.lidar-sec table th:last-child[b-9urhw5cn12],
.lidar-sec table td:last-child[b-9urhw5cn12] {
    padding-right: 14px;
}

.lidar-sec-empty[b-9urhw5cn12] {
    padding: 2px 14px 10px;
    color: #59616b;
}

.lidar-row[b-9urhw5cn12] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 14px;
}

.lidar-row .btn[b-9urhw5cn12] {
    font-size: 12px;
}

/* The tape in hand: which end moves, a pad to move it, the step, snapping. */
.lidar-joy[b-9urhw5cn12] {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 6;
    width: 214px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid #d5dae0;
    border-radius: 10px;
    font-size: 13px;
}

.lidar-joy-head[b-9urhw5cn12],
.lidar-joy-row[b-9urhw5cn12] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lidar-joy-pad[b-9urhw5cn12] {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    grid-auto-rows: 36px;
    gap: 4px;
    justify-content: center;
}

.lidar-joy-pad .btn[b-9urhw5cn12] {
    padding: 0;
    font-size: 16px;
}

.lidar-joy-keys[b-9urhw5cn12] {
    color: #5b6875;
    font-size: 11px;
    line-height: 1.3;
}

/* A section is docked at the bottom of the view (LidarSectionView, 290px): what sat there moves up. */
.lidar-has-section .lidar-legend[b-9urhw5cn12],
.lidar-has-section .lidar-radius[b-9urhw5cn12] {
    bottom: 302px;
}

/* ---- toolbar ---- */

.lidar-grade[b-9urhw5cn12] {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.lidar-grade-good[b-9urhw5cn12] {
    background: #e3f5e8;
    color: #14532d;
}

.lidar-grade-fair[b-9urhw5cn12] {
    background: #fff1cf;
    color: #7a4a00;
}

.lidar-grade-poor[b-9urhw5cn12] {
    background: #fde8e8;
    color: #7f1d1d;
}

.lidar-busy[b-9urhw5cn12] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3d4a57;
    font-size: 13px;
    white-space: nowrap;
}

/* A toolbar button that waits for a second click ("Scal z inną…") — same green as on "Pomiar". */
[b-9urhw5cn12] .toolbar-mode-active,
[b-9urhw5cn12] .toolbar-mode-active button,
[b-9urhw5cn12] .toolbar-mode-active .dxbl-btn,
[b-9urhw5cn12] .toolbar-mode-active.dxbl-toolbar-item > .dxbl-btn {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
}

[b-9urhw5cn12] .toolbar-mode-active .oi,
[b-9urhw5cn12] .toolbar-mode-active .dxbl-btn .oi {
    color: #fff !important;
}

@media (max-width: 900px) {
    .lidar-body[b-9urhw5cn12] {
        flex-direction: column;
        height: auto;
        overflow-y: auto;
    }

    .lidar-view[b-9urhw5cn12] {
        min-height: 360px;
    }

    .lidar-panel[b-9urhw5cn12] {
        width: 100%;
        border-left: 0;
        border-top: 1px solid #d5dae0;
        overflow-y: visible;
    }
}
/* /Pages/InvestmentDetail-measurement.razor.rz.scp.css */
[b-mje8pde18o] body {
    background-color: white;
}


/* Display the first drawer (for desktop) */
[b-mje8pde18o] .navigation-drawer > .dxbl-drawer-panel {
    display: flex;
}
/* Collapse or expand the first drawer based on the toggle button state */
[b-mje8pde18o].page:has(.navbar-toggler:not(:checked)) .navigation-drawer:not(.mobile) > .dxbl-drawer-panel {
    width: 0 !important;
}
/* Hide the second drawer (for mobile) */
[b-mje8pde18o] .navigation-drawer.mobile > .dxbl-drawer-panel {
    display: none;
}



[b-mje8pde18o] .icon {
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1rem;
    min-height: 1rem;
    background-size: contain;
    -webkit-mask-repeat:no-repeat;
    background-position: center center;
    background-color: currentColor;
    opacity: 0.7;
}

[b-mje8pde18o] .icon-caret-left-filled {
    mask-image: url("../images/icons/caret-left-filled.svg");
    -webkit-mask-image: url("../images/icons/caret-left-filled.svg");    
}


[b-mje8pde18o] .icon-caret-right-filled {
    mask-image: url("../images/icons/caret-right-filled.svg");
    -webkit-mask-image: url("../images/icons/caret-right-filled.svg");
}

[b-mje8pde18o] .icon-caret-up-filled {
    mask-image: url("../images/icons/caret-up-filled.svg");
    -webkit-mask-image: url("../images/icons/caret-up-filled.svg");
}


[b-mje8pde18o] .icon-caret-down-filled {
    mask-image: url("../images/icons/caret-down-filled.svg");
    -webkit-mask-image: url("../images/icons/caret-downilled.svg");
}


[b-mje8pde18o] .icon-menu2 {
    mask-image: url("../images/icons/menu-2.svg");
    -webkit-mask-image: url("../images/icons/menu-2.svg");
}

[b-mje8pde18o] .button-set {
    margin-right:0.1rem;    
}

[b-mje8pde18o] .card-body {
    background-color: #5B6977;
}

[b-mje8pde18o] .card {
    border: none;
}

[b-mje8pde18o] .dxbl-drawer-body {
    background-color: #5B6977;
    margin-right:0px;
}

[b-mje8pde18o] .dxbl-drawer-panel {
    background-color: #5B6977;
}

[b-mje8pde18o] .dxbl-tabs-tablist {
    background-color: #5B6977;
    color:white;
}

/* Hide drawer toggle checkbox */
/*.drawer-toggler {
    display: none;
}*/

/* Mobile toggle button styling */
.mobile-toggle-btn[b-mje8pde18o], .mobile-close-btn[b-mje8pde18o] {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.mobile-toggle-btn:hover[b-mje8pde18o], .mobile-close-btn:hover[b-mje8pde18o] {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Icon styles for menu and close */
[b-mje8pde18o] .icon-menu {
    mask-image: url("../images/icons/menu-2.svg");
    -webkit-mask-image: url("../images/icons/menu-2.svg");
}

[b-mje8pde18o] .icon-close {
    mask-image: url("../images/icons/close.svg");
    -webkit-mask-image: url("../images/icons/close.svg");
}

/* Default: Show desktop drawer, hide mobile drawer */

@media (max-width: 768px) {
    /* Hide the first drawer (for desktop) */
    [b-mje8pde18o] .navigation-drawer > .dxbl-drawer-panel {
        display: none;
    }
    /* Display the second drawer (for mobile) */
    [b-mje8pde18o] .navigation-drawer.mobile > .dxbl-drawer-panel {
        display: flex;
    }
    /* Collapse or expand the second drawer based on the toggle button state */
    [b-mje8pde18o].page:has(.navbar-toggler:checked) .navigation-drawer.mobile > .dxbl-drawer-panel {
        width: 0 !important;
    }
}

/* Measurement specific styles */
.hidden[b-mje8pde18o] {
    display: none;
}

.drawer-footer[b-mje8pde18o] {
    padding: 0;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

.scale-info-section[b-mje8pde18o] {
    margin-bottom: 15px;
    padding: 10px;
}

.section-title[b-mje8pde18o] {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 3px;
}

.info-item[b-mje8pde18o] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    font-size: 11px;
}

.info-label[b-mje8pde18o] {
    font-weight: 500;
    color: #666;
    min-width: 70px;
}

.info-value[b-mje8pde18o] {
    font-weight: normal;
    color: #333;
    text-align: right;
    word-break: break-word;
    flex: 1;
    margin-left: 5px;
}

.scale-measurement-row[b-mje8pde18o] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.scale-display[b-mje8pde18o] {
    display: flex;
    flex: 1;
    min-width: 0;
}

.measuring-tape-btn[b-mje8pde18o] {
    flex-shrink: 0;
    min-width: 32px;
}

/* Perspective correction floating panel */
[b-mje8pde18o] .perspective-correction-panel {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 100;
    background: rgba(30, 30, 30, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 280px;
    max-width: 320px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

[b-mje8pde18o] .perspective-panel-header {
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

[b-mje8pde18o] .perspective-panel-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
}

[b-mje8pde18o] .perspective-panel-section {
    margin-bottom: 10px;
}

[b-mje8pde18o] .perspective-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

[b-mje8pde18o] .perspective-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

[b-mje8pde18o] .perspective-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

[b-mje8pde18o] .perspective-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4fc3f7;
    cursor: pointer;
    border: 2px solid #fff;
}

[b-mje8pde18o] .perspective-slider-value {
    font-size: 13px;
    font-weight: 600;
    font-family: monospace;
    min-width: 36px;
    text-align: right;
    color: #4fc3f7;
}

[b-mje8pde18o] .perspective-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
    padding: 0 2px;
}

[b-mje8pde18o] .perspective-dimensions-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

[b-mje8pde18o] .perspective-dim-input {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
}

[b-mje8pde18o] .perspective-dim-input span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

[b-mje8pde18o] .perspective-dim-unit {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

[b-mje8pde18o] .perspective-spin {
    width: 70px;
}

[b-mje8pde18o] .perspective-spin input,
[b-mje8pde18o] .perspective-spin .dxbl-spin-edit-input,
[b-mje8pde18o] .perspective-spin .dxbl-edit-input,
[b-mje8pde18o] .perspective-spin .form-control {
    background: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    font-size: 12px !important;
    height: 28px !important;
}

[b-mje8pde18o] .perspective-spin .dxbl-edit-input-container,
[b-mje8pde18o] .perspective-spin .dxbl-spin-edit {
    background: transparent !important;
    border: none !important;
}

[b-mje8pde18o] .perspective-dim-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    margin: 0 2px;
}

[b-mje8pde18o] .perspective-calc-btn {
    margin-left: 4px;
}

[b-mje8pde18o] .perspective-panel-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

[b-mje8pde18o] .perspective-apply-btn {
    flex: 1;
}

[b-mje8pde18o] .perspective-cancel-btn {
    flex-shrink: 0;
}

/* Active toolbar mode indicator: a toolbar button (e.g. "Pozycjonuj" / "Tło") whose dropdown holds
   an enabled mode stays green so the user sees the mode is on even when the dropdown is closed.
   ItemRenderStyleMode="Plain" renders each item as a .dxbl-toolbar-item wrapping a button. */
[b-mje8pde18o] .toolbar-mode-active,
[b-mje8pde18o] .toolbar-mode-active button,
[b-mje8pde18o] .toolbar-mode-active .dxbl-btn,
[b-mje8pde18o] .toolbar-mode-active.dxbl-toolbar-item > .dxbl-btn {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
}

[b-mje8pde18o] .toolbar-mode-active button:hover,
[b-mje8pde18o] .toolbar-mode-active .dxbl-btn:hover,
[b-mje8pde18o] .toolbar-mode-active.dxbl-toolbar-item > .dxbl-btn:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

/* Keep icon + text white against the green background. */
[b-mje8pde18o] .toolbar-mode-active .oi,
[b-mje8pde18o] .toolbar-mode-active .dxbl-btn .oi {
    color: #fff !important;
}

/* ===== Slope calculator panel (extends the "Pomiar" measurement-tape tool) ===== */
[b-mje8pde18o] .slope-calc-modes {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

[b-mje8pde18o] .slope-calc-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

[b-mje8pde18o] .slope-calc-radio input[type="radio"] {
    accent-color: #4fc3f7;
    cursor: pointer;
}

[b-mje8pde18o] .slope-calc-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

[b-mje8pde18o] .slope-calc-label {
    flex: 1;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

[b-mje8pde18o] .slope-calc-result {
    font-size: 14px;
    font-weight: 600;
    font-family: monospace;
    color: #4fc3f7;
    min-width: 70px;
    text-align: right;
}

[b-mje8pde18o] .slope-calc-error {
    font-size: 11px;
    color: #ff9d6f;
    margin-top: 4px;
}

/* Tryb przesuwania dachu/tła — ramka wokół płótna i baner u góry. Ramka nie łapie
   myszy, żeby nie zasłaniać płótna przy przeciąganiu. */
.position-mode-frame[b-mje8pde18o] {
    position: absolute;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    box-shadow: inset 0 0 0 3px #3b6bcf;
    background: rgba(59, 107, 207, 0.06);
}

.position-mode-banner[b-mje8pde18o] {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 6px 14px;
    border: 1px solid #3b6bcf;
    border-radius: 6px;
    background: #e8f0fe;
    color: #1b3d8a;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}
/* /Pages/InvestmentDetail-offers.razor.rz.scp.css */
.ofr-tab[b-yi9queowdq] {
    padding: 16px 20px 24px;
}

.ofr-empty[b-yi9queowdq] {
    max-width: 520px;
    margin: 48px auto;
    text-align: center;
    padding: 32px 24px;
    border: 1px dashed var(--bs-border-color, rgba(229, 229, 229, 0.3));
    border-radius: 12px;
}

.ofr-empty-icon[b-yi9queowdq] {
    font-size: 40px;
    opacity: 0.5;
    display: block;
    margin-bottom: 12px;
}

.ofr-layout[b-yi9queowdq] {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

/* ---------- rail ---------- */
.ofr-rail[b-yi9queowdq] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 8px;
}

.ofr-rail-head[b-yi9queowdq] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 0 2px 4px;
}

.ofr-rail-item[b-yi9queowdq] {
    text-align: left;
    width: 100%;
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 10px;
    background: var(--bs-secondary-bg, #222);
    color: inherit;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.ofr-rail-item:hover[b-yi9queowdq] {
    border-color: var(--bs-primary, #4CBB17);
}

.ofr-rail-item.active[b-yi9queowdq] {
    border-color: var(--bs-primary, #4CBB17);
    box-shadow: inset 3px 0 0 var(--bs-primary, #4CBB17);
}

.ofr-rail-row[b-yi9queowdq] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.ofr-rail-desc[b-yi9queowdq] {
    font-size: 12px;
    opacity: 0.75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ofr-viewed[b-yi9queowdq] {
    font-size: 12px;
    color: #60a5fa;
}

.ofr-count[b-yi9queowdq] {
    display: inline-block;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11px;
    text-align: center;
    background: var(--bs-tertiary-bg, rgba(255, 255, 255, 0.08));
    font-weight: 600;
}

.ofr-muted[b-yi9queowdq] {
    color: var(--bs-secondary-color, #9ca3af);
}

.ofr-num[b-yi9queowdq] {
    font-variant-numeric: tabular-nums;
}

.ofr-link-btn[b-yi9queowdq] {
    background: none;
    border: 0;
    padding: 0;
    color: var(--bs-primary, #4CBB17);
    font-size: 13px;
    cursor: pointer;
}

/* ---------- status ---------- */
.ofr-status[b-yi9queowdq] {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
}

.ofr-status.workcopy[b-yi9queowdq] { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }
.ofr-status.sent[b-yi9queowdq] { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.ofr-status.sold[b-yi9queowdq] { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.ofr-status.lost[b-yi9queowdq] { background: rgba(239, 68, 68, 0.2); color: #f87171; }

/* ---------- main ---------- */
.ofr-main[b-yi9queowdq] {
    min-width: 0;
}

.ofr-head[b-yi9queowdq] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.ofr-head h2[b-yi9queowdq] {
    font-size: 22px;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ofr-actions[b-yi9queowdq] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ofr-status-row[b-yi9queowdq] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin: 12px 0 16px;
}

.ofr-spacer[b-yi9queowdq] {
    flex: 1;
}

.ofr-chip-btn[b-yi9queowdq] {
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.25));
    background: transparent;
    color: inherit;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    cursor: pointer;
}

.ofr-chip-btn:hover[b-yi9queowdq] { border-color: #60a5fa; }
.ofr-chip-btn.sold:hover[b-yi9queowdq] { border-color: #4ade80; color: #4ade80; }
.ofr-chip-btn.lost:hover[b-yi9queowdq],
.ofr-chip-btn.danger:hover[b-yi9queowdq] { border-color: #f87171; color: #f87171; }

.ofr-grid[b-yi9queowdq] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
    align-items: start;
}

.ofr-col[b-yi9queowdq] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.ofr-card[b-yi9queowdq] {
    background: var(--bs-secondary-bg, #222);
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 12px;
    padding: 16px;
}

.ofr-card-title[b-yi9queowdq] {
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ofr-meta[b-yi9queowdq] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.ofr-label[b-yi9queowdq] {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-secondary-color, #9ca3af);
    margin-bottom: 2px;
}

.ofr-lines[b-yi9queowdq] {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ofr-lines th[b-yi9queowdq] {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-secondary-color, #9ca3af);
    font-weight: 600;
    padding: 6px 8px;
    border-bottom: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
}

.ofr-lines td[b-yi9queowdq] {
    padding: 8px;
    border-bottom: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.1));
    vertical-align: top;
}

.ofr-lines .r[b-yi9queowdq] { text-align: right; }
.ofr-lines .nowrap[b-yi9queowdq] { white-space: nowrap; font-variant-numeric: tabular-nums; }

.ofr-totals[b-yi9queowdq] {
    margin-left: auto;
    max-width: 320px;
    padding-top: 10px;
}

.ofr-totals div[b-yi9queowdq] {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-variant-numeric: tabular-nums;
}

.ofr-totals .grand[b-yi9queowdq] {
    font-size: 18px;
    font-weight: 700;
    border-top: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.3));
    margin-top: 6px;
    padding-top: 6px;
}

/* ---------- share ---------- */
.ofr-share-link[b-yi9queowdq] {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ofr-qr[b-yi9queowdq] {
    flex: 0 0 112px;
    width: 112px;
    height: 112px;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
}

.ofr-qr[b-yi9queowdq]  svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ofr-share-body[b-yi9queowdq] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ofr-share-body input[b-yi9queowdq] {
    cursor: pointer;
    font-size: 12px;
}

.ofr-share-btns[b-yi9queowdq] {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ofr-views[b-yi9queowdq] {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.15));
}

.ofr-views-sum[b-yi9queowdq] {
    font-weight: 600;
    color: #60a5fa;
}

.ofr-timeline[b-yi9queowdq] {
    list-style: none;
    margin: 8px 0 4px;
    padding: 0;
    font-size: 13px;
}

.ofr-timeline li[b-yi9queowdq] {
    display: flex;
    gap: 10px;
    padding: 3px 0;
}

.ofr-ev-time[b-yi9queowdq] {
    color: var(--bs-secondary-color, #9ca3af);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ofr-publish[b-yi9queowdq] {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.15));
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ofr-older[b-yi9queowdq] {
    margin-top: 12px;
    font-size: 13px;
}

.ofr-older ul[b-yi9queowdq] {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
}

.ofr-older li[b-yi9queowdq] {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 2px 0;
}

@media (max-width: 1280px) {
    .ofr-grid[b-yi9queowdq] {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .ofr-layout[b-yi9queowdq] {
        grid-template-columns: minmax(0, 1fr);
    }

    .ofr-rail[b-yi9queowdq] {
        position: static;
        flex-direction: row;
        overflow-x: auto;
    }

    .ofr-rail-head[b-yi9queowdq] {
        display: none;
    }

    .ofr-rail-item[b-yi9queowdq] {
        min-width: 200px;
    }
}
/* /Pages/InvestmentDetail.razor.rz.scp.css */
.sticky-header[b-zo4c2l07xg] {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* /Pages/ManufacturerOrderDetail.razor.rz.scp.css */
/*
    Scoped styles for one order. See ManufacturerOrders.razor.css for why this is not an inline
    <style> block.
*/

.mfg-order-detail[b-wql4pirl10] {
    padding: 16px 24px;
}

.detail-toolbar[b-wql4pirl10] {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mfg-order-detail h3[b-wql4pirl10] {
    font-size: 15px;
    margin: 20px 0 8px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

    .detail-grid[b-wql4pirl10] {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 0.5rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .detail-grid .label[b-wql4pirl10] {
        display: block;
        font-size: 0.8rem;
        color: var(--text-muted, #666);
    }

    .orders-table[b-wql4pirl10],
    .items-table[b-wql4pirl10] {
        width: 100%;
        border-collapse: collapse;
    }

    .orders-table th[b-wql4pirl10],
    .orders-table td[b-wql4pirl10],
    .items-table th[b-wql4pirl10],
    .items-table td[b-wql4pirl10] {
        text-align: left;
        padding: 0.4rem;
        border-bottom: 1px solid var(--border-color, #e0e0e0);
    }

    .items-table[b-wql4pirl10] {
        font-size: 0.85rem;
        background: var(--surface-color, #fafafa);
    }

    .history[b-wql4pirl10] {
        list-style: none;
        padding: 0;
    }

    .history li[b-wql4pirl10] {
        padding: 0.4rem 0;
        border-bottom: 1px solid var(--border-color, #e0e0e0);
    }

    .history-at[b-wql4pirl10] {
        color: var(--text-muted, #666);
        margin-right: 0.75rem;
    }

    .history-status[b-wql4pirl10] {
        font-weight: 600;
        margin-right: 0.5rem;
    }

    .history-note[b-wql4pirl10] {
        font-size: 0.85rem;
        color: var(--text-muted, #666);
    }

.page-header h2[b-wql4pirl10] {
    margin: 0 0 4px 0;
    font-size: 20px;
}

.page-header p[b-wql4pirl10] {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 13px;
}

.settings-message[b-wql4pirl10] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
}

.settings-message.success[b-wql4pirl10] {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.settings-message.error[b-wql4pirl10] {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-hint[b-wql4pirl10] {
    font-size: 12px;
    color: #666;
}

.btn[b-wql4pirl10] {
    padding: 9px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn:disabled[b-wql4pirl10] {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary[b-wql4pirl10] {
    background: #007bff;
    color: #fff;
}

.btn-secondary[b-wql4pirl10] {
    background: #6c757d;
    color: #fff;
}
/* /Pages/ManufacturerOrders.razor.rz.scp.css */
/*
    Scoped styles for the seller's order list.

    In their own file, not an inline <style> block and not borrowed from another component: every
    shared-looking class in this project ("settings-message", "form-hint") is defined inside some
    component's SCOPED stylesheet and is therefore invisible from here.
*/

.mfg-orders[b-yn9ij2b30n] {
    padding: 16px 24px;
}

    .orders-table[b-yn9ij2b30n] {
        width: 100%;
        border-collapse: collapse;
    }

    .orders-table th[b-yn9ij2b30n],
    .orders-table td[b-yn9ij2b30n] {
        text-align: left;
        padding: 0.5rem;
        border-bottom: 1px solid var(--border-color, #e0e0e0);
    }

    .order-row[b-yn9ij2b30n] {
        cursor: pointer;
    }

    .order-row:hover[b-yn9ij2b30n] {
        background: var(--surface-color, #f5f5f5);
    }

    .status-badge[b-yn9ij2b30n] {
        display: inline-block;
        padding: 0.15rem 0.5rem;
        border-radius: 999px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .status-open[b-yn9ij2b30n] { background: #e3f2fd; color: #0d47a1; }
    .status-progress[b-yn9ij2b30n] { background: #fff8e1; color: #7a5200; }
    .status-done[b-yn9ij2b30n] { background: #e8f5e9; color: #1b5e20; }
    .status-stopped[b-yn9ij2b30n] { background: #fdecea; color: #b71c1c; }

    .status-note[b-yn9ij2b30n] {
        font-size: 0.8rem;
        color: var(--text-muted, #666);
        margin-top: 0.15rem;
    }

    .filters[b-yn9ij2b30n] {
        margin-bottom: 1rem;
    }

.page-header h2[b-yn9ij2b30n] {
    margin: 0 0 4px 0;
    font-size: 20px;
}

.page-header p[b-yn9ij2b30n] {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 13px;
}

.settings-message[b-yn9ij2b30n] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
}

.settings-message.success[b-yn9ij2b30n] {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.settings-message.error[b-yn9ij2b30n] {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-hint[b-yn9ij2b30n] {
    font-size: 12px;
    color: #666;
}

.btn[b-yn9ij2b30n] {
    padding: 9px 18px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn:disabled[b-yn9ij2b30n] {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary[b-yn9ij2b30n] {
    background: #007bff;
    color: #fff;
}

.btn-secondary[b-yn9ij2b30n] {
    background: #6c757d;
    color: #fff;
}

.empty-state[b-yn9ij2b30n] {
    padding: 24px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
}

.filters select[b-yn9ij2b30n] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Szkice — zamówienia złożone, ale jeszcze nie u producenta (albo z nieudanej wysyłki).
   Nad tabelą i wizualnie oddzielone, bo to niedokończona sprawa czytającego, a nie fakt. */
.drafts-block[b-yn9ij2b30n] {
    border: 1px solid #ffe0b2;
    background: #fffdf7;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.drafts-block h3[b-yn9ij2b30n] {
    margin: 0 0 4px 0;
    font-size: 15px;
}

/* Ta sama siatka co tabela zamówień niżej, na białym tle wewnątrz bloku — szkice mają się czytać
   jak zamówienia, bo tym właśnie są, tylko jeszcze nie u producenta. */
.drafts-table[b-yn9ij2b30n] {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 13px;
}

.drafts-table th[b-yn9ij2b30n] {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

.drafts-table td[b-yn9ij2b30n] {
    vertical-align: top;
}

/* Wiersz szczegółów siedzi tuż pod swoim wierszem, więc kreska między nimi tylko sugerowałaby
   dwa osobne zamówienia. */
.draft-row > td[b-yn9ij2b30n] {
    border-bottom: none;
}

.draft-detail-row > td[b-yn9ij2b30n] {
    padding-top: 0;
}

.draft-detail-row .settings-message[b-yn9ij2b30n] {
    margin-bottom: 0;
    margin-top: 8px;
}

.draft-notes[b-yn9ij2b30n] {
    font-size: 13px;
    color: #444;
}

.col-num[b-yn9ij2b30n] {
    text-align: right;
    white-space: nowrap;
}

.cell-note[b-yn9ij2b30n] {
    font-size: 12px;
    color: #666;
    margin-top: 0.15rem;
}

.cell-muted[b-yn9ij2b30n] {
    color: #999;
}

.draft-actions[b-yn9ij2b30n] {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.draft-actions .btn[b-yn9ij2b30n] {
    padding: 6px 12px;
    font-size: 13px;
}

.mono-small[b-yn9ij2b30n] {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}
/* /Pages/Offers.razor.rz.scp.css */
/* Offers Page Container */
.offers-page-container[b-t9za31plqw] {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 16px;
    padding: 20px;
}

/* Filter Panel */
.filter-panel[b-t9za31plqw] {
    background: var(--bs-body-bg, #212529);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
}

.filters-row[b-t9za31plqw] {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.filter-section[b-t9za31plqw] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-section[b-t9za31plqw] {
    min-width: 280px;
}

.status-section[b-t9za31plqw] {
    flex: 1;
    min-width: 400px;
}

.filter-header[b-t9za31plqw] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-header i[b-t9za31plqw] {
    color: var(--bs-primary, #fe7109);
    font-size: 14px;
}

/* Date Filter */
.date-filter-content[b-t9za31plqw] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.date-navigation[b-t9za31plqw] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn[b-t9za31plqw] {
    width: 32px;
    height: 32px;
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 6px;
    background: var(--bs-tertiary-bg, #222426);
    color: var(--bs-body-color, #e5e5e5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.nav-btn:hover[b-t9za31plqw] {
    border-color: var(--bs-primary, #fe7109);
    color: var(--bs-primary, #fe7109);
}

.date-range-display[b-t9za31plqw] {
    font-size: 13px;
    font-weight: 500;
    color: var(--bs-emphasis-color, #ffffff);
    min-width: 140px;
    text-align: center;
}

.date-presets[b-t9za31plqw] {
    display: flex;
    gap: 6px;
}

.preset-btn[b-t9za31plqw] {
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 6px;
    background: var(--bs-tertiary-bg, #222426);
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover[b-t9za31plqw] {
    border-color: var(--bs-primary, #fe7109);
    color: var(--bs-primary, #fe7109);
}

.preset-btn.active[b-t9za31plqw] {
    background: linear-gradient(135deg, var(--bs-primary, #fe7109) 0%, #d45e07 100%);
    border-color: var(--bs-primary, #fe7109);
    color: white;
}

/* Status Filter — kompaktowe przyciski w stylu .preset-btn */
.status-filter-content[b-t9za31plqw] {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.status-btn[b-t9za31plqw] {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 6px;
    background: var(--bs-tertiary-bg, #222426);
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.status-btn:hover[b-t9za31plqw] {
    border-color: var(--bs-primary, #fe7109);
    color: var(--bs-primary, #fe7109);
}

.status-btn.active[b-t9za31plqw] {
    border-color: var(--bs-primary, #fe7109);
    background: rgba(254, 113, 9, 0.1);
    color: var(--bs-body-color, #e5e5e5);
}

.status-btn .status-icon[b-t9za31plqw] {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-btn .status-icon svg[b-t9za31plqw] {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.status-btn.active .status-icon svg[b-t9za31plqw] {
    stroke: var(--bs-primary, #fe7109);
}

.status-btn .status-label[b-t9za31plqw] {
    font-size: 12px;
    font-weight: 500;
}

.status-btn .status-count[b-t9za31plqw] {
    font-size: 11px;
    line-height: 1;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.6));
    background: var(--bs-secondary-bg, #2a2a2a);
    padding: 3px 6px;
    border-radius: 8px;
}

.status-btn.active .status-count[b-t9za31plqw] {
    background: var(--bs-primary, #fe7109);
    color: white;
}

/* Status-specific colors */
.status-btn.workcopy.active[b-t9za31plqw] {
    border-color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
}

.status-btn.workcopy.active .status-icon svg[b-t9za31plqw] {
    stroke: #6b7280;
}

.status-btn.sent.active[b-t9za31plqw] {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.status-btn.sent.active .status-icon svg[b-t9za31plqw] {
    stroke: #3b82f6;
}

.status-btn.sold.active[b-t9za31plqw] {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.status-btn.sold.active .status-icon svg[b-t9za31plqw] {
    stroke: #22c55e;
}

.status-btn.lost.active[b-t9za31plqw] {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.status-btn.lost.active .status-icon svg[b-t9za31plqw] {
    stroke: #ef4444;
}

/* Filter Actions */
.filter-actions[b-t9za31plqw] {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-left: auto;
}

.apply-btn[b-t9za31plqw] {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 16px;
    background: linear-gradient(135deg, var(--bs-primary, #fe7109) 0%, #d45e07 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.apply-btn:hover[b-t9za31plqw] {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 113, 9, 0.3);
}

.clear-btn[b-t9za31plqw] {
    width: 32px;
    height: 32px;
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 6px;
    background: var(--bs-tertiary-bg, #222426);
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.clear-btn:hover[b-t9za31plqw] {
    border-color: var(--bs-primary, #fe7109);
    color: var(--bs-primary, #fe7109);
}

/* Toolbar Panel */
.toolbar-panel[b-t9za31plqw] {
    background: var(--bs-secondary-bg, #222222);
    border-radius: 8px;
    padding: 8px;
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
}

[b-t9za31plqw] .offers-toolbar {
    background: transparent;
}

/* Search */
.search-toolbar-item[b-t9za31plqw] {
    flex-grow: 1;
    max-width: 300px;
}

.search-panel[b-t9za31plqw] {
    display: flex;
    align-items: center;
    width: 100%;
}

[b-t9za31plqw] .offers-search-box {
    width: 100%;
}

[b-t9za31plqw] .offers-search-box .dxbl-textbox {
    background-color: var(--bs-tertiary-bg, #222426);
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 6px;
    color: var(--bs-body-color, #e5e5e5);
}

[b-t9za31plqw] .offers-search-box .dxbl-textbox:focus-within {
    border-color: var(--bs-primary, #fe7109);
    box-shadow: 0 0 0 2px rgba(254, 113, 9, 0.2);
}

/* Main Panel */
.main-panel[b-t9za31plqw] {
    flex: 1;
    background: var(--bs-body-bg, #212529);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    overflow: auto;
}

/* Loading State */
.loading-container[b-t9za31plqw] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    gap: 16px;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
}

/* Empty State */
.empty-state[b-t9za31plqw] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    text-align: center;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
}

.empty-state .empty-icon[b-t9za31plqw] {
    margin-bottom: 16px;
    color: var(--bs-tertiary-color, rgba(229, 229, 229, 0.5));
}

.empty-state h3[b-t9za31plqw] {
    color: var(--bs-emphasis-color, #ffffff);
    margin-bottom: 8px;
}

/* Grid Styles */
[b-t9za31plqw] .offers-grid {
    background: transparent;
}

/* Status Badges */
.status-badge[b-t9za31plqw] {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-workcopy[b-t9za31plqw] {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.status-badge.status-sent[b-t9za31plqw] {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.status-badge.status-sold[b-t9za31plqw] {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.status-badge.status-lost[b-t9za31plqw] {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Row Actions */
.row-actions[b-t9za31plqw] {
    display: flex;
    gap: 8px;
}

.action-btn[b-t9za31plqw] {
    width: 28px;
    height: 28px;
    border: 1px solid var(--bs-border-color, rgba(229, 229, 229, 0.2));
    border-radius: 4px;
    background: transparent;
    color: var(--bs-secondary-color, rgba(229, 229, 229, 0.75));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 12px;
}

.action-btn:hover[b-t9za31plqw] {
    border-color: var(--bs-primary, #fe7109);
    color: var(--bs-primary, #fe7109);
    background: rgba(254, 113, 9, 0.1);
}
/* /Pages/Settings.razor.rz.scp.css */
/* Shared settings styles - copied from UserSettings.razor.css */
[b-3q35zvqgmj] .user-settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[b-3q35zvqgmj] .settings-header {
    margin-bottom: 30px;
}

[b-3q35zvqgmj] .settings-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

[b-3q35zvqgmj] .settings-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Settings Overview Styles */
[b-3q35zvqgmj] .settings-overview {
    margin-top: 2rem;
}

[b-3q35zvqgmj] .settings-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
}

[b-3q35zvqgmj] .settings-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[b-3q35zvqgmj] .settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

[b-3q35zvqgmj] .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 12px;
    margin-right: 1rem;
    flex-shrink: 0;
}

[b-3q35zvqgmj] .card-icon i {
    font-size: 1.5rem;
    color: white;
}

[b-3q35zvqgmj] .card-content {
    flex: 1;
}

[b-3q35zvqgmj] .card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

[b-3q35zvqgmj] .card-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

[b-3q35zvqgmj] .card-arrow {
    margin-left: 1rem;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[b-3q35zvqgmj] .settings-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

[b-3q35zvqgmj] .card-arrow i {
    font-size: 1rem;
    color: #007bff;
}

/* Maintenance actions — same card surface as the navigation cards above, but no cursor:pointer and
   no hover lift: the row itself does nothing, only the button inside it does. */
[b-3q35zvqgmj] .settings-actions {
    margin-top: 1.5rem;
}

[b-3q35zvqgmj] .settings-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[b-3q35zvqgmj] .action-text {
    flex: 1;
    min-width: 0;
}

[b-3q35zvqgmj] .action-text h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

[b-3q35zvqgmj] .action-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

[b-3q35zvqgmj] .action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

[b-3q35zvqgmj] .action-button:hover:not(:disabled) {
    background: #0b5ed7;
}

[b-3q35zvqgmj] .action-button:disabled {
    opacity: 0.6;
    cursor: default;
}

[b-3q35zvqgmj] .action-status {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: #198754;
}

[b-3q35zvqgmj] .action-status.is-error {
    color: #dc3545;
}

/* Responsive design */
@media (max-width: 768px) {
    [b-3q35zvqgmj] .settings-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    [b-3q35zvqgmj] .settings-action {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    [b-3q35zvqgmj] .action-button {
        justify-content: center;
    }

    [b-3q35zvqgmj] .settings-card {
        padding: 1rem;
    }

    [b-3q35zvqgmj] .card-icon {
        width: 40px;
        height: 40px;
    }

    [b-3q35zvqgmj] .card-icon i {
        font-size: 1.25rem;
    }

    [b-3q35zvqgmj] .card-content h3 {
        font-size: 1rem;
    }

    [b-3q35zvqgmj] .card-content p {
        font-size: 0.85rem;
    }
}
/* /Pages/TemplateManagement.razor.rz.scp.css */
.template-management-container[b-wxp4gm06r8] {
    padding: 1rem;
}

.template-grid[b-wxp4gm06r8] {
    margin-top: 1rem;
}

.template-editor[b-wxp4gm06r8] {
    padding: 1rem;
}

.template-content-section[b-wxp4gm06r8] {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    background-color: #f8f9fa;
}

.popup-footer[b-wxp4gm06r8] {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 1rem;
}
/* /Pages/UserSettings.razor.rz.scp.css */
.user-settings-container[b-b2l738curm] {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.settings-header[b-b2l738curm] {
    margin-bottom: 30px;
}

.settings-header h2[b-b2l738curm] {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.settings-header p[b-b2l738curm] {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.settings-content[b-b2l738curm] {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.settings-section[b-b2l738curm] {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.section-header[b-b2l738curm] {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.section-title[b-b2l738curm] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title h3[b-b2l738curm] {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.connection-status[b-b2l738curm] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.connection-status.connected[b-b2l738curm] {
    color: #28a745;
}

.connection-status.disconnected[b-b2l738curm] {
    color: #dc3545;
}

.status-indicator[b-b2l738curm] {
    font-size: 12px;
}

.section-content[b-b2l738curm] {
    padding: 20px;
}

.connected-info[b-b2l738curm] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-grid[b-b2l738curm] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item[b-b2l738curm] {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label[b-b2l738curm] {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.info-item span[b-b2l738curm] {
    color: #333;
    font-size: 14px;
}

.info-item span.warning[b-b2l738curm] {
    color: #f39c12;
    font-weight: 500;
}

.expiry-warning[b-b2l738curm] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
}

.warning-icon[b-b2l738curm] {
    font-size: 20px;
    flex-shrink: 0;
}

.warning-text[b-b2l738curm] {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.not-connected-info[b-b2l738curm] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.not-connected-info p[b-b2l738curm] {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.connection-form[b-b2l738curm] {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
}

.form-group[b-b2l738curm] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label[b-b2l738curm] {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.form-group input[b-b2l738curm] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus[b-b2l738curm] {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.error-message[b-b2l738curm] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #721c24;
    font-size: 14px;
}

.error-icon[b-b2l738curm] {
    flex-shrink: 0;
}

.action-buttons[b-b2l738curm] {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-actions[b-b2l738curm] {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn[b-b2l738curm] {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn:disabled[b-b2l738curm] {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary[b-b2l738curm] {
    background: #007bff;
    color: white;
}

.btn-primary:hover:not(:disabled)[b-b2l738curm] {
    background: #0056b3;
}

.btn-secondary[b-b2l738curm] {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled)[b-b2l738curm] {
    background: #545b62;
}

.btn-tertiary[b-b2l738curm] {
    background: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.btn-tertiary:hover:not(:disabled)[b-b2l738curm] {
    background: #007bff;
    color: white;
}

.loading-spinner[b-b2l738curm] {
    animation: spin-b-b2l738curm 1s linear infinite;
}

@keyframes spin-b-b2l738curm {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.health-info[b-b2l738curm] {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.health-item[b-b2l738curm] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.health-item label[b-b2l738curm] {
    font-weight: 600;
    color: #555;
}

.health-status[b-b2l738curm] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.health-status.healthy[b-b2l738curm] {
    color: #28a745;
}

.health-status.unhealthy[b-b2l738curm] {
    color: #dc3545;
}

/* Pricing Settings Styles */
.pricing-settings[b-b2l738curm] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pricing-settings .form-group[b-b2l738curm] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pricing-settings .form-group label[b-b2l738curm] {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.pricing-settings .form-group input[type="number"][b-b2l738curm] {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    max-width: 200px;
}

.pricing-settings .form-group input[type="number"]:focus[b-b2l738curm] {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.pricing-settings .form-group .form-select[b-b2l738curm] {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    max-width: 200px;
    background-color: white;
}

.pricing-settings .form-group .form-select:focus[b-b2l738curm] {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.pricing-settings .form-group .form-hint[b-b2l738curm] {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.settings-message[b-b2l738curm] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.settings-message.success[b-b2l738curm] {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.settings-message.error[b-b2l738curm] {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.settings-message .message-icon[b-b2l738curm] {
    font-size: 16px;
}

@media (max-width: 768px) {
    .user-settings-container[b-b2l738curm] {
        padding: 15px;
    }
    
    .section-title[b-b2l738curm] {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .info-grid[b-b2l738curm] {
        grid-template-columns: 1fr;
    }
    
    .action-buttons[b-b2l738curm],
    .form-actions[b-b2l738curm] {
        flex-direction: column;
    }
    
    .health-item[b-b2l738curm] {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
/* /Shared/Header.razor.rz.scp.css */
.navbar.header-navbar[b-jsjrsghyn8] {
    flex-grow: 0;
    flex-wrap: nowrap;
    border: none;
    background-color: inherit;
    border-radius: 0;
    height: 3.5rem;
    min-height: 3.5rem;
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.12);
    justify-content: flex-start;
    position: relative;
}

.header-navbar .navbar-toggler[b-jsjrsghyn8] {
    outline: none;
    border-radius: 0;
    padding-left: .75rem;
    padding-right: .75rem;
    box-shadow: none;
    align-self: stretch;
}

.header-navbar .navbar-toggler .navbar-toggler-icon[b-jsjrsghyn8] {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
    background-color: transparent !important;
    height: 2rem;
    width: 2rem;
}

.title[b-jsjrsghyn8] {
    font-size: 1.1rem;
    text-overflow: ellipsis;
    overflow: hidden;
}

[b-jsjrsghyn8] .header-indicators {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    [b-jsjrsghyn8] .header-indicators {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        pointer-events: none;
        overflow: visible;
    }

    [b-jsjrsghyn8] .header-indicators .global-progress-indicator,
    [b-jsjrsghyn8] .header-indicators .global-notification-indicator {
        pointer-events: auto;
        min-width: 0;
        max-width: calc(100vw - 120px);
    }
}

@media (max-width: 350px) {
    .title[b-jsjrsghyn8] {
        font-size: inherit;
    }
}
/* /Shared/MainLayout.razor.rz.scp.css */
.page[b-bx8fxe77ig] {
    height: 100%;
    overflow: hidden;
    background-color: inherit;
}
[b-bx8fxe77ig] .page-layout {
    height: 100%;
    background-color: var(--bs-body-bg, var(--dxbl-body-bg, #fff));
}

[b-bx8fxe77ig] .page-layout > .dxbl-gridlayout-root,
[b-bx8fxe77ig] .layout-item {
    background-color: var(--bs-body-bg, var(--dxbl-body-bg, #fff));
}

[b-bx8fxe77ig] .content {
    padding: 1.1rem 2rem 0 2rem;
    overflow: auto;
    height: 100%;
}

@media (max-width: 1199.98px) {
    [b-bx8fxe77ig] .page-layout > .dxbl-gridlayout-root {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

[b-bx8fxe77ig] .fit-width {
    max-width: 100%;
}

[b-bx8fxe77ig] .mw-1100 {
    max-width: 1100px;
}

.version-banner[b-bx8fxe77ig] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1a73e8, #1565c0);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.version-banner-btn[b-bx8fxe77ig] {
    background: #fff;
    color: #1a73e8;
    border: none;
    border-radius: 4px;
    padding: 4px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.version-banner-btn:hover[b-bx8fxe77ig] {
    background: #e8eaf6;
}

.version-banner-dismiss[b-bx8fxe77ig] {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
    margin-left: 8px;
}

.version-banner-dismiss:hover[b-bx8fxe77ig] {
    opacity: 1;
}
/* /Shared/NavMenu.razor.rz.scp.css */
.sidebar[b-3axvye0g3p] {
    min-width: 220px;
    max-width: 220px;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.16);
    transition: transform 0.1s ease-out;
    height: 100%;
    max-height: 100%;
    overflow: auto;
    background-color: var(--bs-body-bg, var(--dxbl-body-bg, #fff));
}

.sidebar.collapse[b-3axvye0g3p] {
    display: none;
}

.sidebar.expand[b-3axvye0g3p] {
    display: block;
}

@media (max-width: 1199.98px) {
    .sidebar[b-3axvye0g3p] {
        display: none;
    }

    .sidebar.expand[b-3axvye0g3p] {
        position: fixed;
        top: 3.5rem;
        left: 0;
        height: auto;
        min-width: 100%;
        z-index: 1050;
    }
}

/* Reduce horizontal and vertical spacing */
[b-3axvye0g3p] .app-sidebar {
    --dxbl-treeview-spacing-x: 0.25rem;
    --dxbl-treeview-spacing-y: 0.25rem;
    padding-left: 0.25rem;
}

/* Root level items - compact and close to left edge */
[b-3axvye0g3p] .app-sidebar > .dxbl-treeview-node-list {
    padding-left: 0;
}

[b-3axvye0g3p] .app-sidebar .dxbl-treeview-node {
    padding-left: 0;
}

[b-3axvye0g3p] .app-sidebar .dxbl-treeview-item {
    padding: 0;
    margin: 0;
}

[b-3axvye0g3p] .app-sidebar .dxbl-treeview-item-content {
    padding-left: 0.25rem;
}

/* Root item styling */
[b-3axvye0g3p] .app-sidebar .root-item > :first-child {
    --dxbl-treeview-font-weight: 600;
}

[b-3axvye0g3p] .app-sidebar .root-item > :only-child:not(.dxbl-treeview-tmpl) > button {
    display: none;
}

/* Submenu items - slightly indented but still compact */
[b-3axvye0g3p] .app-sidebar .dxbl-treeview-node-list .dxbl-treeview-node-list {
    padding-left: 1rem;
}

[b-3axvye0g3p] .app-sidebar .dxbl-treeview-node-list .dxbl-treeview-node-list .dxbl-treeview-item {
    padding: 0;
}

@media (max-width: 1199.98px) {
    [b-3axvye0g3p] .app-sidebar {
        padding-bottom: 0;
    }
}
