/* ================================================================
   upload-validate.css
   Matches both screenshot states pixel-precisely.
   Bootstrap 5.3.2 + Bootstrap Icons companion.
   ================================================================ */

/* ---------- Page layout ---------- */
.uv-page {
    display: flex;
    height: calc(100vh - 215px); /* adjust to your header + stepper height */
    min-height: 480px;
    background: #f5f6f8;
    overflow: hidden;
    position: relative;
}

/* ================================================================
   LEFT PANEL
   ================================================================ */
.uv-panel {
    position: relative;
    width: 600px;
    min-width: 600px;
    background: #ffffff;
    border-right: 1px solid #e5eaf2;
    display: flex;
    flex-direction: column;
    transition: width 0.28s ease, min-width 0.28s ease;
    overflow: visible;
    z-index: 10;
    font-family: 'Poppins', sans-serif;
}

/* Collapsed state */
.uv-panel.collapsed {
    width: 390px;
    min-width: 390px;
}

/* ---------- Panel body (scrollable) ---------- */
.uv-panel-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 26px 24px 16px 24px;
    padding-bottom: 185px; /* room for fixed bottom bar */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.uv-panel-body::-webkit-scrollbar { width: 5px; }
.uv-panel-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* Hide subtitle when collapsed */
.uv-panel.collapsed .uv-subtitle {
    /* display: none; */
}

/* ---------- Title & subtitle ---------- */
.uv-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0F5BAB;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.uv-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #65758b;
    margin: 0 0 24px 0;
    line-height: 1.5;
    font-weight: 400;
}

/* ================================================================
   FILE REQUIREMENTS ACCORDION  (pure CSS)
   ================================================================ */
.uv-accordion {
    border: 1px solid #cbdcf7;
    border-radius: 12px;
    background: #f4f8fd;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Hide the checkbox */
.uv-acc-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Header label */
.uv-acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    gap: 8px;
        font-size: 14px;
    color: #005092;
}
.uv-acc-header:hover { background: rgba(12, 43, 108, 0.02); }

.uv-acc-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* "i" badge */
.uv-info-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: transparent;
    color: #0F5BAB;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Poppins', sans-serif;
}

.uv-acc-title {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0F5BAB;
}

/* Arrow icon */
.uv-acc-arrow {
    font-size: 12px;
    color: #0F5BAB;
    transition: transform 0.22s ease;
    flex-shrink: 0;
}

/* Body */
.uv-acc-body {
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.26s ease, padding 0.26s ease;
    padding: 0 16px 12px 16px;
}
.uv-acc-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
        padding-left: 30px;
}
.uv-acc-body ul li {
        position: relative;
    padding-left: 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #005092cc;
    margin-bottom: 0;
}
.uv-acc-body ul li:last-child { margin-bottom: 0; }
.uv-acc-body ul li::before {
    content: "•";
    color: #3b82f6;
    font-size: 12px;
    position: absolute;
    left: 0;
    top: -1px;
}

/* Collapsed state via checkbox */
.uv-acc-input:not(:checked) ~ .uv-acc-header .uv-acc-arrow {
    transform: rotate(180deg);
}
.uv-acc-input:not(:checked) ~ .uv-acc-body {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* ================================================================
   ORIGIN CARD
   ================================================================ */
.uv-origin-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 16px;
    background: #ffffff;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.uv-origin-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.uv-card-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: #475569;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
    align-self: center;
    flex-shrink: 0;
}
.uv-card-collapse-btn:hover {
    background: transparent;
    border: none;
    color: #0F5BAB;
}

.uv-collapse-chevron {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.uv-origin-card.collapsed .uv-origin-header {
    margin-bottom: 0;
}

.uv-origin-card.collapsed .uv-collapse-chevron {
    transform: rotate(180deg);
}

.uv-commodity-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.uv-origin-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.uv-origin-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.uv-origin-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.uv-supplier-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 1px;
}

.uv-supplier-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.6875rem;
    color: #64748b;
    font-weight: 500;
}

.supplier-dropdown {
    width: auto !important;
    max-width: 100% !important;
    min-width: 130px;
    height: 24px !important;
    padding: 0 20px 0 6px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.6875rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%2364748b' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    background-size: 8px 8px !important;
    vertical-align: middle !important;
    line-height: normal !important;
}

.supplier-dropdown:focus {
    border-color: #005092 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0, 80, 146, 0.15) !important;
}


.uv-pencil-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px;
    font-size: 10px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}
.uv-pencil-btn:hover { color: #0f172a; }

.uv-date-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    color: #64748b;
}
.uv-calendar-icon {
    font-size: 10px;
}
.uv-origin-date {
    font-family: 'Poppins', sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
}

/* ---------- Dropzone ---------- */
.uv-dropzone {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    padding: 18px 12px 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 12px;
}
.uv-dropzone:hover, .uv-dropzone.dragover {
    border-color: #005092;
    background: #f0f6ff;
}

.uv-upload-icon {
    font-size: 20px;
    color: #94a3b8;
    display: block;
    margin: 0 auto 6px;
}

.uv-drag-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    margin: 0 0 10px;
}

