/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* AppBar - Najwy�sza warstwa, bia�e t�o przys�aniaj�ce Dock */
[b-8p0emgup3o] .hs-appbar-modern {
    background: white !important;
    z-index: 2000 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Czcionki - Wymuszenie czytelno�ci Inter dla liczb */
[b-8p0emgup3o] .mud-table-cell,
[b-8p0emgup3o] .mud-typography-body1,
[b-8p0emgup3o] .mud-typography-body2 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
}

[b-8p0emgup3o] .hs-logo,
[b-8p0emgup3o] .hs-nav-tabs .mud-nav-link {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700 !important;
    color: #212121 !important;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* --- FORMATOWANIE G��WNE --- */
.rb-nav-container[b-xv56blw07y]  .mud-nav-link {
    border-left: 4px solid transparent; /* Rezerwujemy miejsce na pasek, �eby tekst nie skaka� */
    transition: all 0.2s ease-in-out;
    margin-bottom: 4px;
    padding-left: 20px;
    color: #555;
    font-weight: 500;
}

    /* --- IKONKI DOMY�LNE --- */
    .rb-nav-container[b-xv56blw07y]  .mud-nav-link .mud-nav-link-icon {
        color: #005C5C !important; /* Morski (Deep Teal) */
        opacity: 0.8;
        transition: all 0.2s ease-in-out;
    }

    /* --- EFEKT HOVER (NAJECHANIE MYSZK�) --- */
    .rb-nav-container[b-xv56blw07y]  .mud-nav-link:hover {
        background-color: rgba(154, 205, 50, 0.1); /* Bardzo delikatny limonkowy */
        color: #005C5C;
        border-left: 4px solid rgba(154, 205, 50, 0.5); /* Limonkowy pasek */
    }

    /* --- AKTYWNA ZAK�ADKA --- */
    .rb-nav-container[b-xv56blw07y]  .mud-nav-link.active {
        background-color: rgba(0, 92, 92, 0.05); /* Bardzo delikatny morski w tle */
        color: #005C5C;
        font-weight: 700;
        border-left: 4px solid #005C5C; /* Mocny, morski pasek aktywacji */
    }

        /* Limonkowa ikonka dla aktywnej zak�adki, �eby nada� kontrast */
        .rb-nav-container[b-xv56blw07y]  .mud-nav-link.active .mud-nav-link-icon {
            color: #9ACD32 !important;
            opacity: 1;
        }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-br4g7hlq41],
.components-reconnect-repeated-attempt-visible[b-br4g7hlq41],
.components-reconnect-failed-visible[b-br4g7hlq41],
.components-pause-visible[b-br4g7hlq41],
.components-resume-failed-visible[b-br4g7hlq41],
.components-rejoining-animation[b-br4g7hlq41] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-br4g7hlq41],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-br4g7hlq41],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-br4g7hlq41],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-br4g7hlq41],
#components-reconnect-modal.components-reconnect-retrying[b-br4g7hlq41],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-br4g7hlq41],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-br4g7hlq41],
#components-reconnect-modal.components-reconnect-failed[b-br4g7hlq41],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-br4g7hlq41] {
    display: block;
}


#components-reconnect-modal[b-br4g7hlq41] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-br4g7hlq41 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-br4g7hlq41 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-br4g7hlq41 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-br4g7hlq41]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-br4g7hlq41 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-br4g7hlq41 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-br4g7hlq41 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-br4g7hlq41 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-br4g7hlq41] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-br4g7hlq41] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-br4g7hlq41] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-br4g7hlq41] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-br4g7hlq41] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-br4g7hlq41] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-br4g7hlq41] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-br4g7hlq41 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-br4g7hlq41] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-br4g7hlq41 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/LabReportImport.razor.rz.scp.css */
/* --- tryb bez wyników --- */
.lab-import-idle[b-taru61obue] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lab-import-root--results[b-taru61obue] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lab-import-mobile-upload[b-taru61obue]  .mud-button-root {
    min-height: 44px;
    background-color: #005C5C !important;
    color: white !important;
}

/* --- strona: toolbar + split --- */
.lab-import-page[b-taru61obue] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    height: calc(100dvh - var(--mud-appbar-height, 64px) - 2rem);
    max-height: calc(100dvh - var(--mud-appbar-height, 64px) - 2rem);
}

.lab-import-header-compact[b-taru61obue] {
    min-height: 0;
}

.lab-import-toolbar[b-taru61obue] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    min-height: 32px;
    overflow: hidden;
}

.lab-import-toolbar[b-taru61obue]  .lab-import-toolbar-btn {
    background-color: #005C5C !important;
    color: white !important;
    white-space: nowrap;
}

.lab-import-filename[b-taru61obue] {
    font-weight: 600;
    color: #333;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
}

.lab-import-toolbar-sep[b-taru61obue] {
    width: 1px;
    height: 14px;
    background: #ddd;
    flex-shrink: 0;
}

