﻿/* =========================================================
   REPORTS STYLES
   All report layouts and components
   Requires: reports-variables.css
   ========================================================= */

* {
    box-sizing: border-box
}

html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden
}

body {
    background: var(--rp-page-bg);
    color: var(--rp-text)
}

/* =========================================================
   REPORTS LIST PAGE
   ========================================================= */
.reports-page {
    width: 100%;
    min-height: 100vh;
    padding: 30px;
    overflow-x: hidden;
    background: var(--rp-page-bg);
    color: var(--rp-text)
}

    .reports-page .page-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 30px
    }

    .reports-page .title-group, .reports-page .title-group > div {
        min-width: 0
    }

    .reports-page .page-subtitle {
        margin-bottom: 6px;
        color: var(--rp-muted);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 2px
    }

    .reports-page .page-header h1 {
        min-width: 0;
        margin: 0;
        color: var(--rp-heading);
        font-size: 32px;
        font-weight: 800;
        line-height: 1.25;
        overflow-wrap: anywhere
    }

    .reports-page .title-row {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0
    }

    .reports-page .refresh-btn {
        display: flex;
        flex: 0 0 42px;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        border-radius: 10px;
        color: #fff;
        background: var(--rp-primary);
        box-shadow: 0 4px 12px var(--rp-primary-shadow);
        cursor: pointer;
        font-size: 20px;
        transition: .25s
    }

        .reports-page .refresh-btn:hover {
            background: var(--rp-primary-hover);
            transform: rotate(180deg)
        }

    .reports-page .export-btn {
        padding: 12px 20px;
        border: 1px solid var(--rp-border);
        border-radius: 14px;
        color: var(--rp-text-soft);
        background: var(--rp-surface);
        box-shadow: var(--rp-shadow);
        cursor: pointer;
        font-weight: 600;
        transition: .2s
    }

        .reports-page .export-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--rp-shadow-hover)
        }

    .reports-page .stats-grid {
        display: grid;
        grid-template-columns: repeat(4,minmax(0,1fr));
        gap: 20px;
        margin-bottom: 30px
    }

    .reports-page .stat-card {
        position: relative;
        min-width: 0;
        overflow: hidden;
        padding: 24px;
        border: 1px solid var(--rp-border);
        border-radius: 22px;
        background: var(--rp-surface-glass);
        box-shadow: var(--rp-shadow)
    }

        .reports-page .stat-card:after {
            position: absolute;
            top: -20px;
            right: -20px;
            width: 70px;
            height: 70px;
            border-radius: 50%;
            opacity: .15;
            content: ""
        }

        .reports-page .stat-card span {
            display: block;
            margin-bottom: 12px;
            color: var(--rp-muted);
            font-size: 14px
        }

        .reports-page .stat-card strong {
            color: var(--rp-heading);
            font-size: 38px;
            font-weight: 800;
            line-height: 1
        }

        .reports-page .stat-card.total:after {
            background: var(--rp-primary)
        }

        .reports-page .stat-card.success:after {
            background: var(--rp-success)
        }

        .reports-page .stat-card.warning:after {
            background: var(--rp-warning)
        }

        .reports-page .stat-card.info:after {
            background: var(--rp-info)
        }

    .reports-page .filters-card {
        display: grid;
        grid-template-columns: minmax(240px,2fr) repeat(5,minmax(150px,1fr)) auto;
        gap: 15px;
        width: 100%;
        min-width: 0;
        margin-bottom: 30px;
        padding: 20px;
        border: 1px solid var(--rp-border);
        border-radius: 22px;
        background: var(--rp-surface-glass);
        box-shadow: var(--rp-shadow)
    }

        .reports-page .search-box, .reports-page .filters-card select {
            width: 100%;
            min-width: 0;
            min-height: 46px;
            padding: 12px 15px;
            border: 1px solid var(--rp-border);
            border-radius: 14px;
            outline: 0;
            background: var(--rp-surface);
            color: var(--rp-text);
            font: inherit;
            font-size: 14px;
            transition: .2s
        }

            .reports-page .search-box::placeholder {
                color: var(--rp-muted-light)
            }

            .reports-page .search-box:focus, .reports-page .filters-card select:focus {
                border-color: var(--rp-primary);
                box-shadow: 0 0 0 4px var(--rp-primary-focus)
            }

    .reports-page .primary-btn {
        min-height: 46px;
        padding: 12px 24px;
        border: 0;
        border-radius: 14px;
        color: #fff;
        background: var(--rp-primary);
        cursor: pointer;
        font-weight: 700;
        white-space: nowrap;
        transition: .2s
    }

        .reports-page .primary-btn:hover {
            background: var(--rp-primary-hover)
        }

    .reports-page .table-card {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 0;
        overflow-x: auto;
        overflow-y: visible;
        border: 1px solid var(--rp-border);
        border-radius: 22px;
        background: var(--rp-surface);
        box-shadow: var(--rp-shadow);
        -webkit-overflow-scrolling: touch;
    }

        .reports-page .table-card > p {
            margin: 0;
            padding: 30px;
            text-align: center
        }

    .reports-page .reports-table {
        width: 100%;
        border-collapse: collapse
    }

        .reports-page .reports-table thead {
            background: var(--rp-surface-soft)
        }

        .reports-page .reports-table th {
            padding: 18px;
            border-bottom: 1px solid var(--rp-border);
            color: var(--rp-muted);
            font-size: 13px;
            font-weight: 700;
            text-align: left;
            white-space: nowrap
        }

        .reports-page .reports-table td {
            padding: 18px;
            border-bottom: 1px solid var(--rp-border-soft);
            color: var(--rp-text-soft);
            font-size: 14px;
            overflow-wrap: anywhere
        }

        .reports-page .reports-table tbody tr {
            transition: .2s
        }

            .reports-page .reports-table tbody tr:hover {
                background: var(--rp-surface-hover)
            }

    .reports-page .badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 60px;
        padding: 6px 12px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700
    }

        .reports-page .badge.yes {
            color: var(--rp-success-text);
            background: var(--rp-success-soft)
        }

        .reports-page .badge.no {
            color: var(--rp-danger-text);
            background: var(--rp-danger-soft)
        }

    .reports-page .report-type {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 48px;
        padding: 6px 12px;
        border-radius: 999px;
        color: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,.12);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .5px
    }

        .reports-page .report-type.pr {
            background: var(--rp-primary)
        }

        .reports-page .report-type.mr {
            color: #1e293b;
            background: var(--rp-warning)
        }

        .reports-page .report-type.rr {
            background: var(--rp-danger)
        }

        .reports-page .report-type.pv {
            background: var(--rp-purple)
        }

        .reports-page .report-type.vt {
            background: var(--rp-green-dark)
        }

    .reports-page .view-btn {
        min-height: 40px;
        padding: 10px 16px;
        border: 0;
        border-radius: 12px;
        color: var(--rp-primary);
        background: var(--rp-primary-soft);
        cursor: pointer;
        font-weight: 700;
        white-space: nowrap;
        transition: .2s
    }

        .reports-page .view-btn:hover {
            color: #fff;
            background: var(--rp-primary)
        }

    .reports-page .pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        margin-top: 25px
    }

        .reports-page .pagination button {
            padding: 10px 18px;
            border: 1px solid var(--rp-border);
            border-radius: 12px;
            color: var(--rp-text);
            background: var(--rp-surface);
            box-shadow: var(--rp-shadow);
            cursor: pointer;
            font-weight: 700;
            transition: .2s
        }

            .reports-page .pagination button:hover:not(:disabled) {
                transform: translateY(-2px)
            }

            .reports-page .pagination button:disabled {
                opacity: .4;
                cursor: not-allowed
            }

        .reports-page .pagination span {
            color: var(--rp-muted);
            font-weight: 600
        }

    .reports-page .floating-actions {
        position: fixed;
        right: 25px;
        bottom: 25px;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        gap: 12px
    }

    .reports-page .floating-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        color: #fff;
        background: var(--rp-primary);
        box-shadow: 0 10px 25px rgba(0,0,0,.18);
        cursor: pointer;
        font-size: 22px;
        transition: .25s
    }

        .reports-page .floating-btn:hover {
            background: var(--rp-primary-hover);
            transform: translateY(-3px)
        }

    .reports-page .top-btn {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(20px)
    }

        .reports-page .top-btn.show {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateY(0)
        }

/* =========================================================
   RESPONSE PAGE
   ========================================================= */
