.btn.btn-small {
    background: rgb(24 155 215);
    font-style: italic;
    color: white !important;
    padding: 6px 8px 4px;
    border-radius: 8px;
    transition: opacity 100ms;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    line-height: 1;
/*    margin-bottom: 4px;*/
/*    margin-right: 4px;*/
    font-style: normal;
    font-size: 18px;
}

/*.btn:not(.arrowless)::after*/

.btn.btn-small:not(.arrowless)::after {
    content: unset;
}

.main-col-dealers.main-col-dealers-project-request {
    max-width: unset;
}

.project-request-page-intro {
    margin-bottom: 1.5rem;
}

#quote-form h3 {
    margin-bottom: 0.5rem;
}

#quote-form input[type="text"],
#quote-form input[type="email"],
#quote-form textarea,
#quote-form select {
    width: 100%;
    font-size: inherit;
    padding: 8px;
    margin-top: 4px;
    margin-bottom: 1rem;
    border-radius: 4px;
    background: #f1f1f1;
    border: 0;
}

#quote-form .alert-success {
    background: #e8f6ec;
    border: 1px solid #b8dfc2;
    color: #1f5f34;
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 4px;
}

#quote-form .text-danger {
    display: block;
    margin-top: -12px;
    margin-bottom: 12px;
    color: #b42318;
}

.project-request-page {
    padding: 7rem 0 4rem;
}

.project-request-shell {
    max-width: 1120px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 59, 88, 0.12);
    overflow: hidden;
}

.project-request-header {
    padding: 2.5rem 2.5rem 1.25rem;
    background: linear-gradient(135deg, #003b58 0%, #0a6fa0 100%);
    color: #ffffff;
}

.project-request-header h1,
.project-request-header h2 {
    color: #ffffff;
    font-style: normal;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.project-request-header p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.88);
}

.project-request-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 2.5rem 0;
    flex-wrap: wrap;
}

.project-request-count {
    color: #5d6b75;
    font-size: 0.95rem;
}

.project-request-body {
    padding: 2rem 2.5rem 2.5rem;
}

.project-request-card {
    background: #ffffff;
    border: 0;
    border-radius: 4px;
    padding: 0;
}

.project-request-card + .project-request-card {
    margin-top: 1.5rem;
}

.project-request-card h3 {
    color: inherit;
    margin-bottom: 0.5rem;
}

.project-request-card p {
    color: inherit;
}

.project-request-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1.2rem;
    border-radius: 4px;
    border: 0;
    background: rgb(24 155 215);
    color: #ffffff;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    transition: opacity 100ms;
}

.project-request-btn:hover,
.project-request-btn:focus {
    color: #ffffff;
    opacity: 0.92;
}

.btn.project-request-btn-secondary {
    background: #d9d9d9 !important;
    color: #163040 !important;
}

    .btn.project-request-btn-secondary:hover,
    .btn.project-request-btn-secondary:focus {
        background: #cfcfcf !important;
        color: #163040 !important;
    }

.btn.project-request-btn-danger {
    background: #b42318 !important;
}

    .btn.project-request-btn-danger:hover,
    .btn.project-request-btn-danger:focus {
        background: #8f1c13 !important;
    }

.project-request-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.project-request-alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.project-request-alert-danger {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
}

.project-request-alert-success {
    background: #f2fbf3;
    border: 1px solid #b8dfbd;
    color: #21642b;
}

.project-request-alert-warning {
    background: #fffaeb;
    border: 1px solid #fedf89;
    color: #b54708;
}

.project-request-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}



.project-request-field-full {
    grid-column: 1 / -1;
}

.project-request-form-section {
    padding-top: 0.5rem;
}

.project-request-form-section h4 {
    margin-bottom: 0.35rem;
}

.project-request-form-section p {
    margin-bottom: 0;
    color: #5d6b75;
}

.project-request-field label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 400;
    color: inherit;
}

.project-request-field input,
.project-request-field select,
.project-request-field textarea {
    width: 100%;
    font-size: inherit;
    padding: 8px;
    margin-top: 4px;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 0;
    background: #f1f1f1;
    font-size: 1rem;
    color: inherit;
}

.project-request-field textarea {
    resize: vertical;
    min-height: 140px;
}

.project-request-field .text-danger {
    display: block;
    margin-top: -12px;
    margin-bottom: 12px;
    color: #b42318;
}