.lab-import-toolbar-meta[b-taru61obue] {
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

.lab-import-inline-alert[b-taru61obue] {
    margin-top: 4px !important;
}

/* --- split: obie kolumny tej samej wysokości (grid 1fr) --- */
.lab-import-split-view[b-taru61obue] {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 6px;
    min-height: 0;
    overflow: hidden;
}

.lab-import-panel[b-taru61obue] {
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* --- PDF: iframe wypełnia cały panel --- */
.lab-import-preview-panel[b-taru61obue] {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    padding: 4px;
}

.lab-import-preview-content[b-taru61obue] {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: #ececec;
    border-radius: 3px;
}

.lab-import-preview-content iframe[b-taru61obue],
.lab-import-preview-content img[b-taru61obue] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
}

/* --- OCR: grid auto | scroll | auto --- */
.lab-import-results-panel[b-taru61obue] {
    --lab-fs: 11px;
    --lab-input-h: 20px;
    --lab-row-h: 22px;
    font-size: var(--lab-fs);
    padding: 4px 6px;
}

.lab-import-results-body[b-taru61obue] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 2px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.lab-import-meta-grid[b-taru61obue] {
    min-height: 0;
}

.lab-import-results-scroll[b-taru61obue] {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    border-top: 1px solid #eee;
}

.lab-import-results-scroll[b-taru61obue]::-webkit-scrollbar {
    width: 5px;
}

.lab-import-results-scroll[b-taru61obue]::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 3px;
}

.lab-import-results-scroll[b-taru61obue]  .mud-table-container {
    overflow: visible !important;
    max-height: none !important;
}

.lab-import-results-footer[b-taru61obue] {
    padding-top: 4px;
    border-top: 1px solid #e8e8e8;
}

/* --- jedna czcionka 9px w całym panelu OCR --- */
.lab-import-results-panel[b-taru61obue]  .mud-input-root,
.lab-import-results-panel[b-taru61obue]  .mud-input-slot,
.lab-import-results-panel[b-taru61obue]  .mud-input-label,
.lab-import-results-panel[b-taru61obue]  .mud-select-input,
.lab-import-results-panel[b-taru61obue]  input,
.lab-import-results-panel[b-taru61obue]  .mud-table-cell,
.lab-import-results-panel[b-taru61obue]  .mud-button-root,
.lab-import-results-panel[b-taru61obue]  .mud-input-text,
.lab-import-results-panel[b-taru61obue]  .mud-input-numeric,
.lab-import-ocr-text[b-taru61obue] {
    font-size: var(--lab-fs) !important;
    line-height: 1.2 !important;
}

.lab-import-meta-grid[b-taru61obue]  .mud-input-control {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.lab-import-meta-grid[b-taru61obue]  .mud-input-outlined-border {
    height: var(--lab-input-h) !important;
}

.lab-import-meta-grid[b-taru61obue]  .mud-input {
    padding: 0 4px !important;
    margin-top: 8px !important;
    min-height: var(--lab-input-h) !important;
}

.lab-import-meta-grid[b-taru61obue]  .mud-input-label-outlined.mud-input-label-inputcontrol {
    transform: translate(8px, -6px) scale(0.7) !important;
}

.lab-import-nutrient-table[b-taru61obue]  .mud-table-row,
.lab-import-nutrient-table[b-taru61obue]  tr {
    height: var(--lab-row-h) !important;
}

.lab-import-nutrient-table[b-taru61obue]  .mud-table-cell {
    padding: 0 2px !important;
    vertical-align: middle;
    height: var(--lab-row-h) !important;
}

.lab-import-nutrient-table[b-taru61obue]  .mud-table-head .mud-table-cell {
    font-weight: 600;
    color: #005C5C;
    height: 18px !important;
    padding: 0 2px !important;
}

.lab-import-ocr-text[b-taru61obue] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #444;
}

.lab-import-ocr-warn[b-taru61obue] {
    color: #ed6c02;
    font-weight: 600;
}

.lab-import-cell-control[b-taru61obue]  .mud-input-control {
    margin: 0 !important;
    padding: 0 !important;
}

.lab-import-cell-control[b-taru61obue]  .mud-input-outlined-border {
    height: var(--lab-input-h) !important;
    top: 0 !important;
}

.lab-import-cell-control[b-taru61obue]  .mud-input {
    padding: 0 2px !important;
    margin: 0 !important;
    min-height: var(--lab-input-h) !important;
    height: var(--lab-input-h) !important;
}

.lab-import-cell-control[b-taru61obue]  input {
    height: var(--lab-input-h) !important;
    min-height: var(--lab-input-h) !important;
    padding: 0 2px !important;
}

.lab-import-cell-control[b-taru61obue]  .mud-icon-button {
    width: var(--lab-input-h) !important;
    height: var(--lab-input-h) !important;
    padding: 0 !important;
}

.lab-import-cell-control[b-taru61obue]  .mud-icon-button .mud-icon-root {
    font-size: 12px !important;
}

.lab-import-results-footer[b-taru61obue]  .mud-button-root {
    min-height: 22px !important;
    padding: 0 8px !important;
}