.response-page {
    --navy: var(--rp-response-navy);
    --gold: var(--rp-response-gold);
    --gold-light: var(--rp-response-gold-light);
    --red: var(--rp-response-red);
    --blue: var(--rp-response-blue);
    --green: var(--rp-response-green);
    --page-bg: var(--rp-page-bg);
    --border: var(--rp-border);
    --text: var(--rp-text);
    --muted: var(--rp-muted);
    min-height: 100vh;
    padding: 24px;
    color: var(--text);
    background: radial-gradient(circle at 100% 0%,rgba(50,105,216,.08),transparent 28%),radial-gradient(circle at 0% 100%,rgba(214,167,58,.08),transparent 30%),var(--page-bg);
    font-family: Inter,"Segoe UI",Arial,sans-serif
}

    .response-page .response-topbar {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 126px;
        padding: 24px 30px;
        overflow: hidden;
        color: #fff;
        background: linear-gradient(135deg,rgba(255,255,255,.035),transparent 45%),linear-gradient(125deg,var(--rp-response-navy),var(--rp-response-navy-soft));
        border-radius: 20px 20px 0 0;
        box-shadow: 0 16px 40px rgba(17,26,47,.14)
    }

        .response-page .response-topbar:before {
            position: absolute;
            right: -80px;
            bottom: -130px;
            width: 330px;
            height: 330px;
            content: "";
            border: 1px solid rgba(255,255,255,.07);
            border-radius: 50%
        }

        .response-page .response-topbar:after {
            position: absolute;
            right: 80px;
            top: -150px;
            width: 270px;
            height: 270px;
            content: "";
            border: 45px solid rgba(214,167,58,.05);
            border-radius: 50%
        }

    .response-page .site-brand, .response-page .header-status {
        position: relative;
        z-index: 2
    }

    .response-page .site-brand {
        display: flex;
        align-items: center;
        gap: 19px
    }

    .response-page .brand-logo {
        display: grid;
        width: 74px;
        height: 74px;
        flex: 0 0 74px;
        place-items: center;
        color: #fff;
        font-size: 34px;
        background: linear-gradient(145deg,#d7a737,#8e6515);
        border: 1px solid rgba(255,255,255,.4);
        border-radius: 50%;
        box-shadow: 0 0 0 7px rgba(214,167,58,.11),0 10px 24px rgba(0,0,0,.22)
    }

    .response-page .brand-content {
        min-width: 0
    }

    .response-page .brand-eyebrow {
        margin-bottom: 4px;
        color: var(--gold-light);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 2.4px
    }

    .response-page .site-brand h1 {
        max-width: 720px;
        margin: 0;
        overflow: hidden;
        font-size: clamp(23px,3vw,34px);
        font-weight: 800;
        letter-spacing: -.6px;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .response-page .site-meta {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 9px;
        color: #b7c0d1;
        font-size: 12px
    }

        .response-page .site-meta span {
            display: flex;
            align-items: center;
            gap: 6px
        }

        .response-page .site-meta strong {
            color: #fff;
            font-weight: 700
        }

        .response-page .site-meta .meta-divider {
            width: 4px;
            height: 4px;
            background: var(--gold);
            border-radius: 50%
        }

    .response-page .header-status {
        display: flex;
        align-items: center;
        gap: 13px
    }

    .response-page .live-dot {
        width: 11px;
        height: 11px;
        background: #28d891;
        border-radius: 50%;
        box-shadow: 0 0 0 6px rgba(40,216,145,.13)
    }

    .response-page .header-status small, .response-page .header-status strong {
        display: block
    }

    .response-page .header-status small {
        margin-bottom: 2px;
        color: #8f9bae;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 1.5px
    }

    .response-page .header-status strong {
        color: #4ae3a7;
        font-size: 12px;
        letter-spacing: 1px
    }

    .response-page .current-time {
        min-width: 116px;
        margin-left: 17px;
        padding-left: 22px;
        text-align: right;
        border-left: 1px solid rgba(255,255,255,.12)
    }

        .response-page .current-time span, .response-page .current-time strong {
            display: block
        }

        .response-page .current-time span {
            color: #929db1;
            font-size: 10px;
            text-transform: uppercase
        }

        .response-page .current-time strong {
            margin-top: 3px;
            color: #fff;
            font-size: 23px;
            font-variant-numeric: tabular-nums
        }

    .response-page .response-title-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 19px 27px;
        background: var(--rp-surface);
        border: 1px solid var(--rp-border);
        border-top: 4px solid var(--gold);
        box-shadow: var(--rp-shadow)
    }

    .response-page .response-title-content {
        display: flex;
        align-items: center;
        gap: 16px
    }

    .response-page .page-number {
        display: grid;
        width: 43px;
        height: 43px;
        place-items: center;
        color: #fff;
        font-size: 12px;
        font-weight: 800;
        background: var(--navy);
        border-radius: 11px
    }

    .response-page .response-title-row h2 {
        margin: 0;
        color: var(--rp-heading);
        font-size: 20px;
        font-weight: 800
    }

    .response-page .response-title-row p {
        margin: 4px 0 0;
        color: var(--rp-muted);
        font-size: 12px
    }

    .response-page .assignment-state {
        display: flex;
        align-items: center;
        gap: 10px
    }

    .response-page .state-icon {
        display: grid;
        width: 38px;
        height: 38px;
        place-items: center;
        color: var(--blue);
        background: var(--rp-primary-soft);
        border-radius: 10px
    }

    .response-page .assignment-state small, .response-page .assignment-state strong {
        display: block
    }

    .response-page .assignment-state small {
        color: var(--rp-muted);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 1.2px
    }

    .response-page .assignment-state strong {
        margin-top: 3px;
        color: var(--rp-heading);
        font-size: 12px;
        letter-spacing: .6px
    }

    .response-page .response-layout {
        display: grid;
        grid-template-columns: minmax(0,1.65fr) minmax(350px,.75fr);
        gap: 20px;
        margin-top: 20px
    }

    .response-page .response-main {
        display: grid;
        gap: 20px
    }

    .response-page .response-card {
        overflow: hidden;
        background: var(--rp-surface);
        border: 1px solid var(--rp-border);
        border-radius: 17px;
        box-shadow: var(--rp-shadow)
    }

    .response-page .card-heading {
        display: flex;
        align-items: center;
        min-height: 75px;
        padding: 16px 21px;
        background: linear-gradient(180deg,var(--rp-surface),var(--rp-surface-soft));
        border-bottom: 1px solid var(--rp-border)
    }

    .response-page .heading-icon {
        display: grid;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        margin-right: 12px;
        place-items: center;
        font-size: 18px;
        border-radius: 11px
    }

    .response-page .incident-icon {
        color: #b54049;
        background: var(--rp-danger-soft)
    }

    .response-page .instruction-icon {
        color: var(--rp-warning-text);
        background: var(--rp-warning-soft)
    }

    .response-page .officer-icon {
        color: var(--rp-primary);
        background: var(--rp-primary-soft)
    }

    .response-page .card-heading span {
        color: var(--rp-muted);
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 1.3px
    }

    .response-page .card-heading h3 {
        margin: 3px 0 0;
        color: var(--rp-heading);
        font-size: 16px;
        font-weight: 800
    }

    .response-page .required-note {
        margin-left: auto;
        color: var(--rp-muted);
        font-size: 10px
    }

        .response-page .required-note span {
            color: var(--red)
        }

    .response-page .card-body {
        padding: 22px
    }

    .response-page .form-grid {
        display: grid;
        gap: 17px
    }

    .response-page .form-grid-two {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .response-page .full-width {
        grid-column: 1/-1
    }

    .response-page .form-field label {
        display: block;
        margin-bottom: 7px;
        color: var(--rp-text-soft);
        font-size: 11px;
        font-weight: 750
    }

        .response-page .form-field label span {
            color: var(--red)
        }

    .response-page .form-control {
        width: 100%;
        min-height: 44px;
        padding: 10px 13px;
        color: var(--rp-text);
        background: var(--rp-surface-soft);
        border: 1px solid var(--rp-border);
        border-radius: 10px;
        outline: 0;
        transition: border-color .2s ease,box-shadow .2s ease,background .2s ease
    }

        .response-page .form-control:hover {
            border-color: var(--rp-primary)
        }

        .response-page .form-control:focus {
            background: var(--rp-surface);
            border-color: var(--rp-primary);
            box-shadow: 0 0 0 4px var(--rp-primary-focus)
        }

        .response-page .form-control:disabled {
            cursor: not-allowed;
            color: var(--rp-muted);
            background: var(--rp-surface-muted);
            opacity: .8
        }

    .response-page .input-wrapper {
        position: relative
    }

        .response-page .input-wrapper > i {
            position: absolute;
            z-index: 2;
            left: 13px;
            top: 50%;
            color: var(--rp-muted);
            font-size: 14px;
            transform: translateY(-50%);
            pointer-events: none
        }

        .response-page .input-wrapper .form-control {
            padding-left: 39px
        }

    .response-page .priority-wrapper .form-control {
        padding-right: 95px
    }

    .response-page .priority-badge {
        position: absolute;
        right: 10px;
        top: 50%;
        padding: 5px 9px;
        font-size: 9px;
        font-weight: 800;
        border-radius: 20px;
        transform: translateY(-50%);
        pointer-events: none
    }

    .response-page .priority-normal {
        color: var(--rp-primary);
        background: var(--rp-primary-soft)
    }

    .response-page .priority-high {
        color: var(--rp-warning-text);
        background: var(--rp-warning-soft)
    }

    .response-page .priority-critical {
        color: var(--rp-danger-text);
        background: var(--rp-danger-soft)
    }

    .response-page .priority-low {
        color: var(--rp-success-text);
        background: var(--rp-success-soft)
    }

    .response-page .validation-message {
        display: block;
        margin-top: 5px;
        color: var(--rp-danger-text);
        font-size: 10px
    }

    .response-page .large-textarea {
        min-height: 155px;
        padding-bottom: 39px;
        resize: vertical
    }

    .response-page .textarea-wrapper {
        position: relative
    }

    .response-page .textarea-footer {
        position: absolute;
        right: 1px;
        bottom: 1px;
        left: 1px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 34px;
        padding: 0 12px;
        color: var(--rp-muted);
        font-size: 9px;
        background: var(--rp-surface-soft);
        border-top: 1px solid var(--rp-border);
        border-radius: 0 0 9px 9px;
        pointer-events: none
    }

        .response-page .textarea-footer span {
            display: flex;
            align-items: center;
            gap: 5px
        }

    .response-page .instruction-textarea {
        min-height: 168px;
        padding-bottom: 55px;
        resize: vertical
    }

    .response-page .instruction-helper {
        position: absolute;
        right: 1px;
        bottom: 1px;
        left: 1px;
        padding: 9px 12px;
        color: var(--rp-warning-text);
        font-size: 9px;
        background: var(--rp-warning-soft);
        border-top: 1px solid var(--rp-warning);
        border-radius: 0 0 9px 9px
    }

        .response-page .instruction-helper > div {
            display: flex;
            align-items: center;
            gap: 8px
        }

    .response-page .photo-requirement {
        position: relative;
        display: flex;
        align-items: center;
        gap: 11px;
        margin-top: 18px;
        padding: 14px;
        cursor: pointer;
        background: var(--rp-surface-soft);
        border: 1px solid var(--rp-border);
        border-radius: 12px
    }

        .response-page .photo-requirement > input {
            position: absolute;
            opacity: 0
        }

    .response-page .custom-checkbox {
        display: grid;
        flex: 0 0 22px;
        width: 22px;
        height: 22px;
        place-items: center;
        color: transparent;
        background: var(--rp-surface);
        border: 2px solid var(--rp-border-control);
        border-radius: 6px;
        transition: .2s ease
    }

    .response-page .photo-requirement input:checked + .custom-checkbox {
        color: #fff;
        background: var(--blue);
        border-color: var(--blue)
    }

    .response-page .photo-icon {
        display: grid;
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        place-items: center;
        color: var(--rp-primary);
        background: var(--rp-surface);
        border: 1px solid var(--rp-border);
        border-radius: 9px
    }

    .response-page .photo-requirement > span:last-child {
        display: grid
    }

    .response-page .photo-requirement strong {
        color: var(--rp-heading);
        font-size: 11px
    }

    .response-page .photo-requirement small {
        margin-top: 3px;
        color: var(--rp-muted);
        font-size: 9px
    }

    .response-page .sticky-card {
        position: sticky;
        top: 16px
    }

    .response-page .sidebar-heading {
        background: linear-gradient(140deg,var(--rp-surface-soft),var(--rp-surface))
    }

    .response-page .select-loading {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 0 12px;
        color: var(--rp-muted);
        font-size: 10px;
        background: var(--rp-surface-soft);
        border: 1px solid var(--rp-border);
        border-radius: 10px
    }

    .response-page .loading-spinner, .response-page .button-spinner {
        display: inline-block;
        border: 2px solid currentColor;
        border-right-color: transparent;
        border-radius: 50%;
        animation: responseSpin .7s linear infinite
    }

    .response-page .loading-spinner {
        width: 20px;
        height: 20px
    }

    .response-page .button-spinner {
        width: 16px;
        height: 16px
    }

@keyframes responseSpin {
    to {
        transform: rotate(360deg)
    }
}

.response-page .selected-property, .response-page .selected-officer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 14px;
    padding: 13px;
    border-radius: 12px
}

.response-page .selected-property {
    background: var(--rp-warning-soft);
    border: 1px solid var(--rp-warning)
}

.response-page .selected-officer {
    background: var(--rp-primary-soft);
    border: 1px solid var(--rp-primary)
}

.response-page .property-icon {
    display: grid;
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    place-items: center;
    color: var(--rp-warning-text);
    font-size: 18px;
    background: var(--rp-warning-soft);
    border-radius: 12px
}

.response-page .property-details, .response-page .officer-details {
    min-width: 0;
    display: grid
}

    .response-page .property-details span, .response-page .officer-details span {
        color: var(--rp-muted);
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 1px
    }

    .response-page .property-details strong, .response-page .officer-details strong {
        margin-top: 3px;
        overflow: hidden;
        color: var(--rp-heading);
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .response-page .property-details small, .response-page .officer-details small {
        margin-top: 2px;
        color: var(--rp-muted);
        font-size: 9px
    }

.response-page .property-status, .response-page .officer-status {
    margin-left: auto;
    padding: 5px 7px;
    font-size: 8px;
    font-weight: 800;
    border-radius: 20px
}

.response-page .property-status {
    color: var(--rp-warning-text);
    background: var(--rp-warning-soft)
}

.response-page .officer-status {
    color: var(--rp-success-text);
    background: var(--rp-success-soft)
}

.response-page .officer-avatar {
    position: relative;
    display: grid;
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    place-items: center;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(145deg,#2456b5,#4d82e2);
    border-radius: 12px
}

.response-page .availability-dot {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 11px;
    height: 11px;
    background: #2bd18e;
    border: 2px solid var(--rp-surface);
    border-radius: 50%
}

.response-page .divider {
    height: 1px;
    margin: 20px 0;
    background: var(--rp-border)
}

.response-page .field-warning, .response-page .target-unit-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 9px;
    color: var(--rp-warning-text);
    font-size: 9px;
    background: var(--rp-warning-soft);
    border: 1px solid var(--rp-warning);
    border-radius: 8px
}

.response-page .optional-location-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px
}

    .response-page .optional-location-title > div {
        display: flex;
        align-items: center;
        gap: 9px
    }

        .response-page .optional-location-title > div > i {
            display: grid;
            width: 32px;
            height: 32px;
            place-items: center;
            color: var(--rp-muted);
            background: var(--rp-surface-soft);
            border-radius: 8px
        }

        .response-page .optional-location-title > div > span {
            display: grid
        }

    .response-page .optional-location-title strong {
        color: var(--rp-heading);
        font-size: 10px
    }

    .response-page .optional-location-title small {
        margin-top: 2px;
        color: var(--rp-muted);
        font-size: 8px
    }

    .response-page .optional-location-title > span {
        color: var(--rp-muted);
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 1px
    }

.response-page .dispatch-summary {
    margin-top: 21px;
    padding: 15px;
    background: linear-gradient(145deg,rgba(255,255,255,.035),transparent),var(--navy);
    border-radius: 13px
}

.response-page .summary-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    padding-bottom: 11px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-bottom: 1px solid rgba(255,255,255,.1)
}

    .response-page .summary-title i {
        color: var(--gold-light)
    }

