.service-rating-dialog .modal-dialog {
    width: 760px;
    max-width: calc(100% - 32px);
    margin: 40px auto !important;
}

.service-rating-operation-dialog .modal-dialog {
    max-width: calc(100% - 32px);
    margin: 40px auto !important;
}

.service-rating-dialog .modal-content {
    background: #fff;
    border: 1px solid #398f28;
    border-radius: 4px;
}

.service-rating-dialog .modal-header {
    align-items: center;
    display: flex;
    gap: 16px;
    padding: 12px 20px;
    background: #398f28;
    border-bottom: 0;
}

.service-rating-dialog .modal-header::before,
.service-rating-dialog .modal-header::after {
    display: none;
}

.service-rating-dialog .modal-title {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.3;
    text-align: left;
    cursor: default;
}

.service-rating-dialog .modal-header .close {
    order: 2;
    position: static;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    float: none;
    gap: 7px;
    min-height: 36px;
    width: auto;
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    text-shadow: none;
    white-space: nowrap;
    opacity: 1;
}

.service-rating-dialog .modal-header .close .fa {
    font-size: 18px;
}

.service-rating-dialog .modal-header .close:hover,
.service-rating-dialog .modal-header .close:focus {
    color: #fff;
    opacity: .82;
}

.service-rating-dialog .modal-body,
.service-rating-operation-dialog .modal-body {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.service-rating-form {
    color: #292e2a;
    padding: 8px 4px;
    text-align: left;
}

.service-rating-form .service-rating-question {
    color: #292e2a;
    font-size: 22px;
    line-height: 1.4;
    margin: 0 0 22px;
}

.service-rating-form .service-rating-target {
    color: #505a52;
    font-size: 16px;
    margin: 0 0 10px;
}

.service-rating-form .service-rating-choices {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.service-rating-form .service-rating-choice {
    background: #fff;
    border: 1px solid #bfc8c0;
    border-radius: 5px;
    color: #252e27;
    flex: 1 1 0;
    font-size: 17px;
    font-weight: 600;
    min-height: 116px;
    padding: 14px 8px;
}

.service-rating-form .service-rating-choice .fa {
    display: block;
    font-size: 40px;
    margin-bottom: 9px;
}

.service-rating-form .service-rating-choice:hover,
.service-rating-form .service-rating-choice.is-selected {
    background: #eef7e9;
    border-color: #39852d;
    color: #215c1a;
}

.service-rating-form .service-rating-choice:focus-visible {
    outline: 2px solid #276f20;
    outline-offset: 3px;
}

.service-rating-form .service-rating-choice:disabled {
    cursor: default;
}

.service-rating-form .control-label {
    color: #292e2a;
    margin-bottom: 8px;
    text-align: left;
}

.service-rating-form .form-group {
    margin-bottom: 18px;
}

.service-rating-form textarea {
    min-height: 105px;
    resize: vertical;
}

.service-rating-select.open,
body > .ui-select-container.service-rating-select.open {
    z-index: 1100;
}

.service-rating-select .ui-select-choices-row-inner {
    white-space: normal !important;
    padding: 9px 12px !important;
}

.service-rating-form .service-rating-field-error {
    color: #b32121;
}

.service-rating-form .service-rating-actions,
.service-rating-success-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 22px;
}

.service-rating-form .service-rating-actions .btn,
.service-rating-form .service-rating-status .btn,
.service-rating-success-actions .btn {
    min-height: 46px;
    min-width: 150px;
    padding: 11px 20px;
}

.service-rating-form .service-rating-status {
    padding: 18px 6px;
    text-align: center;
}

.service-rating-form .service-rating-status p,
.service-rating-form .service-rating-message {
    color: #3b433d;
    line-height: 1.6;
}

.service-rating-form .service-rating-thanks-icon {
    color: #398f28;
    font-size: 58px;
}

.service-rating-form .service-rating-notice-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 6px 0 4px;
}

.service-rating-form .service-rating-notice-copy {
    min-width: 0;
}

.service-rating-form .service-rating-notice-copy h3 {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.4;
    color: #292e2a;
}

.service-rating-form .service-rating-notice-copy p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: #454e47;
}

.service-rating-form .service-rating-notice-copy strong {
    color: #226b19;
    white-space: nowrap;
}

.service-rating-form .service-rating-notice-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e1e7e1;
}

.service-rating-form .service-rating-notice-actions .btn {
    min-height: 44px;
    min-width: 132px;
    padding: 10px 20px;
}

.service-rating-document-action {
    margin-left: 12px;
}

.service-rating-certificate-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.service-rating-certificate-actions .profile-certificates-back {
    margin: 0;
}

table.service-rating-documents-table {
    table-layout: fixed;
    width: 100%;
}

table.service-rating-documents-table.table-appeals > thead tr.appeal-row th:nth-child(1),
table.service-rating-documents-table.table-appeals > tbody tr.appeal-row td:nth-child(1) { width: 27%; }
table.service-rating-documents-table.table-appeals > thead tr.appeal-row th:nth-child(2),
table.service-rating-documents-table.table-appeals > tbody tr.appeal-row td:nth-child(2) { width: 20%; }
table.service-rating-documents-table.table-appeals > thead tr.appeal-row th:nth-child(3),
table.service-rating-documents-table.table-appeals > tbody tr.appeal-row td:nth-child(3) { width: 12%; }
table.service-rating-documents-table.table-appeals > thead tr.appeal-row th:nth-child(4),
table.service-rating-documents-table.table-appeals > tbody tr.appeal-row td:nth-child(4) { width: 12%; }
table.service-rating-documents-table.table-appeals > thead tr.appeal-row th:nth-child(5),
table.service-rating-documents-table.table-appeals > tbody tr.appeal-row td:nth-child(5) { width: 15%; }
table.service-rating-documents-table.table-appeals > thead tr.appeal-row th:nth-child(6),
table.service-rating-documents-table.table-appeals > tbody tr.appeal-row td:nth-child(6) { width: 14%; }

table.service-rating-documents-table th,
table.service-rating-documents-table td {
    overflow-wrap: break-word;
    word-break: normal;
}

table.service-rating-documents-table.table-appeals > thead tr.appeal-row th,
table.service-rating-documents-table.table-appeals > tbody tr.appeal-row td {
    max-width: none;
}

@media (max-width: 600px) {
    .service-rating-dialog .modal-dialog,
    .service-rating-operation-dialog .modal-dialog {
        margin: 32px auto !important;
    }
    .service-rating-form .service-rating-choices {
        gap: 8px;
    }
    .service-rating-form .service-rating-choice {
        font-size: 14px;
        min-height: 100px;
        padding: 12px 4px;
    }
    .service-rating-form .service-rating-choice .fa {
        font-size: 32px;
    }
}