.uv-select-btn {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.uv-select-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

/* ---------- File list ---------- */
.uv-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uv-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px;
    padding: 4px 12px;
    gap: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.2s ease;
    margin-bottom: -2px;
    min-height: 48px;
}

/* Status-specific box colors */
.uv-file-row.uv-status-valid {
    background-color: #f2faf3;
    border-color: #d1fae5;
}
.uv-file-row.uv-status-warning {
    background-color: #f973161a;
    border-color: #f973164d;
}
.uv-file-row.uv-status-error {
    background-color: #fff5f5;
    border-color: #fee2e2;
}

.uv-file-row-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.uv-ficon {
    font-size: 14px;
    color: #64748b;
    flex-shrink: 0;
}

.uv-ficon-large {
    width: 16px !important;
    height: 16px !important;
}

/* Status-specific icon colors */
.uv-ficon-valid {
    color: #16a34a;
}
.uv-ficon-warning {
    color: #ea580c;
}
.uv-ficon-error {
    color: #dc2626;
}

.uv-file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.uv-fname {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #1e293b;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 16px;
}

.uv-fdetails {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.uv-fsize {
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 500;
    color: #64748b;
    flex-shrink: 0;
}

/* Status badges */
.uv-fbadge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    text-transform: capitalize;
}

.uv-fbadge-valid {
        background-color: #84c73826;
    color: #84c738;
    font-size: 8px;
}

.uv-fbadge-uploaded svg {
    width: 8px;
    height: 8px;
}

.uv-fbadge-uploaded {
        background-color: #f1f5f9;
    color: #65758b;
    font-size: 8px;
}

.uv-fbadge-warning {
    background-color: #ffedd5;
    color: #c2410c;
}

.uv-fbadge-error {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* Action/Issue buttons under filename */
.uv-fbtn-issues {
        display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #f1f5f9;
    border: none;
    color: #65758b;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 8px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s;
}
.uv-fbtn-issues:hover {
    background-color: #e0f2fe;
}

.uv-fbtn-warning {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #fff5e6;
    border: none;
    color: #f39c12;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s;
}
.uv-fbtn-review{
    background: #f9731626 !important;
    color: #f97316 !important;
}
.uv-fbtn-issues:hover {
    background-color: #e0f2fe;
}

.uv-fbtn-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #eff6ff;
    border: none;
    color: #475569;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}
.uv-fbtn-settings:hover {
    background-color: #e0f2fe;
}

/* Actions wrapper on right */
.uv-file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.uv-btn-action-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 6px;
}

.uv-btn-action-round svg {
    width: 14px !important;
    height: 14px !important;
}

.uv-btn-action-round.uv-btn-reload {
    color: #64748b;
}
.uv-btn-action-round.uv-btn-reload:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.uv-btn-action-round.uv-btn-download {
    color: #64748b;
}
.uv-btn-action-round.uv-btn-download:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.uv-btn-action-round.uv-btn-delete {
    color: #ef4444;
}
.uv-btn-action-round.uv-btn-delete:hover {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* ================================================================
   TOGGLE BUTTON  (top-right corner of panel, vertically centered with header)
   ================================================================ */
.uv-toggle {
    position: absolute;
    top: 26px;
    right: -16px;
    z-index: 20;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #64748b;
    padding: 0;
    transition: all 0.2s ease;
}
.uv-toggle:hover {
    background: #f8fafc;
    color: #0F5BAB;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}
.uv-toggle svg {
    width: 14px;
    height: 14px;
    color: #64748b;
    transition: transform 0.28s ease, color 0.2s ease;
}
.uv-toggle:hover svg {
    color: #0F5BAB;
}

/* Flip icon when collapsed */
.uv-panel.collapsed .uv-toggle,
.uv-panel.is-collapsed .uv-toggle {
    right: -16px;
}
.uv-panel.collapsed #uvCollapseIcon,
.uv-panel.is-collapsed #uvCollapseIcon {
    display: inline-block;
    transform: rotate(180deg);
}

/* SVG icon helper */
svg.bi {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
    display: inline-block;
}

.uv-status-warning svg.bi{
    fill: #f39c12;
    height: 8px;
    width: 8px;
}

.uv-status-success svg.bi{
    fill: #84c738;
}
.uv-fbadge-valid svg{
    height: 8px;
    width: 8px;
}
/* ================================================================
   BOTTOM ACTION BAR
   ================================================================ */
.uv-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 12px 16px 8px 16px;
    z-index: 15;
    min-height: 134px;
}

.uv-actions-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

/* Shared pill button style */
.uv-act-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    border-radius: 18px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 16px;
}

.uv-act-back {
    flex: 1;
    background: #65758b99 !important;
    color: #ffffff;
    min-width: 180px;
}