.response-page .summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    gap: 14px
}

    .response-page .summary-row span {
        color: #8995aa;
        font-size: 9px
    }

    .response-page .summary-row strong {
        max-width: 65%;
        overflow: hidden;
        color: #f2f5fa;
        font-size: 9px;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap
    }

.response-page .summary-priority {
    padding: 4px 7px;
    border-radius: 20px
}

    .response-page .summary-priority.normal {
        color: #9dbbff;
        background: rgba(68,115,216,.17)
    }

    .response-page .summary-priority.high {
        color: #ffd384;
        background: rgba(238,164,46,.15)
    }

    .response-page .summary-priority.critical {
        color: #ff9da4;
        background: rgba(225,72,82,.15)
    }

    .response-page .summary-priority.low {
        color: #78e5be;
        background: rgba(45,194,141,.14)
    }

.response-page .dispatch-button, .response-page .clear-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    cursor: pointer;
    transition: transform .2s ease,box-shadow .2s ease,opacity .2s ease
}

.response-page .dispatch-button {
    min-height: 49px;
    gap: 8px;
    margin-top: 16px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    background: linear-gradient(135deg,var(--rp-primary),var(--rp-primary-hover));
    border-radius: 11px;
    box-shadow: 0 9px 20px var(--rp-primary-shadow)
}

    .response-page .dispatch-button:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: var(--rp-shadow-hover)
    }

.response-page .clear-button {
    min-height: 39px;
    gap: 7px;
    margin-top: 8px;
    color: var(--rp-muted);
    font-size: 9px;
    font-weight: 700;
    background: transparent;
    border-radius: 9px
}

    .response-page .clear-button:hover:not(:disabled) {
        color: var(--rp-text);
        background: var(--rp-surface-hover)
    }

    .response-page .dispatch-button:disabled, .response-page .clear-button:disabled {
        cursor: not-allowed;
        opacity: .65
    }

.response-page .alert-box {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 17px;
    padding: 14px 16px;
    border-radius: 12px
}

    .response-page .alert-box > i {
        font-size: 20px
    }

    .response-page .alert-box > div {
        display: grid
    }

    .response-page .alert-box strong {
        font-size: 11px
    }

    .response-page .alert-box span {
        margin-top: 3px;
        font-size: 10px
    }

    .response-page .alert-box button {
        margin-left: auto;
        color: inherit;
        background: transparent;
        border: 0;
        cursor: pointer
    }

