.release-flag {
    position: fixed;
    top: 8px;
    right: 18px;
    z-index: 1200;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.pdca-notify-flag {
    position: fixed;
    top: 8px;
    right: 230px;
    z-index: 1200;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.pdca-notify-flag.has-pending {
    border-color: #dc2626;
}

.pdca-notify-bell {
    font-size: 13px;
}

.pdca-notify-chip {
    font-size: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 1px 8px;
    background: #f9fafb;
}

.pdca-notify-total {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #dc2626;
    color: #ffffff;
    padding: 0 6px;
}

.pdca-pendencias-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1305;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pdca-pendencias-backdrop.open {
    display: flex;
}

.pdca-pendencias-modal {
    width: min(760px, 100%);
    max-height: min(80vh, 760px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pdca-pendencias-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pdca-pendencias-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    color: #111827;
    font-weight: 700;
}

.pdca-pendencias-help {
    margin: 8px 0 14px;
    color: #6b7280;
    font-size: 13px;
}

.pdca-pendencias-empty {
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 12px;
    color: #6b7280;
    background: #f9fafb;
}

.pdca-pendencias-list {
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdca-pendencia-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.pdca-pendencia-item h4 {
    margin: 0 0 6px;
    font-size: 16px;
}

.pdca-pendencia-item p {
    margin: 2px 0;
    color: #374151;
}

.pdca-pendencia-counts {
    font-weight: 700;
}

.pdca-pendencia-actions {
    flex-shrink: 0;
}

.release-flag-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dc2626;
}

.release-flag.read .release-flag-dot {
    background: #16a34a;
}

.release-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1300;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.release-modal-backdrop.open {
    display: flex;
}

.release-modal {
    width: min(700px, 100%);
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 18px;
}

.release-modal-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.release-counter {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
}

.release-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #d1d5db;
    font-weight: 700;
}

.release-date {
    color: #6b7280;
    margin: 8px 0 14px;
}

.release-summary {
    border-left: 3px solid #0f5132;
    background: #f4fbf7;
    color: #1f2937;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.release-training-wrap {
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 14px;
    background: #f9fafb;
}

.release-training-title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.release-training-list {
    margin: 0 0 0 18px;
}

.release-training-list li {
    margin-bottom: 4px;
    color: #374151;
}

.release-image-wrap {
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    padding: 10px;
}

.release-image {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f8fafc;
}

.release-image-caption {
    margin: 8px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.release-scroll-area {
    max-height: min(55vh, 420px);
    overflow-y: auto;
    padding-right: 6px;
}

.release-changes {
    margin: 0 0 14px 20px;
}

.release-changes li {
    margin-bottom: 6px;
}

.release-read-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 14px;
    font-weight: 600;
}

.release-read-label input {
    width: 16px;
    height: 16px;
}

.release-actions {
    display: flex;
    gap: 10px;
}

.release-scroll-hint {
    font-size: 12px;
    color: #b45309;
    margin: 8px 0 4px;
}

@media (max-width: 768px) {
    .release-flag {
        right: 10px;
        top: 8px;
        padding: 6px 10px;
    }

    .pdca-notify-flag {
        right: 155px;
        top: 8px;
        padding: 6px 10px;
    }

    .pdca-notify-text {
        font-size: 13px;
    }

    .release-flag-text {
        font-size: 13px;
    }

    .pdca-pendencia-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .pdca-pendencia-actions {
        width: 100%;
    }

    .pdca-open-atividade-btn {
        width: 100%;
    }
}
