/**
 * 📁 파일 위치: /volume1/web/gpt/assets/workbench_v4.css
 * ✅ 덮어쓰기 지시: 전체 저장
 * - 현장 상세 카드 요약형 UI
 * - 카드 안의 카드 과다 제거
 * - 업무 콘솔형 정보 밀도 개선
 */

.wb-summary-card {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.wb-summary-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.wb-summary-main {
    min-width: 0;
}

.wb-summary-title {
    font-size: 20px;
    font-weight: 950;
    color: #111827;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.wb-summary-sub {
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
}

.wb-summary-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 900;
}

.wb-summary-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #eef2f7;
    padding-top: 12px;
    gap: 10px;
}

.wb-meta-item {
    min-width: 0;
}

.wb-meta-label {
    font-size: 11px;
    font-weight: 900;
    color: #94a3b8;
    margin-bottom: 3px;
}

.wb-meta-value {
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wb-money-card {
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.wb-money-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.wb-money-title {
    font-size: 18px;
    font-weight: 950;
    color: #111827;
}

.wb-money-sub {
    margin-top: 3px;
    color: #64748b;
    font-size: 13px;
}

.wb-money-total {
    text-align: right;
}

.wb-money-total .amount {
    font-size: 26px;
    font-weight: 950;
    color: #111827;
    letter-spacing: -0.04em;
}

.wb-money-total .count {
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
    font-weight: 800;
}

.wb-quote-compact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wb-quote-compact {
    display: grid;
    grid-template-columns: 84px 1fr 128px 76px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #eef2f7;
    background: #fff;
    border-radius: 12px;
}

.wb-quote-compact .id {
    font-weight: 950;
    color: #4f46e5;
}

.wb-quote-compact .title {
    font-weight: 800;
    color: #1e293b;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wb-quote-compact .amount {
    font-weight: 950;
    text-align: right;
    color: #111827;
}

.wb-quote-compact .status {
    justify-self: end;
    font-size: 12px;
    font-weight: 900;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 999px;
}

.wb-empty-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px 16px;
}

.wb-empty-compact strong {
    display: block;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 3px;
}

.wb-empty-compact span {
    color: #64748b;
    font-size: 13px;
}

.wb-mini-action {
    height: 34px;
    border: 1px solid #ddd6fe;
    background: #ede9fe;
    color: #5b21b6;
    border-radius: 999px;
    padding: 0 13px;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    white-space: nowrap;
}

.wb-mini-action:hover {
    background: #ddd6fe;
}

@media (max-width: 720px) {
    .wb-summary-card,
    .wb-money-card {
        padding: 14px;
        border-radius: 14px;
    }

    .wb-summary-top,
    .wb-money-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wb-summary-title {
        font-size: 17px;
    }

    .wb-summary-meta {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .wb-money-total {
        text-align: left;
    }

    .wb-money-total .amount {
        font-size: 23px;
    }

    .wb-quote-compact {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .wb-quote-compact .amount {
        text-align: left;
    }

    .wb-quote-compact .status {
        justify-self: start;
    }

    .wb-empty-compact {
        flex-direction: column;
        align-items: stretch;
    }

    .wb-mini-action {
        width: 100%;
    }
}