.response-page .alert-error {
    color: var(--rp-danger-text);
    background: var(--rp-danger-soft);
    border: 1px solid var(--rp-danger)
}

.response-page .alert-success {
    color: var(--rp-success-text);
    background: var(--rp-success-soft);
    border: 1px solid var(--rp-success)
}

.response-page .api-response-box {
    margin-top: 16px;
    padding: 16px;
    background: var(--rp-api-bg);
    border-radius: 12px;
    color: #fff
}

.response-page .api-response-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px
}

    .response-page .api-response-header strong {
        font-size: 13px
    }

    .response-page .api-response-header span {
        padding: 5px 9px;
        border-radius: 20px;
        font-size: 10px;
        font-weight: 800
    }

.response-page .api-status-success {
    color: #93f0cc;
    background: rgba(37,190,132,.18)
}

.response-page .api-status-error {
    color: #ffadb4;
    background: rgba(220,67,80,.18)
}

.response-page .api-response-box pre {
    max-height: 300px;
    margin: 0;
    padding: 13px;
    overflow: auto;
    color: var(--rp-api-code-text);
    font-family: Consolas,monospace;
    font-size: 11px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--rp-api-code-bg);
    border-radius: 8px
}

.response-page .location-selection-groups {
    display: grid;
    gap: 16px
}

.response-page .location-group {
    padding: 15px;
    border: 1px solid var(--rp-border);
    border-radius: 13px
}

.response-page .caller-location-group {
    background: var(--rp-primary-soft);
    border-color: var(--rp-primary)
}

.response-page .target-location-group {
    background: var(--rp-warning-soft);
    border-color: var(--rp-warning)
}

.response-page .location-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rp-border)
}

.response-page .location-group-icon {
    display: grid;
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    place-items: center;
    border-radius: 10px
}

.response-page .caller-location-icon {
    color: var(--rp-primary);
    background: var(--rp-primary-soft)
}

.response-page .target-location-icon {
    color: var(--rp-warning-text);
    background: var(--rp-warning-soft)
}

.response-page .location-group-title > div {
    display: grid
}

.response-page .location-group-title strong {
    color: var(--rp-heading);
    font-size: 11px
}

.response-page .location-group-title small {
    margin-top: 3px;
    color: var(--rp-muted);
    font-size: 9px
}

/* =========================================================
   REPORT DETAILS PAGE
   ========================================================= */
.report-details-page {
    background: var(--rp-page-bg);
    min-height: 100vh;
    padding: 30px;
    color: var(--rp-text)
}

    .report-details-page .report-header {
        background: linear-gradient(135deg,var(--rp-hero-start),var(--rp-hero-end));
        color: #fff;
        border-radius: 24px;
        padding: 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        box-shadow: var(--rp-hero-shadow)
    }

    .report-details-page .header-left {
        flex: 1
    }

    .report-details-page .report-title-row {
        display: flex;
        gap: 20px;
        align-items: center
    }

    .report-details-page .header-action-btn.done {
        background: var(--rp-success) !important;
        color: #fff !important;
        cursor: not-allowed;
        opacity: .9
    }

    .report-details-page .report-logo {
        width: 150px;
        height: 150px;
        border-radius: 20px;
        background: rgba(255,255,255,.12);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 36px
    }

        .report-details-page .report-logo img {
            width: 150px
        }

    .report-details-page .report-label {
        font-size: 13px;
        letter-spacing: 3px;
        opacity: .75;
        margin-bottom: 5px
    }

    .report-details-page .report-header h1 {
        margin: 0;
        font-size: 34px;
        font-weight: 800
    }

    .report-details-page .report-address {
        margin-top: 10px;
        opacity: .8
    }

    .report-details-page .header-right {
        text-align: right
    }

    .report-details-page .report-number {
        margin-top: 15px;
        font-size: 15px;
        opacity: .8
    }

    .report-details-page .report-date {
        margin-top: 5px;
        font-size: 14px;
        opacity: .8
    }

    .report-details-page .report-type {
        display: inline-flex;
        padding: 10px 20px;
        border-radius: 999px;
        font-weight: 800;
        color: #fff;
        font-size: 14px;
        letter-spacing: 1px
    }

        .report-details-page .report-type.pr {
            background: var(--rp-primary)
        }

        .report-details-page .report-type.mr {
            background: var(--rp-warning);
            color: #1e293b
        }

        .report-details-page .report-type.rr {
            background: var(--rp-danger)
        }

        .report-details-page .report-type.pv {
            background: var(--rp-purple);
            color: #fff
        }
        .report-details-page .report-type.vt {
            background: var(--rp-green-dark);
            color: #fff
        }

