.batch-e-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.batch-e-dialog-open {
    overflow: hidden;
}

.batch-e-card-actions {
    position: relative;
    margin-left: auto;
}

.batch-e-card-menu-button,
.batch-e-icon-button {
    display: inline-grid;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    place-items: center;
}

.batch-e-card-menu-button:hover,
.batch-e-icon-button:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.batch-e-card-menu-button:focus-visible,
.batch-e-icon-button:focus-visible,
.batch-e-card-menu button:focus-visible,
.batch-e-card-menu select:focus-visible,
.batch-e-video-toggle:focus-visible,
.batch-e-undo-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 2px;
}

.batch-e-card-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    z-index: 40;
    width: 224px;
    padding: 7px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.batch-e-card-menu[hidden] {
    display: none;
}

.batch-e-card-menu button,
.batch-e-card-menu label {
    width: 100%;
    color: #1e293b;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: left;
}

.batch-e-card-menu button {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.batch-e-card-menu button:hover:not(:disabled) {
    background: #eff6ff;
    color: #1d4ed8;
}

.batch-e-card-menu button:disabled {
    color: #94a3b8;
    cursor: default;
}

.batch-e-card-menu label {
    display: grid;
    gap: 5px;
    padding: 5px 9px;
}

.batch-e-card-menu select {
    width: 100%;
    min-height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #0f172a;
    font: inherit;
}

.batch-e-card-menu-divider {
    height: 1px;
    margin: 5px 0;
    background: #e2e8f0;
}

.batch-e-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    padding: 20px;
    background: rgba(15, 23, 42, 0.48);
    place-items: center;
}

.batch-e-dialog-backdrop[hidden] {
    display: none;
}

.batch-e-dialog {
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 22px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.batch-e-dialog-header,
.batch-e-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.batch-e-dialog h2,
.batch-e-section-heading h3 {
    margin: 2px 0 0;
    color: #0f172a;
    font-size: 1.1rem;
}

.batch-e-eyebrow {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.batch-e-status-transition {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
}

.batch-e-status-transition span,
.batch-e-status-transition strong {
    overflow-wrap: anywhere;
}

.batch-e-status-transition i {
    color: #64748b;
}

.batch-e-status-transition strong {
    color: #1d4ed8;
}

.batch-e-field {
    display: grid;
    gap: 7px;
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 700;
}

.batch-e-field small {
    color: #64748b;
    font-weight: 500;
}

.batch-e-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f172a;
    font: inherit;
    line-height: 1.5;
    resize: vertical;
}

.batch-e-field textarea:focus {
    border-color: #2563eb;
    outline: 3px solid rgba(37, 99, 235, 0.14);
}

.batch-e-notification-impact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
}

.batch-e-notification-impact i {
    margin-top: 2px;
}

.batch-e-notification-impact strong,
.batch-e-notification-impact span {
    display: block;
}

.batch-e-notification-impact strong {
    color: #1e293b;
    font-size: 0.85rem;
}

.batch-e-notification-impact span {
    margin-top: 2px;
    font-size: 0.78rem;
}

.batch-e-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.batch-e-undo-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1100;
    display: flex;
    max-width: min(520px, calc(100vw - 32px));
    align-items: center;
    gap: 18px;
    padding: 13px 14px 13px 16px;
    border: 1px solid #1e293b;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.28);
}

.batch-e-undo-toast strong,
.batch-e-undo-toast span {
    display: block;
}

.batch-e-undo-toast strong {
    font-size: 0.85rem;
}

.batch-e-undo-toast > div > span {
    margin-top: 2px;
    color: #cbd5e1;
    font-size: 0.74rem;
}

