html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #984214;
}

.btn-primary,
.btn-secondary,
.btn:not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-link):not(.btn-outline-primary) {
    color: #1f1a16;
    background-color: rgba(242, 107, 33, 0.14);
    border-color: rgba(242, 107, 33, 0.14);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn:not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-link):not(.btn-outline-primary):hover {
    color: #1f1a16;
    background-color: rgba(242, 107, 33, 0.22);
    border-color: rgba(242, 107, 33, 0.22);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #f26b21;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.dashboard-hero {
    background: #f7f3ee;
    border-left: 6px solid #f26b21;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.home-logo {
    margin: .5rem auto 1.75rem;
    max-width: 760px;
    text-align: center;
}

.home-logo img {
    display: block;
    height: auto;
    margin: 0 auto;
    max-height: 300px;
    max-width: 100%;
}

.dashboard-hero h1 {
    font-size: 2.4rem;
    margin: 0 0 .5rem;
}

.eyebrow {
    color: #9b4a1a;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06rem;
    margin: 0 0 .35rem;
    text-transform: uppercase;
}

.action-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.auth-action-grid {
    gap: 1.5rem;
    margin: .75rem 0 2rem;
}

.action-card {
    border: 1px solid #ddd7d0;
    border-radius: 8px;
    color: #222;
    display: grid;
    gap: .45rem;
    padding: 1rem;
    text-decoration: none;
}

.action-card:hover {
    border-color: #f26b21;
    color: #111;
}

.action-card span {
    color: #5f5f5f;
}

.page-heading {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 1rem;
}

.form-grid label,
.full-field {
    color: #333;
    display: grid;
    font-weight: 600;
    gap: .35rem;
}

.full-field {
    margin-bottom: 1rem;
}

.form-control {
    font-weight: 400;
}

.field-label-row {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: .28rem .45rem;
    min-width: 0;
}

.previous-report-value {
    display: block;
    flex-basis: 100%;
    color: #685c51;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    margin-left: 0;
}

.follow-up-report-info {
    margin-bottom: 1rem;
}

.follow-up-report-info p {
    margin: .35rem 0 0;
}

.report-editor-history {
    display: grid;
    gap: .5rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.report-editor-history-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .35rem 1rem;
    padding: .75rem 1rem;
    border: 1px solid #ddcdbc;
    border-radius: 10px;
}

.report-editor-history-item.is-current {
    background: #f7f3ee;
    border-color: #a9957f;
}

.report-editor-history-number {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .75rem;
}

.report-editor-history-current {
    color: #5b4433;
    font-size: .75rem;
}

.report-editor-history-date {
    color: #665b52;
    font-size: .85rem;
}

.field-label-text {
    color: inherit;
    font: inherit;
}

.field-label-hint {
    color: #5b3b27;
    font-size: .72rem;
    font-weight: 500;
}

.manual-value-card .field-label-hint {
    color: #c62828;
    font-weight: 700;
}

.field-label-row .validation-message {
    color: #e50000;
    font-size: .72rem;
    font-weight: 700;
}

.report-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 14px 28px rgba(65, 44, 29, .16);
    margin-bottom: 1.5rem;
    padding: 1.6rem 1.5rem 1.35rem;
}

.report-card h2 {
    color: #111;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
}

.report-card-title {
    align-items: center;
    display: flex;
    gap: .45rem;
}

.report-section-summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    list-style: none;
    user-select: none;
}

.report-section-summary::-webkit-details-marker {
    display: none;
}

.report-section-summary::marker {
    content: "";
}

.report-section[open] > .report-section-summary {
    margin-bottom: 1.25rem;
}

.report-section-title {
    color: #111;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
}

.report-section-toggle {
    align-items: center;
    display: inline-flex;
    flex: 0 0 2.5rem;
    font-size: 2.25rem;
    font-weight: 500;
    height: 2.5rem;
    justify-content: center;
    line-height: 1;
}

.report-section-toggle::before {
    content: "+";
}

.report-section[open] > .report-section-summary .report-section-toggle::before {
    content: "−";
}

.report-section-summary:focus-visible {
    border-radius: 8px;
    outline: 3px solid rgba(242, 107, 33, .45);
    outline-offset: 4px;
}

.report-photo-intro p,
.photo-save-hint {
    color: #5e5a56;
    margin: 0 0 1rem;
}

.photo-save-hint {
    background: #f7f5f2;
    border-radius: 8px;
    padding: 1rem;
}

.photo-upload-status {
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: .8rem 1rem;
}

.photo-upload-status-error,
.photo-cropper-error {
    background: #fff0ef;
    color: #9c261d;
}

.photo-upload-status-success {
    background: #edf8f0;
    color: #216b35;
}

.report-photo-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

.report-photo-card {
    min-width: 0;
    position: relative;
}

.report-photo-preview-trigger {
    background: transparent;
    border: 0;
    border-radius: 10px 10px 0 0;
    cursor: zoom-in;
    inset: 0 0 auto;
    position: absolute;
    aspect-ratio: 4 / 3;
    width: 100%;
    z-index: 1;
}

.report-photo-preview-trigger:focus-visible {
    outline: 3px solid rgba(242, 107, 33, .6);
    outline-offset: 2px;
}