.uv-act-back svg, .uv-act-btn svg{
    width: 16px;
    height: 16px;
}
.uv-act-back:hover { background: #64748b; }

.uv-act-save {
    flex: 1;
    background: #005092;
    color: #ffffff;
}
.uv-act-save:hover { background: #002b70; }

.uv-act-next {
    flex: 1;
    background: #005092;
    color: #ffffff;
}
.uv-act-next:hover { background: #002b70; }
.uv-act-next:disabled {
    color: #65758b !important;
    background: #f1f5f9 !important;
    cursor: not-allowed !important;
}

/* Hint text */
.uv-hint {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
    text-align: center;
    margin: 0 0 10px;
}

/* Secondary row */
.uv-secondary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    gap: 8px;
}

.uv-sec-cancel {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #ef4444;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    height: 32px !important;
    text-transform: capitalize;
}
.uv-sec-cancel:hover { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }

.uv-sec-reset {
    background: transparent;
    border: none;
    color: #475569;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    border-radius: 12px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}
.uv-sec-reset:hover { background: #e2e8f0; color: #1e293b; border-color: #cbd5e1; }

.uv-footer-brand {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 0;
}
.uv-footer-version {
    color: #94a3b8;
}

/* ================================================================
   MAP AREA
   ================================================================ */
.uv-map-area {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#uvGoogleMap,
#uvLeafletMap {
    width: 100%;
    height: 100%;
    background: #eaecef; /* fallback before map loads */
}

/* ================================================================
   STATS CARD  (top-right overlay)
   ================================================================ */
.uv-stats {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    padding: 10px;
    min-width: 200px;
    z-index: 5;
    font-family: 'Poppins', -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.uv-stats.uv-stats-expanded {
    min-width: 280px;
}

.uv-stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.uv-stat-split-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.uv-stat-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.uv-stat-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.uv-icon-blue {
    background-color: #eff6ff;
}
.uv-icon-blue svg {
    stroke: #1d4ed8;
}

.uv-icon-green {
    background-color: #f0fdf4;
}
.uv-icon-green svg {
    stroke: #16a34a;
}

.uv-icon-orange {
    background-color: #fff7ed;
}
.uv-icon-orange svg {
    stroke: #ea580c;
}

.uv-stat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.uv-stat-label {
    font-size: 10px;
    color: #475569;
    font-weight: 600;
}

.uv-stat-num {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2px;
}

.uv-stat-label-mini {
    font-size: 10px;
    color: #475569;
    font-weight: 600;
}

.uv-stat-num-mini {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1px;
}

.uv-stat-divider {
    height: 1px;
    background-color: #f1f5f9;
    width: 100%;
}

/* ================================================================
   PANEL COLLAPSE  – pure CSS checkbox hack
   A hidden checkbox #uvPanelCheck controls panel width.
   The toggle button is a <label for="uvPanelCheck">.
   ================================================================ */

/* Hide the control checkbox */
#uvPanelCheck {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Default (checked = expanded): nothing extra needed.
   Unchecked = collapsed. */

#uvPanelCheck:not(:checked) ~ .uv-page .uv-panel,
.uv-panel-collapse-check:not(:checked) + .uv-page .uv-panel {
    width: 390px;
    min-width: 390px;
}

/* Since the checkbox must be a sibling or ancestor trick is hard with
   deeply nested elements, we use a simpler approach:
   the toggle button label sits INSIDE .uv-panel, so we use
   a wrapper checkbox placed just before .uv-page in the blade.
   See HTML structure below.
   For pure CSS: wrap everything in a label-checkbox pair. */

/* ---------- Collapsed panel rules ---------- */
.uv-panel.is-collapsed,
.uv-panel.collapsed {
    width: 400px;
    min-width: 400px;
}
.uv-panel.is-collapsed .uv-subtitle,
.uv-panel.collapsed .uv-subtitle {
    /* display: none; */
}
.uv-panel.is-collapsed #uvToggleIcon,
.uv-panel.collapsed #uvToggleIcon,
.uv-panel.is-collapsed #uvCollapseIcon,
.uv-panel.collapsed #uvCollapseIcon {
    transform: scaleX(-1);
}

/* Collapsed bottom bar: only icon buttons, no text */
.uv-panel.is-collapsed .uv-act-back,
.uv-panel.collapsed .uv-act-back { flex: 0 0 42px; padding: 0; }
.uv-panel.is-collapsed .uv-act-save,
.uv-panel.collapsed .uv-act-save { flex: 1; }
.uv-panel.is-collapsed .uv-act-next,
.uv-panel.collapsed .uv-act-next { flex: 1; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 767px) {
    .uv-page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    .uv-panel,
    .uv-panel.is-collapsed {
        width: 100% !important;
        min-width: 100% !important;
        max-height: 55vh;
        border-right: none;
        border-bottom: 1px solid #e2e6ea;
    }
    .uv-toggle,
    .uv-panel.collapsed .uv-toggle,
    .uv-panel.is-collapsed .uv-toggle {
        top: auto !important;
        bottom: -13px !important;
        right: 50% !important;
        transform: translateX(50%) !important;
    }
    .uv-map-area {
        height: 45vh;
        min-height: 280px;
    }
}

/* ================================================================
   WARNING LOCATIONS LIST  (collapsible, below the issues button)
   ================================================================ */
.uv-warning-locations {
    margin-top: -5px;
    margin-left: 40px;
    border-left: 2px solid #f1f5f9;
    padding-top: 4px;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: calc(100% - 40px);
    max-height: 250px;
    overflow-y: auto;
}

/* Custom premium scrollbar for warning locations */
.uv-warning-locations::-webkit-scrollbar {
    width: 6px;
}
.uv-warning-locations::-webkit-scrollbar-track {
    background: transparent;
}
.uv-warning-locations::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.uv-warning-locations::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Individual location row */
.uv-wl-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}
.uv-wl-row:last-child {
    margin-bottom: 0;
}
.uv-wl-row.active {
    background-color: #eff6ff;
    border-color: #bfdbfe;
}

/* Left side: icon + text */
.uv-wl-left {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    flex: 1;
    min-width: 0;
}

/* Geometry type icon */
.uv-wl-geo-icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: #9ca3af;
    width: 14px;
    height: 14px;
}

/* Text column */
.uv-wl-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

/* Feature ID label */
.uv-wl-fid {
    font-family: 'Poppins', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge row */
.uv-wl-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Individual warning badge pill */
.uv-wl-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background-color: #fff4e5;
    border: 1px solid #fcd29e;
    color: #c2410c;
    font-family: 'Poppins', sans-serif;
    font-size: 9.5px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 20px;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}
.uv-wl-badge svg {
    flex-shrink: 0;
    opacity: 0.75;
}

/* Orange/Red status dot on the right */
.uv-wl-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #f97316;
    margin-top: 4px;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.18);
}
.uv-wl-dot.uv-dot-error {
    background-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18);
}
.uv-wl-dot.uv-dot-warning {
    background-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.18);
}