.batch-e-undo-button {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.batch-e-undo-button span {
    display: inline;
}

body.batch-e-detail-active .content-area {
    overflow-y: auto;
}

.batch-e-application-detail .workspace-header {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-bottom: 14px !important;
    padding: 10px 0;
    background: var(--bg-color, #f8fafc);
}

.batch-e-application-detail .workspace-container {
    display: grid !important;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
    height: auto !important;
    min-height: 0;
}

.batch-e-application-detail .workspace-left,
.batch-e-application-detail .workspace-right {
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.batch-e-application-detail .workspace-right {
    min-width: 0;
}

.batch-e-application-detail .batch-e-tab-content-host {
    overflow: visible !important;
    padding: 20px !important;
}

.batch-e-application-detail .workspace-tabs {
    position: sticky;
    top: 82px;
    z-index: 10;
    overflow-x: auto;
}

.batch-e-application-detail .workspace-tab-btn {
    min-width: 104px;
    min-height: 50px;
    letter-spacing: 0;
}

.batch-e-video-accordion {
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.batch-e-video-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border: 0;
    background: #fff;
    color: #1e293b;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
}

.batch-e-video-toggle > span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.batch-e-video-toggle > span:first-child i {
    color: #7c3aed;
}

.batch-e-video-toggle-meta {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 600;
}

.batch-e-video-toggle[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.batch-e-video-content {
    padding: 0 14px 14px;
}

.batch-e-video-content[hidden] {
    display: none;
}

.batch-e-history-section,
.batch-e-resource-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.batch-e-resource-panel {
    min-height: 260px;
}

.batch-e-count {
    padding: 4px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 800;
}

.batch-e-timeline {
    display: grid;
    gap: 0;
}

.batch-e-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 18px;
}

.batch-e-timeline-item:not(:last-child)::before {
    position: absolute;
    top: 28px;
    bottom: 0;
    left: 15px;
    width: 2px;
    background: #dbeafe;
    content: '';
}

.batch-e-timeline-marker {
    z-index: 1;
    display: grid;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.7rem;
    place-items: center;
}

.batch-e-timeline-item.is-undo .batch-e-timeline-marker {
    background: #f1f5f9;
    color: #475569;
}

.batch-e-history-transition {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: #475569;
    font-size: 0.86rem;
}

.batch-e-history-transition strong {
    color: #0f172a;
}

.batch-e-timeline-item p {
    margin: 5px 0;
    color: #334155;
    font-size: 0.82rem;
}

.batch-e-timeline-item small {
    color: #64748b;
    font-size: 0.74rem;
}

.batch-e-resource-list {
    display: grid;
    gap: 8px;
}

.batch-e-resource-list article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #f8fafc;
}

.batch-e-resource-list article > i {
    color: #2563eb;
    text-align: center;
}

.batch-e-resource-list strong,
.batch-e-resource-list span {
    display: block;
}

.batch-e-resource-list strong {
    color: #0f172a;
    font-size: 0.86rem;
}

.batch-e-resource-list span {
    margin-top: 3px;
    color: #64748b;
    font-size: 0.76rem;
}

.batch-e-loading,
.batch-e-empty,
.batch-e-error {
    margin: 0;
    padding: 28px 14px;
    color: #64748b;
    font-size: 0.85rem;
    text-align: center;
}

.batch-e-error {
    color: #b91c1c;
}

@media (max-width: 1024px) {
    .batch-e-application-detail .workspace-container {
        grid-template-columns: 1fr !important;
    }

    .batch-e-application-detail .workspace-tabs {
        top: 76px;
    }
}

@media (max-width: 767px) {
    .batch-e-dialog-backdrop {
        align-items: end;
        padding: 0;
    }

    .batch-e-dialog {
        width: 100%;
        max-height: 88vh;
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
        border-radius: 8px 8px 0 0;
    }

    .batch-e-status-transition {
        gap: 8px;
        padding: 12px 8px;
        font-size: 0.82rem;
    }

    .batch-e-dialog-actions .btn {
        flex: 1;
    }

    .batch-e-undo-toast {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
    }

    .batch-e-application-detail .workspace-header {
        top: 0;
    }

    .batch-e-application-detail .workspace-tabs {
        top: 70px;
    }

    .batch-e-application-detail .workspace-tab-btn {
        flex: 0 0 98px !important;
        min-width: 98px;
        padding: 10px 8px !important;
        font-size: 0.78rem !important;
    }

    .batch-e-application-detail .batch-e-tab-content-host {
        padding: 12px !important;
    }

    .batch-e-card-menu {
        position: fixed;
        right: 12px;
        bottom: 76px;
        top: auto;
        left: 12px;
        width: auto;
    }
}
