.client-portal-section {
    background-color: #eef1f4;
    color: #18202a;
    min-height: 70vh;
    padding-block: clamp(4rem, 8vw, 7rem);
}

.client-login-card {
    background-color: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 0.75rem;
    box-shadow: 0 0.85rem 2rem rgba(15, 23, 42, 0.16);
    margin-inline: auto;
    max-width: 34rem;
    padding: clamp(2rem, 5vw, 3.5rem);
}

.client-login-heading {
    margin-bottom: 2rem;
    text-align: center;
}

.client-login-heading h1,
.client-portal-header h1,
.client-portal-actions h2,
.client-empty-state h2 {
    color: #13293d;
    font-weight: 700;
}

.client-login-heading p,
.client-portal-header p,
.client-portal-actions p,
.client-empty-state p {
    color: #4b5563;
}

.client-portal-label {
    color: #217ba3 !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.client-login-help {
    border-top: 1px solid #d9e0e7;
    color: #4b5563;
    font-size: 0.95rem;
    margin-bottom: 0;
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}

.client-portal-header,
.client-portal-actions {
    align-items: center;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.client-portal-header {
    border-bottom: 1px solid #d9e0e7;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
}

.client-portal-header p,
.client-portal-actions p {
    margin-bottom: 0;
}

.client-portal-actions {
    margin-bottom: 1.5rem;
}

.client-ticket-panel {
    background-color: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 0.75rem;
    box-shadow: 0 0.85rem 2rem rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.client-ticket-panel .table {
    --bs-table-bg: #ffffff;
    --bs-table-color: #18202a;
    --bs-table-border-color: #d9e0e7;
}

.client-ticket-panel thead th {
    background-color: #eef3f7;
    color: #13293d;
    font-weight: 700;
    padding: 1rem 1.25rem;
}

.client-ticket-panel tbody td {
    padding: 1rem 1.25rem;
}

.client-empty-state {
    padding: clamp(3rem, 7vw, 5rem);
    text-align: center;
}

.client-empty-state h2 {
    font-size: 1.5rem;
}

.client-empty-state p {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .client-portal-header,
    .client-portal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .client-portal-header form,
    .client-portal-header button,
    .client-portal-actions button {
        width: 100%;
    }
}

.client-request-form-card {
    background-color: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 0.75rem;
    box-shadow: 0 0.85rem 2rem rgba(15, 23, 42, 0.12);
    color: #18202a;
    margin-inline: auto;
    max-width: 52rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.client-form-field + .client-form-field {
    margin-top: 1.5rem;
}

.client-form-field .form-label {
    color: #13293d;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.client-form-field .form-control {
    background-color: #ffffff;
    border-color: #b9c5d1;
    color: #18202a;
}

.client-form-field .form-control:focus {
    border-color: #217ba3;
    box-shadow: 0 0 0 0.25rem rgba(33, 123, 163, 0.18);
}

.client-form-field textarea {
    min-height: 12rem;
    resize: vertical;
}

.client-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.client-portal-messages {
    margin-bottom: 1.5rem;
}


.client-ticket-summary {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 2rem;
}

.client-ticket-summary > div {
    background-color: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 0.75rem;
    box-shadow: 0 0.6rem 1.5rem rgba(15, 23, 42, 0.08);
    padding: 1.25rem;
}

.client-summary-label {
    color: #4b6478;
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.client-ticket-conversation {
    margin-inline: auto;
    max-width: 60rem;
}

.client-ticket-conversation > h2 {
    color: #13293d;
    margin-bottom: 1.25rem;
}

.client-followup {
    background-color: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 0.75rem;
    box-shadow: 0 0.6rem 1.5rem rgba(15, 23, 42, 0.08);
    color: #18202a;
    padding: 1.5rem;
}

.client-followup + .client-followup {
    margin-top: 1rem;
}

.client-followup-header {
    align-items: flex-start;
    border-bottom: 1px solid #e2e8ee;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.client-followup-header span {
    color: #4b6478;
    display: block;
    font-size: 0.9rem;
}

.client-followup-header time {
    color: #4b6478;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.client-followup-comment p:last-child {
    margin-bottom: 0;
}

.client-followup-attachments {
    border-top: 1px solid #e2e8ee;
    margin-top: 1rem;
    padding-top: 1rem;
}

.client-followup-attachments ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.client-followup-attachments li {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-block: 0.35rem;
}

@media (max-width: 767.98px) {
    .client-ticket-summary {
        grid-template-columns: 1fr;
    }

    .client-followup-header {
        display: block;
    }

    .client-followup-header time {
        display: block;
        margin-top: 0.35rem;
    }
}

.client-ticket-subject {
    min-width: 18rem;
    width: 45%;
}

.client-ticket-subject strong {
    color: var(--lc-light-heading, #13293d);
    display: block;
    font-weight: 700;
}

.client-ticket-preview {
    color: #4b5563;
    display: -webkit-box;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.45;
    margin-top: 0.4rem;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.client-ticket-link {
    color: var(--lc-light-heading, #13293d);
    text-decoration: none;
}

.client-ticket-link:hover {
    color: var(--lc-card-accent, #217ba3);
    text-decoration: underline;
}

.client-ticket-link:focus-visible {
    border-radius: 0.2rem;
    outline: 3px solid var(--lc-card-accent, #217ba3);
    outline-offset: 0.2rem;
}

.client-ticket-title {
    display: inline-block;
    font-weight: 700;
}

.client-ticket-resolution {
    background-color: #f0f7f3;
    border: 1px solid #b8d8c5;
    border-left: 0.3rem solid #238052;
    border-radius: 0.65rem;
    color: var(--lc-light-text, #18202a);
    margin-bottom: 2rem;
    padding: 1.5rem 1.75rem;
}

.client-ticket-resolution h2 {
    color: var(--lc-light-heading, #13293d);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.client-ticket-resolution-text > :last-child {
    margin-bottom: 0;
}


