/* /Controls/UDataGrid.razor.rz.scp.css */
/* 1. KONTENER Z WYRAŹNĄ STALOWĄ RAMKĄ */
[b-w9pq4orcut] .table-container {
    display: block;
    overflow-y: auto;
    overflow-x: auto;
    width: 100%;
    background-color: white;
    min-height: 100px;
    /* Wyraźna, ciemnoszara ramka zewnętrzna */
    border: 2px solid #6c757d !important;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 2. GŁÓWNA STRUKTURA TABELI */
[b-w9pq4orcut] .custom-grid {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    table-layout: auto;
}

/* 3. NAGŁÓWKI (Wypukłe 3D z białą siatką wewnętrzną) */
[b-w9pq4orcut] .custom-grid thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--brush-blue-strong, linear-gradient(180deg, #3b82f6 0%, #1e40af 100%)) !important;
    color: white !important;
    font-weight: 600;
    padding: 6px 8px !important;
    line-height: 1.1 !important;
    text-align: left;
    white-space: nowrap;

    /* Biała siatka wewnątrz nagłówka dla efektu przycisków */
    border-right: 1px solid white !important;
    border-bottom: 2px solid #6c757d !important; /* Odcięcie od danych kolorem ramki */

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Lewy górny róg (ID) - Zamrożony */
[b-w9pq4orcut] .custom-grid thead th:first-child {
    z-index: 15;
    left: 0;
    padding: 10px 4px !important;
    border-right: 2px solid white !important;
}

/* 4. KOMÓRKI DANYCH (Wyraźna szara siatka) */
[b-w9pq4orcut] .custom-grid td {
    padding: 4px 8px !important;
    width: auto;
    line-height: 1.1 !important;
    color: #333;
    vertical-align: middle;
    transition: background-color 0.1s;

    /* Wyraźna siatka w kolorze ramki zewnętrznej */
    border-right: 1px solid #6c757d !important;
    border-bottom: 1px solid #6c757d !important;
}

/* 5. ROW HEADER (Pierwsza kolumna - Wypukły boczny pasek) */
[b-w9pq4orcut] .custom-grid tbody tr td:first-child {
    background: var(--brush-blue-strong, linear-gradient(180deg, #3b82f6 0%, #1e40af 100%)) !important;
    color: white !important;
    font-weight: bold;
    padding: 2px 2px !important;
    text-align: center;
    position: sticky;
    left: 0;
    z-index: 5;
    min-width: 40px;

    /* Efekt wypukłości i odcięcia */
    border-right: 2px solid white !important;
    border-bottom: 1px solid #6c757d !important;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.2);
}

/* 6. ZEBRA STRIPES (Mocny błękit) */
[b-w9pq4orcut] .custom-grid tbody tr:nth-child(even):not(.is-selected) td:not(:first-child) {
    background-color: darkgrey  !important;
    color: white !important;
}

/* 7. HOVER EFFECT (Dla niezaznaczonych) */
[b-w9pq4orcut] .custom-grid tbody tr:not(.is-selected):hover td:not(:first-child) {
    background: var(--brush-blue-radial) !important;
    filter: brightness(2.0) !important;
    color: whitesmoke !important;
    font-weight: 300;
    cursor: pointer;
}

/* 8. SELECTION MODE (Zaznaczony wiersz) */

/* Środek wiersza - jasny błękit */
[b-w9pq4orcut] .custom-grid tbody tr.is-selected td:not(:first-child) {
    background:var(--brush-blue-radial) !important;
    filter: brightness(1.8) !important;
    color: white !important;
    font-weight: 600;
}

/* RowHeader w zaznaczonym wierszu - Rozjaśnienie + Biała ramka */
[b-w9pq4orcut] .custom-grid tbody tr.is-selected td:first-child {
    filter: brightness(1.8) !important;
    border: 2px solid white !important;
    z-index: 6;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Opcjonalnie: Usuwamy ostatni border z prawej, by nie dublował ramki kontenera */
[b-w9pq4orcut] .custom-grid tr td:last-child,
[b-w9pq4orcut] .custom-grid tr th:last-child {
    border-right: none !important;
}
/* /Controls/UEditorLayout.razor.rz.scp.css */
.editor-overlay[b-soc44oh3en] {
    background-color: #e9ecef; /* WPF-owy szary background */
    min-height: 100vh;
    padding-top: 2rem;
    animation: fadeIn-b-soc44oh3en 0.2s ease-out;
}

.editor-card[b-soc44oh3en] {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
}

.card-header[b-soc44oh3en] {
    border-bottom: none;
    background-image: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

/* Wymuszenie białego tekstu na przycisku akcji */
.action-btn[b-soc44oh3en] {
    color: #ffffff !important;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.action-btn:disabled[b-soc44oh3en] {
    opacity: 0.5;
    color: rgba(255,255,255,0.7) !important;
}

.card-footer[b-soc44oh3en] {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
}

@keyframes fadeIn-b-soc44oh3en {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* /Controls/UNumericUpDown.razor.rz.scp.css */
/* ==========================================================================
   1. KONTENER GŁÓWNY (UPDOWN WRAPPER)
   ========================================================================== */
.u-updown-container[b-jhnkm5269c] {
    display: flex;
    align-items: stretch;
    width: 100% !important;
    min-width: 90px;   /* Minimalna szerokość dla 3 elementów */
    max-width: 120px;  /* Maksymalna szerokość, by nie "pływał" w Gridzie */
    height: 34px;      /* Standardowa wysokość kontrolki edycyjnej */
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Podświetlenie ramki, gdy kursor jest wewnątrz pola */
.u-updown-container:focus-within[b-jhnkm5269c] {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ==========================================================================
   2. PRZYCISKI +/- (LOGIKA KOLORÓW)
   ========================================================================== */

/* BAZOWY STYL PRZYCISKU */
.u-updown-btn[b-jhnkm5269c] {
    flex: 0 0 32px;    /* Stała szerokość 32px, nie kurczy się */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 0;
    transition: all 0.15s ease;
}

/* STAN: ENABLED (Aktywny - Niebieski) */
.u-updown-btn:not(:disabled)[b-jhnkm5269c] {
    background-color: #3b82f6 !important; /* Twój niebieski akcent */
    color: #ffffff !important;           /* Biały symbol */
    cursor: pointer;
}

.u-updown-btn:not(:disabled):hover[b-jhnkm5269c] {
    filter: brightness(1.1);
    background-color: #2563eb !important; /* Nieco ciemniejszy przy najechaniu */
}

.u-updown-btn:not(:disabled):active[b-jhnkm5269c] {
    filter: brightness(0.9);
    transform: scale(0.95); /* Efekt fizycznego kliknięcia */
}

/* STAN: DISABLED (Zablokowany - Szary) */
.u-updown-btn:disabled[b-jhnkm5269c] {
    background-color: #e9ecef !important; /* Jasnoszary */
    color: #adb5bd !important;           /* Wyblakły symbol */
    cursor: not-allowed;
    border: none;
}

/* ==========================================================================
   3. POLE EDYCYJNE (INPUT)
   ========================================================================== */
.u-updown-input[b-jhnkm5269c] {
    flex: 1;           /* Zajmuje całą przestrzeń między przyciskami */
    min-width: 0;      /* Pozwala flexboxowi na poprawne kurczenie */
    border: none;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    background-color: transparent;

    /* Ukrywanie natywnych strzałek przeglądarki */
    -moz-appearance: textfield;
}

.u-updown-input[b-jhnkm5269c]::-webkit-outer-spin-button,
.u-updown-input[b-jhnkm5269c]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.u-updown-input:focus[b-jhnkm5269c] {
    outline: none;
    background-color: #fffaf0; /* Delikatne tło przy edycji (jak w WPF) */
}

/* ==========================================================================
   4. ANIMACJA WEJŚCIA
   ========================================================================== */
@keyframes fadeIn-b-jhnkm5269c {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* /Controls/UStatusColumn.razor.rz.scp.css */
.status-column[b-2jkdowfhro] {
    display: block;
    width: 100%;
    text-align: center;
    padding: 2px 4px;
    border-radius: 2px;
    min-height: 24px;
    font-size: 0.9rem;
}

/* Stany aktywne (np. Value > 0 lub Bool = true) */
.status-active-success[b-2jkdowfhro] {
    background-color: #28a745 !important; /* Zielony */
    color: #000 !important;
    font-weight: 800 !important;
}

.status-active-danger[b-2jkdowfhro] {
    background-color: #dc3545 !important; /* Czerwony (np. Anulowane) */
    color: #fff !important;
    font-weight: 800 !important;
}

/* Stan nieaktywny (Zero lub False) */
.status-inactive[b-2jkdowfhro] {
    color: #999 !important;
    font-weight: normal !important;
}
/* /Controls/UTextBox.razor.rz.scp.css */
.u-textbox-container[b-cdizqxc6pm] {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 150px;
}

.u-input[b-cdizqxc6pm] {
    width: 100%;
    padding: 2px 22px 2px 6px; /* Mały padding jak w Twoim panelu statusów */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85rem;
    outline: none;
    background: white;
}

    .u-input:focus[b-cdizqxc6pm] {
        border-color: var(--brush-blue-strong, #0078d7);
    }

.u-clear-btn[b-cdizqxc6pm] {
    position: absolute;
    right: 4px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
}

    .u-clear-btn:hover[b-cdizqxc6pm] {
        color: #f00; /* Czerwony hover jak w niektórych stylach WPF */
    }
/* /Controls/UToggleButton.razor.rz.scp.css */
.u-toggle-container[b-ll7ymro2t2] {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Całkowite ukrycie kółka radio bez wpływu na layout */
.u-toggle-input[b-ll7ymro2t2] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.u-toggle-label[b-ll7ymro2t2] {
    display: flex;
    align-items: center;
    justify-content: center;

    /* Adaptacja do rodzica (np. td) */
    width: 100%;
    height: 100%;
    min-height: 28px; /* Minimalna wysokość, żeby przycisk był klikalny */
    min-width: 28px;

    background: #eee;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9em;
    user-select: none;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
}

/* Logika zaznaczenia - selektor + nadal działa, bo input jest w DOM tuż przed label */
.u-toggle-input:checked + .u-toggle-label[b-ll7ymro2t2] {
    background: var(--brush-blue-strong, #0078d7);
    color: white;
    border-color: var(--brush-blue-strong, #005a9e);
}

.u-toggle-label:hover[b-ll7ymro2t2] {
    background: #e5e5e5;
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-8zbnumz1gl] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-8zbnumz1gl] {
    flex: 1;
}

.sidebar[b-8zbnumz1gl] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-8zbnumz1gl] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-8zbnumz1gl]  a, .top-row[b-8zbnumz1gl]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-8zbnumz1gl]  a:hover, .top-row[b-8zbnumz1gl]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-8zbnumz1gl]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-8zbnumz1gl] {
        justify-content: space-between;
    }

    .top-row[b-8zbnumz1gl]  a, .top-row[b-8zbnumz1gl]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-8zbnumz1gl] {
        flex-direction: row;
    }

    .sidebar[b-8zbnumz1gl] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-8zbnumz1gl] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-8zbnumz1gl]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-8zbnumz1gl], article[b-8zbnumz1gl] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-nvj0d35cc4] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-nvj0d35cc4] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-nvj0d35cc4] {
    font-size: 1.1rem;
}

.bi[b-nvj0d35cc4] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-nvj0d35cc4] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-nvj0d35cc4] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-nvj0d35cc4] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-nvj0d35cc4] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-nvj0d35cc4] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-nvj0d35cc4] {
        padding-bottom: 1rem;
    }

    .nav-item[b-nvj0d35cc4]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-nvj0d35cc4]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-nvj0d35cc4]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-nvj0d35cc4] {
        display: none;
    }

    .collapse[b-nvj0d35cc4] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-nvj0d35cc4] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/OrderEdit.razor.rz.scp.css */
