.material-list-filter {
    min-width: 12rem;
}

.material-file-cell {
    max-width: 15rem;
}

.material-file-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    color: var(--ecs-color-primary);
    font-weight: 700;
    text-decoration: none;
}

.material-file-link:hover,
.material-file-link:focus-visible {
    color: var(--ecs-color-primary-border);
}

.material-file-link .material-symbols-outlined {
    flex: 0 0 auto;
    font-size: 1.2rem;
}

.material-file-name {
    display: inline-block;
    max-width: 12.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.material-file-empty {
    color: #77717f;
    font-weight: 700;
}

.material-edit-page {
    color: #17131c;
}

.material-edit-shell {
    margin-bottom: 2rem;
}

.material-field-wide {
    grid-column: span 2;
}

.material-validation-summary {
    color: #b91c1c;
    font-size: 0.86rem;
    font-weight: 700;
}

.material-switch-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 4rem;
    padding: 0.72rem 0.9rem;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.85rem;
    background: #fff;
    cursor: pointer;
}

.material-switch-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.material-switch-control {
    position: relative;
    flex: 0 0 auto;
    width: 3.1rem;
    height: 1.65rem;
    border: 1px solid #d8d5dc;
    border-radius: 999px;
    background: var(--ecs-color-secondary);
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.material-switch-control::before {
    content: "";
    position: absolute;
    top: 0.18rem;
    left: 0.2rem;
    width: 1.18rem;
    height: 1.18rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(23, 19, 28, 0.12);
    transition: transform 0.18s ease;
}

.material-switch-card input[type="checkbox"]:checked + .material-switch-control {
    border-color: var(--ecs-color-primary);
    background: var(--ecs-color-primary);
}

.material-switch-card input[type="checkbox"]:checked + .material-switch-control::before {
    transform: translateX(1.42rem);
}

.material-switch-card strong,
.material-switch-card em {
    display: block;
}

.material-switch-card strong {
    color: #17131c;
    font-size: 0.92rem;
    font-weight: 800;
}

.material-switch-card em {
    margin-top: 0.15rem;
    color: #77717f;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.35;
}

.material-file-section {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(214, 212, 216, 0.72);
}

.material-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.material-section-header > .material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: #fff5f8;
    color: var(--ecs-color-primary);
    font-size: 1.35rem;
}

.material-section-header h2 {
    margin: 0;
    color: #17131c;
    font-size: 1.05rem;
    font-weight: 800;
}

.material-section-header p {
    margin: 0.15rem 0 0;
    color: #77717f;
    font-size: 0.86rem;
    font-weight: 600;
}

.material-dropzone {
    position: relative;
    display: grid;
    min-height: 11rem;
    place-items: center;
    border: 1px dashed #f3c4d4;
    border-radius: 1.15rem;
    background: #fff5f8;
    color: var(--ecs-color-primary);
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.material-dropzone.is-hover,
.material-dropzone:hover,
.material-dropzone:focus-within {
    border-color: var(--ecs-color-primary);
    background: #fff;
}

.material-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.material-dropzone-content {
    display: grid;
    gap: 0.25rem;
    justify-items: center;
    padding: 1rem;
    text-align: center;
}

.material-dropzone-content .material-symbols-outlined {
    font-size: 2.7rem;
}

.material-dropzone-content strong {
    color: #5f293d;
    font-size: 0.95rem;
    font-weight: 800;
}

.material-dropzone-content small {
    color: #77717f;
    font-size: 0.82rem;
    font-weight: 600;
}

.material-file-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(214, 212, 216, 0.92);
    border-radius: 1rem;
    background: var(--ecs-color-secondary);
}

.material-file-banner.is-pending {
    border-color: #f3c4d4;
    background: #fff5f8;
}

.material-file-banner-icon {
    color: var(--ecs-color-primary);
    font-size: 1.45rem;
}

.material-file-copy {
    min-width: 0;
}

.material-file-copy strong,
.material-file-copy small {
    display: block;
}

.material-file-copy strong {
    overflow: hidden;
    color: #17131c;
    font-size: 0.92rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.material-file-copy small {
    margin-top: 0.12rem;
    color: #77717f;
    font-size: 0.78rem;
    font-weight: 700;
}

.material-file-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

@media (max-width: 991.98px) {
    .material-field-wide {
        grid-column: auto;
    }
}

@media (max-width: 767.98px) {
    .material-file-banner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .material-file-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}
