/* Light administration shell. Kept separate so deployments do not require a CSS build step. */
[data-navigation-overlay] {
    background: rgb(15 23 42 / 18%);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

[data-navigation] {
    border-color: #e2e8f0;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 20px 25px -5px rgb(15 23 42 / 8%), 0 8px 10px -6px rgb(15 23 42 / 8%);
}

.nav-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    color: #334155;
    font-weight: 600;
}

.nav-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.nav-link-active,
.nav-link-active:hover {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 1px 2px rgb(15 23 42 / 12%);
}

.nav-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: #64748b;
}

.nav-link:hover .nav-icon {
    color: #2563eb;
}

.nav-link-active .nav-icon,
.nav-link-active:hover .nav-icon {
    color: #fff;
}

.product-title {
    max-width: 32rem;
    white-space: normal;
    overflow-wrap: anywhere;
    color: #020617;
    font-weight: 600;
    line-height: 1.35;
}

.product-category {
    max-width: 32rem;
    margin-top: 0.25rem;
    white-space: normal;
    overflow-wrap: anywhere;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1rem;
}

.product-category span {
    color: #475569;
    font-weight: 600;
}

.product-category-missing {
    color: #b45309;
}

.category-picker {
    position: relative;
}

.category-picker-summary {
    display: flex;
    min-height: 42px;
    cursor: pointer;
    list-style: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.625rem 0.75rem;
    color: #1e293b;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
}

.category-picker-summary::-webkit-details-marker {
    display: none;
}

.category-picker[open] .category-picker-summary {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgb(37 99 235 / 12%);
}

.category-picker-panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 0.375rem);
    right: 0;
    left: 0;
    min-width: min(36rem, calc(100vw - 2rem));
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.75rem;
    box-shadow: 0 20px 25px -5px rgb(15 23 42 / 12%), 0 8px 10px -6px rgb(15 23 42 / 10%);
}

.category-picker-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.625rem 0.25rem;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
}

.category-picker-options {
    max-height: 22rem;
    overflow-y: auto;
    border-top: 1px solid #e2e8f0;
}

.category-picker-option {
    display: flex;
    cursor: pointer;
    align-items: flex-start;
    gap: 0.625rem;
    border-bottom: 1px solid #f1f5f9;
    padding: 0.625rem 0.375rem;
}

.category-picker-option:hover {
    background: #f8fafc;
}

.category-picker-option[hidden] {
    display: none;
}

.category-picker-option input {
    margin-top: 0.2rem;
}

.category-picker-option span,
.category-picker-option strong,
.category-picker-option small {
    display: block;
}

.category-picker-option strong {
    color: #1e293b;
    font-size: 0.8125rem;
    line-height: 1.25rem;
}

.category-picker-option small {
    color: #64748b;
    font-size: 0.6875rem;
    line-height: 1rem;
}

.readiness-block {
    min-width: 15rem;
    max-width: 24rem;
    white-space: normal;
}

.readiness-summary {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1rem;
}

.readiness-summary-ready {
    background: #ecfdf5;
    color: #047857;
    box-shadow: inset 0 0 0 1px rgb(5 150 105 / 20%);
}

.readiness-summary-warning {
    background: #fffbeb;
    color: #b45309;
    box-shadow: inset 0 0 0 1px rgb(217 119 6 / 20%);
}

.readiness-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.375rem;
}

.readiness-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 9999px;
    padding: 0.1875rem 0.5rem;
    white-space: nowrap;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1rem;
}

.readiness-tag-ready {
    background: #ecfdf5;
    color: #047857;
    box-shadow: inset 0 0 0 1px rgb(5 150 105 / 18%);
}

.readiness-tag-missing {
    background: #fef2f2;
    color: #b91c1c;
    box-shadow: inset 0 0 0 1px rgb(220 38 38 / 18%);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.375rem;
}

.pagination-link {
    display: inline-flex;
    min-width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0 0.625rem;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
}

.pagination-link:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #0f172a;
}

.pagination-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.pagination-link-wide {
    min-width: auto;
    padding-inline: 1rem;
}

.pagination-link-active,
.pagination-link-active:hover {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.pagination-link-disabled,
.pagination-link-disabled:hover {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.pagination-ellipsis {
    display: inline-flex;
    width: 1.75rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

@media (min-width: 64rem) {
    [data-navigation] {
        box-shadow: none;
    }
}