.project-request-checkbox-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.project-request-checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.project-request-table-wrap {
    overflow-x: auto;
    max-height: min(70vh, 900px);
    border-bottom: 1px solid #dbe4ea;
    border-radius: 8px;
    background: #ffffff;
    position: relative;
}

.project-request-table {
    width: 100%;
    min-width: 1360px;
    border-collapse: separate;
    border-spacing: 0;
}

.project-request-table thead th {
    text-align: left;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5d6b75;
    border-bottom: 1px solid #dbe4ea;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 1rem 0.8rem;
}

.project-request-table tbody td {
    border-bottom: 1px solid #e8eef2;
    vertical-align: top;
    padding: 0.8rem;
    background: #ffffff;
}

.project-request-table tbody tr:last-child td {
    border-bottom: 0;
}

.project-request-table th:last-child,
.project-request-table td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #ffffff;
    box-shadow: -1px 0 0 #dbe4ea;
}

.project-request-table thead th:last-child {
    z-index: 4;
}

body.project-request-modal-open .project-request-table thead th,
body.project-request-modal-open .project-request-table th:last-child,
body.project-request-modal-open .project-request-table td:last-child {
    z-index: 0;
}

.project-request-table tbody tr:nth-child(even) td {
    background: #fcfdff;
}

.project-request-table tbody tr:nth-child(even) td:last-child {
    background: #fcfdff;
}

.project-request-contact {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.project-request-muted {
    color: #667782;
    font-size: 0.95rem;
}

.project-request-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 140px;
}

.project-request-latest-comment-snippet {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-request-row-actions a {
/*    color: #003b58;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;*/
}

.project-request-row-actions button {
    border: 0;
    cursor: pointer;
}

.project-request-toolbar-grid {
    padding: 0;
    margin-bottom: 1rem;
}

.project-request-toolbar-search {
    flex: 1 1 420px;
}

.project-request-toolbar-label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
    color: #003b58;
}

.project-request-toolbar-meta {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.project-request-filter-input {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 0.9rem;
    border: 1px solid #d0d9df;
    border-radius: 6px;
    background: #ffffff;
    font-size: 1rem;
}

.project-request-filter-clear {
    border: 0;
    cursor: pointer;
}

.project-request-empty-filter td {
    text-align: center;
    padding: 1.25rem;
}

.project-request-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.project-request-detail-item {
    background: #f1f1f1;
    border: 0;
    border-radius: 0.25rem;
    padding: 8px;
}

.project-request-detail-item-full {
    grid-column: 1 / -1;
}

.project-request-detail-label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1rem;
    font-weight: 400;
    color: inherit;
}

.project-request-detail-value {
    display: block;
    color: #163040;
}

.project-request-preserve-breaks {
    white-space: pre-wrap;
}

.project-request-comment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-request-comment-item {
 
    border-bottom: 1px solid #dedede;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.project-request-comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.project-request-comment-body {
    color: #163040;
}

.project-request-comment-empty {
    padding: 1rem;
    border-radius: 4px;
    background: #f7f7f7;
    color: #667782;
}

.project-request-comment-form {
    margin-top: 1.5rem;
}

.project-request-modal-open {
    overflow: hidden;
}

.project-request-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.project-request-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.project-request-modal-dialog {
    position: relative;
    width: min(1180px, calc(100vw - 3rem));
    max-width: none;
    margin: 4vh auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.project-request-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #dbe4ea;
}

.project-request-modal-header h3 {
    margin: 0;
}

.project-request-modal-close {
    border: 0;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    color: #5d6b75;
    cursor: pointer;
    padding: 0;
}

.project-request-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
}

.project-request-checkbox-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 1rem;
    margin-bottom: 2rem;
}

.project-request-dealer-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.project-request-dealer-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem;
    border: 1px solid #dbe4ea;
    border-radius: 6px;
    cursor: pointer;
}

.project-request-dealer-option > span {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

@media (max-width: 900px) {
    .project-request-form-grid,
    .project-request-detail-grid {
        grid-template-columns: 1fr;
    }

    .project-request-detail-item-full,
    .project-request-field-full {
        grid-column: auto;
    }

    .project-request-table-wrap {
        max-height: none;
    }

    .project-request-table {
        min-width: 980px;
    }

    .project-request-checkbox-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-request-modal-dialog {
        width: min(760px, calc(100vw - 2rem));
        margin: 2vh auto;
        max-height: 96vh;
    }

    .project-request-dealer-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .project-request-checkbox-group {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
