﻿/* ===== BaroMobile CSS ===== */
h1:focus {
    outline: none;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* ===== 상단 고정(sticky) 헤더 영역 ===== */
:root {
    /* MudAppBar 높이. 앱바 높이가 바뀌면 이 값만 조정 */
    --baro-appbar-h: 56px;
    /* 날짜 네비게이터(MudPaper pa-2 + 아이콘버튼) 대략 높이 */
    --baro-datenav-h: 64px;
    /* MudTabs 헤더(tabbar) 대략 높이 */
    --baro-tabbar-h: 48px;

    /* 디자인 토큰: 라운드 */
    --baro-radius-sm: 8px;
    --baro-radius-md: 12px;
    --baro-radius-lg: 16px;

    /* 디자인 토큰: 간격 */
    --baro-space-xs: 4px;
    --baro-space-sm: 8px;
    --baro-space-md: 12px;
    --baro-space-lg: 16px;
    --baro-space-xl: 24px;

    /* 디자인 토큰: 그림자 */
    --baro-shadow-1: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.08);
    --baro-shadow-2: 0 4px 12px rgba(0, 0, 0, 0.08);
    --baro-shadow-3: 0 10px 30px rgba(0, 0, 0, 0.12);

    /* 디자인 토큰: 트랜지션 */
    --baro-trans-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --baro-trans-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);

    /* 디자인 토큰: 글자 크기 배율(접근성, 가⁻/가⁺ 버튼) */
    --baro-font-scale: 1;

    /* 공정표 달력뷰: 열 너비 + 그리드 최소 폭(폰 너비보다 넓어 가로 스크롤됨).
       최소 폭 = 열 7개 + 열 사이 gap 6px + 좌우 테두리 2px */
    --baro-cal-col-w: 120px;
    --baro-cal-min-w: calc(var(--baro-cal-col-w) * 7 + 8px);
}

/* 모바일에서 스크롤 끝에 도달했을 때 브라우저의 pull-to-refresh(새로고침)가 발동하지 않도록 함 */
html, body {
    overscroll-behavior-y: contain;
}

/* 접근성: 앱 전체 글자 크기 배율 조정 */
html {
    font-size: calc(16px * var(--baro-font-scale, 1));
}

/* 부드러운 폰트 렌더링 + 한국어 폰트 패밀리 */
html, body,
.mud-typography, .mud-button, .mud-input, .mud-paper,
.mud-card, .mud-list, .mud-table, .mud-tabs,
.mud-dialog, .mud-chip, .mud-alert, .mud-appbar, .mud-drawer {
    font-family: "Pretendard", "Noto Sans KR", "Roboto", "Helvetica Neue", "Arial", sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 제목 weight 강화 */
.mud-typography-h6, .mud-typography-h5, .mud-typography-h4 {
    font-weight: 700;
}

.mud-button {
    font-weight: 600;
}

/* 날짜 선택 / 검색 등 상단에 고정할 헤더 블록 */
.baro-sticky-header {
    position: sticky;
    top: var(--baro-appbar-h);
    z-index: 20;
    background-color: var(--mud-palette-background);
}

/* DayReport 등 탭이 있는 페이지: 탭 헤더를 날짜 네비 아래에 고정 */
.baro-sticky-page .mud-tabs-tabbar {
    position: sticky;
    top: calc(var(--baro-appbar-h) + var(--baro-datenav-h));
    z-index: 15;
    background-color: var(--mud-palette-background);
}

/* 탭 내부 검색 필드를 탭 헤더 아래에 고정 */
.baro-sticky-search {
    position: sticky;
    top: var(--baro-appbar-h);
    z-index: 10;
    background-color: var(--mud-palette-background);
    padding-top: 8px;
}

/* ===== 공통 카드 디자인 토큰 ===== */
.baro-card {
    border-radius: var(--baro-radius-md);
    box-shadow: var(--baro-shadow-2);
    transition: box-shadow var(--baro-trans-base), transform var(--baro-trans-base);
}

.baro-card-interactive {
    cursor: pointer;
}

.baro-card-interactive:hover {
    box-shadow: var(--baro-shadow-2);
    transform: translateY(-1px);
}

/* ===== 키보드 포커스 표시 ===== */
:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===== Empty State ===== */
.baro-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    text-align: center;
    min-height: 200px;
}

.baro-empty-icon {
    font-size: 64px !important;
    width: 64px !important;
    height: 64px !important;
    opacity: 0.6;
    margin-bottom: 12px;
}

.baro-empty-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.baro-empty-desc {
    max-width: 320px;
    margin-bottom: 12px;
}

.baro-empty-action {
    margin-top: 8px;
}

