/* /Layout/MainLayout.razor.rz.scp.css */
/* Page frame: sidebar + content on desktop, collapsible top-bar navigation on
   phones. The 1200px max-width keeps the app aligned with the demo chrome
   header and footer when it runs as the hosted Codepool demo. */

.page[b-u2iz1on1w4] {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: var(--page-max);
    margin: 0 auto;
    min-height: 100vh;
}

main[b-u2iz1on1w4] {
    flex: 1;
    min-width: 0;
}

.content[b-u2iz1on1w4] {
    padding: 20px 16px 44px;
}

.sidebar[b-u2iz1on1w4] {
    border-bottom: 1px solid var(--line-dark);
}

@media (max-width: 640.98px) {
    .sidebar[b-u2iz1on1w4] {
        position: sticky;
        top: 0;
        z-index: 20;
        background: #2b2b2d;
    }
}

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

    .sidebar[b-u2iz1on1w4] {
        width: 240px;
        flex: 0 0 auto;
        height: 100vh;
        position: sticky;
        top: 0;
        border-bottom: none;
        border-right: 1px solid var(--line-dark);
    }

    .content[b-u2iz1on1w4] {
        padding: 24px 32px 48px;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
/* Sidebar navigation. On phones the list collapses behind the hamburger
   button in the top bar; on desktop it is always visible. */

.top-row[b-3r8e8e6cxv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 3.5rem;
    padding: 0 16px;
}

.navbar-brand[b-3r8e8e6cxv] {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
}

.navbar-toggler[b-3r8e8e6cxv] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: var(--fill-dark);
    cursor: pointer;
}

.navbar-toggler-icon[b-3r8e8e6cxv] {
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
    background-size: cover;
}

.nav-scrollable[b-3r8e8e6cxv] {
    background: #2b2b2d;
}

.nav-list[b-3r8e8e6cxv] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px 16px;
}

.nav-item[b-3r8e8e6cxv] {
    font-size: 0.92rem;
}

.nav-item[b-3r8e8e6cxv]  a {
    display: flex;
    align-items: center;
    min-height: var(--tap);
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--dy-gray-200);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-item[b-3r8e8e6cxv]  a.active {
    background: rgba(254, 142, 20, 0.14);
    color: var(--dy-orange);
}

.nav-item[b-3r8e8e6cxv]  a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.bi[b-3r8e8e6cxv] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.65rem;
    top: -1px;
    background-size: cover;
    flex: 0 0 auto;
}

.bi-house-door-fill-nav-menu[b-3r8e8e6cxv] {
    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-3r8e8e6cxv] {
    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-3r8e8e6cxv] {
    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");
}

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

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

    .nav-scrollable[b-3r8e8e6cxv] {
        /* Allow the sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/BarcodeReader.razor.rz.scp.css */
/* The viewport rules (#imageview / #image / #overlay) and the result-line
   styling (.p-result) live in wwwroot/css/app.css so all example pages share
   them. */
/* /Pages/BarcodeScanner.razor.rz.scp.css */
/* The viewport rules (#videoview / #videoContainer / #overlay) live in
   wwwroot/css/app.css so all example pages share them. */
/* /Pages/DocumentScanner.razor.rz.scp.css */
/* The Dynamsoft Document Viewer UI is mounted inside this container; give it
   most of the viewport like the other scanner pages do. */

.scanner-container[b-bba0gam57g] {
    height: 80vh;
    min-height: 420px;
}
/* /Pages/DocumentViewer.razor.rz.scp.css */
/* The Dynamsoft Document Viewer UI is mounted inside this container; give it
   most of the viewport like the other scanner pages do. */

.scanner-container[b-wwzq1yp1mq] {
    height: 80vh;
    min-height: 420px;
}
/* /Pages/MrzReader.razor.rz.scp.css */
/* The viewport rules (#imageview / #image / #overlay) and the result-field
   styling (textarea / .p-result) live in wwwroot/css/app.css so all example
   pages share them. */
/* /Pages/MrzScanner.razor.rz.scp.css */
/* The viewport rules (#videoview / #videoContainer / #overlay) and the result
   field styling (textarea) live in wwwroot/css/app.css so all example pages
   share them. */
/* /Pages/WebTwain.razor.rz.scp.css */
/* The Dynamic Web TWAIN viewer sizes itself in jsInterop.js (initWebTwain);
   this only adds breathing room under the toolbar. */

.dwt-container[b-j8okywpkzl] {
    margin-top: 8px;
}
/* /Pages/WebTwainREST.razor.rz.scp.css */
/* Web TWAIN REST API page — the shared control/card rules live in
   wwwroot/css/app.css; this file covers the scan preview and the thumbnail
   strip only. */

.connection[b-wfgrnhnypf] {
    margin-bottom: 4px;
}

.connection label[b-wfgrnhnypf] {
    flex: 0 0 auto;
    min-width: 110px;
}

.full-img[b-wfgrnhnypf] {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 1 / 1;
    margin: 8px 0 16px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: #1f1f21;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.full-img img[b-wfgrnhnypf] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumb-bar[b-wfgrnhnypf] {
    width: 100%;
    max-width: 640px;
    height: 120px;
    overflow-x: auto;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.2);
}

.thumb-box[b-wfgrnhnypf] {
    display: flex;
    gap: 8px;
    height: 100%;
    padding: 6px;
}

.thumb-box img[b-wfgrnhnypf] {
    height: 100%;
    width: auto;
    object-fit: contain;
    cursor: pointer;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
}

.thumb-box img:hover[b-wfgrnhnypf] {
    border-color: var(--dy-orange);
}