/* ================================================================
   MAP LEGEND (bottom-right overlay inside .uv-map-area)
   ================================================================ */
.uv-map-legend {
    position: absolute;
    bottom: 14px;
    right: 64px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    padding: 12px 16px;
    font-family: 'Poppins', -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
    z-index: 5;
}
.uv-legend-title {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}
.uv-legend-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.uv-legend-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.uv-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 3px;
    flex-shrink: 0;
}
.uv-legend-dot.uv-error {
    background-color: #ef4444;
}
.uv-legend-dot.uv-warning {
    background-color: #f97316;
}
.uv-legend-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.uv-legend-label {
    font-size: 11px;
    font-weight: 600;
    color: #0f172a;
}
.uv-legend-sub {
    font-size: 9px;
    font-weight: 400;
    color: #64748b;
    margin-top: 1px;
}

/* ================================================================
   GOOGLE MAPS INFO WINDOW  (.uv-iw)
   ================================================================ */

/* Override Google's default InfoWindow padding */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14) !important;
}
.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}
.gm-style .gm-style-iw-t::after {
    background: #ffffff !important;
}

/* Container */
.uv-iw {
    font-family: 'Poppins', sans-serif;
    min-width: 220px;
    max-width: 320px;
}

/* Header — feature ID */
.uv-iw-header {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-bottom: 1px solid #fed7aa;
    padding: 10px 14px 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #c2410c;
    letter-spacing: 0.02em;
}

/* Property rows */
.uv-iw-body {
    padding: 8px 14px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.uv-iw-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.uv-iw-label {
    font-size: 9.5px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    padding-top: 1px;
    flex-shrink: 0;
}

.uv-iw-value {
    font-size: 10.5px;
    color: #1e293b;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

/* Warning badge pills */
.uv-iw-warnings {
    padding: 6px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid #fde8d0;
}

.uv-iw-badge {
    display: inline-flex;
    align-items: flex-start;
    gap: 4px;
    background: #fff4e5;
    border: 1px solid #fcd29e;
    color: #c2410c;
    font-size: 9px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 20px;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}
.uv-iw-badge svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.8;
}

/* ================================================================
   FIXED INFO PANEL  (top-left overlay inside .uv-map-area)
   ================================================================ */
.uv-ip-panel {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    width: 300px;
    max-height: calc(100% - 28px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    /* Slide-in animation */
    transform: translateX(0) translateY(0);
    opacity: 1;
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.uv-ip-panel.uv-ip-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
}

/* Header */
.uv-ip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px 11px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.uv-ip-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.uv-ip-fid {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.uv-ip-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.uv-ip-close:hover { background: #f1f5f9; color: #1e293b; }

/* Scrollable body */
.uv-ip-body {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100% - 46px);
    flex: 1;
}
.uv-ip-body::-webkit-scrollbar { width: 4px; }
.uv-ip-body::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

/* Section */
.uv-ip-section {
    padding: 12px 14px 10px;
    border-bottom: 1px solid #f1f5f9;
}
.uv-ip-section:last-child { border-bottom: none; }

.uv-ip-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: capitalize !important;
    letter-spacing: 0.07em;
    color: #64748b;
    margin-bottom: 9px;
}
.uv-ip-section-title--warn {
    color: #dc2626;
}
.uv-ip-section--warn {
    background: #ffffff;
    padding: 12px 14px 10px;
}
.uv-ip-warn-box {
    background: #fff1f1;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 8px 10px;
}

/* Property row */
.uv-ip-row {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 5px;
    font-size: 10.5px;
    line-height: 1.5;
}
.uv-ip-row:last-child { margin-bottom: 0; }

.uv-ip-label {
    font-size: 10.5px;
    color: #1e293b;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.uv-ip-label::after {
    content: ': ';
    font-weight: 700;
    color: #1e293b;
}
.uv-ip-value {
    font-size: 10.5px;
    color: #334155;
    font-weight: 400;
    word-break: break-word;
}

/* Warning row */
.uv-ip-warn-row {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 5px;
}
.uv-ip-warn-row:last-child { margin-bottom: 0; }

.uv-ip-warn-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    margin-top: 4px;
}
.uv-ip-warn-text {
    font-size: 10px;
    color: #b91c1c;
    font-weight: 500;
    line-height: 1.55;
    word-break: break-word;
}

/* Collapsible Original Fields section */
.uv-ip-collapse-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}
.uv-ip-collapse-trigger.is-open { margin-bottom: 9px; }
.uv-ip-chevron {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.uv-ip-collapse-trigger.is-open .uv-ip-chevron {
    transform: rotate(180deg);
}
.uv-ip-collapse-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
}
.uv-ip-collapse-body.is-open {
    max-height: 500px;
}

