/* /Components/Pages/Internal/SoftwareUpdates.razor.rz.scp.css */
/* Prevent textarea resizing in modals */
textarea[b-7tfusbo1cn] {
    resize: none;
}

/* Reduce table padding - responsive */
table th[b-7tfusbo1cn],
table td[b-7tfusbo1cn] {
    padding: 0.5rem 0.75rem;
}

@media (max-width: 768px) {
    table th[b-7tfusbo1cn],
    table td[b-7tfusbo1cn] {
        padding: 0.375rem 0.5rem;
    }
}

@media (max-width: 576px) {
    table th[b-7tfusbo1cn],
    table td[b-7tfusbo1cn] {
        padding: 0.25rem 0.375rem;
    }
}

/* Show more button cell */
.show-more-cell[b-7tfusbo1cn] {
    padding: 0;
    border: none;
}

/* File link cell - truncate long filenames */
.file-link-cell[b-7tfusbo1cn] {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.software-update-filters[b-7tfusbo1cn] {
    align-items: flex-end;
}

.show-archived-filter[b-7tfusbo1cn] {
    align-self: flex-end;
}

.show-archived-label[b-7tfusbo1cn] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--pico-spacing);
}

.show-archived-label input[b-7tfusbo1cn] {
    margin: 0;
}

.software-update-actions[b-7tfusbo1cn],
.software-update-actions > li[b-7tfusbo1cn] {
    align-items: center;
}

.software-update-actions > li[b-7tfusbo1cn] {
    display: flex;
}

.software-update-actions :is(a[role="button"], button)[b-7tfusbo1cn] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0;
}

/* Field groups (caption outside label to avoid Pico nesting issues) */
.field-group[b-7tfusbo1cn] {
    margin-bottom: var(--pico-spacing);
}

.field-label[b-7tfusbo1cn] {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: var(--pico-form-label-font-weight, 600);
}

.version-group[b-7tfusbo1cn] {
    margin-bottom: 0;
}

.version-group > input[b-7tfusbo1cn] {
    margin-bottom: 0;
}

.upload-file-input[b-7tfusbo1cn] {
    display: none !important;
}

.upload-fieldset[b-7tfusbo1cn] {
    margin-top: 0.5rem;
}

