.formsurvey-filters {
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
}
.fa-filter-group {
    display: flex;
    flex-direction: column;
}
.formsurvey-filters select {
    width: 100%;
    max-width: 100%;
    height: 42px;
}
.fa-filter-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2c3e50;
    letter-spacing: 0.3px;
}
.formsurvey-filters select {
    padding: 10px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    background: #f9fafb;
    transition: all 0.2s ease;
}
.formsurvey-filters select:focus {
    border-color: #2563eb;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}
.fa-filter-button {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
#fa-load {
    padding: 12px 28px;
    background: #1f2937;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}
#fa-load:hover {
    background: #111827;
}
#fa-load:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}
.formsurvey-answers-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease forwards;
    overflow: hidden; 
}
.formsurvey-answers-wrapper.has-scroll {
    overflow-x: auto;
    overflow-y: hidden;
}
.formsurvey-answers-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}
.formsurvey-answers-table thead {
    background: #1f2937;
    color: #ffffff;
}
.formsurvey-answers-table th,
.formsurvey-answers-table td {
    padding: 12px 14px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}
.formsurvey-answers-table tbody tr:hover {
    background: #a3c8ee;
}
#fa-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
}
#fa-loader::after {
    content: "";
    width: 28px;
    height: 28px;
    border: 3px solid #d1d5db;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.fa-end-message {
    margin-top: 20px;
    padding: 14px;
    text-align: center;
    font-weight: 500;
    background: #ecfdf5;
    color: #065f46;
    border-radius: 8px;
    animation: fadeIn 0.4s ease forwards;
}
.formsurvey-answers-table th {
    white-space: nowrap;
}
.fa-results-title {
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 18px 24px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #1f2937;
    animation: fadeIn 0.3s ease forwards;
}
.fa-title-prefix {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.fa-title-organization {
    display: inline-block;
    margin-top: 6px;
    font-weight: 700;
    font-size: 17px;
    color: #1f2937;
}
.formsurvey-delete-btn {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.formsurvey-delete-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}
.formsurvey-delete-btn:active {
    transform: translateY(0);
}
.formsurvey-delete-btn:disabled {
    background: #fca5a5;
    cursor: not-allowed;
}
.fa-helper-message {
    padding: 14px 18px;
    border-radius: 8px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease forwards;
}
.formsurvey-actions {
    max-width: 900px;
    margin: 0 auto 20px auto;
    display: flex;
    gap: 10px;
    justify-content: center; /* ВАЖНО */
    align-items: center;
}
.formsurvey-recalc-btn,
.formsurvey-toggle-btn {
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}
.formsurvey-recalc-btn {
    background: #2d7ef7;
    color: #fff;
}
.formsurvey-recalc-btn:hover {
    background: #1c5fd1;
}
.formsurvey-toggle-btn.on {
    background: #e53935;
    color: #fff;
}
.formsurvey-toggle-btn.on:hover {
    background: #c62828;
}
.formsurvey-toggle-btn.off {
    background: #2d7ef7;
    color: #fff;
}
.formsurvey-toggle-btn.off:hover {
    background: #1c5fd1;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
    .formsurvey-filters {
        grid-template-columns: 1fr;
    }
}