/* /Components/Account/Pages/Login.razor.rz.scp.css */

/* Semi-transparent overlay for better text readability */
.login-container[b-fca87xdo21]{
    background: url('images/login.jpg?v=2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height:100%;
}

.row[b-fca87xdo21] {
    position: relative;
    padding-top:20px;
    margin-left:20px;
    z-index: 1;
}

.col-md-4[b-fca87xdo21] {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

section[b-fca87xdo21] {
    background: transparent;
}

h1[b-fca87xdo21] {
    color: #333;
}

h2[b-fca87xdo21] {
    color: #555;
}
/* /Components/Account/Pages/LoginWith2fa.razor.rz.scp.css */
.login-container[b-8tckx2dg5w] {
    background: url('images/2FA.jpg');
    height: 100%;
}

/* Semi-transparent overlay for better text readability */
.row[b-8tckx2dg5w] {
    position: relative;
    padding-top: 20px;
    margin-left: 20px;
    z-index: 1;
}

.col-md-4[b-8tckx2dg5w] {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1[b-8tckx2dg5w] {
    color: #333;
}

p[b-8tckx2dg5w] {
    color: #555;
}

.codeLabel[b-8tckx2dg5w]{
    font-weight:bold;
    padding-left:5px;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-17c79qz60i] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-17c79qz60i] {
    flex: 1;
}

.sidebar[b-17c79qz60i] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-17c79qz60i] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-17c79qz60i]  a, .top-row[b-17c79qz60i]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-17c79qz60i]  a:hover, .top-row[b-17c79qz60i]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-17c79qz60i]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-17c79qz60i] {
        justify-content: space-between;
    }

    .top-row[b-17c79qz60i]  a, .top-row[b-17c79qz60i]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-17c79qz60i] {
        flex-direction: row;
    }

    .sidebar[b-17c79qz60i] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-17c79qz60i] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-17c79qz60i]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-17c79qz60i], article[b-17c79qz60i] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-17c79qz60i] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-17c79qz60i] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-p8sm7xqqtu] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(100, 100, 100, 0.3);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2850, 50, 50, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(200, 200, 200, 0.2);
    z-index: 100;
}

.navbar-toggler:checked[b-p8sm7xqqtu] {
    background-color: rgba(100, 100, 100, 0.3);
}

.top-row[b-p8sm7xqqtu] {
    background-color: white;
    border-right: solid silver 1px;
    position: relative;
}

.navbar-brand[b-p8sm7xqqtu] {
    font-size: 1.1rem;
    display: inline-block;
    max-width: calc(100% - 5rem);
}

.navbar-brand img[b-p8sm7xqqtu] {
    max-height: 50px;
    width: auto;
    display: block;
}

@media (max-width: 640px) {
    .navbar-brand[b-p8sm7xqqtu] {
        max-width: calc(100% - 5rem);
    }
    
    .navbar-brand img[b-p8sm7xqqtu] {
        max-height: 30px;
        max-width: 100%;
        object-fit: contain;
    }
}

.bi[b-p8sm7xqqtu] {
    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-p8sm7xqqtu] {
    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-p8sm7xqqtu] {
    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-p8sm7xqqtu] {
    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");
}

.bi-lock-nav-menu[b-p8sm7xqqtu] {
    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 d='M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zM5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
}

.bi-person-nav-menu[b-p8sm7xqqtu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z'/%3E%3C/svg%3E");
}

.bi-person-badge-nav-menu[b-p8sm7xqqtu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-badge' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 2a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3zM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0z'/%3E%3Cpath d='M4.5 0A2.5 2.5 0 0 0 2 2.5V14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2.5A2.5 2.5 0 0 0 11.5 0h-7zM3 2.5A1.5 1.5 0 0 1 4.5 1h7A1.5 1.5 0 0 1 13 2.5v10.795a4.2 4.2 0 0 0-.776-.492C11.392 12.387 10.063 12 8 12s-3.392.387-4.224.803a4.2 4.2 0 0 0-.776.492V2.5z'/%3E%3C/svg%3E");
}

.bi-person-fill-nav-menu[b-p8sm7xqqtu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3Zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3C/svg%3E");
}

.bi-arrow-bar-left-nav-menu[b-p8sm7xqqtu] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-arrow-bar-left' viewBox='0 0 16 16'%3E%3Cpath d='M12.5 15a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0v13a.5.5 0 0 1-.5.5ZM10 8a.5.5 0 0 1-.5.5H3.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L3.707 7.5H9.5a.5.5 0 0 1 .5.5Z'/%3E%3C/svg%3E");
}