/* ===== Image Gallery ===== */
.baro-image-thumb {
    position: relative;
    width: 100%;
    /* padding-top(%)는 항상 자신의 너비를 기준으로 계산되므로, flex/grid의
       align-items:stretch 등에 영향받지 않고 1:1 비율 박스를 확실히 보장한다. */
    padding-top: 100%;
    border-radius: var(--baro-radius-md);
    overflow: hidden;
    cursor: pointer;
    background-color: var(--mud-palette-surface);
    box-shadow: var(--baro-shadow-1);
    transition: box-shadow var(--baro-trans-base), transform var(--baro-trans-base);
}

.baro-image-thumb:hover {
    box-shadow: var(--baro-shadow-2);
    transform: scale(1.02);
}

.baro-image-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.baro-image-delete {
    position: absolute !important;
    top: 4px;
    right: 4px;
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(4px);
}

.baro-image-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    cursor: zoom-out;
    animation: baro-fade-in 200ms ease;
}

.baro-image-popup img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    touch-action: none;
    cursor: default;
    border-radius: var(--baro-radius-sm);
}

.baro-image-popup-close {
    position: absolute !important;
    top: 12px;
    right: 12px;
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    z-index: 1501;
}

.baro-image-popup-close:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

@keyframes baro-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Login ===== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #F5A623 0%, #E8730C 45%, #A84B08 100%);
    padding: 20px;
}

/* ===== Entry Pages (shared from inline <style> blocks) ===== */
.entry-content {
    padding-bottom: 80px;
}

.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.image-popup-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.image-thumbnail {
    cursor: pointer;
}

/* ===== Entry Action Bar (하단 고정) ===== */
.baro-entry-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--mud-palette-surface);
    padding: 12px 16px;
    border-top: 1px solid var(--mud-palette-lines-default);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ===== 하자보수 처리 커맨트 (채팅형 UI) ===== */
.baro-chat-thread {
    display: flex;
    flex-direction: column;
    padding-bottom: 160px;
    max-height: none;
    overflow-y: visible;
}

.baro-chat-row {
    display: flex;
    flex-direction: column;
    margin: 8px 0;
    max-width: 80%;
}

.baro-chat-row--left {
    align-items: flex-start;
    margin-right: auto;
}

.baro-chat-row--right {
    align-items: flex-end;
    margin-left: auto;
}

.baro-chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    white-space: pre-wrap;
    word-break: break-word;
}

.baro-chat-row--left .baro-chat-bubble {
    background-color: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    color: var(--mud-palette-text-primary);
    border-top-left-radius: 4px;
}

.baro-chat-row--right .baro-chat-bubble {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-contrasttext);
    border-top-right-radius: 4px;
}

.baro-chat-bubble--editing {
    width: 100%;
    background-color: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    color: var(--mud-palette-text-primary);
}

.baro-chat-images {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.baro-chat-image-thumb {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
}

.baro-chat-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.baro-chat-image-remove {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px;
    background-color: rgba(0, 0, 0, 0.35);
}

.baro-chat-meta {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.72rem;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 2px;
}

.baro-chat-input-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--mud-palette-surface);
    padding: 10px 16px;
    border-top: 1px solid var(--mud-palette-lines-default);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ===== 테마 메뉴 안 글자 크기 조절 행 (가⁻ / 단계 / 가⁺) ===== */
.baro-menu-fontsize-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 4px 16px;
}

.baro-menu-fontsize-btn {
    font-size: 13px !important;
    min-width: 32px !important;
    padding: 0 6px !important;
    text-transform: none;
}

.baro-menu-fontsize-label {
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

/* ===== AppBar User Menu ===== */
.baro-appbar-user {
    color: #FFFFFF !important;
    text-transform: none;
    padding: 4px 12px;
}

.baro-appbar-user:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ===== AppBar는 글자 크기 조절(--baro-font-scale) 대상에서 제외: 고정 px로 크기 고정 ===== */
.mud-appbar .mud-typography-h6 {
    font-size: 20px !important;
}

.mud-appbar .mud-typography-button,
.mud-appbar .mud-button-root {
    font-size: 14px !important;
}

.mud-appbar .mud-icon-root {
    font-size: 24px !important;
}

/* ===== Time Table ===== */
.baro-time-table {
    width: 100%;
    table-layout: auto;
}

.baro-time-table col.baro-time-table-date {
    width: 1%;
    max-width: 25%;
}

.baro-time-table th,
.baro-time-table td,
.baro-time-table .mud-table-cell {
    padding: 4px !important;
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: normal;
}

.baro-time-table .baro-tt-saturday td {
    background-color: #e6f2ff;
    color: #0f172a;
}

.baro-time-table .baro-tt-sunday td {
    background-color: #ffeef0;
    color: #0f172a;
}

.baro-card.baro-tt-saturday {
    border-left: 4px solid #4d82cb;
    background-color: rgba(77, 130, 203, 0.14);
}

.baro-card.baro-tt-sunday {
    border-left: 4px solid #d55959;
    background-color: rgba(213, 89, 89, 0.14);
}

/* ===== 공정표 달력뷰 ===== */
/* 가로는 이 컨테이너가, 세로는 페이지가 스크롤한다 */
.baro-cal-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--baro-space-sm);
}