/* ================================================================
   STEP03 MAP & SIDEBAR UI STYLES
   ================================================================ */
.leaflet-container { font-family: inherit; }
.custom-cluster-icon { background-color: #0F5BAB; color: white; border-radius: 50%; border: 4px solid #bfdbfe; box-shadow: 0 0 10px rgba(0,0,0,0.2); width: 40px !important; height: 40px !important; position: relative; margin: 0 !important; }
.cluster-count { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 13px; font-weight: bold; line-height: 1; color: white; display: block; }
.custom-point-icon { background-color: #7c3aed; border-radius: 50%; box-shadow: 0 0 4px rgba(0,0,0,0.3); border: 1px solid #fff; }

.sidebar-wrapper {
    font-family: 'Poppins', sans-serif;
    background-color: #FFF;
    font-size: 12px;
    width: 600px;
    min-width: 600px;
    border-right: 1px solid #e2e8f0;
    z-index: 2;
    transition: width 0.3s ease, min-width 0.3s ease;
}
.sidebar-wrapper.collapsed {
    width: 400px !important;
    min-width: 400px !important;
}
.stat-card-custom { background-color: #ffffff; border: 1px solid #e8edf3; border-radius: 10px; box-shadow: 0 1px 4px rgba(15,23,42,0.06); }
.stat-card-icon { width: 36px; height: 36px; min-width: 36px; background-color: #F0F5FA; color: #0F5BAB; display: flex; align-items: center; justify-content: center; border-radius: 50%; }

.sidebar-header-banner { background: #ffffff; padding: 0; margin-top: 0; margin-left: 0; margin-right: 0; }
.sidebar-header-title { color: #0F5BAB; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.sidebar-header-subtitle { color: #64748b; font-size: 11px; font-weight: 400; margin-top: 4px; line-height: 1.5; }
.sidebar-section-label { color: #0F5BAB; font-size: 10px; font-weight: 600; letter-spacing: 0.02em; display: flex; align-items: center; }

.stat-title { color: #94a3b8; font-size: 9px; font-weight: 600; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { color: #0f172a; font-size: 18px; font-weight: 600; line-height: 1.1; }

.filter-btn-active { background-color: #0F5BAB !important; color: white !important; border-color: #0F5BAB !important; }
.filter-btn { background-color: #fff; color: #0f172a; border: 1px solid #e2e8f0; font-weight: 700; font-size: 10px; padding: 4px 10px; border-radius: 5px; cursor: pointer; transition: all 0.2s; }
.filter-btn:hover { background-color: #f8fafc; border-color: #cbd5e1; }

.btn-action-back { background-color: #65758b99 !important; color: #ffffff !important; border-radius: 20px; font-weight: 700; font-size: 11px; border: none; padding: 7px 14px; transition: all 0.2s;    height: 32px;min-width: 180px;    gap: 6px;}
.btn-action-back:hover { background-color: #64748b; color: #ffffff !important; }
.btn-action-primary { background-color: #0F5BAB; color: white; border-radius: 20px; font-weight: 700; font-size: 11px; border: none; padding: 7px 14px; transition: all 0.2s;}
.btn-action-primary:hover { background-color: #001f54; color: white; }
.btn-action-cancel { background-color: #fff1f2; color: #e11d48; border-radius: 20px; font-weight: 700; font-size: 12px; border: none; padding: 5px 14px; width: 100%; display: flex; align-items: center; justify-content: center; transition: all 0.2s;     height: 32px;}
.btn-action-cancel:hover { background-color: #ffe4e6; }

.btn-action-save { background-color: #005092; color: white; border-radius: 20px; font-weight: 700; font-size: 11px; border: none; padding: 7px 14px; transition: all 0.2s;}
.btn-action-save:hover { background-color: #002b70; color: white; }
.btn-action-save svg { display: none; }
.sidebar-wrapper.collapsed .btn-action-save { padding: 7px 8px !important; }
.sidebar-wrapper.collapsed .btn-action-save svg { display: block !important; }

.btn-action-next { background-color: #005092; color: white; border-radius: 20px; font-weight: 700; font-size: 11px; border: none; padding: 7px 14px; transition: all 0.2s;}
.btn-action-next:hover { background-color: #002b70; color: white; }
.btn-action-next:disabled { color: #65758b !important; background: #f1f5f9 !important; cursor: not-allowed !important; }
.sidebar-wrapper.collapsed .btn-action-next { padding: 7px 8px !important; }

/* SVG icons within action buttons */
.btn-action-back svg,
.btn-action-primary svg,
.btn-complete-case svg,
.btn-action-save svg,
.btn-action-next svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
}

.uv-sec-cancel svg,
.btn-action-cancel svg,
.uv-btn-cancel svg {
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0;
}

/* Hide text when sidebar is collapsed */
.sidebar-wrapper.collapsed .btn-text {
    display: none !important;
}

.sidebar-wrapper.collapsed .btn-action-back,
.sidebar-wrapper.collapsed .btn-action-primary,
.sidebar-wrapper.collapsed .btn-action-save,
.sidebar-wrapper.collapsed .btn-action-next {
    padding: 7px 8px !important;
}

.collapse-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    right: -16px;
    top: 24px;
    z-index: 10;
}
.collapse-btn:hover {
    background-color: #f8fafc;
    color: #0F5BAB;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.collapse-btn svg {
    width: 16px !important;
    height: 16px !important;
}

.feature-info-table td { padding-top: 3px; padding-bottom: 3px; vertical-align: top; }
.map-container-wrapper #mapLoader { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(2px); position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.popover { max-width: 300px; }

.sidebar-scrollable::-webkit-scrollbar { width: 5px; }
.sidebar-scrollable::-webkit-scrollbar-track { background: transparent; }
.sidebar-scrollable::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.sidebar-scrollable::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.sidebar-scrollable { overflow-y: auto; display: flex; flex-direction: column; gap: 8px;    padding: 20px;
    padding-left: 30px; }

.geo-sub-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; color: #475569; background: #fff; border: 1px solid #e2e8f0; border-radius: 4px; padding: 2px 7px; }

/* Styles extracted from inline declarations */
.map-container-wrapper {
    border-radius: 12px;
    height: calc(100vh - 212px);
    min-height: 400px;
    background: #fff;
}
.sidebar-header-icon {
    color: #0F5BAB;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.sidebar-chat-trigger {
    cursor: pointer;
    color: #ef4444;
    font-size: 18px;
}
.sidebar-section-divider {
    background: #fff;
    padding: 0 !important;
}
.sidebar-section-icon {
    color: #0F5BAB;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.stat-card-icon .material-symbols-outlined {
    font-size: 18px;
}
.stat-unique-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 500;
}
.stat-card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 8px !important;
    margin-top: 4px;
}
.stat-sub-item {
    font-size: 10px;
    font-weight: 600;
    color: #475569;
}
.stat-sub-icon-container-points {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}
.stat-sub-value {
    color: #0f172a;
    font-weight: 700;
}
.stat-sub-icon-container-polygons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff7ed;
    border: 1px solid #fed7aa;
    color: #ea580c;
}
.stat-value-unit {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
}
.filter-section-icon {
    font-size: 13px;
}
.btn-complete-case {
    font-size: 12px;
}
.next-analysis-hint {
    font-size: 11px;
}
.sidebar-footer-brand {
    font-size: 10px;
}
#leafletMap,
#googleMap {
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #e5e5e5;
}
.map-top-right-overlay {
    z-index: 1000;
}
.btn-toggle-cluster {
    background-color: #0F5BAB;
    border: none;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, transform 0.15s ease;
    border-radius: 8px !important;
    padding: 8px 24px !important;
    min-width: 150px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-toggle-cluster svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
}
.btn-toggle-cluster:hover {
    background-color: #0D4E96;
    color: #ffffff;
}
.map-top-left-overlay {
    z-index: 1000;
    display: none;
}
.feature-info-card {
    width: 290px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    border: none;
    font-family: 'Poppins', sans-serif;
}
.feature-info-card .card-header {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 14px 16px !important;
}
.feature-info-card #infoPanelTitle {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}
.feature-info-card .material-symbols-outlined.text-muted {
    color: #94a3b8 !important;
}
.feature-info-sec-title {
        font-size: 10px;
    font-weight: 600;
    text-transform: math-auto;
    letter-spacing: 0.05em;
    color: #65758b;
    margin-bottom: 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}
.feature-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.feature-info-item {
    display: flex;
    font-size: 10px;
    line-height: 1;
}
.feature-info-item .info-label {
    font-weight: 600;
    color: #65758b;
    margin-right: 6px;
    white-space: nowrap;
}
.feature-info-item .info-value {
    color: #334155;
    font-weight: 500;
}
.btn-close-small {
    font-size: 10px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.btn-close-small:hover {
    opacity: 1;
}
.feature-info-value-truncate {
    max-width: 140px;
    display: inline-block;
}
.clickable-trigger {
    cursor: pointer;
}
#toggleOriginalFields {
    background-color: #f1f5f9;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #1e3a8a !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 12px;
}
#toggleOriginalFields:hover {
    background-color: #e2e8f0;
}
#originalFieldsContent {
    display: none;
    max-height: 150px;
    overflow-y: auto;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
#originalFieldsTable {
    font-size: 10px;
    color: #475569;
    width: 100%;
}
#originalFieldsTable td {
    padding: 2px 0;
}
.map-bottom-right-overlay {
    z-index: 1000;
        right: 40px;
    bottom: 5px !important;
}
.map-legend-card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    width: 200px;
    background: #ffffff;
    border: none !important;
}
.legend-title {
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}
.legend-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #7c3aed;
    flex-shrink: 0;
}
span.fs-10.fw-bold.text-dark{
    font-size: 10px;
}
.legend-sub-text {
    font-size: 9px;
    color: #64748b;
    font-weight: 500;
}
.leaflet-custom-marker-dot {
    width: 8px;
    height: 8px;
    background-color: #7c3aed;
    border-radius: 50%;
}

/* ================================================================
   GOOGLE MAPS – custom cluster icon  (step03-new)
   ================================================================ */
.gm-cluster-icon {
        box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0F5BAB;
    border: 4px solid #ffffff66;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.gm-cluster-icon:hover {
    transform: scale(1.12);
}
.gm-cluster-icon span {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* Ensure Google map controls don't sit under our overlays */
.map-container-wrapper .gm-bundled-control,
.map-container-wrapper .gmnoprint {
    z-index: 500 !important;
}


.map-container{
    max-width: 900px; width: 100%;
}

.map-container .text-black-333{
    font-size: 18px !important;
}

.map-container .assement-top-menu li a{
    font-size: 14px;
}
.map-container .assement-top-menu i, .map-container .assement-top-menu span {
    font-size: 14px;
    margin-top: 6px;
}

.map-container .step-number {
    width: 24px;
    height: 24px;
    font-size: 12px;
    margin-bottom: 3px;
}

.map-container .step-title{
    font-size: 10px !important;
}
.map-container .step::before{
    width: 15px;
    height: 24px;
    font-size: 12px;
    margin-bottom: 3px;
    top: -9px;
    right: -9px;
}

.uv-origin-card .error-message {
    color: #ef4343;
    background-color: #ef434326;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.animate-spin {
    animation: spin 1s linear infinite;
}

/* Dynamic Validation Findings Box */
.uv-findings-box {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px;
    margin: 16px 0;
    font-family: 'Poppins', sans-serif;
}
.uv-findings-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0 0 10px 0;
    color: #475569;
    font-size: 11px;
    line-height: 1.6;
}
.uv-findings-list li {
    margin-bottom: 2px;
}
.uv-findings-list li:last-child {
    margin-bottom: 0;
}
.uv-findings-list strong {
    color: #0f172a;
}
.uv-findings-btn-container {
    display: flex;
    gap: 12px;
}
.uv-findings-btn-container button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-logs-report-wrapper{
    display: block;
    width: 100%;
}
.uv-findings-btn-container .btn-logs-report {
    background-color: #005092;
    color: #ffffff;
    border: none;
    display: block;
    width: 100%;
}
.uv-findings-btn-container .btn-logs-report:hover {
    background-color: #00386b;
}
.uv-findings-btn-container .btn-req-assistance {
    background-color: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}
.uv-findings-btn-container .btn-req-assistance:hover {
    background-color: #f8fafc;
}

/* Collapsed findings box styles */
.uv-panel.collapsed .uv-findings-box .uv-findings-list li:not(:first-child),
.uv-panel.is-collapsed .uv-findings-box .uv-findings-list li:not(:first-child) {
    display: none !important;
}
.uv-panel.collapsed .uv-findings-box .uv-findings-list,
.uv-panel.is-collapsed .uv-findings-box .uv-findings-list {
    margin-bottom: 0 !important;
}
.uv-panel.collapsed .uv-findings-box .uv-findings-btn-container,
.uv-panel.is-collapsed .uv-findings-box .uv-findings-btn-container {
    display: none !important;
}

/* Sidebar Collapsed State File Row Adjustments */
#uvSidebar.collapsed .uv-fsize,
#uvSidebar.collapsed .uv-lbl-issues,
#uvSidebar.collapsed .uv-lbl-review,
#uvSidebar.collapsed .uv-lbl-valid,
#uvSidebar.collapsed .uv-lbl-fixing,
#uvSidebar.collapsed .uv-lbl-uploaded,
#uvSidebar.uncollapse-delay .uv-fsize,
#uvSidebar.uncollapse-delay .uv-lbl-issues,
#uvSidebar.uncollapse-delay .uv-lbl-review,
#uvSidebar.uncollapse-delay .uv-lbl-valid,
#uvSidebar.uncollapse-delay .uv-lbl-fixing,
#uvSidebar.uncollapse-delay .uv-lbl-uploaded {
    display: none !important;
}

#uvSidebar.collapsed .uv-fbadge,
#uvSidebar.collapsed .uv-fbtn-review,
#uvSidebar.collapsed .uv-fbtn-issues,
#uvSidebar.collapsed .uv-wl-settings-btn,
#uvSidebar.uncollapse-delay .uv-fbadge,
#uvSidebar.uncollapse-delay .uv-fbtn-review,
#uvSidebar.uncollapse-delay .uv-fbtn-issues,
#uvSidebar.uncollapse-delay .uv-wl-settings-btn {
    padding: 2px 6px !important;
    font-size: 8px !important;
    min-height: unset !important;
    height: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    margin-right: 0 !important;
}

#uvSidebar.collapsed .uv-fbtn-issues,
#uvSidebar.uncollapse-delay .uv-fbtn-issues {
    padding: 4px !important;
    height: 14px !important;
    min-height: unset !important;
    font-size: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    margin-right: 0 !important;
}

#uvSidebar.collapsed .uv-fbadge svg,
#uvSidebar.collapsed .uv-fbtn-review svg,
#uvSidebar.collapsed .uv-fbtn-issues svg,
#uvSidebar.uncollapse-delay .uv-fbadge svg,
#uvSidebar.uncollapse-delay .uv-fbtn-review svg,
#uvSidebar.uncollapse-delay .uv-fbtn-issues svg {
    margin-right: 0 !important;
}

#uvSidebar.collapsed .uv-fdetails,
#uvSidebar.uncollapse-delay .uv-fdetails {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 4px !important;
    flex-wrap: wrap;
}

/* Collapsed State Bottom Action Buttons (Icons Only) */
#uvSidebar.collapsed .uv-act-btn span,
#uvSidebar.collapsed .uv-sec-cancel span,
#uvSidebar.collapsed .uv-sec-reset span,
#uvSidebar.uncollapse-delay .uv-act-btn span,
#uvSidebar.uncollapse-delay .uv-sec-cancel span,
#uvSidebar.uncollapse-delay .uv-sec-reset span {
    display: none !important;
}

#uvSidebar.collapsed .uv-actions-row,
#uvSidebar.uncollapse-delay .uv-actions-row {
    gap: 8px !important;
}

#uvSidebar.collapsed .uv-act-btn,
#uvSidebar.uncollapse-delay .uv-act-btn {
    padding: 0 !important;
    width: 100% !important;
    flex: 1 !important;
}

.uv-act-save svg{
    display: none;
}
#uvSidebar.collapsed .uv-act-save svg,
#uvSidebar.is-collapsed .uv-act-save svg,
#uvSidebar.uncollapse-delay .uv-act-save svg {
    width: 12px !important;
    height: 12px !important;
    display: block !important;
}

#uvSidebar.collapsed .uv-sec-cancel,
#uvSidebar.uncollapse-delay .uv-sec-cancel {
    padding: 8px 0 !important;
    width: 45% !important;
    justify-content: center !important;
    border-radius: 18px !important;
    border: none !important;
}

#uvSidebar.collapsed .uv-sec-reset,
#uvSidebar.uncollapse-delay .uv-sec-reset {
    padding: 8px 0 !important;
    width: 45% !important;
    justify-content: center !important;
    border-radius: 18px !important;
    border: none !important;
}
.uv-sec-cancel svg{
        width: 12px;
}