.nav-item[b-p8sm7xqqtu] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-p8sm7xqqtu] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-p8sm7xqqtu] {
        padding-bottom: 1rem;
    }

    .nav-item[b-p8sm7xqqtu]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-p8sm7xqqtu]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-p8sm7xqqtu]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-p8sm7xqqtu] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-p8sm7xqqtu] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-p8sm7xqqtu] {
        display: none;
    }

    .nav-scrollable[b-p8sm7xqqtu] {
        /* Never collapse the sidebar for wide screens */
        display: block;
        overflow-y: auto;
    }
}
/* /Components/Pages/DataCard.razor.rz.scp.css */
/* Force light mode */
[b-gvx4afnxpp] :root {
    color-scheme: light only;
}

/* Data Card Scoped Styles */
[b-gvx4afnxpp] :root {
    --surface: #ffffff;
    --border: #e5e7eb;
    --muted: #6b7280;
    --primary: #2563eb;
    --primary-600: #1d4ed8;
    --ring: #93c5fd;
    --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.06);
}

/* IMPORTANT: markup must use id="files" (NOT "container files") */
#files[b-gvx4afnxpp] {
    /* FIX: stable width in flex/grid layouts */
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 1rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji';
    /* Keep your existing desktop width logic */
    max-width: calc(100vw - 250px - 3.5rem); /* 100vw - sidebar - padding */
    box-sizing: border-box;
}

/* Mobile: do not subtract sidebar */
@media (max-width: 768px) {
    #files[b-gvx4afnxpp] {
        padding: .5rem;
        max-width: 100vw;
    }
}