@media (max-width: 959px) {
    .lab-import-split-view[b-taru61obue] {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* --- overlay przetwarzania --- */
.lab-import-processing-overlay[b-taru61obue] {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
    animation: lab-import-fade-in-b-taru61obue 0.25s ease;
}

.lab-import-processing-card[b-taru61obue] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 36px 48px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 48px rgba(0, 92, 92, 0.15);
    border: 1px solid rgba(0, 92, 92, 0.1);
    max-width: 90vw;
}

.lab-import-processing-logo[b-taru61obue] {
    width: 96px;
    height: 96px;
    object-fit: contain;
    animation: lab-import-logo-pulse-b-taru61obue 2s ease-in-out infinite;
}

.lab-import-processing-title[b-taru61obue] {
    color: #005C5C;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

.lab-import-processing-hint[b-taru61obue] {
    color: #666;
    text-align: center;
}

.lab-import-progress-track[b-taru61obue] {
    width: 220px;
    height: 5px;
    border-radius: 999px;
    background: rgba(0, 92, 92, 0.12);
    overflow: hidden;
}

.lab-import-progress-bar[b-taru61obue] {
    height: 100%;
    width: 45%;
    border-radius: 999px;
    background: linear-gradient(90deg, #005C5C, #9ACD32, #005C5C);
    background-size: 200% 100%;
    animation: lab-import-progress-slide-b-taru61obue 1.4s ease-in-out infinite;
}

@keyframes lab-import-logo-pulse-b-taru61obue {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.88; }
}

@keyframes lab-import-progress-slide-b-taru61obue {
    0% { transform: translateX(-120%); background-position: 0% 50%; }
    100% { transform: translateX(320%); background-position: 100% 50%; }
}

@keyframes lab-import-fade-in-b-taru61obue {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* /Components/Pages/LabReportImportMobileView.razor.rz.scp.css */
.lab-import-mobile[b-acpmk9snev] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
}

.lab-import-mobile-toolbar[b-acpmk9snev] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.lab-import-mobile-filename[b-acpmk9snev] {
    flex: 1 1 100%;
    font-weight: 600;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lab-import-mobile-meta[b-acpmk9snev] {
    font-size: 0.75rem;
    color: #666;
}

.lab-import-mobile-tabs[b-acpmk9snev] {
    flex: none;
}

.lab-import-mobile-tab-panel[b-acpmk9snev] {
    padding-top: 8px !important;
    overflow: visible;
}

.lab-import-mobile-meta-grid[b-acpmk9snev] {
    margin-bottom: 8px;
}

.lab-import-mobile-rows[b-acpmk9snev] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.lab-import-mobile-row[b-acpmk9snev] {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lab-import-mobile-row-header[b-acpmk9snev] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lab-import-mobile-ocr[b-acpmk9snev] {
    color: #444;
    flex: 1 1 auto;
    word-break: break-word;
}

.lab-import-mobile-ocr-warn[b-acpmk9snev] {
    color: #ed6c02;
    font-weight: 600;
    flex: 1 1 auto;
    word-break: break-word;
}

.lab-import-mobile-row-values[b-acpmk9snev] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.lab-import-mobile-preview[b-acpmk9snev] {
    position: relative;
    min-height: 60vh;
    background: #ececec;
    border-radius: 8px;
    overflow: hidden;
}

.lab-import-mobile-preview iframe[b-acpmk9snev],
.lab-import-mobile-preview embed[b-acpmk9snev],
.lab-import-mobile-preview img[b-acpmk9snev] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
}

.lab-import-mobile-footer[b-acpmk9snev] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid #e8e8e8;
}

.lab-import-mobile-footer-actions[b-acpmk9snev] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.lab-import-mobile-footer[b-acpmk9snev]  .mud-button-root {
    min-height: 44px;
}
/* /Components/Shared/ActionDock.razor.rz.scp.css */
/* ActionDock.razor.css */

.hs-action-dock-container[b-uio825lqy3] {
    position: fixed;
    top: 64px; /* Dokładnie pod AppBar */
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 1000 !important;
    pointer-events: none;
    overflow: visible;
}

.hs-action-dock[b-uio825lqy3] {
    background: #f1f8f3 !important;
    border: 1px solid rgba(30, 142, 62, 0.2);
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    transform: translateY(-62px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

    .hs-action-dock:hover[b-uio825lqy3] {
        transform: translateY(0);
        background: white !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

.hs-dock-buttons[b-uio825lqy3] {
    display: flex;
    padding: 10px 20px;
    align-items: center;
    gap: 10px;
}

.hs-dock-trigger[b-uio825lqy3] {
    height: 22px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1E8E3E;
    background: rgba(30, 142, 62, 0.1);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.hs-dock-btn[b-uio825lqy3] {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    color: #005C5C !important;
}

.hs-dock-divider[b-uio825lqy3] {
    width: 2px;
    height: 24px;
    background-color: #E0E0E0;
    margin: 0 10px;
}
