:root {
    /* 표준 SaaS 대시보드 톤 — 흰 배경 + 단일 파란색 포인트 */
    --ink: #111827;
    --paper: #F9FAFB;
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #93C5FD;
    --primary-glow: rgba(37, 99, 235, 0.12);
    --steel: #6B7280;
    --steel-light: #E5E7EB;
    --ok: #16A34A;
    --danger: #DC2626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    min-height: 100vh;
    padding: 20px 10px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* 고객 모드(QR 스캔 진입) — 표준 대시보드는 옅은 회색 배경 */
body.customer-mode {
    background: var(--paper);
}

/* 고객 모드는 항상 휴대폰으로 QR을 스캔해 들어오는 화면이므로,
   좁은 화면에서는 카드형(둥근 모서리 + 그림자) 대신 화면 전체를 그대로 사용 */
@media (max-width: 480px) {
    body.customer-mode {
        padding: 0;
    }
    body.customer-mode .container {
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
}

/* 제출 버튼은 폼이 길어져도 스크롤 없이 바로 누를 수 있도록 하단 고정 */
body.customer-mode .form-actions {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    margin: 25px -20px -30px;
    padding-left: 20px;
    padding-right: 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

/* 관리자 모드 PC 레이아웃 - container 확장 */
.container.admin-mode {
    max-width: 1400px;
    width: 95%;
}

/* 관리자 모드는 대시보드 자체 헤더(대리점명 + 로그아웃)가 있으므로,
   고객용 문구("현장 공사실적을 등록해주세요")가 남아있는 상단 히어로 배너는 숨긴다 */
.container.admin-mode #pageHeader {
    display: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    background: var(--primary);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

header h1 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 600;
}

header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.application-form, .result-section {
    padding: 30px 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fafafa;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;  /* iOS에서 자동 확대 방지 */
        padding: 15px;    /* 터치 영역 확대 */
        margin-bottom: 8px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    /* 가상 키보드가 표시될 때 페이지 스크롤 개선 */
    .container {
        max-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 버튼 크기 최적화 */
    button[type="submit"] {
        min-height: 44px;  /* 터치 영역 최소 크기 */
        padding: 12px 24px;
        font-size: 16px;
    }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions, .result-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.submit-btn, .new-btn {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1E3A8A 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.35);
}

.new-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.new-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1E3A8A 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 78, 216, 0.35);
}

.result-section {
    text-align: center;
    background: #f8f9fa;
}

.result-section h2 {
    color: var(--ok);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

@media (max-width: 768px) {
    body {
        padding: 10px 5px;
    }
    
    .container {
        border-radius: 10px;
    }
    
    header {
        padding: 25px 15px;
    }
    
    header h1 {
        font-size: 1.6rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .application-form, .result-section {
        padding: 25px 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 14px 12px;
    }
    
    .form-actions, .result-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .submit-btn, .new-btn {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.4rem;
    }
    
    .application-form, .result-section {
        padding: 20px 12px;
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
}

.success-message {
    color: #4CAF50;
    font-size: 14px;
    margin-top: 5px;
}

/* 알림 전화/이메일 입력 행 */
.email-input-row, .phone-input-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.email-input, .phone-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.email-input:focus, .phone-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.remove-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.remove-btn:hover {
    background: #8f2c22;
    transform: scale(1.05);
}

.add-btn {
    background: var(--steel);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
}

.add-btn:hover {
    background: var(--ink);
    transform: scale(1.02);
}

.add-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   관리자 모드 PC 전용 스타일
   ======================================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 관리자 제어판 - 표준 대시보드는 옅은 회색 배경, 카드가 흰 박스로 떠 있는 느낌 */
.admin-control-panel {
    padding: 22px 30px 30px;
    background: var(--paper);
    border-bottom: 1px solid var(--steel-light);
    min-height: auto;
}

/* 상단 대시보드 바 - 대리점명 + 로그아웃. 히어로 배너 대신 절제된 툴바로 처리 */
.admin-panel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--steel-light);
    animation: fadeInDown 0.5s ease-out;
}

.admin-panel-header h2 {
    font-size: 1.5rem;
    color: var(--ink);
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.3;
}

.admin-panel-subtitle {
    font-size: 0.9rem;
    color: var(--steel);
    font-weight: 400;
}

.admin-logout-link {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--steel);
    text-decoration: none;
    padding: 9px 16px;
    border: 1px solid var(--steel-light);
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.admin-logout-link:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: #FEF2F2;
}

/* 실적 현황 요약 - KPI 스탯 타일 + CTA */
.stats-row {
    display: flex;
    align-items: stretch;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.stat-tile {
    flex: 1;
    min-width: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--steel-light);
    border-radius: 14px;
    padding: 16px 22px;
}

.stat-tile__label {
    font-size: 0.85rem;
    color: var(--steel);
    font-weight: 600;
}

.stat-tile__value {
    font-size: 1.9rem;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.1;
}

.stats-row .admin-btn {
    flex: 1.4;
    min-width: 200px;
}

/* 관리자 버튼 공통 스타일 */
.admin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border: 1px solid var(--steel-light);
    border-radius: 14px;
    background: white;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #EFF6FF;
    transform: translateY(-1px);
}