/* ==========================================================================
   1. NAGŁÓWEK I PANELE INFORMACYJNE (AZURE STYLE)
   ========================================================================== */
.info-tile[b-lm33bx0y8w] {
    background-color: #f0ffff;
    border: 1px solid #cdeefd;
    padding: 10px 15px;
    border-radius: 6px;
    height: 100%;
}

.info-tile small[b-lm33bx0y8w] {
    display: block;
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

.label-sm[b-lm33bx0y8w] {
    font-size: 0.75rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 4px;
    text-transform: uppercase;
}

/* Pola Read-only (Data Boxes) */
.data-box[b-lm33bx0y8w] {
    background: #ffffff;
    border: 2px solid #dee2e6;
    padding: 4px 8px;
    font-weight: 800;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.9rem;
}

.data-box.highlight[b-lm33bx0y8w] {
    border-color: var(--u-edit-color, #ff9800);
    background-color: #fffaf0;
    color: #e65100;
}

/* ==========================================================================
   2. SIATKA STATUSÓW (GŁÓWNY UKŁAD)
   ========================================================================== */
.status-grid-container[b-lm33bx0y8w] {
    display: block;
    padding: 15px 0;
    width: 100%;
}

.status-grid[b-lm33bx0y8w] {
    display: grid;
    /* Zwiększona szerokość minimalna kolumny dla wygody przycisków +/- */
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
    width: 100%;
}

.status-item[b-lm33bx0y8w] {
    display: flex;
    flex-direction: column;
    /* KLUCZ: Wymusza na UNumericUpDown zajęcie 100% szerokości kolumny */
    align-items: stretch;
}

.status-item label[b-lm33bx0y8w] {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
    text-align: center;
    height: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Specyficzne kolory dla kontenerów (jeśli potrzebne) */
.status-item.packed[b-lm33bx0y8w] {
    font-weight: bold;
}

/* ==========================================================================
   3. KONTROLKI DODATKOWE
   ========================================================================== */
.custom-check[b-lm33bx0y8w] {
    width: 1.6rem;
    height: 1.6rem;
    cursor: pointer;
    border: 2px solid #ced4da;
    margin-top: 4px;
}

.custom-check:checked[b-lm33bx0y8w] {
    background-color: #3a0647;
    border-color: #3a0647;
}

/* Reset starych stylów inputów (już ich nie używamy bezpośrednio) */
.status-item input[b-lm33bx0y8w] {
    width: 100%;
}

/* ==========================================================================
   4. RESPONSYWNOŚĆ
   ========================================================================== */
@media (max-width: 992px) {
    .status-grid[b-lm33bx0y8w] {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {
    .status-grid[b-lm33bx0y8w] {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* /Pages/ProductEdit.razor.rz.scp.css */
/* Tło dedykowane dla strony edycji */
.page-bg[b-h2p4sqfuei] {
    background-color: #f0f4f8;
    min-height: calc(100vh - 3.5rem);
}

/* Styl Floating Labels (Bootstrap 5 custom) */
.form-floating > label[b-h2p4sqfuei] {
    font-weight: 500;
    opacity: 0.8;
}

/* Efekt focusu na polach edycji */
.form-control:focus[b-h2p4sqfuei] {
    border-color: var(--u-accent-color);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* Customizacja koloru Bootstrap Primary na Twój BlueSoft */
.bg-primary[b-h2p4sqfuei], .btn-primary[b-h2p4sqfuei] {
    background-color: var(--u-accent-color) !important;
    border-color: var(--u-accent-color) !important;
}

.btn-primary:hover[b-h2p4sqfuei] {
    filter: brightness(1.1);
}

/* Animacja wjazdu karty */
.card[b-h2p4sqfuei] {
    animation: slideUp-b-h2p4sqfuei 0.4s ease-out;
}

@keyframes slideUp-b-h2p4sqfuei {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
