/* ============================================================
   YTT.Web - Site Styles
   ============================================================ */

/* ---- Root Variables ---- */
:root {
    --ytt-primary: #0d6efd;
    --ytt-primary-dark: #0a58ca;
    --ytt-success: #198754;
    --ytt-warning: #ffc107;
    --ytt-info: #0dcaf0;
    --ytt-danger: #dc3545;
    --ytt-bg: #f4f6f9;
    --ytt-surface: #ffffff;
    --ytt-border: #e2e8f0;
    --ytt-text: #0f172a;
    --ytt-text-muted: #64748b;
    --ytt-card-shadow: 0 0.125rem 0.25rem rgba(15, 23, 42, 0.06);
    --ytt-card-shadow-hover: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.1);
    --ytt-radius: 0.5rem;
    --ytt-radius-lg: 0.75rem;
    --ytt-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---- Global ---- */
html {
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--ytt-bg);
    color: var(--ytt-text);
    font-family: var(--ytt-font);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.ytt-skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10001;
    padding: 0.5rem 1rem;
    background: var(--ytt-primary);
    color: #fff;
    border-radius: 0 0 var(--ytt-radius) var(--ytt-radius);
    text-decoration: none;
    font-weight: 600;
}

.ytt-skip-link:focus {
    top: 0;
    color: #fff;
}

main {
    flex: 1;
}

/* ---- Navbar ---- */
.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    font-weight: 700;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease;
}

.navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.navbar-dark .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
}

/* ---- Sticky Page Header ---- */
.ytt-sticky-page-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: var(--ytt-bg);
    padding: 0.5rem 0;
}

.ytt-sticky-grid-header {
    position: sticky;
    top: 3.25rem;
    z-index: 1015;
    background-color: #fff;
    padding: 0.35rem 0;
}

/* ---- Cards ---- */
.card {
    border-radius: var(--ytt-radius);
    box-shadow: var(--ytt-card-shadow);
    border-color: var(--ytt-border);
}

.card-interactive,
.action-box,
.stat-card-link .stat-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-interactive:hover,
a:hover .action-box,
.stat-card-link:hover .stat-card {
    transform: translateY(-2px);
    box-shadow: var(--ytt-card-shadow-hover);
}

.card-form {
    box-shadow: var(--ytt-card-shadow);
}

.card-form:hover {
    transform: none;
    box-shadow: var(--ytt-card-shadow);
}

.card-panel {
    background: var(--ytt-surface);
    border: 1px solid var(--ytt-border);
    border-radius: var(--ytt-radius-lg);
}

/* ---- Buttons ---- */
.btn {
    border-radius: 0.375rem;
}

.btn-lg {
    padding: 0.65rem 1.25rem;
}

/* ---- Form Inputs ---- */
.form-control:focus,
.form-select:focus {
    border-color: var(--ytt-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* ---- Validation Styles ---- */
.form-control.is-invalid,
.form-check-input.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid,
.form-check-input.is-valid {
    border-color: #198754;
}

.ytt-val-error {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 0.25rem;
}

/* Input group validation border fix */
.input-group .form-control.is-invalid {
    z-index: 1;
}

.input-group .form-control.is-valid {
    z-index: 1;
}

/* Required field asterisk */
label .text-danger {
    font-weight: bold;
}

/* ---- Toggle Password Button ---- */
.btn-toggle-password {
    border-color: #dee2e6;
    color: #6c757d;
}

.btn-toggle-password:hover {
    color: #0d6efd;
    border-color: #0d6efd;
}

/* ---- Multi-step Form ---- */
.step-section {
    display: none;
}

.step-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Editable Toggle Fields (Account Page) ---- */
.field-readonly .form-control {
    background-color: #e9ecef;
    cursor: default;
}

.field-readonly .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

/* ---- Social Login Buttons ---- */
.btn-google {
    background-color: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #c6c8ca;
}

.btn-google img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* ---- Divider ---- */
.divider-text {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.divider-text span {
    padding: 0 0.75rem;
    color: #6c757d;
    font-size: 0.875rem;
}

/* ---- Loading spinner ---- */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-overlay.d-none {
    display: none !important;
}

/* ---- Toast Notifications ---- */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
}

/* ---- Footer ---- */
.ytt-site-footer {
    background-color: var(--ytt-surface);
    border-top: 1px solid var(--ytt-border);
    margin-top: auto;
}

.ytt-site-footer a {
    color: var(--ytt-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.ytt-site-footer a:hover {
    color: var(--ytt-primary);
}

.ytt-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin-bottom: 0.5rem;
}

.ytt-footer-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--ytt-border);
}

.ytt-footer-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--ytt-text-muted);
    font-size: 0.8125rem;
}