/* 모바일 반응형 - 관리자 패널 숨김 */
@media (max-width: 768px) {
    .admin-control-panel {
        display: none !important;
    }

    /* 모바일에서는 기존 레이아웃 유지 */
    .container.admin-mode {
        max-width: 600px;
        width: 100%;
    }

    /* 관리자 패널이 숨겨지는 모바일 폭에서는 상단 배너를 다시 보여줘
       (그렇지 않으면 QR 갤러리/실적 목록만 덩그러니 남아 페이지 제목이 없어짐) */
    .container.admin-mode #pageHeader {
        display: block;
    }
}

/* 고객 모드에서 관리자 패널 숨김 */
body.customer-mode .admin-control-panel {
    display: none !important;
}

/* 고객 모드에서 결과 화면 표시 시 헤더와 폼 숨김 */
body.customer-mode #result:not([style*="display: none"]) ~ * header,
body.customer-mode #result[style*="display: block"] ~ * header {
    display: none !important;
}

/* 결과 화면이 보일 때 신청 폼 완전히 숨김 */
body.customer-mode.result-shown #applicationForm,
body.customer-mode.result-shown header {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-header {
    margin-bottom: 15px;
}

.step-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.card-header h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 700;
    margin: 0;
}

.card-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* STEP 카드마다 내용 길이가 달라도 핵심 액션 버튼 위치를 카드 맨 아래로 맞춘다 */
#saveSettingsBtn,
#shareToKakaoBtn,
#createQRBtn {
    margin-top: auto;
}

/* 기능 버튼 스타일 */
.feature-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.feature-btn:hover::before {
    width: 300px;
    height: 300px;
}