/* 그리드와 폭이 정확히 같아야 (1) 오른쪽 끝(토요일)이 안 잘리고 (2) 월 제목의 sticky(left)가
   스크롤 끝까지 따라온다. width:max-content로 감싸면 안 된다 — 그리드 폭이 내용 길이에 따라
   정해져 1fr 열이 콘텐츠 기준으로 늘어나고, 결국 달마다 열 너비가 달라진다.
   그래서 그리드와 동일한 min-width를 줘서 폭을 확정한다. */
.baro-cal-month {
    box-sizing: border-box;
    min-width: var(--baro-cal-min-w);
    margin-bottom: var(--baro-space-lg);
}

/* 가로 스크롤해도 월 표시가 왼쪽에 남도록 */
.baro-cal-month-title {
    position: sticky;
    left: 0;
    width: max-content;
    font-weight: 700;
    padding: var(--baro-space-sm) var(--baro-space-xs);
}

.baro-cal-grid {
    display: grid;
    box-sizing: border-box;
    grid-template-columns: repeat(7, minmax(var(--baro-cal-col-w), 1fr));
    min-width: var(--baro-cal-min-w);
    gap: 1px;
    background-color: var(--mud-palette-lines-default);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--baro-radius-sm);
    overflow: hidden;
}

.baro-cal-head {
    background-color: var(--mud-palette-surface);
    text-align: center;
    font-weight: 700;
    padding: var(--baro-space-sm) 0;
}

.baro-cal-cell {
    background-color: var(--mud-palette-surface);
    min-height: 96px;
    padding: var(--baro-space-xs);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.baro-cal-daynum {
    text-align: right;
    font-weight: 600;
    font-size: 0.8125rem;
}

.baro-cal-item {
    border-left: 3px solid var(--mud-palette-primary);
    padding: 2px 4px;
    border-radius: 4px;
    background-color: rgba(232, 115, 12, 0.08);
}

.baro-cal-item-work {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
}

.baro-cal-item-worker {
    font-size: 0.6875rem;
    opacity: 0.75;
    line-height: 1.25;
}

/* 토/일 — 위 baro-tt-* 와 같은 팔레트. 배경이 고정 밝은색이라 글자색도 함께 고정(다크모드 대비) */
.baro-cal-sat {
    background-color: #e6f2ff;
    color: #0f172a;
}

.baro-cal-sun {
    background-color: #ffeef0;
    color: #0f172a;
}

.baro-cal-head.baro-cal-sat {
    color: #4d82cb;
}

.baro-cal-head.baro-cal-sun {
    color: #d55959;
}

.baro-cal-outside {
    opacity: 0.45;
}

.baro-cal-today {
    box-shadow: inset 0 0 0 2px var(--mud-palette-primary);
}

/* ===== Unified Card ===== */
.baro-card-interactive {
    cursor: pointer;
}

.baro-card-interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--baro-shadow-2);
}

.baro-card-interactive:active {
    transform: scale(0.98);
}

.baro-card-interactive:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.baro-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.baro-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--mud-palette-text-primary);
}

.baro-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--mud-palette-text-secondary);
}

.baro-card-meta .mud-icon-root {
    color: var(--mud-palette-text-disabled);
    flex-shrink: 0;
}

.baro-card-meta-label {
    font-weight: 600;
    color: var(--mud-palette-text-disabled);
    min-width: 56px;
    flex-shrink: 0;
}

.baro-card-section + .baro-card-section {
    margin-top: 6px;
}

.baro-card-divider {
    margin: 8px 0;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.baro-card-actions {
    margin-top: 4px;
    padding: 0 8px;
}

.baro-card-actions > .mud-button-root:not(:last-child) {
    margin-right: 8px;
}

/* 카드 리스트 항목 간 간격 (Virtualize/반복 카드 컨테이너) */
.baro-list-gap > * + * {
    margin-top: var(--baro-list-gap, 12px);
}

.baro-list-gap .baro-card-interactive + .baro-card-interactive,
.baro-list-gap > div + div {
    margin-top: var(--baro-list-gap, 12px);
}

.mud-drawer .mud-drawer-content {
    padding-bottom: 72px;
}

/* 활성 NavLink 강조 */
.mud-nav-link.active {
    background-color: rgba(232, 115, 12, 0.08);
    border-left: 3px solid var(--mud-palette-primary);
    color: var(--mud-palette-primary) !important;
}

.mud-nav-link.active .mud-nav-link-icon {
    color: var(--mud-palette-primary) !important;
}

/* ===== Home Stat Cards ===== */
.baro-stat-card {
    border-radius: var(--baro-radius-md);
    border-left: 4px solid var(--mud-palette-primary);
    transition: box-shadow var(--baro-trans-base), transform var(--baro-trans-base);
}

.baro-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--baro-shadow-2);
}