/* ---- Hero / Landing ---- */
.ytt-hero {
    padding: 2.5rem 0 1.5rem;
}

.ytt-hero-lead {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(13, 110, 253, 0.08);
    color: var(--ytt-primary-dark);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ---- Filing Progress Stepper ---- */
.ytt-filing-progress {
    background: var(--ytt-surface);
    border: 1px solid var(--ytt-border);
    border-radius: var(--ytt-radius-lg);
    padding: 1rem 1.25rem;
    overflow-x: auto;
}

.ytt-filing-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 36rem;
    gap: 0.25rem;
}

.ytt-filing-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    min-width: 0;
}

.ytt-filing-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.1rem;
    left: calc(50% + 1.25rem);
    width: calc(100% - 2.5rem);
    height: 2px;
    background: var(--ytt-border);
    z-index: 0;
}

.ytt-filing-step.completed:not(:last-child)::after {
    background: var(--ytt-success);
}

.ytt-filing-step-marker {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: var(--ytt-bg);
    border: 2px solid var(--ytt-border);
    color: var(--ytt-text-muted);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.ytt-filing-step.completed .ytt-filing-step-marker {
    background: var(--ytt-success);
    border-color: var(--ytt-success);
    color: #fff;
}

.ytt-filing-step.active .ytt-filing-step-marker {
    background: var(--ytt-primary);
    border-color: var(--ytt-primary);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.ytt-filing-step-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ytt-text-muted);
    margin-top: 0.4rem;
    line-height: 1.2;
}

.ytt-filing-step.active .ytt-filing-step-label {
    color: var(--ytt-primary);
}

.ytt-filing-step.completed .ytt-filing-step-label {
    color: var(--ytt-success);
}

/* Clickable step (a step the user has data for) — keep the column layout of the li. */
.ytt-filing-step-anchor {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.ytt-filing-step-anchor:hover .ytt-filing-step-marker {
    border-color: var(--ytt-primary);
    color: var(--ytt-primary);
}

.ytt-filing-step.completed .ytt-filing-step-anchor:hover .ytt-filing-step-marker {
    color: #fff;
    filter: brightness(1.05);
}

.ytt-filing-step-anchor:hover .ytt-filing-step-label {
    color: var(--ytt-primary);
    text-decoration: underline;
}

/* ---- Page headings ---- */
.ytt-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ytt-text);
    margin: 0;
}

.ytt-page-subtitle {
    color: var(--ytt-text-muted);
    font-size: 0.9375rem;
    margin: 0.25rem 0 0;
}

/* ---- Empty / Error states ---- */
.ytt-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--ytt-text-muted);
}

.ytt-empty-state i {
    font-size: 3rem;
    color: var(--ytt-border);
    display: block;
    margin-bottom: 0.75rem;
}

.ytt-error-page {
    max-width: 32rem;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 1rem;
}

.ytt-error-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    color: var(--ytt-danger);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

/* ---- Responsive ---- */
@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .ytt-filing-step-label {
        font-size: 0.625rem;
    }

    .ytt-filing-step-marker {
        width: 1.85rem;
        height: 1.85rem;
        font-size: 0.75rem;
    }

    .ytt-filing-steps {
        min-width: 28rem;
    }
}

/* ---- VIN Information Page ---- */
#vinInformationPage .vin-entry-shell {
    border-radius: 0.6rem;
}

#vinInformationPage .vin-side-panel {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

#vinInformationPage .vin-side-panel-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.45rem;
}

#vinInformationPage .vin-side-panel .form-check-label {
    font-size: 0.92rem;
}

#vinInformationPage .vin-form-actions {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

#vinInformationPage #btnSaveVin,
#vinInformationPage #btnCancelVinEdit {
    min-width: 92px;
}

@media (max-width: 1199.98px) {
    #vinInformationPage .vin-side-panel {
        margin-top: 0.25rem;
    }
}