/******************************/
.report-details-page .report-header.pr {
    background: linear-gradient(135deg, #0a2930, #174f63);
}

    .report-details-page .report-header.mr {
        background: linear-gradient(135deg, #301e0a, #634917);
    }

    .report-details-page .report-header.rr {
        background: linear-gradient(135deg, #300a0a, #631717);
    }

    .report-details-page .report-header.pv {
        background: linear-gradient(135deg, #300a2f, #631751);
    }
    .report-details-page .report-header.vt {
        background: linear-gradient(135deg, #10300a, #1d6317);
    }
/**********************************************/
    .report-details-page .action-bar {
        display: flex;
        gap: 12px;
        margin-bottom: 25px;
        flex-wrap: wrap
    }

    .report-details-page .action-btn {
        border: 1px solid var(--rp-border);
        background: var(--rp-surface);
        color: var(--rp-text);
        padding: 12px 20px;
        border-radius: 14px;
        cursor: pointer;
        font-weight: 700;
        box-shadow: var(--rp-shadow);
        transition: .2s
    }

        .report-details-page .action-btn:hover {
            transform: translateY(-2px)
        }

    .report-details-page .details-grid {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 25px;
        margin-bottom: 25px
    }

    .report-details-page .left-column, .report-details-page .right-column {
        display: flex;
        flex-direction: column;
        gap: 25px
    }

    .report-details-page .section-card {
        background: var(--rp-surface-transparent);
        border: 1px solid var(--rp-border);
        border-radius: 22px;
        padding: 25px;
        box-shadow: var(--rp-shadow)
    }

    .report-details-page .section-title {
        font-size: 20px;
        font-weight: 800;
        margin-bottom: 20px;
        color: var(--rp-heading)
    }

    .report-details-page .info-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
        gap: 18px
    }

    .report-details-page .info-item {
/*        background: var(--rp-surface-soft-alpha);*/
        border: 1px solid var(--rp-border);
        border-radius: 16px;
        padding: 18px
    }

        .report-details-page .info-item span {
            display: block;
            color: var(--rp-muted);
            font-size: 13px;
            margin-bottom: 8px
        }

        .report-details-page .info-item strong {
            color: var(--rp-heading);
            font-size: 16px
        }

    .report-details-page .narrative {
        background: var(--rp-surface-soft-alpha);
        border: 1px solid var(--rp-border);
        border-radius: 18px;
        padding: 22px;
        line-height: 1.9;
        font-size: 15px;
        color: var(--rp-text-soft)
    }

    .report-details-page .photos-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
        gap: 18px
    }

    .report-details-page .photo-card {
        position: relative;
        min-width: 0;
        overflow: hidden;
        border-radius: 18px;
        background: var(--rp-photo-zone);
        aspect-ratio: 1;
        cursor: pointer;
        transition: .25s
    }

        .report-details-page .photo-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--rp-shadow-hover)
        }

        .report-details-page .photo-card img {
            width: 100%;
            height: 100%;
            object-fit: cover
        }

    .report-details-page .status-card {
        background: var(--rp-surface-soft-alpha);
        border: 1px solid var(--rp-border);
        border-radius: 22px;
        padding: 25px;
        display: flex;
        justify-content: center;
        gap: 60px;
        flex-wrap: wrap;
        box-shadow: var(--rp-shadow)
    }

    .report-details-page .status-item {
        text-align: center
    }

        .report-details-page .status-item span {
            display: block;
            color: var(--rp-muted);
            margin-bottom: 12px
        }

    .report-details-page .status-badge {
        min-width: 90px;
        padding: 10px 18px;
        border-radius: 999px;
        font-weight: 800
    }

        .report-details-page .status-badge.yes {
            background: var(--rp-success-soft);
            color: var(--rp-success-text)
        }

        .report-details-page .status-badge.no {
            background: var(--rp-danger-soft);
            color: var(--rp-danger-text)
        }

    .report-details-page .header-actions {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
        margin-top: 12px;
        flex-wrap: wrap
    }

    .report-details-page .header-action-btn {
        border: 0;
        border-radius: 999px;
        padding: 9px 14px;
        font-weight: 800;
        cursor: pointer;
        color: #fff
    }

        .report-details-page .header-action-btn.submit {
            background: var(--rp-primary)
        }

        .report-details-page .header-action-btn.email {
            background: var(--rp-success)
        }

        .report-details-page .header-action-btn:disabled {
            opacity: .6;
            cursor: not-allowed
        }

    .report-details-page .action-message {
        margin: 12px 0 18px;
        padding: 12px 15px;
        color: var(--rp-primary);
        font-size: 13px;
        font-weight: 600;
        background: var(--rp-primary-soft);
        border: 1px solid var(--rp-primary);
        border-radius: 10px
    }

    .report-details-page .pictures-title-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        margin-bottom: 14px
    }

    .report-details-page .drag-drop-description {
        color: var(--rp-muted);
        font-size: 12px;
        font-weight: 500
    }

    .report-details-page .report-photo-drop-zone {
        position: relative;
        width: 100%;
        min-height: 220px;
        overflow: hidden;
        background: var(--rp-photo-zone);
        border: 2px dashed transparent;
        border-radius: 14px;
        transition: border-color .2s ease,background .2s ease,transform .2s ease,box-shadow .2s ease
    }

    .report-details-page .report-photo-preview {
        display: block;
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 12px;
        transition: transform .2s ease,filter .2s ease,opacity .2s ease
    }

    .report-details-page .photo-drag-overlay {
        position: absolute;
        inset: 0;
        z-index: 10;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 20px;
        color: #fff;
        text-align: center;
        background: var(--rp-photo-overlay);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease,background .2s ease
    }

    .report-details-page .report-photo-drop-zone:hover .photo-drag-overlay {
        opacity: 1
    }

    .report-details-page .report-photo-drop-zone:hover .report-photo-preview {
        filter: brightness(.7);
        transform: scale(1.025)
    }

    .report-details-page .drag-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        margin-bottom: 3px;
        color: #fff;
        font-size: 30px;
        font-weight: 900;
        background: rgba(255,255,255,.16);
        border: 1px solid rgba(255,255,255,.38);
        border-radius: 50%
    }

    .report-details-page .photo-drag-overlay strong {
        font-size: 16px;
        font-weight: 800
    }

    .report-details-page .photo-drag-overlay span {
        font-size: 13px;
        font-weight: 600
    }

    .report-details-page .photo-drag-overlay small {
        font-size: 11px;
        opacity: .82
    }

    .report-details-page .report-photo-drop-zone.drag-active, .report-details-page .report-photo-drop-zone.drag-over {
        border-color: var(--rp-primary);
        background: var(--rp-primary-soft);
        box-shadow: 0 0 0 4px var(--rp-primary-focus);
        transform: scale(1.02)
    }

        .report-details-page .report-photo-drop-zone.drag-active .photo-drag-overlay, .report-details-page .report-photo-drop-zone.drag-over .photo-drag-overlay, .report-details-page .report-photo-drop-zone.is-replacing .photo-drag-overlay {
            opacity: 1;
            background: var(--rp-photo-overlay)
        }

        .report-details-page .report-photo-drop-zone.drag-active .report-photo-preview {
            filter: brightness(.48)
        }

    .report-details-page .temporary-preview-label {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 4;
        display: none;
        padding: 6px 10px;
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .3px;
        background: var(--rp-warning);
        border-radius: 999px;
        box-shadow: 0 4px 10px rgba(16,24,40,.2)
    }

    .report-details-page .report-photo-drop-zone.has-temp-preview .temporary-preview-label {
        display: block
    }

    .report-details-page .report-photo-drop-zone.has-temp-preview {
        border-color: var(--rp-warning)
    }

    .report-details-page .temporary-photo-actions {
        display: none;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 9px;
        padding: 8px 10px;
        background: var(--rp-warning-soft);
        border: 1px solid var(--rp-warning);
        border-radius: 10px
    }

    .report-details-page .photo-card.has-temp-preview .temporary-photo-actions {
        display: flex
    }

    .report-details-page .temporary-photo-name {
        min-width: 0;
        overflow: hidden;
        color: var(--rp-warning-text);
        font-size: 11px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .report-details-page .restore-original-button {
        flex-shrink: 0;
        padding: 5px 8px;
        color: var(--rp-danger-text);
        font-size: 11px;
        font-weight: 800;
        background: transparent;
        border: 0;
        cursor: pointer
    }

        .report-details-page .restore-original-button:hover {
            text-decoration: underline
        }

    .report-details-page .empty-photos-message {
        grid-column: 1/-1;
        padding: 30px 20px;
        color: var(--rp-muted);
        text-align: center;
        background: var(--rp-surface-soft);
        border: 1px dashed var(--rp-border);
        border-radius: 12px
    }

    .report-details-page .edit-form-grid {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 16px
    }

    .report-details-page .edit-field {
        display: flex;
        flex-direction: column;
        gap: 7px
    }

        .report-details-page .edit-field label {
            font-size: 13px;
            font-weight: 700;
            color: var(--rp-muted)
        }

    .report-details-page .report-input, .report-details-page .report-textarea, .report-details-page .inline-edit-input, .report-details-page .inline-edit-textarea {
        width: 100%;
        padding: 11px 13px;
        border: 1px solid var(--rp-border-control);
        border-radius: 8px;
        background: var(--rp-surface);
        color: var(--rp-text);
        font: inherit;
        outline: 0
    }

        .report-details-page .report-input:focus, .report-details-page .report-textarea:focus, .report-details-page .inline-edit-input:focus, .report-details-page .inline-edit-textarea:focus {
            border-color: var(--rp-primary);
            box-shadow: 0 0 0 3px var(--rp-primary-focus)
        }

    .report-details-page .report-textarea {
        resize: vertical;
        min-height: 130px
    }

    .report-details-page .action-btn.edit {
        background: var(--rp-warning-soft);
        border-color: var(--rp-warning);
        color: var(--rp-warning-text)
    }

    .report-details-page .action-btn.save {
        background: var(--rp-success);
        border-color: var(--rp-success);
        color: #fff
    }

    .report-details-page .action-btn.cancel {
        background: var(--rp-surface);
        border-color: var(--rp-border-control);
        color: var(--rp-muted)
    }

    .report-details-page .media-upload-bar {
        display: flex;
        align-items: center;
        gap: 14px;
        flex-wrap: wrap;
        margin: 12px 0 18px
    }

        .report-details-page .media-upload-bar span {
            color: var(--rp-muted);
            font-size: 13px
        }

    .report-details-page .upload-image-button, .report-details-page .photo-action-button.replace {
        position: relative;
        overflow: hidden;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer
    }

    .report-details-page .upload-image-button {
        padding: 10px 16px;
        border-radius: 8px;
        background: var(--rp-primary);
        color: #fff;
        font-weight: 700
    }

        .report-details-page .upload-image-button input[type=file], .report-details-page .photo-action-button.replace input[type=file] {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer
        }

    .report-details-page .photo-server-actions {
        display: flex;
        gap: 8px;
        padding-top: 10px
    }

    .report-details-page .photo-action-button {
        flex: 1;
        min-height: 36px;
        padding: 8px 12px;
        border: 0;
        border-radius: 7px;
        font-weight: 700
    }

        .report-details-page .photo-action-button.replace {
            background: var(--rp-info-soft);
            color: var(--rp-info-text)
        }

        .report-details-page .photo-action-button.delete {
            background: var(--rp-danger-soft);
            color: var(--rp-danger-text);
            cursor: pointer
        }

        .report-details-page .photo-action-button:disabled {
            opacity: .55;
            cursor: not-allowed
        }

    .report-details-page .empty-value {
        color: var(--rp-muted-light);
        font-style: italic
    }

    .report-details-page .report-extra-details {
        margin-bottom: 20px
    }

        .report-details-page .report-extra-details .info-grid {
            display: grid;
            grid-template-columns: repeat(2,minmax(0,1fr));
            gap: 14px
        }

        .report-details-page .report-extra-details .info-item {
            display: flex;
            flex-direction: column;
            gap: 6px;
            padding: 12px 14px;
            background: var(--rp-surface-soft);
            border: 1px solid var(--rp-border);
            border-radius: 10px;
            min-width: 0
        }

            .report-details-page .report-extra-details .info-item span {
                color: var(--rp-muted);
                font-size: 12px;
                font-weight: 600;
                text-transform: uppercase;
                letter-spacing: .04em
            }

            .report-details-page .report-extra-details .info-item strong {
                color: var(--rp-heading);
                font-size: 14px;
                overflow-wrap: anywhere
            }

    .report-details-page .extra-narrative-block {
        margin-top: 16px
    }

    .report-details-page .extra-field-label {
        display: block;
        margin-bottom: 8px;
        color: var(--rp-muted);
        font-size: 13px;
        font-weight: 700
    }

    .report-details-page .extra-narrative-block .narrative {
        padding: 14px;
        background: var(--rp-surface-soft);
        border: 1px solid var(--rp-border);
        border-radius: 10px;
        white-space: pre-wrap;
        overflow-wrap: anywhere
    }

    .report-details-page .guid-value {
        font-family: monospace;
        font-size: 12px !important
    }

    .report-details-page .vehicle-summary {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
        padding: 14px;
        background: var(--rp-hero-start);
        border-radius: 10px;
        color: #fff
    }

    .report-details-page .vehicle-plate {
        padding: 7px 13px;
        background: #fff;
        border: 3px solid #d1d5db;
        border-radius: 7px;
        color: #111827;
        font-size: 21px;
        font-weight: 800;
        letter-spacing: 2px
    }

    .report-details-page .vehicle-state {
        font-size: 15px;
        font-weight: 700
    }

    .report-details-page .photo-delete-x {
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        padding: 0;
        border: 2px solid #fff;
        border-radius: 50%;
        background: var(--rp-danger);
        color: #fff;
        font-size: 21px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,.3);
        transition: background-color .2s ease,transform .2s ease
    }

        .report-details-page .photo-delete-x:hover:not(:disabled) {
            background: var(--rp-danger-hover);
            transform: scale(1.08)
        }

        .report-details-page .photo-delete-x:disabled {
            cursor: not-allowed;
            opacity: .7
        }

    .report-details-page .hidden-replace-input {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0,0,0,0) !important;
        white-space: nowrap !important;
        border: 0 !important
    }

    .report-details-page .replace-loading-spinner, .report-details-page .delete-spinner {
        display: inline-block;
        border-radius: 50%;
        animation: reportPhotoSpin .8s linear infinite
    }

    .report-details-page .replace-loading-spinner {
        width: 30px;
        height: 30px;
        border: 3px solid rgba(255,255,255,.35);
        border-top-color: #fff
    }

    .report-details-page .delete-spinner {
        width: 14px;
        height: 14px;
        border: 2px solid rgba(255,255,255,.4);
        border-top-color: #fff
    }

