/* /public/assets/css/dashboard-actions.css */

.generator-tree-detail > .generator-recommended-action-form + .generator-recommended-action-form {
    margin-left: 0;
}

.navigator-task > .js-submit-loader + .js-submit-loader {
    margin-top: 8px;
}

.js-action-loading {
    cursor: wait;
    opacity: 0.72;
}.generator-tree-detail.has-drafts {
    flex-wrap: wrap;
}

.generator-tree-plans,
.generator-tree-drafts {
    display: grid;
    width: 100%;
    gap: 5px;
    margin-top: 4px;
    padding-left: 14px;
    border-left: 1px dashed var(--line);
}

.generator-tree-plan,
.generator-tree-draft {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    color: var(--muted);
    font-size: 11px;
}

.generator-tree-plan.is-approved,
.generator-tree-draft.is-approved {
    border-color: #9bd8b7;
    background: var(--success-bg);
}

.generator-tree-plan > span:first-child,
.generator-tree-draft > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.generator-tree-plan .status,
.generator-tree-draft .status {
    flex: 0 0 auto;
}[data-entity-preview] {
    cursor: pointer;
}

.generator-entity-modal {
    width: min(760px, calc(100vw - 32px));
    max-width: 760px;
    max-height: min(80vh, 760px);
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 24px 70px rgba(23, 32, 51, 0.28);
}

.generator-entity-modal::backdrop {
    background: rgba(23, 32, 51, 0.54);
}

.generator-entity-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.generator-entity-modal-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
}

.generator-entity-modal-close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-muted);
    color: var(--text);
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.generator-entity-modal-body {
    max-height: calc(min(80vh, 760px) - 70px);
    padding: 20px;
    overflow-y: auto;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.6;
}

.generator-entity-modal-body p:last-child {
    margin-bottom: 0;
}

.generator-entity-preview-json {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}.generator-entity-preview-section + .generator-entity-preview-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.generator-entity-preview-section h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
}

.generator-entity-preview-section p,
.generator-entity-preview-section li {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.generator-entity-preview-section p {
    margin: 0;
}

.generator-entity-preview-section ol {
    margin: 0;
    padding-left: 22px;
}

.generator-entity-preview-section li + li {
    margin-top: 8px;
}

@media (max-width: 600px) {
    .generator-entity-modal {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .generator-entity-modal-body {
        max-height: calc(100vh - 88px);
        padding: 16px;
    }
}