@media (max-width: 575.98px) {
    #vinInformationPage .vin-form-actions {
        justify-content: stretch;
    }

    #vinInformationPage #btnSaveVin,
    #vinInformationPage #btnCancelVinEdit {
        flex: 1;
    }
}

/* ---- Service Payment Page ---- */
#servicePaymentPage .service-payment-card {
    border-radius: 0.75rem;
}

#servicePaymentPage .service-payment-lock-badge {
    background: #eef4ff;
    color: #1f5fbf;
    border: 1px solid #d8e7ff;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
}

#servicePaymentPage .service-payment-summary {
    border: 1px solid #e9ecef;
    border-radius: 0.65rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    padding: 0.95rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

#servicePaymentPage .summary-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    font-weight: 700;
}

#servicePaymentPage .summary-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #212529;
}

#servicePaymentPage .summary-fee {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ytt-primary);
}

#servicePaymentPage .service-payment-section {
    border: 1px solid #ebeff5;
    border-radius: 0.65rem;
    padding: 1rem;
    background-color: #fff;
}

#servicePaymentPage .service-payment-section + .service-payment-section {
    margin-top: 1rem;
}

#servicePaymentPage .service-payment-section-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

#servicePaymentPage .service-payment-actions {
    border-top: 1px solid #dee2e6;
    margin-top: 1.25rem;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

/* ---- Service Payment Success Page ---- */
#servicePaymentSuccessPage .service-payment-success-card {
    border-radius: 0.75rem;
}

#servicePaymentSuccessPage .service-payment-success-icon {
    font-size: 4rem;
    color: #198754;
    line-height: 1;
}

#servicePaymentSuccessPage .service-payment-success-summary {
    border: 1px solid #d1e7dd;
    border-radius: 0.65rem;
    background: linear-gradient(180deg, #ffffff 0%, #f6fff9 100%);
    padding: 1rem 1.1rem;
}

#servicePaymentSuccessPage .summary-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    font-weight: 700;
}

#servicePaymentSuccessPage .summary-value {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    word-break: break-word;
}

#servicePaymentSuccessPage .service-payment-success-actions {
    border-top: 1px solid #dee2e6;
    padding-top: 1.25rem;
}

/* ---- Dashboard AI Chat ---- */
#aiFilingAssistant .card-header:hover {
    background-color: #f8f9fa;
}

#aiFilingAssistant .card:hover {
    transform: none;
}

.ai-chat-messages {
    height: 360px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    background: #fff;
}

.ai-chat-message {
    display: flex;
    margin-bottom: 0.75rem;
}

.ai-chat-message-user {
    justify-content: flex-end;
}

.ai-chat-message-bot {
    justify-content: flex-start;
}

.ai-chat-bubble {
    max-width: 85%;
    padding: 0.6rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.45;
    word-break: break-word;
}

.ai-chat-message-user .ai-chat-bubble {
    background: #e7f1ff;
    color: #0d47a1;
    border-bottom-right-radius: 0.2rem;
}

.ai-chat-message-bot .ai-chat-bubble {
    background: #eef7ee;
    color: #1b5e20;
    border-bottom-left-radius: 0.2rem;
}

.ai-chat-summary-card {
    background: linear-gradient(145deg, #ffffff 0%, #f3faf4 55%, #e8f5e9 100%);
    border: 1px solid #c8e6c9;
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
    max-width: 100%;
    box-shadow: 0 0.35rem 1rem rgba(27, 94, 32, 0.08);
}

.ai-chat-summary-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.ai-chat-summary-header > i {
    font-size: 1.75rem;
    color: #2e7d32;
}

.ai-chat-summary-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1b5e20;
}

.ai-chat-summary-subtitle {
    font-size: 0.82rem;
    color: #558b2f;
}

.ai-chat-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.ai-chat-summary-field {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 0.5rem 0.65rem;
}

.ai-chat-summary-field-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.ai-chat-summary-field-value {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #212529;
    word-break: break-word;
}

.ai-chat-summary-footer {
    border-top: 1px solid #dcedc8;
    padding-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

.ai-chat-summary-tax-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    font-weight: 700;
}

.ai-chat-summary-tax-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0d6efd;
    line-height: 1.1;
}

.ai-chat-summary-ref {
    font-size: 0.8rem;
    color: #6c757d;
}