@keyframes reportPhotoSpin {
    to {
        transform: rotate(360deg)
    }
}

.report-details-page .inline-edit-input {
    min-width: 0;
    min-height: 34px;
    padding: 5px 8px;
    font-size: inherit;
    font-weight: 600
}

.report-details-page .inline-edit-textarea {
    min-height: 90px;
    padding: 10px;
    line-height: 1.6;
    resize: vertical
}

.report-details-page .vehicle-summary-input {
    background-color: var(--rp-surface);
    text-align: center
}

.report-details-page .info-item .inline-edit-input {
    margin-top: 2px
}

.report-details-page .report-number-edit {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%
}

    .report-details-page .report-number-edit .inline-edit-input {
        flex: 1;
        min-width: 0
    }

    .report-details-page .report-number-edit .btn {
        flex-shrink: 0;
        white-space: nowrap
    }

.report-details-page .submit-warning {
    margin-top: 8px;
    color: var(--rp-danger-text);
    font-size: 13px;
    font-weight: 600
}

/* =========================================================
   CREATE REPORT PAGE
   ========================================================= */
.create-report-page {
    width: 100%;
    min-height: 100vh;
    padding: 28px;
    background: linear-gradient(135deg,var(--rp-page-gradient-start),var(--rp-page-gradient-end));
    color: var(--rp-text);
    overflow-x: hidden
}

    .create-report-page .report-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        width: 100%;
        min-width: 0;
        margin-bottom: 26px;
        padding: 32px;
        border-radius: 28px;
        color: #fff;
        background: linear-gradient(135deg,var(--rp-hero-start),var(--rp-hero-end));
        box-shadow: var(--rp-hero-shadow)
    }

        .create-report-page .report-hero > div {
            min-width: 0
        }

    .create-report-page .hero-label {
        display: inline-block;
        color: var(--rp-hero-label);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 2px
    }

    .create-report-page .report-hero h1 {
        margin: 8px 0;
        font-size: 38px;
        font-weight: 900;
        line-height: 1.2;
        overflow-wrap: anywhere
    }

    .create-report-page .report-hero p {
        margin: 0;
        color: var(--rp-hero-muted);
        line-height: 1.6
    }

    .create-report-page .back-btn {
        flex-shrink: 0;
        min-height: 44px;
        padding: 12px 18px;
        border: 1px solid rgba(255,255,255,.22);
        border-radius: 14px;
        color: #fff;
        background: rgba(255,255,255,.14);
        cursor: pointer;
        font-weight: 700;
        transition: .2s ease
    }

        .create-report-page .back-btn:hover {
            background: rgba(255,255,255,.22)
        }

    .create-report-page .report-shell {
        display: grid;
        grid-template-columns: minmax(0,1fr) 420px;
        gap: 24px;
        width: 100%;
        min-width: 0
    }

    .create-report-page .report-card {
        width: 100%;
        min-width: 0;
        padding: 26px;
        border: 1px solid var(--rp-border);
        border-radius: 26px;
        background: var(--rp-surface-glass-strong);
        backdrop-filter: blur(16px);
        box-shadow: var(--rp-shadow)
    }

    .create-report-page .visit-card {
        width: 100%;
        min-width: 0;
        margin-bottom: 28px;
        padding-bottom: 28px;
        border-bottom: 1px solid var(--rp-border)
    }

    .create-report-page .section-title {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
        margin: 8px 0 20px
    }

        .create-report-page .section-title span {
            display: flex;
            flex: 0 0 38px;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border-radius: 13px;
            color: #fff;
            background: var(--rp-primary);
            font-weight: 900
        }

        .create-report-page .section-title h3 {
            min-width: 0;
            margin: 0;
            color: var(--rp-heading);
            font-size: 20px;
            font-weight: 900;
            line-height: 1.3;
            overflow-wrap: anywhere
        }

    .create-report-page .form-grid {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 18px;
        width: 100%;
        min-width: 0;
        margin-bottom: 30px
    }

        .create-report-page .form-grid.small {
            grid-template-columns: repeat(2,minmax(0,1fr))
        }

    .create-report-page .form-group {
        display: flex;
        flex-direction: column;
        gap: 7px;
        min-width: 0
    }

        .create-report-page .form-group.full {
            grid-column: 1/-1
        }

        .create-report-page .form-group label {
            color: var(--rp-text-soft);
            font-size: 13px;
            font-weight: 800
        }

        .create-report-page .form-group input, .create-report-page .form-group select, .create-report-page .form-group textarea {
            width: 100%;
            min-width: 0;
            padding: 13px 15px;
            border: 1px solid var(--rp-border);
            border-radius: 15px;
            outline: 0;
            color: var(--rp-text);
            background: var(--rp-surface-soft);
            font: inherit;
            transition: .2s ease
        }

        .create-report-page .form-group input, .create-report-page .form-group select {
            min-height: 48px
        }

        .create-report-page .form-group textarea {
            min-height: 130px;
            resize: vertical
        }

            .create-report-page .form-group input::placeholder, .create-report-page .form-group textarea::placeholder {
                color: var(--rp-muted-light)
            }

            .create-report-page .form-group input:focus, .create-report-page .form-group select:focus, .create-report-page .form-group textarea:focus {
                border-color: var(--rp-primary);
                background: var(--rp-surface);
                box-shadow: 0 0 0 4px var(--rp-primary-focus)
            }

    .create-report-page .toggle-box {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        min-height: 48px;
        padding: 14px;
        border: 1px solid var(--rp-border);
        border-radius: 15px;
        background: var(--rp-surface-soft);
        font-weight: 800
    }

        .create-report-page .toggle-box input {
            flex-shrink: 0;
            width: 18px;
            height: 18px
        }

    .create-report-page .save-btn, .create-report-page .upload-btn {
        width: 100%;
        min-height: 52px;
        padding: 16px;
        border: 0;
        border-radius: 18px;
        color: #fff;
        background: linear-gradient(135deg,var(--rp-primary),var(--rp-primary-hover));
        box-shadow: 0 14px 30px var(--rp-primary-shadow);
        cursor: pointer;
        font-size: 16px;
        font-weight: 900
    }

    .create-report-page .upload-btn {
        background: linear-gradient(135deg,var(--rp-success),var(--rp-success-hover))
    }

        .create-report-page .save-btn:disabled, .create-report-page .upload-btn:disabled {
            opacity: .6;
            cursor: not-allowed
        }

    .create-report-page .locked-box, .create-report-page .created-box {
        width: 100%;
        min-width: 0;
        margin-bottom: 20px;
        padding: 18px;
        border-radius: 18px;
        font-weight: 800;
        overflow-wrap: anywhere
    }

    .create-report-page .locked-box {
        color: var(--rp-warning-text);
        border: 1px solid var(--rp-warning);
        background: var(--rp-warning-soft)
    }

    .create-report-page .created-box {
        color: var(--rp-success-text);
        border: 1px solid var(--rp-success);
        background: var(--rp-success-soft)
    }

        .create-report-page .created-box strong {
            display: block;
            margin-top: 6px;
            font-size: 12px;
            word-break: break-all
        }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media(max-width:1280px) {
    .reports-page .stats-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .reports-page .filters-card {
        grid-template-columns: repeat(3,minmax(0,1fr))
    }

    .reports-page .search-box {
        grid-column: span 2
    }
}

@media(max-width:1150px) {
    .response-page .response-layout {
        grid-template-columns: 1fr
    }

    .response-page .sticky-card {
        position: static
    }

    .response-page .response-sidebar {
        order: -1
    }
}

@media(max-width:1100px) {
    .create-report-page .report-shell {
        grid-template-columns: minmax(0,1fr)
    }
}