.report-photo-picker {
    border: 1px dashed #c0ae9e;
    border-radius: 10px;
    cursor: pointer;
    display: block;
    overflow: hidden;
    position: relative;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.report-photo-picker:hover {
    border-color: #f26b21;
}

.report-photo-picker:focus-within {
    border-color: #f26b21;
    box-shadow: 0 0 0 3px rgba(242, 107, 33, .25);
}

.report-photo-visual {
    aspect-ratio: 4 / 3;
    background: #fff;
    display: block;
    overflow: hidden;
    width: 100%;
}

.report-photo-visual img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.report-photo-placeholder {
    background-color: #fff;
    background-repeat: no-repeat;
    border: 1px dashed #c0ae9e;
    border-radius: 8px;
    box-sizing: border-box;
    display: block;
    height: calc(100% - 2.5rem);
    margin: 1.25rem;
    overflow: hidden;
    width: calc(100% - 2.5rem);
}

.placeholder-sheet-1 {
    background-image: url("images/report-photo-placeholders-01-ccr.png");
    background-size: 200% 200%;
}

.placeholder-sheet-1.placeholder-position-1 { background-position: 0 0; }
.placeholder-sheet-1.placeholder-position-2 { background-position: 100% 0; }
.placeholder-sheet-1.placeholder-position-3 { background-position: 0 100%; }
.placeholder-sheet-1.placeholder-position-4 { background-position: 100% 100%; }

.placeholder-sheet-2 {
    background-image: url("images/report-photo-placeholders-02-ccr.png");
    background-size: 200% 400%;
}

.placeholder-sheet-2.placeholder-position-1 { background-position: 0 0; }
.placeholder-sheet-2.placeholder-position-2 { background-position: 100% 0; }
.placeholder-sheet-2.placeholder-position-3 { background-position: 0 33.333%; }
.placeholder-sheet-2.placeholder-position-4 { background-position: 100% 33.333%; }
.placeholder-sheet-2.placeholder-position-5 { background-position: 0 66.667%; }
.placeholder-sheet-2.placeholder-position-6 { background-position: 100% 66.667%; }
.placeholder-sheet-2.placeholder-position-7 { background-position: 0 100%; }
.placeholder-sheet-2.placeholder-position-8 { background-position: 100% 100%; }

.placeholder-roof-open,
.placeholder-roof-closed {
    background-position: center;
    background-size: contain;
}

.placeholder-roof-open {
    background-image: url("images/report-photo-placeholder-roof-open.png");
}

.placeholder-roof-closed {
    background-image: url("images/report-photo-placeholder-roof-closed.png");
}

.report-photo-label {
    display: block;
    font-weight: 700;
    padding: .8rem .8rem .2rem;
}

.report-photo-action {
    color: #a94713;
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    padding: 0 3rem .8rem .8rem;
}

.photo-action-icon { width: 20px; height: 20px; flex-shrink: 0; }
.report-photo-delete { position: absolute; right: .5rem; bottom: .5rem; display: flex; align-items: center; justify-content: center; padding: .3rem; border: 0; border-radius: 4px; background: transparent; color: #79675b; cursor: pointer; }
.report-photo-delete:hover { color: #a12525; background: #fbeaea; }
.report-photo-delete:disabled { opacity: .4; cursor: default; }

.report-photo-input {
    height: 1px;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 1px;
}

.photo-cropper-backdrop {
    align-items: flex-end;
    background: rgba(0, 0, 0, .65);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 0;
    position: fixed;
    z-index: 2000;
}

.photo-cropper-dialog {
    background: #fff;
    border-radius: 14px 14px 0 0;
    max-height: 95vh;
    overflow: auto;
    padding: 1rem;
    width: 100%;
}

.photo-preview-backdrop {
    align-items: center;
    background: rgba(0, 0, 0, .72);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 2100;
}

.photo-preview-dialog {
    background: #fff;
    border-radius: 14px;
    max-height: calc(100vh - 2rem);
    max-width: min(1280px, 100%);
    overflow: auto;
    padding: 1rem;
    width: fit-content;
}

.photo-preview-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.photo-preview-heading h3 {
    font-size: 1.1rem;
    margin: 0;
}

.photo-preview-image {
    display: block;
    height: auto;
    max-height: calc(100vh - 7rem);
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.photo-cropper-heading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.photo-cropper-heading h3 {
    font-size: 1.25rem;
    margin: 0;
}

.photo-cropper-heading p {
    color: #5e5a56;
    margin: .35rem 0 1rem;
}

.photo-cropper-close {
    background: transparent;
    border: 0;
    font-size: 2rem;
    line-height: 1;
    padding: 0 .25rem;
}

.photo-cropper-stage {
    background: #202020;
    max-height: 60vh;
    overflow: hidden;
    width: 100%;
}

.photo-cropper-image {
    display: block;
    max-height: 60vh;
    max-width: 100%;
}

.photo-cropper-error {
    border-radius: 8px;
    margin: 1rem 0 0;
    padding: .75rem 1rem;
}

.photo-cropper-actions {
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr;
    margin-top: 1rem;
}

@media (min-width: 520px) {
    .report-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-cropper-actions {
        display: flex;
        justify-content: flex-end;
    }
}

@media (min-width: 820px) {
    .report-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .photo-cropper-backdrop {
        align-items: center;
        padding: 1.5rem;
    }

    .photo-cropper-dialog {
        border-radius: 14px;
        max-width: 920px;
        padding: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .report-photo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1500px) {
    .report-photo-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1920px) {
    .report-photo-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.vehicle-title-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9L18 10l-2-4H8l-2 4-2.5 1.1C2.7 11.4 2 12.1 2 13v3c0 .6.4 1 1 1h2'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
    display: inline-block;
    height: 1rem;
    width: 1rem;
}

.assessment-title-icon,
.finalized-report-title-icon,
.photo-title-icon,
.market-title-icon {
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
    display: inline-block;
    flex: 0 0 1rem;
    height: 1rem;
    width: 1rem;
}

.assessment-title-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cpath d='M9 4V2h6v2'/%3E%3Cpath d='m8 13 2.5 2.5L16 10'/%3E%3C/svg%3E");
}

.finalized-report-title-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='m9 15 2 2 4-4'/%3E%3C/svg%3E");
}

.photo-title-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4 16 7h4a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h4l1.5-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E");
}

.market-title-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m7 15 4-4 3 3 5-6'/%3E%3C/svg%3E");
}

.condition-title-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13'/%3E%3Cpath d='M8 12h13'/%3E%3Cpath d='M8 18h13'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
    display: inline-block;
    height: 1rem;
    width: 1rem;
}

.condition-grid {
    display: grid;
    gap: 1rem 1.25rem;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    margin-bottom: 2rem;
}

.condition-slider-field {
    color: #111;
    display: grid;
    font-size: .78rem;
    font-weight: 500;
    gap: .45rem;
}

.condition-slider-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.condition-slider-header strong {
    background: #fff7ea;
    border: 1px solid #ffd2a3;
    border-radius: 999px;
    color: #df4d10;
    font-size: .78rem;
    min-width: 2.3rem;
    padding: .1rem .45rem;
    text-align: center;
}

.condition-slider {
    accent-color: #f5bf21;
    appearance: none;
    background: linear-gradient(90deg, #2fb45f 0%, #f5d04c 50%, #e34835 100%);
    border-radius: 999px;
    height: .72rem;
    outline: none;
    width: 100%;
}

.condition-slider-wrap {
    display: grid;
    padding-bottom: 1.35rem;
    position: relative;
}

.condition-slider-indicator-track {
    height: .72rem;
    left: .55rem;
    pointer-events: none;
    position: absolute;
    right: .55rem;
    top: 0;
    z-index: 4;
}

.condition-slider-indicator {
    background: #fff;
    border: 2px solid #111;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    height: 1.25rem;
    pointer-events: none;
    position: absolute;
    top: -.27rem;
    transform: translateX(-50%);
    width: 1.25rem;
}

.condition-slider-marks {
    height: 2.1rem;
    left: .55rem;
    pointer-events: none;
    position: absolute;
    right: .55rem;
    top: 0;
    z-index: 3;
}

.condition-slider-marks button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #7a6758;
    cursor: pointer;
    display: grid;
    font-size: .62rem;
    grid-template-rows: .72rem auto;
    justify-items: center;
    min-width: 1.5rem;
    padding: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
}

.condition-slider-marks > span {
    align-items: center;
    color: #7a6758;
    display: grid;
    font-size: .62rem;
    grid-template-rows: .72rem auto;
    justify-items: center;
    min-width: 1.5rem;
    padding: 0;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
}

.condition-slider-marks button:hover,
.condition-slider-marks button:focus-visible {
    color: #df4d10;
}

.condition-slider-marks i {
    align-self: center;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, .22);
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    display: block;
    height: .34rem;
    width: .34rem;
}

.condition-slider-marks small {
    cursor: pointer;
    font-size: inherit;
    line-height: 1;
    margin-top: .2rem;
    padding: .15rem .25rem;
    pointer-events: auto;
    white-space: nowrap;
}

.condition-slider::-webkit-slider-thumb {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 50%;
    height: 1.25rem;
    width: 1.25rem;
}

.condition-slider::-moz-range-thumb {
    background: transparent;
    border: 0;
    border-radius: 50%;
    height: 1.25rem;
    width: 1.25rem;
}

.condition-summary {
    align-items: center;
    background: linear-gradient(135deg, #ff7a12 0%, #ff4b00 100%);
    border-radius: 12px;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr auto;
    margin: .75rem 0 1.25rem;
    padding: 1.1rem 1.25rem;
}

.condition-explanation-toggle {
    align-items: center;
    background: #f7f5f2;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    font-size: .86rem;
    font-weight: 600;
    gap: .65rem;
    margin: .75rem 0 1rem;
    padding: .75rem 1rem;
}

.condition-explanation-toggle .form-check-input {
    flex: 0 0 auto;
    height: 1.25rem;
    margin: 0;
    width: 2.4rem;
}

.condition-explanation-list {
    display: grid;
    gap: .65rem;
    margin-bottom: 1rem;
}

.condition-explanation-list article {
    background: #fff8ed;
    border-left: 4px solid #f26b21;
    border-radius: 8px;
    padding: .75rem .9rem;
}

.condition-explanation-list strong {
    display: block;
    font-size: .82rem;
    margin-bottom: .25rem;
}

.condition-explanation-list p {
    font-size: .8rem;
    line-height: 1.45;
    margin: 0;
}

.condition-summary span {
    font-size: .86rem;
    font-weight: 600;
}

.condition-summary strong {
    font-size: 1.35rem;
    line-height: 1;
}

.condition-summary small {
    grid-column: 2;
    text-align: right;
}

.condition-notes {
    background: #fff8ed;
    border: 1px solid #ffbc7b;
    border-radius: 12px;
    color: #151515;
    display: grid;
    gap: .35rem;
    padding: 1rem;
}

.condition-notes p {
    align-items: center;
    border-radius: 10px;
    display: flex;
    font-size: .78rem;
    gap: .75rem;
    justify-content: space-between;
    line-height: 1.45;
    margin: 0;
    padding: .55rem .75rem;
}

.condition-notes strong {
    color: #f15a18;
}

.condition-note-active {
    background: #ffe7c5;
}

.condition-note-copy {
    min-width: 0;
}

.condition-note-rating {
    background: #13c85a;
    border-radius: 999px;
    color: #fff;
    flex: 0 0 auto;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1;
    padding: .3rem .55rem;
}

.condition-note-rating-below {
    background: #ff3645;
}

.market-observation-card h2 {
    font-size: 1.55rem;
    margin-bottom: 2rem;
}

.market-values-panel {
    border: 1px solid #e4d8cb;
    border-radius: 14px;
    margin-bottom: 1.85rem;
    padding: 1.5rem 1.5rem 1.25rem;
}

.market-values-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    margin-bottom: 1rem;
}