#uvSidebar.collapsed .uv-file-row,
#uvSidebar.uncollapse-delay .uv-file-row {
    min-height: 42px;
}

#uvSidebar.collapsed .uv-acc-title,
#uvSidebar.uncollapse-delay .uv-acc-title {
    font-size: 11px !important;
}

/* White Tooltip Custom Styles */
.white-tooltip .tooltip-inner {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-family: 'Poppins', sans-serif !important;
}

.white-tooltip .arrow::before {
    border-top-color: #cbd5e1 !important;
    border-bottom-color: #cbd5e1 !important;
    border-left-color: #cbd5e1 !important;
    border-right-color: #cbd5e1 !important;
}

.uv-fbadge-invalid-geometry{
    color: #ef4343;
    background: #ef434326;
    font-size: 9px;
}

.uv-fbadge-invalid-geometry svg{
    width: 9px;
    height: 9px;
}


#uvSidebar.collapsed .uv-acc-body,
#uvSidebar.is-collapsed .uv-acc-body {
    transition: none !important;
}

#uvSidebar.collapsed span.uv-fbadge.uv-fbadge-uploaded.d-none {
    display: none !important;
}

#uvSidebar.collapsed .uv-act-btn , .sidebar-wrapper.collapsed .btn-action-back {
    min-width: auto !important;
}
.mb-8px{
    margin-bottom: 8px;
}
.padding-1412{
    padding: 16px 20px 12px !important;
    min-height: 152px;
}
.save-and-exist{
    max-width: 180px !important;
}
.gp-6{
    gap: 6px;
}
.gotToStep4{
    gap: 6px;
}
.uv-file-row.uv-status-success
 {
    background: #84c7381a;
    border-color: #84c7384d;
}

.uv-complete-case-btn{
    min-width: 189px;
    background: #59AF4B;
    color: #fff;
}
.map-container .dropdown-menu{
        margin-top: 18px;
    left: 0px !important;
}
.map-container .dropdown-menu li{
        padding: 2px 10px !important;
}
.map-container .dropdown-menu li a{
font-size: 12px;
}