@media(max-width:992px) {
    .reports-page {
        padding: 20px
    }

        .reports-page .page-header {
            align-items: flex-start;
            flex-direction: column;
            gap: 15px
        }

        .reports-page .filters-card {
            grid-template-columns: repeat(2,minmax(0,1fr))
        }

        .reports-page .search-box {
            grid-column: 1/-1
        }

        .reports-page .table-card {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch
        }

        .reports-page .reports-table {
            min-width: 1100px
        }

    .report-details-page .details-grid {
        grid-template-columns: 1fr
    }

    .report-details-page .report-header {
        flex-direction: column;
        gap: 25px;
        text-align: center
    }

    .report-details-page .header-right {
        text-align: center
    }
}

@media(max-width:850px) {
    .create-report-page {
        padding: 18px
    }

        .create-report-page .report-hero {
            padding: 24px;
            border-radius: 22px
        }

            .create-report-page .report-hero h1 {
                font-size: 31px
            }

        .create-report-page .report-card {
            padding: 22px;
            border-radius: 22px
        }
}

@media(max-width:768px) {
    .report-details-page .pictures-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px
    }

    .report-details-page .report-photo-preview, .report-details-page .report-photo-drop-zone {
        height: 190px;
        min-height: 190px
    }

    .report-details-page .report-extra-details .info-grid {
        grid-template-columns: 1fr
    }

    .report-details-page .vehicle-summary {
        align-items: flex-start;
        flex-direction: column
    }
}

@media(max-width:760px) {
    .response-page {
        padding: 10px
    }

        .response-page .response-topbar {
            align-items: flex-start;
            flex-direction: column;
            gap: 22px;
            padding: 21px
        }

        .response-page .brand-logo {
            width: 58px;
            height: 58px;
            flex-basis: 58px;
            font-size: 27px
        }

        .response-page .site-brand h1 {
            max-width: 240px;
            font-size: 20px
        }

        .response-page .site-meta {
            align-items: flex-start;
            flex-direction: column;
            gap: 5px
        }

            .response-page .site-meta .meta-divider {
                display: none
            }

        .response-page .header-status {
            width: 100%
        }

        .response-page .current-time {
            margin-left: auto
        }

        .response-page .response-title-row {
            align-items: flex-start;
            flex-direction: column;
            gap: 16px
        }

        .response-page .assignment-state {
            width: 100%;
            padding-top: 13px;
            border-top: 1px solid var(--rp-border)
        }

        .response-page .form-grid-two {
            grid-template-columns: 1fr
        }

        .response-page .full-width {
            grid-column: auto
        }

        .response-page .card-heading {
            padding: 14px
        }

        .response-page .card-body {
            padding: 15px
        }

        .response-page .required-note {
            display: none
        }

        .response-page .selected-property, .response-page .selected-officer {
            align-items: flex-start
        }

        .response-page .property-status, .response-page .officer-status {
            display: none
        }
}

@media(max-width:700px) {
    .reports-page {
        padding: 12px
    }

        .reports-page .page-header {
            margin-bottom: 18px
        }

        .reports-page .page-subtitle {
            font-size: 10px;
            letter-spacing: 1.5px
        }

        .reports-page .title-row {
            justify-content: space-between;
            width: 100%
        }

        .reports-page .page-header h1 {
            font-size: 24px
        }

        .reports-page .refresh-btn {
            flex-basis: 40px;
            width: 40px;
            height: 40px;
            font-size: 18px
        }

        .reports-page .stats-grid {
            grid-template-columns: repeat(2,minmax(0,1fr));
            gap: 10px;
            margin-bottom: 16px
        }

        .reports-page .stat-card {
            min-height: 110px;
            padding: 16px;
            border-radius: 16px
        }

            .reports-page .stat-card span {
                margin-bottom: 8px;
                font-size: 12px
            }

            .reports-page .stat-card strong {
                font-size: 28px
            }

        .reports-page .filters-card {
            grid-template-columns: minmax(0,1fr);
            gap: 10px;
            margin-bottom: 16px;
            padding: 13px;
            border-radius: 16px
        }

        .reports-page .search-box {
            grid-column: auto
        }

        .reports-page .search-box, .reports-page .filters-card select, .reports-page .primary-btn {
            width: 100%;
            min-height: 48px;
            font-size: 16px
        }

        .reports-page .table-card {
            overflow: visible;
            border: 0;
            border-radius: 0;
            background: transparent;
            box-shadow: none
        }

        .reports-page .reports-table {
            display: block;
            min-width: 0;
            border-collapse: separate
        }

            .reports-page .reports-table thead {
                display: none
            }

            .reports-page .reports-table tbody {
                display: grid;
                grid-template-columns: minmax(0,1fr);
                gap: 13px
            }

            .reports-page .reports-table tr {
                display: grid;
                grid-template-columns: repeat(2,minmax(0,1fr));
                gap: 0;
                overflow: hidden;
                border: 1px solid var(--rp-border);
                border-radius: 17px;
                background: var(--rp-surface);
                box-shadow: var(--rp-shadow)
            }

            .reports-page .reports-table tbody tr:hover {
                background: var(--rp-surface)
            }

            .reports-page .reports-table td {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 10px;
                min-width: 0;
                padding: 11px 12px;
                border-bottom: 1px solid var(--rp-border-soft);
                color: var(--rp-text);
                font-size: 13px;
                text-align: right
            }

                .reports-page .reports-table td:before {
                    flex-shrink: 0;
                    color: var(--rp-muted);
                    font-size: 11px;
                    font-weight: 800;
                    text-align: left
                }

                .reports-page .reports-table td:nth-child(1):before {
                    content: "Type"
                }

                .reports-page .reports-table td:nth-child(2):before {
                    content: "Site"
                }

                .reports-page .reports-table td:nth-child(3):before {
                    content: "Site Name"
                }

                .reports-page .reports-table td:nth-child(4):before {
                    content: "Title"
                }

                .reports-page .reports-table td:nth-child(5):before {
                    content: "Date"
                }

                .reports-page .reports-table td:nth-child(6):before {
                    content: "Time"
                }

                .reports-page .reports-table td:nth-child(7):before {
                    content: "Guard"
                }

                .reports-page .reports-table td:nth-child(8):before {
                    content: "Media"
                }

                .reports-page .reports-table td:nth-child(9):before {
                    content: "Opened"
                }

                .reports-page .reports-table td:nth-child(10):before {
                    content: "Submitted"
                }

                .reports-page .reports-table td:nth-child(11):before {
                    content: "Email Sent"
                }

                .reports-page .reports-table td:nth-child(12):before {
                    content: ""
                }

                .reports-page .reports-table td:nth-child(3), .reports-page .reports-table td:nth-child(4), .reports-page .reports-table td:nth-child(7), .reports-page .reports-table td:nth-child(12) {
                    grid-column: 1/-1
                }

                .reports-page .reports-table td:nth-child(12) {
                    padding: 12px;
                    border-bottom: 0
                }

        .reports-page .view-btn {
            width: 100%;
            min-height: 44px
        }

        .reports-page .badge, .reports-page .report-type {
            min-width: 52px;
            padding: 5px 9px;
            font-size: 10px
        }

        .reports-page .floating-actions {
            right: 14px;
            bottom: 14px
        }

        .reports-page .floating-btn {
            width: 48px;
            height: 48px;
            font-size: 20px
        }

    .report-details-page .edit-form-grid {
        grid-template-columns: 1fr
    }

    .create-report-page {
        padding: 12px
    }

        .create-report-page .report-hero {
            align-items: stretch;
            flex-direction: column;
            gap: 18px;
            margin-bottom: 16px;
            padding: 20px 16px;
            border-radius: 18px
        }

        .create-report-page .hero-label {
            font-size: 10px;
            letter-spacing: 1.5px
        }

        .create-report-page .report-hero h1 {
            margin: 6px 0;
            font-size: 26px
        }

        .create-report-page .report-hero p {
            font-size: 13px;
            line-height: 1.5
        }

        .create-report-page .back-btn {
            width: 100%;
            min-height: 48px
        }

        .create-report-page .report-shell {
            gap: 14px
        }

        .create-report-page .report-card {
            padding: 16px;
            border-radius: 18px
        }

        .create-report-page .visit-card {
            margin-bottom: 22px;
            padding-bottom: 22px
        }

        .create-report-page .section-title {
            gap: 10px;
            margin-bottom: 15px
        }

            .create-report-page .section-title span {
                flex-basis: 34px;
                width: 34px;
                height: 34px;
                border-radius: 11px;
                font-size: 12px
            }

            .create-report-page .section-title h3 {
                font-size: 17px
            }

        .create-report-page .form-grid, .create-report-page .form-grid.small {
            grid-template-columns: minmax(0,1fr);
            gap: 14px;
            margin-bottom: 22px
        }

        .create-report-page .form-group.full {
            grid-column: auto
        }

        .create-report-page .form-group label {
            font-size: 12px
        }

        .create-report-page .form-group input, .create-report-page .form-group select, .create-report-page .form-group textarea {
            padding: 12px 13px;
            border-radius: 12px;
            font-size: 16px
        }

        .create-report-page .form-group input, .create-report-page .form-group select {
            min-height: 48px
        }

        .create-report-page .form-group textarea {
            min-height: 110px
        }

        .create-report-page .toggle-box {
            min-height: 48px;
            padding: 12px 13px;
            border-radius: 12px;
            font-size: 13px
        }

        .create-report-page .save-btn, .create-report-page .upload-btn {
            min-height: 50px;
            padding: 13px;
            border-radius: 14px;
            font-size: 15px
        }

        .create-report-page .locked-box, .create-report-page .created-box {
            padding: 14px;
            border-radius: 14px;
            font-size: 13px
        }
}

