/* ==================== 屋根設定スタイル ==================== */

.roof-panel {
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.roof-panel:hover {
    border-color: #2563EB;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.roof-panel h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1E40AF;
    font-size: 16px;
    margin-bottom: 15px;
}

.roof-panel h4 i {
    font-size: 18px;
}

.roof-azimuth,
.roof-pitch,
.roof-capacity {
    width: 100%;
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.roof-azimuth:focus,
.roof-pitch:focus,
.roof-capacity:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-secondary {
    background: #F3F4F6;
    color: #374151;
    border: 2px solid #D1D5DB;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #E5E7EB;
    border-color: #9CA3AF;
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-secondary i {
    font-size: 14px;
}

/* 合計容量表示 */
#totalSolarCapacity {
    font-size: 24px;
    font-weight: 700;
    color: #1E40AF;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .roof-panel {
        padding: 15px;
    }
    
    .roof-panel h4 {
        font-size: 14px;
    }
    
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== パネル型番＋枚数で容量を決めるUI ==================== */
.panel-picker {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #D1D5DB;
}

.panel-picker-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1E40AF;
    cursor: pointer;
}

.panel-picker-switch input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.panel-picker-body {
    margin-top: 12px;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
}

.panel-picker-maker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.panel-picker-maker label {
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
}

.panel-picker-maker select {
    flex: 1;
    padding: 8px 10px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13px;
}

.panel-picker-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.panel-picker-model {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13px;
}

.panel-picker-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #374151;
}

.panel-picker-count input {
    width: 72px;
    padding: 8px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13px;
    text-align: right;
}

.panel-picker-sub {
    min-width: 68px;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: #1E40AF;
}

.panel-picker-remove {
    border: none;
    background: #F3F4F6;
    color: #6B7280;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.panel-picker-remove:hover {
    background: #FEE2E2;
    color: #B91C1C;
}

.panel-picker-add {
    border: 1px dashed #93C5FD;
    background: #EFF6FF;
    color: #1D4ED8;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
}

.panel-picker-add:hover {
    background: #DBEAFE;
}

.panel-picker-summary {
    margin-top: 10px;
    font-size: 13px;
    color: #374151;
}

.panel-picker-summary strong {
    color: #1E40AF;
    font-size: 15px;
}

.panel-picker-note {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
}

.panel-picker-note.level-ok    { color: #047857; }
.panel-picker-note.level-warn  { color: #B45309; }
.panel-picker-note.level-ng    { color: #B91C1C; font-weight: 700; }

/* パネルから自動計算しているときの容量欄 */
.roof-capacity.is-auto {
    background: #F3F4F6;
    color: #1E40AF;
    font-weight: 700;
}

.panel-picker-hint {
    margin-top: 4px;
    font-size: 11.5px;
    color: #6B7280;
}