.market-value-item {
    display: grid;
    gap: .75rem;
}

.market-value-item > .field-label-row {
    background: #f7f3ee;
    border-radius: 8px;
    color: #5b3b27;
    font-size: .86rem;
    font-weight: 500;
    padding: .62rem;
    text-align: center;
}

.market-value-item-active > .field-label-row {
    background: #ff6108;
    color: #fff;
    font-weight: 700;
}

.market-money-input {
    align-items: center;
    border: 1px solid #111;
    border-radius: 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    min-height: 3.15rem;
    padding: .35rem .8rem;
}

.market-value-item-active .market-money-input {
    border-color: #ff6108;
    box-shadow: 0 0 0 2px rgba(255, 97, 8, .15);
}

.market-money-input small {
    color: #5b3b27;
    font-size: .75rem;
}

.market-money-input input {
    border: 0;
    font-size: 1rem;
    min-width: 0;
    outline: 0;
    text-align: right;
}

.currency-input {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.3rem;
    min-width: 0;
}

.currency-input-spinner {
    border-left: 1px solid #ddcdbc;
    display: grid;
    grid-template-rows: 1fr 1fr;
    margin-left: .35rem;
}

.currency-input-spinner button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #5b3b27;
    cursor: pointer;
    display: flex;
    font-size: .72rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.currency-input-spinner button:hover,
.currency-input-spinner button:focus-visible {
    color: #ff6108;
    outline: none;
}

.market-values-panel p {
    color: #5b3b27;
    font-size: .78rem;
    line-height: 1.45;
    margin: 0;
}

.market-adjustment-control {
    display: grid;
    gap: .55rem;
    margin-top: .85rem;
}

.market-adjustment-header {
    align-items: center;
    color: #111;
    display: flex;
    font-size: .78rem;
    font-weight: 600;
    justify-content: space-between;
}

.market-adjustment-header strong {
    background: #fff7ea;
    border: 1px solid #ffd2a3;
    border-radius: 999px;
    color: #df4d10;
    min-width: 3.75rem;
    padding: .15rem .55rem;
    text-align: center;
}

.market-adjustment-slider-wrap {
    margin-top: .2rem;
}

.market-adjustment-condition-slider {
    background: linear-gradient(90deg, #e34835 0%, #f5d04c 50%, #2fb45f 100%);
}

.market-observation-text-grid {
    align-items: stretch;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
}

.market-observation-text-grid label,
.market-observation-text-grid .market-observation-editor {
    color: #111;
    display: grid;
    font-size: .86rem;
    font-weight: 500;
    gap: .7rem;
}

.market-observation-text-grid textarea.form-control {
    border: 1px solid #111;
    border-radius: 14px;
    height: 12rem;
    min-height: 12rem;
    padding: 1rem;
    resize: vertical;
}

.result-card h2 {
    margin-bottom: 1.75rem;
}

.result-title-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13a8 8 0 1 1 16 0'/%3E%3Cpath d='M12 13l4-4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
    display: inline-block;
    height: 1rem;
    width: 1rem;
}

.result-summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr 1fr;
    margin-bottom: 1.5rem;
}