@media(max-width:640px) {
    .report-details-page .report-number-edit {
        flex-direction: column;
        align-items: stretch
    }
}

@media(max-width:576px) {
    .report-details-page {
        padding: 15px
    }

        .report-details-page .report-header {
            padding: 20px
        }

            .report-details-page .report-header h1 {
                font-size: 28px
            }

        .report-details-page .status-card {
            gap: 20px
        }

        .report-details-page .action-bar {
            flex-direction: column
        }

        .report-details-page .action-btn {
            width: 100%
        }
}

@media(max-width:420px) {
    .reports-page {
        padding: 8px
    }

        .reports-page .page-header h1 {
            font-size: 21px
        }

        .reports-page .stats-grid {
            gap: 8px
        }

        .reports-page .stat-card {
            min-height: 100px;
            padding: 13px
        }

            .reports-page .stat-card strong {
                font-size: 24px
            }

        .reports-page .reports-table tr {
            grid-template-columns: minmax(0,1fr)
        }

        .reports-page .reports-table td, .reports-page .reports-table td:nth-child(3), .reports-page .reports-table td:nth-child(4), .reports-page .reports-table td:nth-child(7), .reports-page .reports-table td:nth-child(12) {
            grid-column: auto
        }

            .reports-page .reports-table td:nth-child(12) {
                padding: 11px
            }

    .create-report-page {
        padding: 8px
    }

        .create-report-page .report-hero {
            padding: 16px 13px;
            border-radius: 15px
        }

            .create-report-page .report-hero h1 {
                font-size: 22px
            }

        .create-report-page .report-card {
            padding: 12px;
            border-radius: 15px
        }

        .create-report-page .section-title h3 {
            font-size: 16px
        }

        .create-report-page .section-title span {
            flex-basis: 32px;
            width: 32px;
            height: 32px
        }

        .create-report-page .form-grid {
            gap: 12px
        }
}

@media(max-width:350px) {
    .reports-page .stats-grid {
        grid-template-columns: minmax(0,1fr)
    }

    .reports-page .title-row {
        align-items: flex-start
    }

    .reports-page .page-header h1 {
        font-size: 19px
    }

    .create-report-page {
        padding: 6px
    }

        .create-report-page .report-hero {
            padding: 14px 11px
        }

            .create-report-page .report-hero h1 {
                font-size: 20px
            }

        .create-report-page .report-card {
            padding: 10px
        }

        .create-report-page .section-title {
            align-items: flex-start
        }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
    @page {
        size: A4 portrait;
        margin: 5mm
    }

    html, body {
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: #fff !important
    }

        body * {
            visibility: hidden !important
        }

    .report-details-page, .report-details-page * {
        visibility: visible !important
    }

    .report-details-page {
        position: fixed !important;
        inset: 0 !important;
        width: 200mm !important;
        height: 287mm !important;
        padding: 4mm !important;
        background: #fff !important;
        color: #111827 !important;
        overflow: hidden !important;
        box-sizing: border-box !important
    }

    .no-print, .action-bar, .sidebar, .nav-menu, .top-row, header, nav, aside {
        display: none !important;
        visibility: hidden !important
    }

    .report-header {
        padding: 6px 10px !important;
        margin-bottom: 6px !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important
    }

    .report-logo {
        width: 55px !important;
        height: 55px !important;
        border-radius: 8px !important
    }

        .report-logo img {
            width: 55px !important;
            height: 55px !important;
            object-fit: contain !important
        }

    .report-title-row {
        gap: 8px !important
    }

    .report-label {
        font-size: 9px !important;
        letter-spacing: 1px !important;
        margin-bottom: 2px !important
    }

    .report-header h1 {
        font-size: 17px !important;
        line-height: 1.1 !important
    }

    .report-address, .report-number, .report-date {
        font-size: 9px !important;
        margin-top: 2px !important
    }

    .report-type {
        padding: 4px 9px !important;
        font-size: 9px !important
    }

    .details-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        margin-bottom: 6px !important
    }

    .left-column, .right-column {
        gap: 6px !important
    }

    .section-card {
        padding: 7px !important;
        margin: 0 !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
        background: #fff !important
    }

    .section-title {
        font-size: 11px !important;
        margin-bottom: 5px !important;
        color: #111827 !important
    }

    .info-grid {
        grid-template-columns: repeat(2,1fr) !important;
        gap: 4px !important
    }

    .info-item {
        padding: 5px !important;
        border-radius: 6px !important;
        background: #f8fafc !important
    }

        .info-item span {
            font-size: 8px !important;
            margin-bottom: 2px !important;
            color: #64748b !important
        }

        .info-item strong {
            font-size: 9px !important;
            line-height: 1.1 !important;
            color: #111827 !important
        }

    .narrative {
        padding: 6px !important;
        font-size: 9px !important;
        line-height: 1.25 !important;
        border-radius: 6px !important;
        max-height: 55mm !important;
        overflow: hidden !important;
        color: #334155 !important;
        background: #f8fafc !important
    }

    .photos-grid {
        display: flex !important;
        flex-direction: column !important
    }

    .photo-card {
        aspect-ratio: auto !important;
        height: 42mm !important;
        border-radius: 6px !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important
    }

        .photo-card img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important
        }

    .status-card {
        display: none !important
    }

    .photo-drag-overlay, .temporary-preview-label, .temporary-photo-actions, .drag-drop-description {
        display: none !important
    }

    .report-photo-drop-zone {
        border: none !important;
        box-shadow: none !important;
        transform: none !important
    }

    .report-photo-preview {
        filter: none !important;
        transform: none !important
    }
}


/* =========================================================
   Clickable Report Images
   ========================================================= */

.report-photo-preview {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.report-photo-drop-zone:hover .report-photo-preview {
    transform: scale(1.025);
    filter: brightness(0.92);
}

.report-photo-preview:focus-visible {
    outline: 3px solid var(--color-primary, #2563eb);
    outline-offset: -3px;
}


/* =========================================================
   Full Screen Image Preview
   ========================================================= */

.image-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 7, 18, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: imagePreviewFadeIn 0.2s ease;
}

.image-preview-container {
    width: 100%;
    height: 100%;
    max-width: 1600px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.75);
    animation: imagePreviewScaleIn 0.22s ease;
}

.image-preview-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.92);
}

.image-preview-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .image-preview-info strong {
        overflow: hidden;
        font-size: 15px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .image-preview-info span {
        color: rgba(255, 255, 255, 0.6);
        font-size: 12px;
    }

.image-preview-close {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

    .image-preview-close:hover {
        transform: rotate(5deg);
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(239, 68, 68, 0.8);
    }

.image-preview-body {
    min-height: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 18px;
    background: radial-gradient( circle at center, rgba(30, 41, 59, 0.85), rgba(2, 6, 23, 0.96) );
}

.image-preview-full {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    user-select: none;
    -webkit-user-drag: none;
}

@keyframes imagePreviewFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes imagePreviewScaleIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 700px) {
    .image-preview-overlay {
        padding: 0;
    }

    .image-preview-container {
        max-height: 100vh;
        border: none;
        border-radius: 0;
    }

    .image-preview-header {
        padding: 11px 13px;
    }

    .image-preview-info span {
        display: none;
    }

    .image-preview-close {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .image-preview-body {
        padding: 8px;
    }

    .image-preview-full {
        border-radius: 8px;
    }
}

.report-edit-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

    .report-edit-fieldset:disabled {
        opacity: 1;
    }

        .report-edit-fieldset:disabled input,
        .report-edit-fieldset:disabled select,
        .report-edit-fieldset:disabled textarea {
            color: var(--rp-text-soft);
            background: var(--rp-surface-soft);
            border-color: var(--rp-border);
            cursor: not-allowed;
            opacity: 1;
        }

        .report-edit-fieldset:disabled textarea {
            resize: none;
        }

.report-readonly-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding: 16px 18px;
    color: var(--rp-warning-text);
    background: var(--rp-warning-soft);
    border: 1px solid var(--rp-warning);
    border-radius: 16px;
}

    .report-readonly-banner .readonly-icon {
        display: grid;
        place-items: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        border-radius: 13px;
        background: var(--rp-surface);
        font-size: 20px;
    }

    .report-readonly-banner strong,
    .report-readonly-banner span {
        display: block;
    }

    .report-readonly-banner strong {
        margin-bottom: 4px;
    }

    .report-readonly-banner span {
        font-size: 12px;
        opacity: 0.85;
    }

.auto-save-status.readonly {
    color: var(--rp-warning-text);
    background: var(--rp-warning-soft);
    border-color: var(--rp-warning);
}