/* ===== SOLAR INSTALLATION METRICS STYLES ===== */

.cpe-extra-metrics {
    font-size: 1.5em; /* 50% larger text */
    margin: 8px auto 0 auto; /* Center horizontally, keep top margin */
    display: flex;
    align-items: center;
    max-width: 80%; /* 20% reduction in length */
}

.cpe-extra-metrics i {
    color: #fd7e14; /* Orange color for icons */
    font-size: 1.5em; /* 50% larger icons */
}

.cpe-extra-metrics span {
    margin-right: 15px;
}

.cpe-extra-metrics span:last-child {
    margin-right: 0;
    margin-left: auto;
}

/* Rolling 12-month start picker in Configurações Solar */
.solar-month-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}
.solar-month-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.solar-month-swatch {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 4px;
    border: 1px solid #ced4da;
    background: #fff;
    display: inline-block;
}
.solar-month-swatch.is-eligible {
    background: #d1e7dd;
    border-color: #198754;
}
.solar-month-swatch.is-in-window {
    background: #0d6efd;
    border-color: #0d6efd;
}
.solar-month-swatch.is-available {
    background: #f8f9fa;
    border-color: #adb5bd;
}
.solar-month-cal-header,
.solar-month-cal-row {
    display: grid;
    grid-template-columns: 3.4rem repeat(12, minmax(0, 1fr));
    gap: 4px;
    align-items: center;
}
.solar-month-cal-header {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c757d;
    text-align: center;
    margin-bottom: 4px;
}
.solar-month-calendar {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.solar-month-cal-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: #495057;
}
.solar-month-cell {
    min-height: 2rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: transparent;
    color: #adb5bd;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0;
    line-height: 1;
}
.solar-month-cell.is-empty {
    border-style: dashed;
    opacity: 0.45;
    pointer-events: none;
}
.solar-month-cell.is-available {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #ced4da;
    cursor: default;
}
.solar-month-cell.is-eligible {
    background: #d1e7dd;
    border-color: #198754;
    color: #0f5132;
    cursor: pointer;
}
.solar-month-cell.is-eligible:hover,
.solar-month-cell.is-eligible:focus {
    background: #a3cfbb;
    outline: none;
}
.solar-month-cell.is-in-window,
.solar-month-cell.is-start {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}
.solar-month-cell.is-in-window:not(:disabled) {
    cursor: pointer;
}
.solar-month-cell.is-in-window:not(:disabled):hover,
.solar-month-cell.is-in-window:not(:disabled):focus {
    background: #0b5ed7;
    color: #fff;
    outline: none;
}
.solar-month-cell.is-start.is-eligible:hover,
.solar-month-cell.is-start.is-eligible:focus {
    background: #0b5ed7;
    color: #fff;
}

.solar-battery-behavior-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.solar-battery-behavior-toggle:hover,
.solar-battery-behavior-toggle:focus {
    color: #0d6efd;
    outline: none;
}
.solar-battery-behavior-chevron {
    font-size: 0.8rem;
    color: #6c757d;
    transition: transform 0.2s ease;
}
.solar-battery-behavior-toggle[aria-expanded="true"] .solar-battery-behavior-chevron {
    transform: rotate(180deg);
}

.solar-sim-demo-teaser-wrap {
    position: relative;
}

/* Readonly roof canvas on solar sim / share (not dimensionamento .dim-roof-frozen absolute). */
.solar-sim-roof-canvas {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.solar-sim-roof-canvas-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
    will-change: transform;
    z-index: 1;
}
.solar-sim-roof-canvas-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    user-select: none;
    pointer-events: none;
}
body.solar-sim-share-view #solar-sim-coverage-study.solar-sim-coverage-study-card {
    margin-top: 1.5rem;
}
#solar-sim-coverage-study .dim-roof-frozen-restrictions,
#solar-sim-coverage-study .dim-roof-frozen-overlays {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
#solar-sim-coverage-study .dim-roof-frozen-restrictions {
    z-index: 2;
}
#solar-sim-coverage-study .dim-roof-frozen-overlays {
    z-index: 3;
}
.solar-sim-roof-canvas-stage.is-overlays-pending .dim-roof-frozen-restrictions,
.solar-sim-roof-canvas-stage.is-overlays-pending .dim-roof-frozen-overlays {
    visibility: hidden;
}
.solar-sim-demo-teaser-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}
#solar-sim-standalone-results.solar-sim-demo-gated #solar-sim-demo-teaser-blur {
    filter: blur(10px);
    user-select: none;
    pointer-events: none;
}
#solar-sim-standalone-results.solar-sim-demo-gated .solar-sim-demo-teaser-overlay {
    display: block;
}
@media print {
    #solar-sim-standalone-results.solar-sim-demo-gated #solar-sim-demo-teaser-blur {
        filter: none !important;
        pointer-events: auto !important;
    }
    #solar-sim-standalone-results.solar-sim-demo-gated .solar-sim-demo-teaser-overlay {
        display: none !important;
    }
}

/* Minhas simulações — documents-table layout (see documents_table.css) */
.solar-saved-sims-table {
    margin: 0;
}

.solar-saved-sims-group-row td {
    font-weight: 600;
    font-size: 0.88rem;
    color: #495057;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding-top: 0.7rem;
}

.solar-saved-sims-group-row:first-child td {
    padding-top: 0.55rem;
}

.solar-saved-sim-row {
    cursor: pointer;
}

.solar-saved-sim-row:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: -2px;
}

.solar-saved-sim-date {
    font-weight: 600;
}

.solar-saved-sim-battery-mode {
    display: block;
    color: #6c757d;
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.solar-saved-sim-thumb {
    object-fit: cover;
}