.result-grade-card {
    background: linear-gradient(135deg, #ff6b0a 0%, #ff4b00 100%);
    border-radius: 12px;
    color: #fff;
    display: grid;
    min-height: 6.8rem;
    padding: 1.1rem;
}

.result-grade-card span {
    font-size: .78rem;
    font-weight: 600;
}

.result-grade-card strong {
    font-size: 1.75rem;
    line-height: 1;
}

.result-grade-card small,
.result-grade-card em {
    font-size: .75rem;
    font-style: normal;
}

.result-value-card {
    background: #f7f0e7;
    border-radius: 12px;
    color: #111;
    display: grid;
    font-size: .85rem;
    font-weight: 500;
    gap: .65rem;
    padding: 1rem;
}

.result-value-card > small {
    color: #5b3b27;
    font-size: .72rem;
}

.result-editor {
    display: grid;
    gap: .7rem;
    margin-bottom: 2rem;
}

.result-editor > span {
    font-size: .86rem;
    font-weight: 600;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.result-text-block-row {
    align-items: center;
    gap: .45rem;
}

.result-text-block-additional-action {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.report-analysis-toggle,
.report-analysis-toggle .form-check-input,
.condition-explanation-toggle,
.condition-explanation-toggle .form-check-input {
    cursor: pointer;
}

.report-analysis-toggle .form-check-input:checked,
.condition-explanation-toggle .form-check-input:checked {
    background-color: #f26b21;
    border-color: #f26b21;
}

.report-analysis-toggle .form-check-input:focus,
.condition-explanation-toggle .form-check-input:focus {
    border-color: #f26b21;
    box-shadow: 0 0 0 .25rem rgba(242, 107, 33, .25);
}

.report-analysis-toggle .form-check-input:focus:not(:checked),
.condition-explanation-toggle .form-check-input:focus:not(:checked) {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23f26b21'/%3e%3c/svg%3e");
}

.text-block-global {
    --text-block-color: #914018;
    --text-block-background: #fff0df;
    --text-block-border: #dba777;
}

.text-block-personal {
    --text-block-color: #6b4830;
    --text-block-background: #f4ece2;
    --text-block-border: #c9ab8e;
}

.result-actions .text-block-scope,
.text-block-scope {
    background: var(--text-block-background);
    border: 1px solid var(--text-block-border);
    color: var(--text-block-color);
}

.result-actions .text-block-scope:hover,
.text-block-scope:hover {
    color: var(--text-block-color);
    background: var(--text-block-background);
    border-color: var(--text-block-color);
    box-shadow: inset 0 0 0 1px var(--text-block-color);
}

.report-modal {
    border: 0;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
}

.report-modal-backdrop {
    z-index: 2200;
}

.report-modal.vehicle-catalog-dialog {
    width: min(calc(100% - 2rem), 72rem);
    max-width: 72rem;
    border-radius: 22px;
    padding: clamp(1rem, 3vw, 1.8rem);
}

.report-modal.text-block-dialog {
    max-width: 48rem;
    width: min(calc(100% - 2rem), 48rem);
}

.report-modal.equipment-browser-dialog,
.report-modal.reports-history-dialog {
    width: 88vw;
    max-width: 88vw;
}

@media (max-width: 700px) {
    .report-modal.equipment-browser-dialog,
    .report-modal.reports-history-dialog {
        width: calc(100vw - 1rem);
        max-width: calc(100vw - 1rem);
        padding: 1rem;
    }
}

.text-block-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.text-block-dialog-close {
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

.selection-chip.text-block-chip {
    border-color: var(--text-block-border);
    color: var(--text-block-color);
    font-size: .85rem;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.selection-chip.text-block-chip:hover,
.selection-chip.text-block-chip[aria-pressed="true"] {
    background: var(--text-block-background);
    border-color: var(--text-block-color);
}

.selection-chip.text-block-chip[aria-pressed="true"] {
    box-shadow: inset 0 0 0 1px var(--text-block-color);
    font-weight: 600;
}

.selection-chip.text-block-chip:focus-visible {
    outline: 2px solid var(--text-block-color);
    outline-offset: 2px;
}

.finalized-pdf-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .5rem 0;
}

.finalized-pdf-delete {
    display: inline-flex;
    flex-shrink: 0;
    padding: .4rem;
    color: #b42318;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 6px;
    cursor: pointer;
}

.finalized-pdf-delete svg {
    width: 1.2rem;
    height: 1.2rem;
}

.result-editor p {
    color: #5b3b27;
    font-size: .75rem;
    line-height: 1.45;
    margin: 0;
}

.result-editor textarea.form-control {
    border: 1px solid #111;
    border-radius: 12px;
    min-height: 9rem;
    padding: 1rem;
    resize: vertical;
}

.result-editor.report-narrative-editor {
    margin: 1.25rem 0 0;
}

.result-footer-grid {
    align-items: start;
    display: grid;
    grid-template-columns: 1fr auto;
    margin: 1.5rem 0 2.4rem;
}

.result-office-card {
    background: #fcf8f3;
    border: 1px solid #e4d8cb;
    border-radius: 12px;
    display: grid;
    font-size: .82rem;
    gap: .25rem;
    max-width: 13rem;
    padding: 1rem;
}

.result-stamp-box {
    align-items: center;
    border: 1px dashed #d5b99d;
    border-radius: 12px;
    color: #7a6758;
    display: flex;
    font-size: .78rem;
    height: 5.3rem;
    justify-content: center;
    width: 7.5rem;
}

.result-stamp-box img,
.result-signature-box img,
.profile-image-preview img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.result-signature-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.result-signature-grid label {
    display: grid;
    font-size: .82rem;
    gap: .35rem;
}

.result-signature-grid .form-control {
    border: 1px solid #111;
    border-radius: 12px;
    min-height: 2.4rem;
}

.result-signature-box {
    align-items: center;
    border: 1px dashed #d5b99d;
    border-radius: 12px;
    color: #7a6758;
    display: flex;
    font-size: .78rem;
    height: 2.8rem;
    justify-content: center;
    padding: .25rem;
}

.profile-group {
    min-width: 0;
    margin: 0 0 1.5rem;
    padding: 1rem;
    border: 1px solid #ddd7d0;
    border-radius: 8px;
    background: #fdfbf8;
}

.profile-group legend {
    float: none;
    width: auto;
    padding: 0 .5rem;
    margin: 0;
    color: #1f1a16;
    font-size: 1.1rem;
    font-weight: 600;
}

.profile-group .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    margin-bottom: 0;
}

.profile-group .form-floating.mb-3 {
    margin-bottom: 0 !important;
}

.account-nav {
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.account-nav .btn {
    display: block;
    width: 100%;
    padding: .65rem .85rem;
    text-align: left;
    overflow-wrap: anywhere;
}

.account-nav .btn.active {
    color: #1f1a16;
    background: rgba(242, 107, 33, .22);
    border-color: #f26b21;
    font-weight: 600;
}

.account-manage a:not(.btn), .account-manage .btn-link {
    color: #9b4a1a;
    text-underline-offset: .2em;
}

.account-tabs {
    gap: .35rem;
    margin: 0 0 1.25rem;
    border-bottom-color: #ddd7d0;
}

.account-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    color: #55463c;
    padding: .7rem 1rem;
    text-decoration: none;
}

.account-tabs .nav-link:hover {
    border-color: #eee5dc #eee5dc #ddd7d0;
}

.account-tabs .nav-link.active {
    background: #fff;
    border-color: #ddd7d0 #ddd7d0 #fff;
    color: #1f1a16;
    font-weight: 600;
}

.license-intro,
.license-readonly-note {
    color: #5b514a;
    max-width: 72ch;
}

.license-empty {
    background: #fdfbf8;
    border: 1px solid #e9e0d8;
    border-radius: 8px;
    color: #665d56;
    padding: 1rem;
}

.license-list {
    display: grid;
    gap: .75rem;
    margin: 1rem 0 1.5rem;
}

.license-card {
    align-items: center;
    background: #fff;
    border: 1px solid #e4ddd6;
    border-radius: 10px;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) auto;
    padding: 1rem;
}

.license-card-person {
    display: grid;
    gap: .25rem;
    min-width: 0;
}

.license-card-person a {
    overflow-wrap: anywhere;
}

.license-signature {
    align-items: center;
    background: #fcf8f3;
    border: 1px dashed #d5b99d;
    border-radius: 8px;
    color: #7a6758;
    display: flex;
    height: 5rem;
    justify-content: center;
    padding: .4rem;
    text-align: center;
}

.license-signature img {
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.license-card-actions,
.license-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.license-form-section {
    background: #fdfbf8;
    border: 1px solid #e4ddd6;
    border-radius: 10px;
    margin-top: 1.5rem;
    padding: 1rem;
}

.license-form-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.license-email-field {
    grid-column: 1 / -1;
}

.license-signature-upload {
    display: grid;
    gap: .5rem;
    margin: 1rem 0 .25rem;
}

.license-clear-signature {
    padding-left: 0;
}

.license-form-actions {
    margin-top: 1rem;
}

.account-login a:not(.btn),
.account-login .btn-link {
    color: #9b4a1a;
    font-weight: 600;
    text-decoration-color: rgba(155, 74, 26, .55);
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

.account-manage a:not(.btn):hover, .account-manage .btn-link:hover {
    color: #713510;
}

.account-login a:not(.btn):hover,
.account-login .btn-link:hover {
    color: #713510;
    text-decoration-color: #f26b21;
}

.account-manage .btn:focus-visible, .account-manage a:focus-visible {
    outline: 2px solid #9b4a1a;
    outline-offset: 3px;
    box-shadow: none;
}

.account-login a:focus-visible,
.account-login .btn-link:focus-visible {
    border-radius: 4px;
    box-shadow: none;
    outline: 2px solid #f26b21;
    outline-offset: 3px;
}

.profile-image-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    margin-bottom: 1rem;
}

.profile-image-grid label {
    display: grid;
    gap: .5rem;
}

.profile-image-preview {
    align-items: center;
    background: #fcf8f3;
    border: 1px dashed #d5b99d;
    border-radius: 12px;
    color: #7a6758;
    display: flex;
    height: 7rem;
    justify-content: center;
    padding: .75rem;
}

.checkbox-field {
    align-items: center;
    display: flex;
    gap: .5rem;
    min-height: 2.4rem;
}

.text-block-editor {
    min-height: 9rem;
}

.text-block-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1rem;
}

.text-block-action-buttons,
.text-block-item-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.text-block-switch {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    gap: .7rem;
    margin: 0;
    position: relative;
}

.text-block-switch input[type="checkbox"] {
    height: 24px;
    margin: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    width: 42px;
}

.text-block-switch-track {
    background: #b8a695;
    border-radius: 999px;
    height: 24px;
    position: relative;
    transition: background-color .16s ease;
    width: 42px;
}

.text-block-switch-track::after {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: 18px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform .16s ease;
    width: 18px;
}

.text-block-switch input:checked + .text-block-switch-track { background: #27834a; }
.text-block-switch input:checked + .text-block-switch-track::after { transform: translateX(18px); }
.text-block-switch input:focus-visible + .text-block-switch-track { outline: 2px solid #5b3b27; outline-offset: 3px; }

.text-block-list {
    display: grid;
    gap: .75rem;
}

.text-block-filters {
    align-items: end;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr);
    margin: 1rem 0;
}

@media (max-width: 575.98px) {
    .text-block-filters { grid-template-columns: 1fr; }
}

.text-block-list-item {
    align-items: start;
    border: 1px solid #e4d8cb;
    border-radius: 12px;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr auto;
    padding: 1rem;
}

.text-block-list-item strong,
.text-block-list-item span {
    display: block;
}

.text-block-list-item span {
    color: #7a6758;
    font-size: .78rem;
}

.text-block-list-item p {
    margin: .5rem 0 0;
    white-space: pre-wrap;
}

.entries-management-layout {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
}

.entries-sidebar {
    position: sticky;
    top: 1rem;
}

.entries-sidebar label {
    display: grid;
    gap: .45rem;
    margin-bottom: 1rem;
}

.entries-type-list {
    display: grid;
    gap: .45rem;
}

.entries-type-list button {
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: #3a332e;
    font-weight: 600;
    min-height: 2.6rem;
    padding: .55rem .75rem;
    text-align: left;
}

.entries-type-list button:hover,
.entries-type-list .entries-type-active {
    background: rgba(242, 107, 33, .14);
}

.entries-type-divider {
    border-color: #e4d8cb;
    margin: .35rem 0;
    opacity: 1;
}

.entry-value-text {
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    padding: 0;
    text-align: left;
}

.entry-value-text:hover {
    color: #a44716;
    text-decoration: underline;
}

.entry-equipment-location {
    color: #7a6758;
    display: block;
    font-size: .78rem;
    margin-top: .2rem;
}

.entry-value-inline-edit {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.entry-value-inline-edit .form-control {
    flex: 1 1 12rem;
}

.entry-explanation-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 1rem;
}

.entry-explanation-grid label {
    display: grid;
    font-weight: 600;
    gap: .35rem;
}

.entry-explanation-grid textarea {
    font-weight: 400;
    min-height: 7rem;
    resize: vertical;
}

.entries-content {
    display: grid;
    gap: 1.25rem;
}

.entries-content-special-equipment {
    width: 100%;
}

.special-equipment-admin-tabs {
    border-bottom: 1px solid var(--border-color, #ddcdbc);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.special-equipment-admin-tabs button {
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: .75rem 1rem;
}

.special-equipment-admin-tabs button.active {
    border-bottom-color: var(--primary, #a44716);
    color: var(--primary, #a44716);
}

.entry-equipment-location {
    color: #756252;
    display: block;
    margin-top: .2rem;
}

.entry-add-form-row {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.entry-add-form-row .form-grid {
    flex: 1 1 16rem;
    margin-bottom: 0;
    min-width: 0;
}

.reports-table-wrap {
    overflow-x: auto;
    width: 100%;
}

.reports-table {
    min-width: 900px;
}

.reports-table th {
    vertical-align: bottom;
}

.reports-sort-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    gap: .35rem;
    padding: .35rem 0;
    text-align: left;
}

.reports-sort-button:hover {
    color: #a94713;
}

.reports-sort-button:focus-visible {
    border-radius: 4px;
    outline: 3px solid rgba(242, 107, 33, .35);
    outline-offset: 2px;
}

.reports-sort-indicator {
    display: inline-block;
    min-width: .8rem;
}

.reports-filter-row th {
    padding-top: 0;
}

.reports-filter {
    font-size: .9rem;
    min-width: 110px;
}

.reports-empty-result {
    color: #5e5a56;
    padding: 1.5rem !important;
    text-align: center;
}

.reports-mobile-view {
    display: block;
}

.reports-desktop-view {
    display: none;
}

.reports-search-card {
    grid-column: span 1;
    margin-bottom: 0;
}

.reports-mobile-section-heading {
    align-items: start;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    justify-content: space-between;
}

.reports-mobile-section-heading h2 {
    margin-bottom: .25rem;
}

.reports-mobile-section-heading p {
    color: #79675b;
    margin: 0 0 1rem;
}

.reports-clear-filters {
    appearance: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: block;
    font-family: inherit;
    margin: 0 0 .15rem;
    padding: 0;
    text-align: left;
    text-decoration: underline;
}

.reports-mobile-filters {
    display: grid;
    gap: .65rem .9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reports-mobile-view .reports-mobile-filters label,
.reports-mobile-view .reports-mobile-sort label {
    color: #000;
    display: grid;
    font-size: .72rem;
    font-weight: 600;
    gap: .3rem;
    min-width: 0;
}

.reports-mobile-filters .form-control {
    min-width: 0;
}

.reports-search-field {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}

.reports-field-sort {
    align-items: center;
    align-self: start;
    background: transparent;
    border: 0;
    color: #000;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 600;
    gap: .25rem;
    line-height: 1.5;
    min-height: 0;
    padding: 0;
    text-align: left;
}

.reports-sort-arrows {
    display: inline-flex;
    color: inherit;
    font-size: .68rem;
    gap: .02rem;
    line-height: 1;
}

.reports-sort-arrows span {
    opacity: .4;
}

.reports-sort-arrows span.active {
    font-weight: 700;
    opacity: 1;
}

.reports-field-sort:focus-visible {
    border-radius: 4px;
    outline: 3px solid rgba(242, 107, 33, .5);
    outline-offset: 2px;
}

.reports-search-card .reports-search-field .form-control {
    box-sizing: border-box;
    font-size: .88rem;
    height: 1.32rem;
    line-height: 1.3;
    min-height: 1.32rem;
    padding: 0 .35rem;
}

.reports-search-card .reports-search-field .form-control::placeholder {
    color: #000;
    opacity: 1;
}

.reports-search-card .reports-mobile-filters {
    margin-top: 1rem;
}

.reports-field-hint,
.reports-search-help {
    color: #79675b;
    font-size: .78rem;
    line-height: 1.4;
}

.reports-search-help {
    margin: .85rem 0 0;
}

@media (max-width: 359px) {
    .reports-mobile-filters {
        grid-template-columns: minmax(0, 1fr);
    }
}

.reports-mobile-sort {
    align-items: end;
    display: grid;
    gap: .6rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 1rem;
}

.reports-mobile-sort label {
    grid-column: 1 / -1;
}

.reports-mobile-sort .btn {
    min-height: 38px;
    white-space: nowrap;
}

.reports-mobile-result-count {
    color: #000;
    font-size: .82rem;
    margin: .8rem 0 0;
}

.reports-mobile-list {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.reports-mobile-card {
    position: relative;
    color: inherit;
    display: block;
    margin: 0;
    padding: 1rem;
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease;
}

.reports-card-stack {
    min-width: 0;
    position: relative;
    isolation: isolate;
}

.reports-card-stack > .reports-mobile-card {
    height: 100%;
}

.reports-card-stack.is-stacked {
    margin: 0 1.1rem 1.3rem 0;
}

.reports-card-stack.is-stacked::before,
.reports-card-stack.is-stacked::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #9c8872;
    border-radius: 18px;
    background: #dfcfba;
    z-index: -1;
}

.reports-card-stack.is-stacked::before {
    transform: translate(.45rem, .55rem) rotate(.4deg);
}

.reports-card-stack.is-stacked::after {
    transform: translate(.9rem, 1.1rem) rotate(.8deg);
    border-color: #7d6851;
    background: #b9a287;
    box-shadow: 0 5px 12px rgba(62, 45, 28, .18);
    z-index: -2;
}

.reports-card-open-link {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: inherit;
    cursor: pointer;
    z-index: 1;
}

.reports-card-open-link:focus-visible,
.reports-card-history-action:focus-visible {
    outline: 3px solid #208245;
    outline-offset: 3px;
}

.reports-card-vehicle {
    min-width: 0;
}

.reports-card-identity {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
}

.reports-search-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .8rem;
}

.reports-search-footer .reports-mobile-result-count {
    margin: 0;
}

.reports-individual-option {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    font-weight: 400;
    color: #756b62;
    cursor: pointer;
}

.reports-individual-option input {
    width: .85rem;
    height: .85rem;
    accent-color: #238447;
}

.report-modal.reports-history-dialog {
    /* 26rem cards, 1rem gaps, plus dialog and slider padding. */
    width: min(var(--reports-history-max-width, 88vw), calc(var(--reports-history-card-count, 1) * 27rem + 2rem));
    padding: 1.25rem;
    border-radius: 22px;
    text-align: left;
}

@media (max-width: 700px) {
    .report-modal.reports-history-dialog {
        --reports-history-max-width: calc(100vw - 1rem);
    }
}

.reports-history-heading,
.reports-history-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.reports-history-heading h2 {
    margin: 0 0 .3rem;
    font-size: 1.2rem;
}

.reports-history-heading p,
.reports-history-controls > span,
.reports-history-date {
    color: #756b62;
    font-size: .78rem;
    margin: 0;
}

.reports-history-close {
    align-self: flex-start;
    border: 0;
    background: transparent;
    color: #4b4036;
    font-size: 1.7rem;
    line-height: 1;
    padding: .1rem .35rem;
    cursor: pointer;
}

.reports-history-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: .5rem .25rem 1rem;
    margin: 1rem 0;
}

.reports-history-slide {
    flex: 0 0 min(90%, 26rem);
    min-width: 0;
    scroll-snap-align: start;
}

.reports-history-slide .reports-mobile-card {
    margin-top: .4rem;
}

.reports-history-controls .btn {
    flex: 0 0 auto;
    font-size: .8rem;
}

@media (max-width: 480px) {
    .report-modal.reports-history-dialog { padding: .85rem; }
    .reports-history-controls { flex-wrap: wrap; }
    .reports-history-controls > span { order: 1; width: 100%; text-align: center; }
    .reports-mobile-card-heading { flex-wrap: wrap; }
}

.reports-card-photo {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    display: block;
    margin-bottom: .9rem;
    object-fit: cover;
    width: 100%;
}

.reports-card-photo-frame {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: .9rem;
}

.reports-card-photo-frame > .reports-card-photo,
.reports-card-photo-frame > .reports-card-photo-placeholder {
    margin-bottom: 0;
}

.reports-card-grade {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    min-width: 3rem;
    height: 3rem;
    padding: .3rem .4rem;
    border-radius: 0 0 0 12px;
    color: #555;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.reports-card-grade-label {
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .025em;
}

.reports-card-grade-closed {
    --report-status-background: var(--bs-success, #198754);
    --report-status-foreground: #f5f5f5;
    background: var(--report-status-background);
    color: var(--report-status-foreground);
}

.reports-card-grade-correction {
    --report-status-background: #f2c58e;
    background: var(--report-status-background);
}

.reports-card-grade-draft {
    --report-status-background: #e8dccb;
    background: var(--report-status-background);
}

.reports-card-photo-placeholder {
    aspect-ratio: 16 / 9;
    background-color: #fff;
    background-repeat: no-repeat;
    border-radius: 12px;
    display: block;
    margin-bottom: .9rem;
    width: 100%;
}

.reports-card-photo-placeholder.placeholder-sheet-1.placeholder-position-2 {
    background-position: 100% 19.6%;
    background-size: 200% auto;
}

.reports-mobile-card:hover {
    box-shadow: 0 16px 32px rgba(65, 44, 29, .2);
    color: inherit;
    transform: translateY(-1px);
}

.reports-mobile-card:focus-visible {
    outline: 3px solid rgba(242, 107, 33, .5);
    outline-offset: 3px;
}

.reports-mobile-card-heading {
    align-items: start;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.reports-mobile-card-heading h2 {
    color: #38291f;
    font-size: 1.1rem;
    line-height: 1.3;
    margin: .12rem 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reports-search-card-heading > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.reports-search-field-title {
    display: block;
    margin: .12rem 0 0;
    width: 100%;
}

.reports-search-field-title .reports-search-inline-input {
    position: relative;
    width: 100%;
}

.reports-search-card .reports-search-field-title .form-control {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    height: 1.43rem;
    line-height: 1.3;
    min-height: 1.43rem;
    overflow: hidden;
    padding: 0 1.4rem 0 0;
    text-overflow: ellipsis;
    width: 100%;
}

.reports-search-field-title .form-control::placeholder {
    color: #000;
    opacity: 1;
}

.reports-search-field-title .reports-search-inline-input:focus-within {
    border-radius: 4px;
    outline: 2px solid rgba(242, 107, 33, .55);
    outline-offset: 2px;
}

.reports-search-field-badge {
    align-items: center;
    background: rgba(242, 107, 33, .13);
    border-radius: 999px;
    color: #000;
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: row;
    font-size: .78rem;
    font-weight: 700;
    gap: 0;
    padding: .35rem .6rem;
}

.reports-search-field-badge:focus-within {
    box-shadow: 0 0 0 2px rgba(242, 107, 33, .45);
}

.reports-search-field-badge .reports-search-inline-input {
    position: relative;
    width: 7rem;
}

.reports-search-card .reports-search-field-badge .form-control {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: inherit;
    font: inherit;
    height: 1rem;
    line-height: 1.2;
    min-height: 1rem;
    padding: 0 1.4rem 0 0;
    width: 100%;
}

.reports-search-field-badge .form-control::placeholder {
    color: inherit;
    opacity: 1;
}

.reports-inline-sort {
    align-items: center;
    background: transparent;
    border: 0;
    color: #000;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    padding: 0;
}

.reports-search-field-title .reports-inline-sort,
.reports-search-field-badge .reports-inline-sort {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.reports-inline-sort:focus-visible {
    border-radius: 3px;
    outline: 2px solid rgba(242, 107, 33, .6);
    outline-offset: 2px;
}

.reports-mobile-eyebrow {
    color: #000;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.reports-mobile-number {
    background: rgba(242, 107, 33, .13);
    border-radius: 999px;
    color: #000;
    flex: 0 0 auto;
    font-size: .78rem;
    font-weight: 700;
    padding: .35rem .6rem;
}

.reports-mobile-details {
    display: grid;
    gap: .65rem .9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1rem 0 .85rem;
}

.reports-mobile-details div {
    min-width: 0;
}

.reports-mobile-details dt {
    color: #000;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.5;
}

.reports-mobile-details dd {
    color: #30271f;
    font-size: .88rem;
    line-height: 1.5;
    margin: .1rem 0 0;
    overflow-wrap: anywhere;
}

.reports-mobile-open {
    color: #9d4310;
    display: flex;
    font-size: .84rem;
    font-weight: 700;
    justify-content: space-between;
}

.reports-card-history-action {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.reports-card-history-action:hover {
    text-decoration: underline;
}

.reports-mobile-empty {
    color: #5e5a56;
    grid-column: 1 / -1;
    margin-bottom: 0;
    padding: 1rem;
}

@media (max-width: 720px) {
    .reports-mobile-view {
        display: block;
    }

    .reports-mobile-view .report-card {
        border-radius: 18px;
        padding: 1rem;
    }
}

.admin-users-table-wrap {
    overflow-x: auto;
}

.admin-users-table td,
.admin-users-table th {
    vertical-align: middle;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.admin-status,
.admin-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: .76rem;
    font-weight: 700;
    padding: .22rem .55rem;
}

.admin-status-active {
    background: #e8f7ee;
    color: #166534;
}

.admin-status-locked {
    background: #fde8e8;
    color: #991b1b;
}

.admin-badge {
    background: rgba(242, 107, 33, 0.14);
    color: #1f1a16;
    margin-left: .35rem;
}

.admin-billing-layout {
    align-items: start;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(16rem, 1fr) minmax(0, 1fr);
}

.admin-billing-users {
    background: #fff;
    border: 1px solid rgba(58, 51, 46, .14);
    border-radius: 8px;
    padding: 1.25rem;
    position: sticky;
    top: 1rem;
}

.admin-billing-users h2,
.admin-billing-details h2,
.admin-new-access-card h2 {
    font-size: 1.2rem;
    margin-top: 0;
}

.admin-billing-user-list {
    display: grid;
    gap: .45rem;
    margin-top: 1rem;
    max-height: 70vh;
    overflow-y: auto;
}

.admin-billing-user {
    background: #fff;
    border: 1px solid rgba(58, 51, 46, .14);
    border-radius: 7px;
    color: #1f1a16;
    display: grid;
    padding: .8rem .9rem;
    text-align: left;
}

.admin-billing-user:hover,
.admin-billing-user.active {
    background: rgba(242, 107, 33, .1);
    border-color: rgba(242, 107, 33, .55);
}

.admin-billing-user span,
.admin-billing-user small {
    color: #6b625b;
}

.admin-billing-details,
.admin-billing-global,
.admin-new-access-list {
    display: grid;
    gap: 1rem;
}

.admin-billing-global {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.5rem;
}

.admin-billing-global .profile-group:first-child,
.admin-billing-global .profile-group:last-child {
    grid-column: 1 / -1;
}

.admin-billing-empty,
.admin-new-access-empty {
    min-height: 10rem;
}

.admin-new-access-card {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
}

.admin-new-access-card > div:first-child {
    flex: 1 1 auto;
}

@media (max-width: 900px) {
    .admin-billing-layout,
    .admin-billing-global {
        grid-template-columns: 1fr;
    }

    .admin-billing-users {
        position: static;
    }

    .admin-billing-global .profile-group:first-child,
    .admin-billing-global .profile-group:last-child {
        grid-column: auto;
    }

    .admin-new-access-card {
        align-items: stretch;
        flex-direction: column;
    }
}

.modal-backdrop-panel {
    align-items: center;
    background: rgba(31, 26, 22, .38);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 1rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
}

.confirm-dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(31, 26, 22, .25);
    max-width: 30rem;
    padding: 1.5rem;
    width: min(100%, 30rem);
}

.confirm-dialog h2 {
    font-size: 1.25rem;
    margin: 0 0 .75rem;
}

.confirm-dialog p {
    margin: 0 0 1.25rem;
}

.special-equipment-list {
    display: grid;
    gap: .65rem;
    max-height: min(60vh, 34rem);
    margin-bottom: 1.25rem;
    overflow-y: auto;
    padding-right: .25rem;
}

.special-equipment-edit-hint {
    color: #7a6758;
    font-size: .85rem;
}

.selection-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.selection-chip {
    background: #fff;
    border: 1px solid #dac8b6;
    border-radius: 999px;
    color: #5b4433;
    cursor: pointer;
    font: inherit;
    padding: .35rem .7rem;
}

.selection-chip.report-action-chip {
    border-color: #111;
    color: #111;
    font-size: .875rem;
    line-height: 1.5;
}

.selection-chip.report-action-chip:hover:not(:disabled) {
    background: #f3f3f3;
}

.selection-chip.report-action-chip:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.selection-chip.report-action-chip:disabled {
    cursor: default;
    opacity: .65;
}

.pdf-wait-dialog {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.pdf-wait-dialog h2 {
    margin-bottom: .35rem;
}

.pdf-wait-dialog p {
    margin: 0;
}

.pdf-wait-spinner {
    animation: pdf-wait-spin .8s linear infinite;
    border: .25rem solid rgba(242, 107, 33, .22);
    border-radius: 50%;
    border-top-color: #f26b21;
    flex: 0 0 auto;
    height: 2.5rem;
    width: 2.5rem;
}

@keyframes pdf-wait-spin {
    to { transform: rotate(360deg); }
}

.report-delete-zone {
    border-top: 1px solid #ddd1c5;
    margin-top: 3rem;
    padding: 2rem 0 .5rem;
}

.report-delete-zone h2 {
    font-size: 1rem;
    margin: 0 0 .4rem;
}

.report-delete-zone p {
    color: #5e5a56;
    margin: 0 0 1rem;
}

.report-delete-details {
    border-bottom: 1px solid #e7ddd2;
    border-top: 1px solid #e7ddd2;
    margin: 0 0 1.25rem;
    padding: .5rem 0;
}

.report-delete-details div {
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(8rem, 1fr) minmax(0, 2fr);
    padding: .35rem 0;
}

.report-delete-details dt {
    font-weight: 700;
}

.report-delete-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.report-card .form-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.report-edit-lock {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.vehicle-data-groups {
    display: grid;
    gap: 1.4rem;
}

.vehicle-data-group {
    border-top: 1px solid #e7ddd2;
    padding-top: 1rem;
}

.vehicle-data-group:first-child {
    border-top: 0;
    padding-top: 0;
}

.vehicle-data-group h3,
.report-narrative-editor > .field-label-row {
    color: #111;
    font-size: .86rem;
    font-weight: 600;
}

.vehicle-data-group h3 {
    margin: 0 0 .85rem;
}

.vehicle-data-group .form-grid {
    margin-bottom: 0;
}

.vehicle-data-grid > label {
    align-self: start;
}

.vehicle-hu-field {
    display: grid;
    gap: .35rem;
    align-self: start;
}

.hu-field-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .4rem;
    min-height: 1.35rem;
}

.hu-icon-toggle {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #7a6758;
    cursor: pointer;
}

.hu-icon-toggle svg {
    width: 16px;
    height: 16px;
}

.hu-icon-toggle:hover {
    background: rgba(242, 107, 33, .14);
    color: #a44716;
}

.hu-icon-toggle[aria-pressed="true"] {
    background: rgba(242, 107, 33, .14);
    color: #f26b21;
}

.hu-icon-toggle:focus-visible {
    outline: 2px solid #f26b21;
    outline-offset: 2px;
}

.vehicle-make-field {
    grid-column: 1;
}

.hu-label-toggle {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.hu-label-toggle:hover { text-decoration: underline; }
.hu-not-present-icon { display: inline-block; position: relative; width: 22px; height: 22px; border: 3px solid #888; border-radius: 50%; }
.hu-not-present-icon::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 3px; margin-top: -1.5px; background: #888; transform: rotate(45deg); }

@media (min-width: 1100px) {
    .report-card .vehicle-data-grid {
        grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    }
}

@media (min-width: 1920px) {
    .report-card .assessment-data-grid,
    .report-card .vehicle-data-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.report-card label {
    color: #111;
    font-size: .9rem;
    font-weight: 400;
}

.report-card .form-control {
    border: 1px solid #111;
    border-radius: 12px;
    min-height: 2.4rem;
}

.uppercase-input {
    text-transform: uppercase;
}

.measurement-field {
    align-self: start;
    color: #111;
    display: grid;
    font-size: .9rem;
    gap: .35rem;
    min-width: 0;
}

.measurement-entry-row {
    align-items: stretch;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr) auto;
}

.measurement-entry-row > .form-control {
    border-radius: 12px 0 0 12px;
    min-width: 0;
    width: 100%;
}

.measurement-conversion {
    color: #705a47;
    font-size: .75rem;
    line-height: 1.35;
}

.measurement-unit-selector {
    background: #f7f3ee;
    border: 1px solid #111;
    border-radius: 0 12px 12px 0;
    display: inline-grid;
    grid-auto-columns: minmax(2.75rem, auto);
    grid-auto-flow: column;
    margin-left: -1px;
    min-height: 2.4rem;
    overflow: hidden;
    padding: 2px;
}

.measurement-unit-selector button {
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: #705a47;
    font-size: .72rem;
    font-weight: 700;
    min-width: 2.75rem;
    padding: 0 .55rem;
    transition: background-color .15s ease, color .15s ease;
    white-space: nowrap;
}

.measurement-unit-selector button:hover:not(.active) {
    background: #e9ddd0;
    color: #111;
}

.measurement-unit-selector button.active {
    background: #f26b21;
    color: #fff;
}

.measurement-unit-selector button:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(17, 17, 17, .28);
    outline: 0;
}

.report-card-page {
    color: #705a47;
    font-size: .72rem;
    margin-top: .5rem;
    text-align: right;
}

@media (max-width: 720px) {
    .report-card .form-grid {
        grid-template-columns: 1fr;
    }

    .condition-grid {
        grid-template-columns: 1fr;
    }

    .market-values-grid,
    .market-observation-text-grid,
    .result-summary-grid,
    .result-signature-grid,
    .result-footer-grid {
        grid-template-columns: 1fr;
        row-gap: 1rem;
    }

    .profile-image-grid,
    .text-block-list-item,
    .entries-management-layout {
        grid-template-columns: 1fr;
    }

    .entries-sidebar {
        position: static;
    }

    .condition-summary {
        grid-template-columns: 1fr;
        row-gap: .4rem;
    }

    .condition-summary small {
        grid-column: 1;
        text-align: left;
    }
}

.button-row {
    display: flex;
    gap: .75rem;
}

.page-heading-actions {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.report-style-select {
    border-color: #a44716;
    color: #a44716;
    cursor: pointer;
    min-width: 250px;
    width: auto;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background-color: rgba(242, 107, 33, 0.08);
}

.btn-primary {
    --bs-btn-color: #1f1a16;
    --bs-btn-bg: rgba(242, 107, 33, 0.14);
    --bs-btn-border-color: rgba(242, 107, 33, 0.14);
    --bs-btn-hover-color: #1f1a16;
    --bs-btn-hover-bg: rgba(242, 107, 33, 0.22);
    --bs-btn-hover-border-color: rgba(242, 107, 33, 0.22);
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
.ccr-confirm-dialog {
    width: min(34rem, calc(100vw - 2rem));
    max-width: 34rem;
    padding: 1.5rem;
    border: 1px solid #cbb8a6;
    border-radius: .4rem;
    box-shadow: 0 .75rem 2.5rem rgba(0, 0, 0, .24);
}

.ccr-confirm-dialog h2 {
    margin-top: 0;
}

.subscription-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
    gap: 1rem;
    align-items: stretch;
}

.subscription-card {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    padding: 1.25rem;
    border: 1px solid #eadfd7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(45, 32, 22, .06);
}

.subscription-card-basic {
    border-color: #f26b21;
    background: linear-gradient(145deg, #fffaf6, #fff);
}

.subscription-card-active {
    border: 2px solid #8b5e3c;
}

.subscription-card h3 { margin: .2rem 0 0; font-size: 1.35rem; }
.subscription-card p { margin: 0; }
.subscription-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.subscription-eyebrow { color: #765d4d; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.subscription-price { font-size: 1.35rem; font-weight: 700; }
.subscription-price span { display: block; color: #675b53; font-size: .9rem; font-weight: 400; }
.subscription-check { color: #16823b; font-size: 3.6rem; font-weight: 800; line-height: 1; }
.subscription-details {
    background: #fff;
    border: 1px solid #e5ddd5;
    border-radius: 10px;
    display: grid;
    gap: .75rem 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    margin: 1rem 0 1.25rem;
    padding: 1rem;
}
.subscription-details > div { display: flex; justify-content: space-between; gap: 1rem; }
.subscription-details > div span { color: #5d5148; }
.subscription-details > div strong { text-align: right; }
.subscription-details-note { color: #6e6259; font-size: .9rem; grid-column: 1 / -1; margin: 0; }
.subscription-description summary { color: #9b4a1a; cursor: pointer; font-weight: 600; }
.subscription-description p { margin-top: .55rem; color: #514942; }
.subscription-accept { display: flex; align-items: flex-start; gap: .5rem; }
.subscription-note, .subscription-status { color: #62564e; font-size: .95rem; }
.subscription-card .btn { align-self: flex-start; }

@media (max-width: 767.98px) {
    .license-card {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .license-form-grid {
        grid-template-columns: 1fr;
    }

    .license-email-field {
        grid-column: auto;
    }
}

.vehicle-change-dialog {
    max-height: calc(100vh - 2rem);
    max-width: 64rem;
    overflow-y: auto;
    width: min(100%, 64rem);
}
.vehicle-change-dialog-header { align-items: flex-start; display: flex; justify-content: space-between; gap: 1rem; }
.vehicle-change-dialog-header h2 { margin-bottom: .35rem; }
.vehicle-change-dialog-close {
    background: transparent;
    border: 0;
    color: #62564e;
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
    padding: 0 .15rem;
}
.vehicle-change-dialog-close:focus-visible { outline: 2px solid #9b4a1a; outline-offset: 2px; }
.correction-status-banner {
    align-items: flex-start;
    background: linear-gradient(115deg, #fff9f3, #fff4e9);
    border: 1px solid #efd9c8;
    border-left: 5px solid #f26b21;
    border-radius: 14px;
    color: #382d25;
    display: flex;
    gap: .9rem;
    margin: 0 0 1.5rem;
    padding: 1rem 1.2rem;
}
.correction-status-icon {
    align-items: center;
    background: #fbe5d5;
    border-radius: 50%;
    color: #a44712;
    display: inline-flex;
    flex: 0 0 2.7rem;
    height: 2.7rem;
    justify-content: center;
    margin-top: .05rem;
    width: 2.7rem;
}
.correction-status-icon svg { height: 1.35rem; width: 1.35rem; }
.correction-status-copy { display: grid; gap: .4rem; }
.correction-status-copy > strong { color: #80370f; font-size: 1.05rem; }
.correction-status-copy p { margin: 0; }
.correction-status-copy a { color: #8d3d0e; font-weight: 700; text-underline-offset: 2px; }
.correction-status-link {
    background: transparent;
    border: 0;
    color: #8d3d0e;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.correction-status-link:hover { color: #a44712; }
.correction-status-link:focus-visible { border-radius: 2px; outline: 2px solid #f26b21; outline-offset: 2px; }
.correction-status-copy .correction-status-footnote { color: #76675c; font-size: .9rem; }
.correction-status-banner .btn-primary {
    background: #f26b21;
    border-color: #e85f16;
    color: #1f1a16;
    justify-self: start;
    margin-top: .2rem;
}
.correction-status-banner .btn-primary:hover { background: #ee7c3f; border-color: #d95516; }
.vehicle-correction-grid { border-top: 1px solid #e4ddd5; margin: 1rem 0; }
.vehicle-correction-row {
    align-items: center;
    border-bottom: 1px solid #e4ddd5;
    display: grid;
    gap: .65rem 1rem;
    grid-template-columns: minmax(9rem, .8fr) minmax(9rem, 1fr) minmax(12rem, 1.25fr);
    padding: .65rem 0;
}
.vehicle-correction-header { color: #62564e; font-size: .85rem; font-weight: 600; }
.vehicle-correction-row > label { margin: 0; }
.vehicle-correction-row .form-control { width: 100%; }
.admin-message-list { display: grid; gap: 1rem; }
.admin-message-header { align-items: flex-start; display: flex; gap: 1rem; justify-content: space-between; }
.admin-message-header h2 { font-size: 1.15rem; margin: 0; }
.admin-message-header p, .admin-message-meta { color: #62564e; margin: .25rem 0 .75rem; }
.admin-message-changes { margin-bottom: 1rem; }

@media (max-width: 767.98px) {
    .correction-status-banner { gap: .7rem; padding: .85rem; }
    .correction-status-icon { flex-basis: 2.35rem; height: 2.35rem; width: 2.35rem; }
    .vehicle-correction-header { display: none; }
    .vehicle-correction-row:not(.vehicle-correction-header) { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
    .vehicle-correction-row:not(.vehicle-correction-header) > span::before {
        color: #62564e;
        content: "Aktuell: ";
        font-size: .85rem;
        font-weight: 600;
    }
    .vehicle-correction-row:not(.vehicle-correction-header) > label::before {
        color: #62564e;
        content: "Gewünschter neuer Wert";
        display: block;
        font-size: .85rem;
        font-weight: 600;
        margin-bottom: .25rem;
    }
    .admin-message-header { align-items: flex-start; flex-direction: column; gap: .5rem; }
}

.kba-controls {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem;
}

.kba-search {
    flex: 1 1 20rem;
    max-width: 44rem;
}

.kba-table-wrapper {
    border: 1px solid #ddd7d0;
    border-radius: 8px;
    max-height: calc(100vh - 22rem);
    overflow: auto;
}

.kba-table {
    margin-bottom: 0;
    min-width: max-content;
}

.kba-table thead {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
}

.kba-table th {
    max-width: 24rem;
    min-width: 12rem;
    vertical-align: top;
}

.kba-table td {
    max-width: 30rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kba-column-filter {
    margin-top: .5rem;
    min-width: 10rem;
}

.kba-pagination {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Vehicle-specific report lists share CCR's existing warm palette. */
.vehicle-report-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.vehicle-report-tabs button { padding: .7rem 1rem; border: 1px solid #cdb99c; border-radius: .6rem; background: #f7f1e7; color: #60432d; }
.vehicle-report-tabs button.active { background: #a65724; color: #fff; border-color: #a65724; }
.vehicle-report-tabs button:focus-visible { outline: 3px solid #d58b48; outline-offset: 2px; }
.reports-kind-filter { display: block; margin: 1rem; }
.new-report-actions { flex-wrap: wrap; }
@media (max-width: 700px) { .new-report-actions { padding: .5rem 0; } .top-row:has(.new-report-actions) { height: auto; min-height: 3.5rem; } }

/* Eight type-specific photo positions; same 4:3 cells as the Kfz placeholders. */
.placeholder-krad { background-image: url('/images/report-photo-placeholders-krad.png'); background-size: 200% 400%; }
.placeholder-tractor { background-image: url('/images/report-photo-placeholders-tractor.png'); background-size: 200% 400%; }
:is(.placeholder-krad, .placeholder-tractor).placeholder-position-1 { background-position: 0 0; }
:is(.placeholder-krad, .placeholder-tractor).placeholder-position-2 { background-position: 100% 0; }
:is(.placeholder-krad, .placeholder-tractor).placeholder-position-3 { background-position: 0 33.333333%; }
:is(.placeholder-krad, .placeholder-tractor).placeholder-position-4 { background-position: 100% 33.333333%; }
:is(.placeholder-krad, .placeholder-tractor).placeholder-position-5 { background-position: 0 66.666667%; }
:is(.placeholder-krad, .placeholder-tractor).placeholder-position-6 { background-position: 100% 66.666667%; }
:is(.placeholder-krad, .placeholder-tractor).placeholder-position-7 { background-position: 0 100%; }
:is(.placeholder-krad, .placeholder-tractor).placeholder-position-8 { background-position: 100% 100%; }

/* Keep the 4:3 illustration undistorted inside a 16:9 search-card frame. */
.reports-card-photo-placeholder:is(.placeholder-krad,.placeholder-tractor) { background-image: none; position: relative; }
.reports-card-photo-placeholder:is(.placeholder-krad,.placeholder-tractor)::before {
    content: ""; position: absolute; inset: 0 12.5%; background-repeat: no-repeat;
    background-size: 200% 400%; background-position: 100% 0;
}
.reports-card-photo-placeholder.placeholder-krad::before { background-image: url('/images/report-photo-placeholders-krad.png'); }
.reports-card-photo-placeholder.placeholder-tractor::before { background-image: url('/images/report-photo-placeholders-tractor.png'); }