.baro-home-greeting {
    font-weight: 700;
    margin-bottom: 4px;
}

/* ===== 통계 화면 (계약통계 / 매입매출통계) ===== */
.baro-stats-datepicker {
    min-width: 140px;
    max-width: 180px;
}

.baro-stats-unit {
    min-width: 100px;
    max-width: 120px;
}

.baro-stats-period {
    min-width: 92px;
    max-width: 120px;
}

/* 포인트가 많은 차트/넓은 표는 페이지 본문 대신 자기 안에서 가로 스크롤되게 한다 */
.baro-stats-chartwrap,
.baro-stats-tablewrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.baro-quick-btn {
    padding: 12px 16px !important;
    height: 56px;
    justify-content: flex-start;
    text-transform: none;
}

/* ===== Date Navigator ===== */
.baro-date-nav {
    padding: 8px 0;
}

.baro-date-chip {
    font-size: 1rem !important;
    font-weight: 600 !important;
    min-width: 140px;
    justify-content: center;
}

/* ===== Sticky Page Container ===== */
.baro-sticky-page {
    padding-top: 0;
}

/* ===== 고객요청사항 다이얼로그: 전체화면 + 다크 배경 꽉 채우기 ===== */
.mud-dialog.cr-dialog {
    background-color: #0f172a;
}

.cr-dialog .mud-dialog-content {
    padding: 0;
    background-color: #0f172a;
    position: relative;
    overflow: hidden; /* 내부 .cr-estimate가 스크롤 담당 */
}

.cr-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 30;
    color: #f8fafc !important;
    background-color: rgba(255, 255, 255, 0.08);
}

.cr-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

/* ===== 고객요청사항(견적 상세) 다이얼로그 - EstimateDetails 스타일 이식 ===== */
.cr-estimate {
    height: 100%;
    overflow-y: auto;
    --primary-color: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    background-color: #0f172a;
    color: var(--text-color);
    font-family: 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

.cr-estimate .cr-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.cr-estimate h1,
.cr-estimate h3 {
    font-weight: 700;
}

.cr-estimate .premium-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cr-estimate .section-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cr-estimate .section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.cr-estimate .detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.cr-estimate .detail-item:last-child {
    border-bottom: none;
}

.cr-estimate .detail-label {
    color: var(--text-muted);
    font-weight: 400;
}

.cr-estimate .detail-value {
    color: var(--text-color);
    font-weight: 500;
    text-align: right;
}

.cr-estimate .memo-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.cr-estimate .sub-item {
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cr-estimate .header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.cr-estimate .header h1 {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.cr-estimate .header p {
    color: var(--text-muted);
}

.cr-estimate .tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.cr-estimate .tags-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.cr-estimate .detail-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 16px;
    margin: 12px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.cr-estimate .detail-image:hover {
    transform: scale(1.02);
}

.cr-estimate .image-container {
    text-align: center;
    margin-top: 10px;
}

.cr-estimate .cr-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.cr-estimate .cr-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(99, 102, 241, 0.2);
    border-bottom-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: cr-rotation 1s linear infinite;
}

@keyframes cr-rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cr-estimate .animate-fade-in {
    animation: cr-fadeIn 0.5s ease forwards;
}

@keyframes cr-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 회사 게시판 본문(HTML) ===== */
.board-html-content {
    word-break: break-word;
}

.board-html-content img {
    max-width: 100%;
    height: auto;
}

.board-html-content table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
}


/* ===== 내 정보(직원정보) 팝업 ===== */
.baro-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.baro-profile-identity {
    min-width: 0;
}

.baro-profile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

/* 라벨-값 목록. 읽기 전용이므로 입력 컨트롤 없이 텍스트로만 그린다. */
.baro-profile-list {
    display: grid;
    grid-template-columns: 88px 1fr;
    row-gap: 10px;
    column-gap: 12px;
    margin: 0;
}

.baro-profile-list dt {
    color: var(--mud-palette-text-secondary);
    font-size: 0.8125rem;
}

.baro-profile-list dd {
    margin: 0;
    word-break: break-word;
}

/* 좁은 화면에서는 라벨을 값 위로 접는다 */
@media (max-width: 420px) {
    .baro-profile-list {
        grid-template-columns: 1fr;
        row-gap: 2px;
    }

    .baro-profile-list dd {
        margin-bottom: 8px;
    }
}