.feature-btn .btn-icon {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.feature-btn .btn-label {
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 1;
}

.feature-btn .btn-arrow {
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-btn:hover .btn-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* 버튼 색상 — 단일 악센트(오렌지)는 STEP 3 핵심 액션에만, 나머지는 절제된 톤 */
.feature-btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.feature-btn.info {
    background: transparent;
    color: var(--steel);
    border: 1.5px solid var(--steel-light);
}

.feature-btn.info:hover {
    border-color: var(--steel);
    color: var(--ink);
}

.feature-btn.warning {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.feature-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 반응형 */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========================================
   QR 코드 목록 관리 스타일
   ======================================== */

.qr-list {
    display: grid;
    gap: 15px;
    margin-top: 10px;
}

/* QR 카드 */
.qr-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    width: 300px;
    max-width: 300px;
}

.qr-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.qr-card.inactive {
    opacity: 0.6;
    background: #f1f3f5;
}

/* QR 카드 헤더 */
.qr-card-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.qr-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.qr-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.qr-name-edit-input {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    padding: 4px 8px;
    border: 1px solid #d8d8e0;
    border-radius: 6px;
    margin-right: 6px;
}

.qr-status {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.qr-status.active {
    background: #d4edda;
    color: #155724;
}

.qr-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* QR 코드 미리보기 */
.qr-code-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    width: 170px;
    height: 170px;
    margin: 0 auto;
}

.qr-code-preview canvas {
    border: 3px solid #E8E8E8;
    border-radius: 8px;
    padding: 5px;
    background: white;
    width: 150px !important;
    height: 150px !important;
}

/* QR 카드 액션 버튼 */
.qr-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.qr-action-btn {
    flex: 1;
    min-width: 100px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.qr-action-btn.download {
    background: var(--primary);
    color: white;
}

.qr-action-btn.download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
}

.qr-action-btn.edit {
    background: transparent;
    color: var(--steel);
    border: 1.5px solid var(--steel-light);
}

.qr-action-btn.edit:hover {
    border-color: var(--steel);
    color: var(--ink);
    transform: translateY(-2px);
}

.qr-action-btn.delete {
    background: var(--danger);
    color: white;
}

.qr-action-btn.delete:hover {
    background: #8f2c22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(178, 58, 46, 0.35);
}

/* QR 목록 빈 상태 */
.qr-list:empty::after {
    content: '생성된 QR 코드가 없습니다.';
    display: block;
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-size: 0.9rem;
}

/* 반응형 - QR 카드 */
@media (max-width: 768px) {
    .qr-card-actions {
        flex-direction: column;
    }

    .qr-action-btn {
        width: 100%;
    }

    .qr-code-preview canvas {
        width: 120px !important;
        height: 120px !important;
    }
}
/* ========================================
   QR 코드 갤러리 섹션 (웹 맨 아래)
   ======================================== */

/* QR 갤러리 섹션 */
.qr-gallery-section {
    padding: 40px 30px;
    background: var(--paper);
    border-top: 3px solid var(--steel-light);
}

.qr-gallery-content {
    max-width: 1400px;
    margin: 0 auto;
}

.qr-gallery-header {
    text-align: center;
    margin-bottom: 30px;
}

.qr-gallery-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 8px;
}

.qr-gallery-subtitle {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 400;
}

/* QR 목록 - 세로 배치 */
.qr-list-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

/* QR 카드 세로 배치용 */
.qr-list-horizontal .qr-card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* QR 갤러리 빈 상태 */
.qr-list-horizontal:empty::after {
    content: '📱 생성된 QR 코드가 없습니다.\n위 "QR 코드 생성" 버튼을 눌러 새 QR을 만들어보세요!';
    display: block;
    text-align: center;
    padding: 60px 30px;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    white-space: pre-line;
    width: 100%;
}

/* 반응형 - 갤러리 섹션 */
@media (max-width: 1024px) {
    .qr-gallery-section {
        padding: 30px 20px;
    }

    .qr-list-horizontal {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .qr-gallery-section {
        padding: 25px 15px;
    }

    .qr-gallery-title {
        font-size: 1.4rem;
    }

    .qr-list-horizontal {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   공사완료 고객 사인 (고객 접수 폼)
   ======================================== */
.signature-pad {
    display: block;
    width: 100%;
    height: 180px;
    border: 2px dashed #c9d0d8;
    border-radius: 8px;
    background: #fafafa;
    cursor: crosshair;
    /* 손가락으로 서명할 때 화면이 같이 스크롤/확대되지 않도록 */
    touch-action: none;
}

.signature-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.signature-hint {
    font-size: 0.85rem;
    color: var(--steel);
}

.signature-hint.is-done {
    color: var(--ok);
    font-weight: 600;
}

.signature-clear-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    border: 1px solid var(--steel-light);
    border-radius: 6px;
    background: white;
    color: var(--steel);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
}

.signature-clear-btn:active {
    background: #f3f4f6;
}

/* 관리자 실적 목록에 표시되는 사인 썸네일 */
.record-card__signature {
    max-width: 120px;
    max-height: 40px;
    object-fit: contain;
    background: white;
    border: 1px solid var(--steel-light);
    border-radius: 4px;
}

/* ========================================
   공사실적 사진 첨부 (고객 접수 폼)
   ======================================== */
.photo-upload-group input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px dashed #c9d0d8;
    border-radius: 8px;
    background: #fafafa;
    font-size: 14px;
    cursor: pointer;
}

.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--steel);
}

/* STEP 2 — 알림 이메일 미등록 경고 (수신자가 없으면 메일이 아예 안 나감) */
.notify-warning {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #FCD34D;
    border-left: 4px solid #F59E0B;
    border-radius: 6px;
    background: #FFFBEB;
    color: #92400E;
    font-size: 0.85rem;
    line-height: 1.5;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.photo-preview-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-preview-item .photo-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

/* ========================================
   공사실적 목록 (관리자 대시보드)
   ======================================== */
.records-section {
    padding: 30px;
    background: var(--paper);
    border-top: 3px solid var(--steel-light);
}

.records-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 20px;
}

.records-section-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 800;
}

.records-count-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #4CAF50;
    color: white;
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    max-width: 1400px;
    margin: 0 auto;
}

.record-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.record-card__thumb {
    width: 100%;
    height: 150px;
    background: #eef1f4 center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 0.85rem;
}

.record-card__body {
    padding: 14px 16px 16px;
}

.record-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
}

.record-card__row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #555;
    padding: 3px 0;
}

.record-card__row span:first-child {
    color: #888;
}

.records-grid:empty::after {
    content: '아직 등록된 공사실적이 없습니다.';
    display: block;
    text-align: center;
    padding: 40px;
    color: #6c757d;
    grid-column: 1 / -1;
}
