@import '_content/RazorWebShopLib/RazorWebShopLib.mmg90bcy4x.bundle.scp.css';

/* /Pages/Suppliers.razor.rz.scp.css */
/* Page fills viewport; grid area gets remaining height and scrolls */
.suppliers-page[b-4rwstp2efz] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    min-height: 0;
}

/* All rows with affected domain: red background (use ::deep so grid cells are styled) */
[b-4rwstp2efz] .supplier-duplicate-warning,
[b-4rwstp2efz] .supplier-duplicate-warning td {
    background-color: rgba(220, 53, 69, 0.35) !important;
}

/* Edit form popup: wider so labels and values don't truncate */
[b-4rwstp2efz] .supplier-edit-form {
    min-width: 420px;
    max-width: 90vw;
}

/* Single-column form layout: consistent spacing between rows */
[b-4rwstp2efz] .supplier-edit-form-layout > div,
[b-4rwstp2efz] .supplier-edit-form-layout .dxbl-fl-item {
    margin-bottom: 0.75rem;
}
[b-4rwstp2efz] .supplier-edit-form-layout > div:last-child,
[b-4rwstp2efz] .supplier-edit-form-layout .dxbl-fl-item:last-child {
    margin-bottom: 0;
}

/* Static (read-only) values in edit form: full width, no truncation */
[b-4rwstp2efz] .supplier-edit-plaintext {
    display: block;
    min-height: 1.5rem;
    padding: 0.375rem 0.5rem;
    width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.25rem;
    background-color: var(--bs-secondary-bg, #e9ecef);
    color: var(--bs-body-color);
}

/* Split-color status icon: small square, left = Load, right = Publish */
.supplier-status-icon[b-4rwstp2efz] {
    display: inline-flex;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.supplier-status-left[b-4rwstp2efz],
.supplier-status-right[b-4rwstp2efz] {
    flex: 1;
    min-width: 0;
}

/* Semantic status colors (Bootstrap has success, danger, dark) */
.bg-processing[b-4rwstp2efz] { background-color: #6ea8fe !important; }
.bg-warninginfo[b-4rwstp2efz] { background-color: #ffc107 !important; }
.bg-waiting[b-4rwstp2efz] { background-color: #3b71ca !important; }
/* /Shared/MainLayout.razor.rz.scp.css */
.page[b-tiwr7ctjbb] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-tiwr7ctjbb] {
    flex: 1;
}

.sidebar[b-tiwr7ctjbb] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-tiwr7ctjbb] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-tiwr7ctjbb]  a, .top-row .btn-link[b-tiwr7ctjbb] {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child[b-tiwr7ctjbb] {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-tiwr7ctjbb] {
        display: none;
    }

    .top-row.auth[b-tiwr7ctjbb] {
        justify-content: space-between;
    }

    .top-row a[b-tiwr7ctjbb], .top-row .btn-link[b-tiwr7ctjbb] {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-tiwr7ctjbb] {
        flex-direction: row;
    }

    .sidebar[b-tiwr7ctjbb] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-tiwr7ctjbb] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row[b-tiwr7ctjbb], article[b-tiwr7ctjbb] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Shared/NavMenu.razor.rz.scp.css */
.navbar-brand[b-vv7s8kuja1] {
    font-size: 1.1rem;
}

.oi[b-vv7s8kuja1] {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.nav-item[b-vv7s8kuja1] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-vv7s8kuja1] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-vv7s8kuja1] {
        padding-bottom: 1rem;
    }

    .nav-item[b-vv7s8kuja1]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-vv7s8kuja1]  a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.nav-item[b-vv7s8kuja1]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-vv7s8kuja1] {
        display: none;
    }

    .collapse[b-vv7s8kuja1] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    
    .nav-scrollable[b-vv7s8kuja1] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