.upload-card-row[b-7tfusbo1cn] {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.upload-card[b-7tfusbo1cn] {
    display: flex;
    flex: 1 0 18rem;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 18rem;
    margin: 0;
    border: 1px solid var(--pico-muted-border-color);
    box-shadow: none;
}

.upload-card-body[b-7tfusbo1cn] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.upload-card-action[b-7tfusbo1cn] {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.upload-summary[b-7tfusbo1cn] {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    line-height: 1.4;
}

.upload-summary > span[b-7tfusbo1cn] {
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-summary-success[b-7tfusbo1cn] {
    color: var(--pico-ins-color);
}

.upload-summary-muted[b-7tfusbo1cn],
.upload-muted[b-7tfusbo1cn] {
    color: var(--pico-muted-color);
}

.upload-btn[b-7tfusbo1cn] {
    margin: 0;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: calc(var(--pico-form-element-spacing-vertical) * 2 + 1.25rem);
    padding-top: 0;
    padding-bottom: 0;
    flex-shrink: 0;
}

.upload-btn:disabled[b-7tfusbo1cn] {
    pointer-events: none;
    opacity: 0.65;
}

.upload-error[b-7tfusbo1cn] {
    display: block;
    margin-top: 0.35rem;
    color: var(--pico-del-color);
}
/* /Components/Pages/Internal/Users.razor.rz.scp.css */
.role-name[b-17s9c0n0ng] {
    font-weight: 500;
}

.role-description[b-17s9c0n0ng] {
    margin-left: 2rem;
    overflow-wrap: break-word;
    color: var(--pico-muted-color);
    display: inline-block;
}

/* Resend invite button spacing */
.btn-resend[b-17s9c0n0ng] {
    margin-left: 0.5rem;
}
/* /Components/Shared/Accordion.razor.rz.scp.css */
/* Accordion-specific styles */
/* Most styling is inline Tailwind - this is for any edge cases or overrides */

/* Ensure smooth transitions */
[data-accordion-item] [x-ref="panel"][b-5259cfykt6] {
    overflow: hidden;
}

/* Hide content when collapsed */
[data-accordion-item] [x-cloak][b-5259cfykt6] {
    display: none !important;
}

/* /Components/Shared/DownloadToast.razor.rz.scp.css */
.download-toast-wrapper[b-ijq49tu2ap] {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    pointer-events: none;
}

.download-toast[b-ijq49tu2ap] {
    pointer-events: auto;
    width: 24rem;
    max-width: calc(100vw - 2rem);
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px -10px rgba(30, 41, 59, 0.15), 0 0 0 1px rgba(16, 185, 129, 0.08);
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
}

.toast-content[b-ijq49tu2ap] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
}

.toast-icon[b-ijq49tu2ap] {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.toast-body[b-ijq49tu2ap] {
    flex: 1;
    min-width: 0;
}

.toast-title[b-ijq49tu2ap] {
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0 0 0.25rem;
    color: #1e293b;
}

.toast-message[b-ijq49tu2ap] {
    font-size: 0.8125rem;
    color: #475569;
    margin: 0 0 0.5rem;
    line-height: 1.45;
}

.toast-message strong[b-ijq49tu2ap] {
    color: #1e293b;
    font-weight: 600;
}

.toast-link[b-ijq49tu2ap] {
    font-size: 0.8125rem;
    color: #059669;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.15s;
}

.toast-link:hover[b-ijq49tu2ap] {
    color: #047857;
}

.toast-dismiss[b-ijq49tu2ap] {
    all: unset;
    flex-shrink: 0;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    line-height: 1;
    transition: color 0.15s, background-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-dismiss:hover[b-ijq49tu2ap] {
    color: #1e293b;
    background: #f1f5f9;
}

/* Progress bar */
.toast-progress-track[b-ijq49tu2ap] {
    height: 3px;
    background: #e2e8f0;
}

.toast-progress-bar[b-ijq49tu2ap] {
    height: 100%;
    background: linear-gradient(90deg, #059669, #10b981);
    width: 100%;
}

/* Alpine x-cloak: hide until Alpine initializes */
[x-cloak][b-ijq49tu2ap] {
    display: none !important;
}

/* Transition classes (used by Alpine x-transition) */
.toast-enter[b-ijq49tu2ap] {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-enter-from[b-ijq49tu2ap] {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.96);
}

.toast-enter-to[b-ijq49tu2ap] {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-leave[b-ijq49tu2ap] {
    transition: all 0.2s ease-in;
}

.toast-leave-from[b-ijq49tu2ap] {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-leave-to[b-ijq49tu2ap] {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.96);
}

/* Mobile: full-width toast pinned to bottom */
@media (max-width: 640px) {
    .download-toast-wrapper[b-ijq49tu2ap] {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .download-toast[b-ijq49tu2ap] {
        width: auto;
        max-width: none;
    }
}
/* /Components/Shared/Internal/InlineMarkdownEditor.razor.rz.scp.css */
.inline-markdown-editor[b-fb5r8d9sly] {
    position: relative;
    display: flex;
    flex-direction: column;
}

.inline-markdown-editor-toolbar[b-fb5r8d9sly] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.25rem;
    border: 1px solid var(--pico-muted-border-color);
    border-bottom: 0;
    border-radius: var(--pico-border-radius) var(--pico-border-radius) 0 0;
}

.inline-markdown-editor-toolbar button[b-fb5r8d9sly] {
    --pico-form-element-spacing-vertical: 0.25rem;
    --pico-form-element-spacing-horizontal: 0.45rem;
    min-width: 2rem;
    min-height: 2rem;
    margin: 0;
    padding: 0.25rem 0.45rem;
    font-size: 0.875rem;
}

.inline-markdown-editor-toolbar button.is-active[b-fb5r8d9sly] {
    background-color: var(--pico-primary-background);
    border-color: var(--pico-primary-border);
    color: var(--pico-primary-inverse);
}

.inline-markdown-editor-toolbar button.is-partial[b-fb5r8d9sly] {
    background: var(--pico-muted-border-color);
    border-color: var(--pico-muted-color);
    color: var(--pico-color);
}

.inline-markdown-editor-surface[b-fb5r8d9sly] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 0 var(--pico-border-radius) var(--pico-border-radius) var(--pico-border-radius);
    background: var(--pico-form-element-background-color);
    color: var(--pico-color);
    line-height: 1.5;
    overflow-y: auto;
    outline: none;
}

.inline-markdown-editor-surface:focus[b-fb5r8d9sly] {
    border-color: var(--pico-form-element-focus-color);
    box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-form-element-focus-color);
}

.inline-markdown-editor-surface:empty[b-fb5r8d9sly]::before {
    content: attr(data-placeholder);
    color: var(--pico-muted-color);
    pointer-events: none;
}

.inline-markdown-editor-surface :deep(p)[b-fb5r8d9sly] {
    margin: 0 0 0.5rem;
}

.inline-markdown-editor-surface :deep(p:last-child)[b-fb5r8d9sly] {
    margin-bottom: 0;
}

.inline-markdown-editor-surface :deep(a)[b-fb5r8d9sly] {
    color: var(--pico-primary);
}

.inline-markdown-link-popover[b-fb5r8d9sly] {
    position: absolute;
    z-index: 20;
    display: flex;
    gap: 0.35rem;
    align-items: center;
    max-width: min(24rem, 100%);
    padding: 0.35rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    background: var(--pico-card-background-color);
    box-shadow: var(--pico-box-shadow);
}

.inline-markdown-link-popover[hidden][b-fb5r8d9sly] {
    display: none;
}

.inline-markdown-link-popover a[b-fb5r8d9sly] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
}

.inline-markdown-link-actions[b-fb5r8d9sly] {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.inline-markdown-link-actions button[b-fb5r8d9sly] {
    --pico-form-element-spacing-vertical: 0.25rem;
    --pico-form-element-spacing-horizontal: 0.4rem;
    min-width: 1.85rem;
    min-height: 1.85rem;
    margin: 0;
    padding: 0.25rem 0.4rem;
}

.inline-markdown-dialog-backdrop[b-fb5r8d9sly] {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.35);
}

.inline-markdown-dialog[b-fb5r8d9sly] {
    width: min(32rem, 100%);
    margin: 0;
}

.inline-markdown-dialog header[b-fb5r8d9sly] {
    margin-bottom: 1rem;
}

.inline-markdown-dialog fieldset[b-fb5r8d9sly] {
    margin-bottom: 0;
}
/* /Components/Shared/Internal/InteractiveModal.razor.rz.scp.css */
dialog[data-size="md"] article[b-9p5wh3zd2e] {
    max-width: 32rem;
    /* 512px - default Pico modal */
}

dialog[data-size="lg"] article[b-9p5wh3zd2e] {
    max-width: 48rem;
    /* 768px */
}

dialog[data-size="xl"] article[b-9p5wh3zd2e] {
    max-width: 64rem;
    /* 1024px */
}

/* Responsive: full width on mobile */
@media (max-width: 768px) {
    dialog[data-size] article[b-9p5wh3zd2e] {
        max-width: calc(100vw - 2rem);
    }
}
