/* GRB Global Dashboard Feedback Modal System (C14.PAINEL1.FEEDBACK-MODALS.01) */
.grb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(2px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    animation: grbModalFadeIn 0.2s ease-out;
}

@keyframes grbModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.grb-feedback-modal {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    position: relative;
    font-family: Montserrat, Arial, sans-serif;
    transform: scale(0.95);
    animation: grbModalScaleIn 0.2s ease-out forwards;
    border: 1px solid #E2E8F0;
    box-sizing: border-box;
}

@keyframes grbModalScaleIn {
    to { transform: scale(1); }
}

.grb-feedback-modal__header {
    padding: 1.25rem 1.5rem 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.grb-feedback-modal__title-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.grb-feedback-modal__icon {
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.grb-feedback-modal--success .grb-feedback-modal__icon { color: #16A34A; }
.grb-feedback-modal--error .grb-feedback-modal__icon { color: #DC2626; }
.grb-feedback-modal--warning .grb-feedback-modal__icon { color: #D97706; }
.grb-feedback-modal--info .grb-feedback-modal__icon { color: #0284C7; }
.grb-feedback-modal--confirm .grb-feedback-modal__icon { color: #475569; }

.grb-feedback-modal__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
}

.grb-feedback-modal__close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: #94A3B8;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.grb-feedback-modal__close:hover {
    color: #0F172A;
}

.grb-feedback-modal__body {
    padding: 0.5rem 1.5rem 1.25rem 1.5rem;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.5;
    word-break: break-word;
}

.grb-feedback-modal__footer {
    padding: 1rem 1.5rem;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    align-items: center;
}

.grb-feedback-modal__btn {
    font-family: Montserrat, Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.55rem 1.15rem;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.grb-feedback-modal__btn--primary {
    background: #0F172A;
    color: #FFFFFF;
}
.grb-feedback-modal__btn--primary:hover {
    background: #1E293B;
}

.grb-feedback-modal__btn--danger {
    background: #DC2626;
    color: #FFFFFF;
}
.grb-feedback-modal__btn--danger:hover {
    background: #B91C1C;
}

.grb-feedback-modal__btn--secondary {
    background: #E2E8F0;
    color: #334155;
    border-color: #CBD5E1;
}
.grb-feedback-modal__btn--secondary:hover {
    background: #CBD5E1;
}

/* Demand Forms Module - Scoped No-Hover visual rules (C16.FORMULARIOS-DE-DEMANDA.ACCORDION-MUNICIPAL-HOVER2) */
.grb-municipal-forms-admin *:hover,
.grb-municipal-forms-admin .grb-card:hover,
.grb-municipal-forms-admin .grb-hero-badge:hover,
.grb-municipal-forms-admin .grb-panel-button:hover,
.grb-municipal-forms-admin .grb-accordion-header:hover,
.grb-municipal-forms-admin summary:hover,
.grb-municipal-forms-admin select:hover,
.grb-municipal-forms-admin input:hover,
.grb-municipal-forms-admin textarea:hover,
.grb-municipal-forms-admin a:hover {
    transition: none;
    transform: none;
    box-shadow: none;
    filter: none;
}

.grb-municipal-forms-admin .grb-panel-button--secondary:hover {
    background-color: #F1F5F9;
    border-color: #CBD5E1;
    color: #0F172A;
}

.grb-municipal-forms-admin .grb-panel-button--danger:hover {
    background-color: #DC2626;
    border-color: #DC2626;
    color: #FFFFFF;
}

.grb-municipal-forms-admin summary:hover {
    background-color: #FFFFFF;
    color: #2C3E3F;
}

.grb-municipal-forms-admin .grb-accordion-header:hover {
    background-color: #F8FAFC;
}

/* Demand Forms Module - Question number & title Bold 700, metadata normal */
.grb-municipal-forms-admin .grb-demand-question-number,
.grb-municipal-forms-admin .grb-demand-question-label {
    font-weight: 700;
    color: #0F172A;
}
.grb-municipal-forms-admin .grb-demand-question-number {
    margin-right: 0.35rem;
}
.grb-municipal-forms-admin .grb-demand-question-meta {
    color: #64748B;
    font-size: 0.8rem;
    font-weight: 400;
}

/* Demand Forms Module - Equalize field header height in multi-column rows */
.grb-municipal-forms-admin .grb-form-field .grb-field-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 2.35rem;
}
@media (max-width: 640px) {
    .grb-municipal-forms-admin .grb-form-field .grb-field-header {
        min-height: auto;
    }
}

/* Demand Forms Module - Compact section question counter */
.grb-municipal-forms-admin span.grb-demand-section-counter {
    width: auto;
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
    min-height: auto;
}

/* Demand Forms Module - Action Buttons 100% width of their column container */
.grb-municipal-forms-admin a.grb-panel-button,
.grb-municipal-forms-admin button.grb-panel-button {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

/* Public Demand Survey - Question Number Circle */
.grb-survey-question-number-circle {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    border-radius: 50%;
    background-color: #2E7D32;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    box-sizing: border-box;
    line-height: 1;
    text-align: center;
}

/* Public Demand Survey - Accordion Step Summary */
.grb-survey-step summary {
    padding: 1rem 1.15rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    color: #2C3E3F;
    background: #FFFFFF;
}
.grb-survey-step summary::-webkit-details-marker {
    display: none;
}
.grb-survey-step__title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}
.grb-survey-step__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2C3E3F;
    line-height: 1.35;
    word-break: break-word;
}

/* Public Demand Survey - Neutralize Accordion Step Summary Hover Effects */
details.grb-survey-step:hover,
details.grb-survey-step summary:hover,
.grb-survey-step summary:hover {
    background-color: #FFFFFF;
    color: #2C3E3F;
    border-color: #BECEC6;
    box-shadow: none;
    transform: none;
    opacity: 1;
}

/* Demand Responses - Paginated Response Accordion List */
.grb-demand-responses-admin .grb-response-accordion {
    margin-bottom: 0;
}

.grb-response-accordion {
    margin-bottom: 0.75rem;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #FFFFFF;
    overflow: hidden;
}
.grb-response-accordion summary {
    padding: 0.85rem 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    background: #F8FAFC;
    color: #0F172A;
    font-weight: 600;
}
.grb-response-accordion summary::-webkit-details-marker {
    display: none;
}
.grb-response-accordion[open] summary {
    border-bottom: 1px solid #E2E8F0;
    background: #F1F5F9;
}
.grb-response-accordion__body {
    padding: 1.15rem;
    background: #FFFFFF;
}