.ai-chat-complete-panel {
    background: linear-gradient(90deg, #e8f5e9 0%, #f1f8ff 100%);
    border: 1px solid #c8e6c9;
    border-radius: 0.75rem;
    padding: 1rem 1.15rem;
}

.ai-chat-complete-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #2e7d32;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.ai-chat-tax-badge {
    background: #e7f1ff !important;
    color: #0d47a1 !important;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .ai-chat-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- AI Chat vehicle inventory grid (inside message thread) ---- */
.ai-chat-message-vehicles {
    width: 100%;
}

.ai-chat-message-vehicles .ai-chat-vehicle-grid {
    max-width: 100%;
    width: 100%;
}

.ai-chat-vehicle-grid {
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.06);
}

.ai-chat-vehicle-grid-header {
    padding: 0.75rem 1rem;
    background: linear-gradient(90deg, #f8f9fa 0%, #e7f1ff 100%);
    border-bottom: 1px solid #dee2e6;
}

.ai-chat-vehicle-table-wrap {
    max-height: 280px;
}

.ai-chat-vehicle-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.ai-chat-vehicle-table td {
    font-size: 0.85rem;
}

.ai-chat-vehicle-grid-empty {
    padding: 1.25rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.ai-chat-vehicle-grid-empty i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.35rem;
    color: var(--ytt-primary);
}

.ai-chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ai-chat-quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}

.ai-chat-quick-chip-primary {
    background: #e7f1ff;
    color: #0d47a1;
    border: 1px solid #cfe2ff;
}

.ai-chat-quick-chip-warning {
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffe082;
}

.ai-chat-quick-chip-info {
    background: #e0f7fa;
    color: #006064;
    border: 1px solid #b2ebf2;
}

.ai-chat-quick-chip-success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.ai-chat-quick-chip:hover {
    filter: brightness(0.97);
}

.ai-chat-suggestion-item.ai-chat-suggestion-action {
    border-left: 3px solid var(--ytt-primary);
}

.ai-chat-suggestion-item.ai-chat-suggestion-action .ai-chat-suggestion-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ai-chat-upload-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ai-chat-upload-preview {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    font-size: 0.875rem;
}

.ai-chat-upload-preview strong {
    color: var(--bs-primary);
}

.ai-chat-input-wrap .position-relative {
    min-width: 0;
}

.ai-chat-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    margin-bottom: 0.25rem;
    max-height: min(50vh, 420px);
    overflow-y: auto;
    z-index: 1050;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

.ai-chat-suggestion-item {
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem;
    border-left: none;
    border-right: none;
}

.ai-chat-suggestion-item:first-child {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.ai-chat-suggestion-item:last-child {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.ai-chat-suggestion-item.active,
.ai-chat-suggestion-item:hover {
    background-color: #e7f1ff;
    color: #0d47a1;
}

.ai-chat-suggestion-label {
    font-weight: 500;
}

.ai-chat-suggestion-meta {
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

#aiFilingAssistant th.sortable,
#filingsTable th.sortable {
    cursor: pointer;
    user-select: none;
}

#filingsTable th.sorting-asc::after {
    content: ' \25B2';
    font-size: 0.65em;
}

#filingsTable th.sorting-desc::after {
    content: ' \25BC';
    font-size: 0.65em;
}

.action-box {
    border-left: 4px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.action-box-new {
    border-left-color: var(--ytt-primary) !important;
}

.action-box-amend {
    border-left-color: #ffc107 !important;
}

.action-box-vin {
    border-left-color: var(--ytt-info) !important;
}

.action-box-8849 {
    border-left-color: var(--ytt-success) !important;
}

.action-icon-wrap {
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.08);
}

.action-box-amend .action-icon-wrap {
    background: rgba(255, 193, 7, 0.12);
}

.action-box-vin .action-icon-wrap {
    background: rgba(13, 202, 240, 0.12);
}

.action-box-8849 .action-icon-wrap {
    background: rgba(25, 135, 84, 0.1);
}

.action-box-new .action-icon-wrap .bi,
.action-box-new .action-icon-wrap {
    color: var(--ytt-primary);
}

.action-box .display-4 {
    font-size: 2rem;
    margin: 0;
}

@media (max-width: 767.98px) {
    #servicePaymentPage .service-payment-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    #servicePaymentPage .summary-item.text-end {
        text-align: left !important;
    }

    #servicePaymentPage .service-payment-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    #servicePaymentPage .service-payment-actions .btn {
        width: 100%;
    }
}