.loading[b-gvx4afnxpp] {
    text-align: center;
    padding: 3rem;
    color: var(--muted, #6b7280);
}

.error-message[b-gvx4afnxpp] {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: .5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

    .error-message h3[b-gvx4afnxpp] {
        color: #991b1b;
        margin: 0 0 .5rem 0;
    }

    .error-message p[b-gvx4afnxpp] {
        color: #b91c1c;
        margin: 0 0 1rem 0;
    }

/* Location bar */
.location-bar[b-gvx4afnxpp] {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    background: #f9fafb;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: .5rem;
    margin-bottom: 1rem;
    font-size: .875rem;
    flex-wrap: wrap;
}

.breadcrumb-icon[b-gvx4afnxpp] {
    font-size: 1.125rem;
    margin-right: .25rem;
}

.breadcrumb-link[b-gvx4afnxpp] {
    color: var(--primary, #2563eb);
    text-decoration: none;
    transition: color .15s;
}

    .breadcrumb-link:hover[b-gvx4afnxpp] {
        color: var(--primary-600, #1d4ed8);
        text-decoration: underline;
    }

.breadcrumb-separator[b-gvx4afnxpp] {
    color: var(--muted, #6b7280);
    margin: 0 .25rem;
}

/* Data card container */
#datacard-container[b-gvx4afnxpp] {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: .75rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

#datacard-filename[b-gvx4afnxpp] {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border, #e5e7eb);
}

    #datacard-filename a[b-gvx4afnxpp] {
        color: var(--primary, #2563eb);
        text-decoration: none;
        transition: color .15s;
    }

        #datacard-filename a:hover[b-gvx4afnxpp] {
            color: var(--primary-600, #1d4ed8);
            text-decoration: underline;
        }

#datacard-folder[b-gvx4afnxpp] {
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: .5rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

    #datacard-folder a[b-gvx4afnxpp] {
        color: var(--primary, #2563eb);
        text-decoration: none;
    }

        #datacard-folder a:hover[b-gvx4afnxpp] {
            text-decoration: underline;
        }

/* =========================================================
   datacard-data: should NOT be horizontal scroll owner
   ========================================================= */
#datacard-data[b-gvx4afnxpp] {
    margin-top: 1.5rem;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden; /* avoid nested scroll + layout jumps */
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

/* Data card tabs row */
.datacard-tabs-row[b-gvx4afnxpp] {
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    border-bottom: 2px solid var(--border, #e5e7eb);
    margin-bottom: 1rem;
    min-width: 0;
}

/* Data card tabs */
.datacard-tabs[b-gvx4afnxpp] {
    display: flex;
    gap: .25rem;
    border-bottom: 2px solid var(--border, #e5e7eb);
    margin-bottom: 1rem;
    overflow-y: hidden;
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}

    .datacard-tabs .tab[b-gvx4afnxpp] {
        padding: .75rem 1.5rem;
        background: transparent;
        border: none;
        border-bottom: 2px solid transparent;
        color: var(--muted, #6b7280);
        font-size: .875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all .15s;
        white-space: nowrap;
        margin-bottom: -2px;
        outline: none;
    }

        .datacard-tabs .tab:hover[b-gvx4afnxpp] {
            color: #374151;
            background: #f9fafb;
        }

        .datacard-tabs .tab.active[b-gvx4afnxpp] {
            color: var(--primary, #2563eb);
            border-bottom-color: var(--primary, #2563eb);
            background: transparent;
            font-weight: 600;
        }

        .datacard-tabs .tab:focus[b-gvx4afnxpp] {
            outline: 2px solid var(--ring, #93c5fd);
            outline-offset: 2px;
        }

/* Data card panes */
.datacard-panes[b-gvx4afnxpp] {
    min-height: 200px;
    min-width: 0;
}

.tab-pane[b-gvx4afnxpp] {
    animation: fadeIn-b-gvx4afnxpp .2s ease-in;
    min-width: 0;
}

    .tab-pane.active[b-gvx4afnxpp] {
        display: block;
    }

@keyframes fadeIn-b-gvx4afnxpp {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table wrapper */
.table-responsive[b-gvx4afnxpp] {
    max-width: 100%;
    overflow-x: hidden; /* FIX: no horizontal scroll; we wrap instead */
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
}

/* Data card table */
.datacard-table[b-gvx4afnxpp] {
    /* FIX: stable columns across tabs */
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

    .datacard-table tr[b-gvx4afnxpp] {
        border-bottom: 1px solid var(--border, #e5e7eb);
    }

        .datacard-table tr:last-child[b-gvx4afnxpp] {
            border-bottom: none;
        }

    .datacard-table th[b-gvx4afnxpp] {
        text-align: left;
        padding: .5rem .75rem;
        font-weight: 600;
        color: #374151;
        background: #f9fafb;
        width: 35%;
        vertical-align: top;
        /* FIX: wrap long headers */
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .datacard-table td[b-gvx4afnxpp] {
        padding: .5rem .75rem;
        color: #111827;
        /* FIX: wrap long cell values */
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

/* Data card tabs row tweaks */
.datacard-tabs-row .datacard-tabs[b-gvx4afnxpp] {
    flex: 1 1 auto;
    border-bottom: none;
    margin-bottom: 0;
    min-width: 0;
}

.datacard-toolbtn[b-gvx4afnxpp] {
    max-width: 3rem;
    margin-left: auto;
    padding: .5rem .75rem;
    gap: 0;
    margin-bottom: 1px;
}

    .datacard-toolbtn .icon[b-gvx4afnxpp] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

/* Responsive adjustments (keep your design; only fixes) */
@media (max-width: 768px) {
    .location-bar[b-gvx4afnxpp] {
        font-size: .813rem;
    }

    .actionbar[b-gvx4afnxpp] {
        flex-direction: column;
        align-items: stretch;
    }

    .actionbar-left[b-gvx4afnxpp] {
        flex-direction: column;
    }

    .btn[b-gvx4afnxpp] {
        justify-content: center;
        width: 100%;
    }

    #datacard-filename[b-gvx4afnxpp] {
        font-size: 1.5rem;
    }

    .datacard-tabs[b-gvx4afnxpp] {
        gap: 0;
    }

        .datacard-tabs .tab[b-gvx4afnxpp] {
            padding: .5rem 1rem;
            font-size: .813rem;
        }

    .datacard-table th[b-gvx4afnxpp] {
        width: 40%;
        font-size: .875rem;
    }

    .datacard-table td[b-gvx4afnxpp] {
        font-size: .875rem;
    }
}


/* /Components/Pages/FilePreview.razor.rz.scp.css */
/* File Preview Scoped Styles */
[b-77y0o8he73] :root {
    --surface: #ffffff;
    --border: #e5e7eb;
    --muted: #6b7280;
    --primary: #2563eb;
    --primary-600: #1d4ed8;
    --ring: #93c5fd;
    --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.06);
}

#filepreview[b-77y0o8he73] {
    /*max-width: 1400px;*/
    width :100%;
    margin: 0 auto;
    padding: 1rem;
}

.loading[b-77y0o8he73] {
    text-align: center;
    padding: 3rem;
    color: var(--muted, #6b7280);
}

.error-message[b-77y0o8he73] {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: .5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.error-message h3[b-77y0o8he73] {
    color: #991b1b;
    margin: 0 0 .5rem 0;
}

.error-message p[b-77y0o8he73] {
    color: #b91c1c;
    margin: 0 0 1rem 0;
}

/* Location bar */
.location-bar[b-77y0o8he73] {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    background: #f9fafb;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: .5rem;
    margin-bottom: 1rem;
    font-size: .875rem;
    flex-wrap: wrap;
}

.breadcrumb-icon[b-77y0o8he73] {
    font-size: 1.125rem;
    margin-right: .25rem;
}

.breadcrumb-link[b-77y0o8he73] {
    color: var(--primary, #2563eb);
    text-decoration: none;
    transition: color .15s;
}

.breadcrumb-link:hover[b-77y0o8he73] {
    color: var(--primary-600, #1d4ed8);
    text-decoration: underline;
}

.breadcrumb-separator[b-77y0o8he73] {
    color: var(--muted, #6b7280);
    margin: 0 .25rem;
}

.file-details[b-77y0o8he73] {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: .75rem;
    padding: 1.5rem;
}

.file-header[b-77y0o8he73] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border, #e5e7eb);
}

.file-header h1[b-77y0o8he73] {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0;
    font-size: 1.75rem;
    color: #111827;
}

.file-icon[b-77y0o8he73] {
    font-size: 2rem;
}

.locked-badge[b-77y0o8he73] {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: .5rem;
    color: #92400e;
    font-size: .875rem;
    font-weight: 500;
}

/* File location section */
.file-location[b-77y0o8he73] {
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: .5rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.file-location a[b-77y0o8he73] {
    color: var(--primary, #2563eb);
    text-decoration: none;
}

.file-location a:hover[b-77y0o8he73] {
    text-decoration: underline;
}

.info-grid[b-77y0o8he73] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-section h3[b-77y0o8he73] {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    color: #374151;
    font-weight: 600;
}

.info-list[b-77y0o8he73] {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .5rem 1rem;
    margin: 0;
}

.info-list dt[b-77y0o8he73] {
    font-weight: 600;
    color: #6b7280;
}

.info-list dd[b-77y0o8he73] {
    margin: 0;
    color: #111827;
    word-break: break-word;
}

.state-badge[b-77y0o8he73] {
    display: inline-block;
    padding: .25rem .75rem;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: .375rem;
    color: #1e40af;
    font-size: .875rem;
    font-weight: 500;
}

.preview-section[b-77y0o8he73] {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border, #e5e7eb);
}

.preview-section h3[b-77y0o8he73] {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    color: #374151;
    font-weight: 600;
}

.preview-container[b-77y0o8he73] {
    background: #f9fafb;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: .5rem;
    padding: 1rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-image[b-77y0o8he73] {
    max-width: 100%;
    max-height: 800px;
    border-radius: .375rem;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

.preview-frame[b-77y0o8he73] {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: .375rem;
}

.no-preview[b-77y0o8he73] {
    color: var(--muted, #6b7280);
    text-align: center;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .file-header[b-77y0o8he73] {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-header h1[b-77y0o8he73] {
        font-size: 1.5rem;
    }

    .info-grid[b-77y0o8he73] {
        grid-template-columns: 1fr;
    }

    .info-list[b-77y0o8he73] {
        grid-template-columns: 1fr;
    }

    .info-list dt[b-77y0o8he73] {
        font-weight: 700;
        margin-top: .75rem;
    }

    .info-list dt:first-child[b-77y0o8he73] {
        margin-top: 0;
    }

    .preview-frame[b-77y0o8he73] {
        height: 500px;
    }
}

/* Dark mode support */
/*@media (prefers-color-scheme: dark) {
    .file-details {
        background: #0b1220;
    }

    .file-header h1 {
        color: #e5e7eb;
    }

    .info-section h3 {
        color: #d1d5db;
    }

    .info-list dt {
        color: #9ca3af;
    }

    .info-list dd {
        color: #e5e7eb;
    }

    .preview-container {
        background: #0f172a;
    }

    .error-message {
        background: #450a0a;
        border-color: #991b1b;
    }

    .error-message h3,
    .error-message p {
        color: #fca5a5;
    }*/
/* /Components/Pages/FilePreviewPanel.razor.rz.scp.css */
/* File Preview Panel Scoped Styles */
.preview-panel[b-62dn5d3h1p] {
    margin-top: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    overflow: hidden;
    /* FIX: always occupy full available width */
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* FIX: behave well inside flex/grid parents */
    min-width: 0;
    flex: 1 1 100%;
    align-self: stretch;
}

.preview-panel-header[b-62dn5d3h1p] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    background: #f9fafb;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
    /* FIX: allow shrink in flex layouts */
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

    .preview-panel-header:hover[b-62dn5d3h1p] {
        background: #f3f4f6;
    }

.preview-panel-title[b-62dn5d3h1p] {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    /* FIX: title must be allowed to shrink, not force header width */
    min-width: 0;
    flex: 1 1 auto;
}

/* "File Preview" is plain text, but in flex headers long titles can still push.
   This keeps the title from breaking responsiveness without changing visual style. */
.preview-panel-title[b-62dn5d3h1p] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .preview-panel-title i[b-62dn5d3h1p] {
        font-size: .75rem;
        color: #6b7280;
        transition: transform .15s;
        /* keep icon from shrinking weirdly */
        flex: 0 0 auto;
    }

.preview-panel-header .btn-small[b-62dn5d3h1p] {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .375rem .75rem;
    font-size: .75rem;
    /* FIX: prevent the button from compressing the title / forcing width */
    flex: 0 0 auto;
    max-width: 100%;
}

    .preview-panel-header .btn-small i[b-62dn5d3h1p] {
        font-size: .75rem;
    }

    .preview-panel-header .btn-small .label[b-62dn5d3h1p] {
        display: none;
    }

@media (min-width: 640px) {
    .preview-panel-header .btn-small .label[b-62dn5d3h1p] {
        display: inline;
    }
}

.preview-panel-content[b-62dn5d3h1p] {
    padding: 1rem;
    background: #ffffff;
    animation: fadeIn-b-62dn5d3h1p .2s ease-in;
    /* FIX: fill available width and shrink properly */
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@keyframes fadeIn-b-62dn5d3h1p {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-loading[b-62dn5d3h1p] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6b7280;
    gap: 1rem;
}

    .preview-loading .loading-text[b-62dn5d3h1p] {
        animation: pulse-b-62dn5d3h1p 1.5s ease-in-out infinite;
    }

@keyframes pulse-b-62dn5d3h1p {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.spinner-small[b-62dn5d3h1p] {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin-b-62dn5d3h1p 1s linear infinite;
}

@keyframes spin-b-62dn5d3h1p {
    to {
        transform: rotate(360deg);
    }
}

.preview-error[b-62dn5d3h1p] {
    padding: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: .375rem;
    color: #b91c1c;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.no-preview[b-62dn5d3h1p] {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

    .no-preview p[b-62dn5d3h1p] {
        margin: 0;
    }

.preview-container-inline[b-62dn5d3h1p] {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: .375rem;
    padding: 0;
    /* FIX: always span full width */
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 300px;
    overflow: hidden;
    /* FIX: crucial for flex/grid parents */
    min-width: 0;
}

/* Image should always respect container width */
.preview-image-inline[b-62dn5d3h1p] {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: .375rem;
}

/* Iframe should always respect container width */
.preview-frame-inline[b-62dn5d3h1p] {
    display: block;
    width: 100%;
    max-width: 100%;
    border: none;
    border-radius: .375rem;
    height: 800px;
    min-height: 600px;
    box-sizing: border-box;
}

/* Responsive adjustments for preview panel */
@media (max-width: 768px) {
    .preview-panel-header[b-62dn5d3h1p] {
        padding: .5rem .75rem;
    }

    .preview-panel-title[b-62dn5d3h1p] {
        font-size: .875rem;
    }

    .preview-container-inline[b-62dn5d3h1p] {
        min-height: 200px;
    }

    .preview-image-inline[b-62dn5d3h1p] {
        max-height: none;
    }

    .preview-frame-inline[b-62dn5d3h1p] {
        height: 500px;
        min-height: 400px;
    }
}
/* /Components/Pages/Files.razor.rz.scp.css */
/* Files Page - Scoped Styling with ::deep for NavLink */

:root[b-w556ua1t37] {
    --surface: #ffffff;
    --border: #e5e7eb;
    --muted: #6b7280;
    --primary: #2563eb;
    --primary-600: #1d4ed8;
    --ring: #93c5fd;
    --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.06);
}

/* ====== Page Shell ====== */
/* Root container must match markup id="files" */
#files[b-w556ua1t37] {
    margin: 0 auto;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0; /* keep your current spacing via margins if needed */
    /* Fill viewport */
    min-height: calc(100vh - 2rem);
    max-height: calc(100vh - 2rem);
    /* We prevent body scroll, and create internal scroll areas */
    overflow: hidden;
    /* Desktop sidebar compensation */
    max-width: calc(100vw - 250px - 3.5rem);
}

/* Content area: grows and allows children to scroll.
   min-height:0 is CRITICAL inside flex column */
.files-content[b-w556ua1t37] {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden; /* scroll lives in table/grid containers */
}

/* Mobile optimization */
@media (max-width: 767px) {
    #files[b-w556ua1t37] {
        padding: 0.5rem;
        width: 100%;
        max-width: 100vw;
        /* Use dvh if supported, fallback to vh */
        min-height: calc(100dvh - 1rem);
        max-height: calc(100dvh - 1rem);
        min-height: calc(100vh - 1rem);
        max-height: calc(100vh - 1rem);
    }
}

/* Desktop - account for sidebar width */
@media (min-width: 641px) {
    #files[b-w556ua1t37] {
        max-width: calc(100vw - 250px - 3.5rem);
    }
}

/* ====== Loading & Error ====== */
.loading-container[b-w556ua1t37] {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.error-message[b-w556ua1t37] {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ff6b6b;
    padding: 1rem 1.5rem;
    margin: 0 0 1rem 0;
    border-radius: .5rem;
    color: #856404;
    flex-shrink: 0;
}

/* ====== Loading overlay ====== */
.loading-overlay-backdrop[b-w556ua1t37] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.loading-overlay-modal[b-w556ua1t37] {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 250px;
}

    .loading-overlay-modal .modal-title[b-w556ua1t37] {
        font-size: 1.1rem;
        font-weight: 500;
        color: #333;
    }

/* Spinner animation */
.spinner[b-w556ua1t37] {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin-b-w556ua1t37 1s linear infinite;
}

@keyframes spin-b-w556ua1t37 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ====== Download overlay ====== */
.download-overlay-backdrop[b-w556ua1t37] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-in;
}

.download-overlay-modal[b-w556ua1t37] {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 90%;
    width: 400px;
    position: relative;
}

    .download-overlay-modal .modal-title[b-w556ua1t37] {
        font-size: 1.25rem;
        font-weight: 600;
        color: #111827;
        margin-bottom: 0.5rem;
    }

    .download-overlay-modal .modal-subtitle[b-w556ua1t37] {
        font-size: 0.875rem;
        color: #6b7280;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .download-overlay-modal .modal-error[b-w556ua1t37] {
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #b91c1c;
        padding: 0.75rem;
        border-radius: 0.375rem;
        margin-bottom: 1rem;
        font-size: 0.875rem;
    }

    .download-overlay-modal .spinner[b-w556ua1t37] {
        margin: 0 auto 1.5rem;
    }

/* ====== Search builder ====== */
.search-builder[b-w556ua1t37] {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.search-builder-row[b-w556ua1t37] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap; /* important */
    align-items: center;
}

.search-field[b-w556ua1t37] {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 150px;
    max-width: 100%;
}

.search-input[b-w556ua1t37] {
    flex: 1 1 260px; /* controlled growth */
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 200px;
    max-width: 100%;
}

.search-clauses[b-w556ua1t37] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-chip[b-w556ua1t37] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #e9ecef;
    border-radius: 16px;
    font-size: 0.85rem;
}

.chip-text[b-w556ua1t37] {
    color: #495057;
}

.chip-remove[b-w556ua1t37] {
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    margin: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

    .chip-remove:hover[b-w556ua1t37] {
        background: #dc3545;
        color: white;
    }

.search-actions[b-w556ua1t37] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-hint[b-w556ua1t37] {
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
}

/* ====== Action/location stay on top ====== */
.actionbar[b-w556ua1t37] {
    flex-shrink: 0;
}

.location-bar[b-w556ua1t37] {
    flex-shrink: 0;
}

[b-w556ua1t37] .btn .icon {
    font-size: 1.125rem;
}

[b-w556ua1t37] .btn .label {
    display: none;
}

@media (min-width: 640px) {
    [b-w556ua1t37] .btn .label {
        display: inline;
    }
}

/* ====== Location Bar ====== */
.location-bar[b-w556ua1t37] {
    padding: .75rem 1rem;
    background: #f9fafb;
    border-radius: .5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

.breadcrumb-icon[b-w556ua1t37] {
    font-size: 1.125rem;
    margin-right: .25rem;
}

.breadcrumb-link[b-w556ua1t37] {
    color: #2563eb;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    padding: .25rem .5rem;
    border-radius: .375rem;
    transition: all .2s;
}

    .breadcrumb-link:hover[b-w556ua1t37] {
        background: #dbeafe;
        color: #1e40af;
    }

.breadcrumb-separator[b-w556ua1t37] {
    color: #9ca3af;
    font-size: .875rem;
    user-select: none;
}

.breadcrumb-current[b-w556ua1t37] {
    color: #374151;
    font-size: .875rem;
    font-weight: 500;
}

.selection-count[b-w556ua1t37] {
    font-size: .875rem;
    color: #6b7280;
    white-space: nowrap;
}

/* ====== Table container (scroll area) ====== */
.files-table-container[b-w556ua1t37] {
    /* This is the scroller */
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    border-radius: .5rem;
    border: 1px solid #e5e7eb;
    min-height: 200px;
    width: 100%;
    max-width: 100%;
}

/* Table: allow natural width so horizontal scroll appears when many columns */
.files-table[b-w556ua1t37] {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
}

    .files-table thead[b-w556ua1t37] {
        background: #f9fafb;
        border-bottom: 2px solid #e5e7eb;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .files-table th[b-w556ua1t37] {
        padding: .75rem 1rem;
        text-align: left;
        font-size: .75rem;
        font-weight: 600;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: .05em;
        white-space: nowrap;
    }

    .files-table td[b-w556ua1t37] {
        padding: .5rem 1rem;
        border-top: 1px solid #f3f4f6;
        white-space: nowrap;
    }

/* Sortable headers */
.sortable-header[b-w556ua1t37] {
    cursor: pointer;
    user-select: none;
    transition: background .2s, color .2s;
}

    .sortable-header:hover[b-w556ua1t37] {
        background: #e5e7eb;
        color: #374151;
    }

    .sortable-header.sorted[b-w556ua1t37] {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .sortable-header .header-content[b-w556ua1t37] {
        display: flex;
        align-items: center;
        gap: .5rem;
    }

    .sortable-header .sort-icon[b-w556ua1t37] {
        font-size: .875rem;
        opacity: 0.5;
        transition: opacity .2s;
    }

    .sortable-header:hover .sort-icon[b-w556ua1t37],
    .sortable-header.sorted .sort-icon[b-w556ua1t37] {
        opacity: 1;
    }

.non-sortable[b-w556ua1t37] {
    cursor: not-allowed;
    opacity: 0.6;
}

    .non-sortable:hover[b-w556ua1t37] {
        background: #f9fafb;
    }

/* Row styles */
.folder-row[b-w556ua1t37] {
    cursor: pointer;
    transition: background .2s;
    background: white;
}

    .folder-row:hover[b-w556ua1t37] {
        background: #f9fafb;
    }

.file-row[b-w556ua1t37] {
    cursor: pointer;
    transition: background .2s;
}

    .file-row:hover[b-w556ua1t37] {
        background: #f9fafb;
    }

    .file-row.selected[b-w556ua1t37] {
        background: #eff6ff;
    }

.col-checkbox[b-w556ua1t37] {
    width: 40px;
    text-align: center;
}

.col-icon[b-w556ua1t37] {
    width: 32px;
    text-align: center;
}

.col-name[b-w556ua1t37] {
    min-width: 260px;
    max-width: 40vw;
}

/* Fix the broken/invalid rule and avoid forcing max-content layout explosions */
.name[b-w556ua1t37] {
    display: inline-block;
    max-width: 36vw;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

/* Custom columns */
.col-custom[b-w556ua1t37] {
    min-width: 120px;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* NavLink needs ::deep */
[b-w556ua1t37] .folder-link {
    display: flex;
    align-items: center;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

    [b-w556ua1t37] .folder-link:hover {
        color: #2563eb;
    }

/* Regular anchor tags within scoped component */
.file-link[b-w556ua1t37] {
    display: flex;
    align-items: center;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

    .file-link:hover[b-w556ua1t37] {
        color: #2563eb;
    }

[b-w556ua1t37] .file-link .name,
[b-w556ua1t37] .folder-link .name {
    color: inherit;
}

/* ====== Tiles view (scroll area) ====== */
.files-grid[b-w556ua1t37] {
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    align-content: start;
    padding: 0.5rem;
    min-height: 200px;
}

/* Cards */
.file-card[b-w556ua1t37] {
    position: relative;
    background: #ffffff;
    border: 2px solid #d1d5db;
    border-radius: .5rem;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all .2s;
    cursor: pointer;
}

    .file-card:hover[b-w556ua1t37] {
        border-color: #3b82f6;
        box-shadow: 0 4px 12px rgba(59, 130, 246, .15);
        transform: translateY(-2px);
    }

    .file-card.selected[b-w556ua1t37] {
        background: #eff6ff;
        border-color: #3b82f6;
    }

/* Folder cards are NavLink */
[b-w556ua1t37] .folder-card {
    position: relative;
    background: #fefce8;
    border: 2px solid #fde047;
    border-radius: .5rem;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all .2s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

    [b-w556ua1t37] .folder-card:hover {
        background: #fef9c3;
        border-color: #f59e0b;
    }

.card-checkbox[b-w556ua1t37] {
    position: absolute;
    top: .5rem;
    right: .5rem;
}

.card-link[b-w556ua1t37] {
    text-decoration: none;
    color: inherit;
}

[b-w556ua1t37] .card-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: .5rem;
    word-break: break-word;
    font-size: .875rem;
}

[b-w556ua1t37] .card-meta {
    font-size: .75rem;
    color: #6b7280;
    margin-bottom: .25rem;
}

/* Icons */
.col-icon i[b-w556ua1t37] {
    font-size: 1.25rem;
}

.card-icon[b-w556ua1t37] {
    font-size: 3rem !important;
    margin-bottom: .5rem;
}

@media (min-width: 768px) {
    .card-icon[b-w556ua1t37] {
        font-size: 3.5rem !important;
    }
}

/* ====== Pagination ====== */
.pagination[b-w556ua1t37] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 1rem;
}

.page-btn[b-w556ua1t37] {
    padding: .5rem 1rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: .5rem;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}

    .page-btn:hover:not(:disabled)[b-w556ua1t37] {
        background: #f9fafb;
        border-color: #9ca3af;
    }

    .page-btn:disabled[b-w556ua1t37] {
        opacity: .5;
        cursor: not-allowed;
    }

.page-info[b-w556ua1t37] {
    font-size: .875rem;
    color: #6b7280;
}

/* ====== Mobile responsiveness ====== */
@media (max-width: 767px) {
    .desktop-only[b-w556ua1t37] {
        display: none !important;
    }

    .actionbar[b-w556ua1t37] {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .actionbar-left[b-w556ua1t37], .actionbar-right[b-w556ua1t37] {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .location-bar[b-w556ua1t37] {
        padding: 0.5rem 0.75rem;
        font-size: 0.813rem;
    }

    .search-builder[b-w556ua1t37] {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .search-builder-row[b-w556ua1t37] {
        flex-direction: column;
        align-items: stretch;
    }

    .search-field[b-w556ua1t37],
    .search-input[b-w556ua1t37] {
        width: 100%;
        min-width: 0;
    }

    .pagination[b-w556ua1t37] {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
        margin-top: 0.5rem;
    }

    .page-btn[b-w556ua1t37] {
        width: 100%;
        padding: 0.625rem;
    }

    /* In mobile, don't constrain .name by vw too aggressively */
    .name[b-w556ua1t37] {
        max-width: 70vw;
    }
}

/* Tablet adjustments (keeping your original intent) */
@media (min-width: 768px) and (max-width: 1023px) {
    .col-checkout[b-w556ua1t37], .col-size[b-w556ua1t37], .col-modified[b-w556ua1t37], .col-custom[b-w556ua1t37] {
        display: none;
    }
}
/* /Components/Pages/PdfPreview.razor.rz.scp.css */
/* PDF Preview Scoped Styles */
[b-9rnyli2jli] :root {
    --surface: #ffffff;
    --border: #e5e7eb;
    --muted: #6b7280;
    --primary: #2563eb;
    --primary-600: #1d4ed8;
    --ring: #93c5fd;
    --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.06);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    #filepreview[b-9rnyli2jli] {
        padding: .5rem;
        gap: .5rem;
    }

    .file-details[b-9rnyli2jli] {
        padding: .75rem;
    }

    .file-header[b-9rnyli2jli] {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }

        .file-header h1[b-9rnyli2jli] {
            font-size: 1.05rem;
            white-space: normal;
            overflow: visible;
            text-overflow: clip;
        }
}

#filepreview[b-9rnyli2jli] {
    height: 100vh;
    height: 100dvh;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.loading[b-9rnyli2jli] {
    text-align: center;
    padding: 3rem;
    color: var(--muted, #6b7280);
}

.error-message[b-9rnyli2jli] {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: .5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

    .error-message h3[b-9rnyli2jli] {
        color: #991b1b;
        margin: 0 0 .5rem 0;
    }

    .error-message p[b-9rnyli2jli] {
        color: #b91c1c;
        margin: 0 0 1rem 0;
    }



.btn .icon[b-9rnyli2jli] {
    font-size: 1.125rem;
}

.btn .label[b-9rnyli2jli] {
    display: none;
}

@media (min-width: 640px) {
    .btn .label[b-9rnyli2jli] {
        display: inline;
    }
}

.file-details[b-9rnyli2jli] {
    flex: 1 1 auto;
    min-height: 0;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: .75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-header[b-9rnyli2jli] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--border, #e5e7eb);
}

    .file-header h1[b-9rnyli2jli] {
        display: flex;
        align-items: center;
        gap: .75rem;
        margin: 0;
        font-size: 1.25rem;
        color: #111827;
        line-height: 1.2;
    }

.file-icon[b-9rnyli2jli] {
    font-size: 1.5rem;
}

.preview-section[b-9rnyli2jli] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.preview-container[b-9rnyli2jli] {
    flex: 1 1 auto;
    min-height: 0;
    background: #f9fafb;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: .5rem;
}

.preview-frame[b-9rnyli2jli] {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: .5rem;
    display: block;
}

.no-preview[b-9rnyli2jli] {
    color: var(--muted, #6b7280);
    text-align: center;
    margin: 0;
}

/* Dark mode support */
/*@media (prefers-color-scheme: dark) {
    .file-details {
        background: #0b1220;
        border-color: #334155;
    }

    .file-header {
        border-bottom-color: #334155;
    }

        .file-header h1 {
            color: #e5e7eb;
        }

    .preview-container {
        background: #0f172a;
        border-color: #334155;
    }

    ::deep .preview-actions.actionbar {
        background: #0b1220;
        border-bottom-color: #334155;
    }

    .error-message {
        background: #450a0a;
        border-color: #991b1b;
    }

        .error-message h3,
        .error-message p {
            color: #fca5a5;
        }
} */
