@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css");

body {
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans KR", sans-serif;
}

/* ==================== Sidebar ==================== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 16.66666667% !important;
  max-width: 16.66666667% !important;
  height: 100vh;
  background-color: #f8f9fa;
  border-right: 2px solid #e9ecef;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  z-index: 100;
  box-sizing: border-box;
}

.sidebar > * {
  max-width: 100%;
  box-sizing: border-box;
}

.sidebar .position-sticky {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  box-sizing: border-box;
}

.sidebar .position-sticky > * {
  max-width: 100%;
  box-sizing: border-box;
}

/* Sidebar 헤더 영역 */
.sidebar .text-center.mb-4 {
  background-color: #007bff;
  color: white;
  padding: 2rem 1.5rem;
  border-radius: 0 0 12px 0;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
  margin: -0.75rem -0.75rem 1rem -0.75rem;
  flex-shrink: 0;
  width: calc(100% + 1.5rem);
  max-width: calc(100% + 1.5rem);
  box-sizing: border-box;
}

.sidebar .text-center.mb-4 h6 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.sidebar .text-center.mb-4 span {
  display: block;
  font-size: 0.95rem;
  opacity: 0.95;
  margin-top: 0.5rem;
}

/* Navigation Links */
.sidebar .nav-link {
  color: #6c757d;
  transition: all 0.3s ease;
  padding: 0.85rem 1.25rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  position: relative;
}

.sidebar .nav-link > i:first-of-type {
  flex-shrink: 0;
  min-width: 1.25rem;
}

.sidebar .nav-link > .badge,
.sidebar .nav-link > .status-badge {
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
}

.sidebar .nav-link > i.fa-chevron-down,
.sidebar .nav-link > i.fa-chevron-up,
.sidebar .nav-link > i.ms-auto {
  flex-shrink: 0;
  margin-left: auto;
  min-width: 1rem;
}

/* nav-link 내부 텍스트 노드 처리 */
.sidebar .nav-link {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.sidebar .nav-link:hover {
  color: #007bff;
  background-color: rgba(0, 123, 255, 0.08);
  padding-left: 1.5rem;
  box-shadow: inset 3px 0 0 #007bff;
}

.sidebar .nav-link.active {
  color: #007bff;
  background-color: rgba(0, 123, 255, 0.1);
  border-left: 4px solid #007bff;
  padding-left: calc(1.25rem - 4px);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

/* 상위 메뉴 항목 (collapse 토글) */
.sidebar .nav-link.collapse-toggle {
  color: #6c757d;
  font-weight: 500;
}

.sidebar .nav-link.collapse-toggle::after {
  content: '';
}

/* collapse 열린 상태 */
.sidebar .nav-link[aria-expanded="true"] {
  color: #007bff;
  background-color: rgba(0, 123, 255, 0.1);
}

.sidebar .nav-link[aria-expanded="true"] i.fa-chevron-down {
  transform: rotate(-180deg);
}

/* 하위 메뉴 */
.sidebar .collapse {
  transition: all 0.3s ease;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  box-sizing: border-box;
}

.sidebar .collapse .nav-link {
  padding: 0.65rem 1.25rem 0.65rem 3.5rem;
  margin-bottom: 0.3rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: #6c757d;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.sidebar .collapse .nav {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-direction: column;
  display: flex;
}

.sidebar .collapse .nav-link:hover {
  color: #007bff;
  padding-left: 3.7rem;
  background-color: rgba(0, 123, 255, 0.05);
}

/* Nav Flex 영역 */
.sidebar .nav {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  display: flex;
}

.sidebar .nav > * {
  max-width: 100%;
  box-sizing: border-box;
}

.sidebar .nav-item {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.sidebar .nav-item > * {
  max-width: 100%;
  box-sizing: border-box;
}

/* Sidebar Footer (로그아웃 버튼) */
.sidebar .mt-auto {
  padding: 1.5rem 1.25rem;
  border-top: 2px solid #e9ecef;
  background-color: #fff;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.sidebar .mt-auto .btn {
  transition: all 0.3s ease;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 6px;
}

.sidebar .mt-auto .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.25);
}

/* ==================== Main Content Area ==================== */
main {
  margin-left: 16.66666667%;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 2rem;
}

/* ==================== Dashboard Cards ==================== */
.dashboard-card {
  border: none;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  overflow: hidden;
}

.dashboard-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.dashboard-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
  padding: 1.25rem;
}

.dashboard-card .card-header .card-title {
  color: #2d3748;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0;
}

/* 모든 card-title mb-0 통일 스타일 */
.card-title.mb-0,
h5.card-title.mb-0,
h6.card-title.mb-0 {
  color: #2d3748;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0;
}

/* 카드 헤더 내 card-title */
.card-header .card-title.mb-0 {
  color: #2d3748;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0;
}

.dashboard-card .card-body {
  padding: 1.5rem;
}

/* ==================== Stat Cards ==================== */
.stat-card {
  background-color: #007bff;
  color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
  transition: all 0.3s ease;
  border: none;
}

.stat-card:hover {
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.3);
  transform: translateY(-4px);
}

.admin-stat-card,
.consultant-stat-card {
  border: none;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.admin-stat-card::before,
.consultant-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
}

.admin-stat-card:hover,
.consultant-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.admin-stat-card h3,
.consultant-stat-card h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0.75rem 0;
}

/* ==================== Stat Colors ==================== */
.stat-pending,
.stat-inprogress {
  background-color: #ff9800;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

.stat-approved,
.stat-completed {
  background-color: #28a745;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.stat-users,
.stat-assigned {
  background-color: #17a2b8;
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.2);
}

.stat-consultants,
.stat-this-month {
  background-color: #6f42c1;
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.2);
}

.stat-warning-light {
  background-color: #fff3cd;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
  color: #664d03;
}

.stat-warning-light h3 {
  color: #f9a825;
}

.stat-revision-light {
  background-color: #f8d7da;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
  color: #842029;
}

.stat-revision-light h3 {
  color: #dc3545;
}

.stat-scheduled {
  background-color: #e3f2fd;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
  color: #0d47a1;
}

.stat-scheduled h3 {
  color: #2196f3;
}

/* ==================== Schedule Stat Card Backgrounds ==================== */
.stat-scheduled-bg {
  background-color: #007bff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
  color: white;
}

.stat-scheduled-bg .card-title,
.stat-scheduled-bg h3 {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0;
}

.stat-completed-bg {
  background-color: #28a745;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
  color: white;
}

.stat-completed-bg .card-title,
.stat-completed-bg h3 {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0;
}

.stat-cancelled-bg {
  background-color: #6c757d;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
  color: white;
}

.stat-cancelled-bg .card-title,
.stat-cancelled-bg h3 {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0;
}

.stat-total-bg {
  background-color: #17a2b8;
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.2);
  color: white;
}

.stat-total-bg .card-title,
.stat-total-bg h3 {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0;
}

/* ==================== Status Badge & Label (통합) ==================== */
.status-badge,
.status-label {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  min-width: 60px;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}

.status-badge.badge-sm {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  min-width: auto;
  line-height: 1.2;
}

.status-label {
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
}

.status-submitted,
.status-reviewing {
  background-color: #d1ecf1;
  color: #0c5460;
}

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

.status-rejected {
  background-color: #e2e3e5;
  color: #41464b;
}

.status-draft {
  background-color: #fff3cd;
  color: #856404;
}

.status-revision,
.status-revision_requested {
  background-color: #f8d7e8;
  color: #c2185b;
}

/* 2025.12.02 : PEJ : Schedule 상태 배지 */
.status-assigned {
  background-color: #fff3cd;
  color: #856404;
}

.status-in_progress {
  background-color: #cfe2ff;
  color: #084298;
}

.status-completed,
.status-badge.status-completed {
  background-color: #d4edda !important;
  color: #155724 !important;
}

.status-cancelled {
  background-color: #f8d7da;
  color: #842029;
}

/* 2025.12.03 : PEJ : VisitSchedule 상태 배지 (visit_histories용) */
.status-scheduled {
  background-color: #cfe2ff;
  color: #084298;
}

/* 정보성 뱃지용 클래스 */
.status-info {
  background-color: #cfe2ff;
  color: #084298;
}

.status-primary {
  background-color: #0d6efd;
  color: white;
}

.status-secondary {
  background-color: #6c757d;
  color: white;
}

.status-success {
  background-color: #198754;
  color: white;
}

.status-active {
  background-color: #d1e7dd;
  color: #0f5132;
}

.status-inactive {
  background-color: #e2e3e5;
  color: #41464b;
}

.status-danger {
  background-color: #dc3545;
  color: white;
}

.status-warning {
  background-color: #ffc107;
  color: #000;
}

/* 달력 내 일정 아이템에 대한 상태별 스타일 강제 적용 */
.calendar-day .status-scheduled,
.schedule-block.status-scheduled {
  background-color: #cfe2ff !important;
  color: #084298 !important;
  font-weight: 500 !important;
}

.calendar-day .status-completed,
.schedule-block.status-completed {
  background-color: #d1e7dd !important;
  color: #0f5132 !important;
  font-weight: 500 !important;
}

.calendar-day .status-cancelled,
.schedule-block.status-cancelled {
  background-color: #f8d7da !important;
  color: #842029 !important;
  font-weight: 500 !important;
}

.bg-pink {
  background-color: #f8a5c4 !important;
  color: white;
}

/* ==================== Calendar ==================== */
.fc-event {
  cursor: pointer;
  transition: all 0.2s ease;
}

.fc-event:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.fc-event-consulting,
.fc-event-visit {
  background-color: #007bff !important;
  border-color: #007bff !important;
}

.fc-event-meeting {
  background-color: #6f42c1 !important;
  border-color: #6f42c1 !important;
}

.fc-event-report,
.fc-event-completed {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
}

.fc-event-personal {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
}

.fc-event-deadline {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
}

.fc-event-completed.fc-event-consultant-completed {
  background-color: #6f42c1 !important;
  border-color: #6f42c1 !important;
  opacity: 0.8;
}

/* Calendar Legend & Status Legend (통합) */
.calendar-legend,
.status-legend {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.status-legend {
  gap: 2rem;
  padding: 0;
  background-color: transparent;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.legend-color,
.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legend-color {
  border-radius: 4px;
}

.legend-dot.draft {
  background-color: #fff3cd;
  border: 1px solid #ffc107;
}

.legend-dot.submitted {
  background-color: #d1ecf1;
  border: 1px solid #0c5460;
}

.legend-dot.approved {
  background-color: #d4edda;
  border: 1px solid #155724;
}

.legend-dot.rejected {
  background-color: #e2e3e5;
  border: 1px solid #6c757d;
}

.legend-dot.revision {
  background-color: #f5c2c7;
  border: 1px solid #d8364e;
}

.legend-dot.completed {
  background-color: #d4edda;
  border: 1px solid #155724;
}

/* ==================== Calendar Toolbar ==================== */
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.consultant-filter {
  min-width: 200px;
  border-radius: 6px;
  border: 2px solid #e9ecef;
  transition: all 0.2s ease;
}

.consultant-filter:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* ==================== Quick Add Button ==================== */
.quick-add-schedule {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #007bff;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-add-schedule:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

/* ==================== Project Card ==================== */
.project-card {
  border-left: 4px solid #007bff;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: #fff;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
  border-left-color: #0056b3;
}

/* ==================== Timeline ==================== */
.timeline-item {
  border-left: 3px solid #e9ecef;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  padding: 1rem 0 1rem 1.5rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7.5px;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  background: white;
  border: 3px solid #007bff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  border-left-color: #007bff;
  padding-left: 2rem;
}

.timeline-item:hover::before {
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15);
}

.timeline-item:last-child {
  border-left: 3px solid transparent;
}

/* ==================== Upcoming Schedule ==================== */
.upcoming-schedule-item {
  border-left: 4px solid;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  padding: 1rem 1rem 1rem 1.5rem;
  background-color: #f8f9fa;
}

.upcoming-schedule-item:hover {
  transform: translateX(6px);
  background-color: #f0f3ff;
}

.upcoming-schedule-item strong {
  font-weight: 700;
  color: #2d3748;
}

.upcoming-schedule-item small {
  opacity: 0.75;
}

.upcoming-schedule-item.visit {
  border-left-color: #007bff;
}

.upcoming-schedule-item.report {
  border-left-color: #28a745;
}

.upcoming-schedule-item.deadline {
  border-left-color: #dc3545;
}

/* ==================== Table ==================== */
.table {
  margin-bottom: 0;
}

.table thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #333;
  padding: 1rem 0.75rem;
}

.table tbody td {
  padding: 1rem 0.75rem;
  vertical-align: middle;
}

.table-hover tbody tr {
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.table-hover tbody tr:hover {
  background-color: #f0f0f0;
}

.report-table {
  margin-top: 20px;
}

.report-table .btn-download {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* ==================== Empty State ==================== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

/* 2026.05.06 : 직계 자식 아이콘만 크게 표시 — 버튼 내부 아이콘까지 커지는 문제 수정 */
.empty-state > i {
  font-size: 3rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

/* ==================== Search Section ==================== */
.search-section {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.search-section .row > .col {
  min-width: 0;
}

.search-section input,
.search-section select {
  height: 32px;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-size: 0.85rem;
  padding: 0.375rem 0.75rem;
}

.search-section input:focus,
.search-section select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  outline: none;
}

.search-section .btn {
  height: 32px;
  padding: 0.375rem 0.75rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.search-section .btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: white;
}

.search-section .btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* ==================== Pagination ==================== */
nav[aria-label="Page navigation"] {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

nav[aria-label="Page navigation"] .text-muted {
  display: none;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.pagination .page-item {
  display: inline-flex;
}

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid #dee2e6;
  color: #0d6efd;
  padding: 0;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.pagination .page-link:hover {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.pagination .page-item.active .page-link {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: white;
}

.pagination .page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #f8f9fa;
  border-color: #dee2e6;
  cursor: not-allowed;
}

/* ==================== Form Elements ==================== */
.form-label {
  font-weight: 600;
}

.form-section {
  display: none;
}

.form-section.active {
  display: block;
}

/* ==================== Document Container (신청서 상세) ==================== */
.document-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.document-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  padding: 2rem 0;
}

.info-table {
  width: 100%;
  margin-bottom: 2rem;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid #e0e0e0;
}

.info-table td {
  padding: 1rem;
  vertical-align: top;
}

.info-label {
  font-weight: 600;
  color: #333;
  width: 20%;
  background-color: #f8f9fa;
}

.info-value {
  color: #333;
  width: 30%;
}

.info-group {
  margin-bottom: 1.5rem;
}

.info-group label {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.info-group p {
  font-size: 0.95rem;
  color: #333;
  margin: 0;
}

.section-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  color: #333;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.section-description {
  text-align: center;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #555;
  font-size: 0.95rem;
}

.meta-info {
  text-align: right;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 3rem;
}

.application-detail-header {
  background-color: #f8f9fa;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid #e0e0e0;
}

.application-detail-header .row > div {
  margin-bottom: 1.5rem;
}

.application-detail-header .form-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.application-detail-header .form-control-plaintext {
  font-size: 1rem;
  color: #333;
  padding-left: 0;
}

/* ==================== File & Attachment ==================== */
.file-list {
  list-style: none;
  padding: 0;
  margin-left: 0;
}

.file-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  text-decoration: none;
  color: #0d6efd;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.file-list a:hover {
  background-color: #e9ecef;
  color: #0b5ed7;
}

.file-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.file-item:last-child {
  border-bottom: none;
}

.file-size {
  color: #999;
  font-size: 0.85rem;
}

.attachment-section {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 2rem;
}

.attachment-label {
  font-weight: 600;
  color: #333;
  display: inline-block;
  margin-right: 1rem;
}

.attachment-link {
  text-decoration: none;
  color: #0066cc;
}

/* ==================== Alert Boxes ==================== */
.rejection-box {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.rejection-title {
  font-weight: 700;
  color: #856404;
  margin-bottom: 0.5rem;
}

.rejection-content {
  color: #856404;
  line-height: 1.6;
}

.info-box {
  background-color: #f8f9fa;
  border-left: 4px solid #28a745;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
  text-align: left;
}

.info-box h6 {
  font-weight: 600;
  color: #212529;
  margin-bottom: 1rem;
}

.info-box ul {
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.info-box li {
  margin-bottom: 0.5rem;
  color: #495057;
}

/* ==================== Step Indicator ==================== */
.step-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #e9ecef;
  z-index: 0;
}

.step-indicator::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  height: 2px;
  background-color: #28a745;
  z-index: 0;
  transition: width 0.3s ease;
  width: var(--progress-width, 0%);
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #e9ecef;
  color: #666;
  font-weight: bold;
  margin-bottom: 10px;
}

.step.active .step-number {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.step.completed .step-number {
  background-color: #28a745;
  color: white;
  border-color: #28a745;
}

.step-label {
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  margin-top: 5px;
}

.step.active .step-label {
  color: #007bff;
  font-weight: 500;
  font-size: 1rem;
}

.step.completed .step-label {
  color: #28a745;
  font-size: 1rem;
}

/* ==================== Field & Robot Selection ==================== */
.field-items-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.field-item,
.project-select {
  border: 2px solid #dee2e6;
  border-radius: 6px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s;
  background-color: #fff;
}

.field-item:hover:not(.disabled),
.project-select:hover {
  border-color: #007bff;
  background-color: #f0f7ff;
}

.field-item.checked,
.project-select.selected {
  border-color: #007bff;
  background-color: #e7f1ff;
}

.field-item.disabled {
  background-color: #f8f9fa;
  opacity: 0.6;
  cursor: not-allowed;
  border-color: #dee2e6;
}

.robot-select-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.robot-select {
  padding: 20px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  background-color: #fff;
}

.robot-select:hover {
  border-color: #007bff;
  background-color: #f0f7ff;
}

.robot-select.selected {
  border-color: #007bff;
  background-color: #e7f1ff;
}

.project-select-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

/* ==================== Field Tabs ==================== */
#fieldsFormContainer > div {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
}

#fieldsFormContainer > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#fieldTabs {
  border-bottom: 2px solid #dee2e6;
  margin-bottom: 1.5rem;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

#fieldTabs .nav-item {
  display: block !important;
  flex-shrink: 0;
  margin-bottom: 0;
}

#fieldTabs .nav-link {
  color: #6c757d;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 500;
  padding: 0.75rem 1rem;
  margin-bottom: -2px;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: block;
  text-decoration: none;
}

#fieldTabs .nav-link.active {
  color: #007bff;
  background-color: transparent;
  border-bottom-color: #007bff;
}

.tab-pane {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== Success Page ==================== */
.success-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 3rem;
  max-width: 600px;
  animation: slideUp 0.5s ease-out;
  margin: 0 auto;
}

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

.success-icon {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 1.5rem;
  animation: bounce 0.6s ease-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.success-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 1rem;
}

.success-message {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ==================== Button Styles ==================== */
.btn {
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-sm {
  padding: 0.4rem 1.2rem;
  font-size: 0.9rem;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-warning,
.btn-outline-danger,
.btn-outline-success,
.btn-outline-info {
  border-width: 1px;
}

.btn-group-custom {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-custom {
  flex: 1;
  min-width: 150px;
}

.back-button {
  margin-bottom: 2rem;
}

.action-buttons {
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ==================== Footer ==================== */
footer {
  margin-top: 3rem;
  border-top: 1px solid #e9ecef;
}

/* ==================== User Footer ==================== */
.user-footer {
  margin-left: 16.66666667%;
  background-color: #343a40;
  color: #ffffff;
  padding: 0;
  width: calc(100% - 16.66666667%);
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0;
}

.user-footer .footer-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  max-width: 100%;
  box-sizing: border-box;
  gap: 2rem;
}

.user-footer .footer-logo-section {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.user-footer .footer-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

.user-footer .footer-info-section {
  flex: 0 1 auto;
  text-align: left;
  min-width: 0;
}

.user-footer .footer-address {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  word-break: keep-all;
}

.user-footer .footer-copyright {
  margin: 0.75rem 0 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.user-footer .footer-separator {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

/* 반응형 디자인 */
@media (max-width: 991px) {
  .user-footer {
    margin-left: 0;
    width: 100%;
  }

  .user-footer .footer-wrapper {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .user-footer .footer-logo-section {
    margin-bottom: 0;
  }

  .user-footer .footer-info-section {
    padding-left: 0;
    width: 100%;
  }

  .user-footer .footer-address {
    font-size: 0.8125rem;
    line-height: 1.6;
  }

  .user-footer .footer-separator {
    display: inline-block;
    margin: 0 0.3rem;
  }
}

/* 사이드바가 없는 페이지용 푸터 스타일 */
body.success-page-body .user-footer {
  margin-left: 0;
  width: 100%;
}

/* 로그인·회원가입 등 인증 단독 페이지 */
body.auth-standalone-body {
  background-color: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

body.auth-standalone-body .auth-page-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2rem;
}

body.auth-standalone-body .user-footer {
  margin-left: 0;
  width: 100%;
  margin-top: auto;
}

.auth-site-header {
  background-color: #007bff;
  color: #fff;
  padding: 0.85rem 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

/* 인증 페이지 공통 카드 (로그인·회원가입 등) */
.auth-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #e9ecef;
}

.auth-card-top {
  background-color: #007bff;
  color: #fff;
  text-align: center;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.auth-site-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.auth-card-top h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.auth-container {
  width: 100%;
  max-width: 450px;
  padding: 0 12px;
}

.auth-container.auth-container-wide {
  max-width: 1000px;
}

.auth-body {
  padding: 2rem;
}

/* 카드 밖·아래 로그인 안내 (회원가입류 — 회원 유형 선택과 동일 톤) */
.auth-page-subfooter {
  text-align: center;
  padding: 1rem 1rem 0;
  margin-top: 0.5rem;
}

.auth-page-subfooter p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.auth-page-subfooter a {
  color: #007bff;
  font-weight: 600;
  text-decoration: none;
}

.auth-page-subfooter a:hover {
  text-decoration: underline;
}

/* 기업·컨설턴트 회원가입 폼 — 카드 내부 하단 여백(회원 유형 선택 auth-body와 동일 3rem) */
.register-form-page .register-form-body {
  padding-bottom: 3rem;
}

.register-form-page .section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0d6efd;
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.register-form-page .section-title:first-of-type {
  margin-top: 0;
}

.register-form-page .form-control:focus,
.register-form-page .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.register-form-page .specialty-checkbox {
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.3s;
}

.register-form-page .specialty-checkbox:hover {
  border-color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.04);
}

.register-form-page .specialty-checkbox input:checked + label {
  color: #0d6efd;
  font-weight: 600;
}

/* 아이디·비밀번호 찾기·재설정 */
.auth-recovery .form-label {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.auth-recovery .form-label.required::after {
  content: " *";
  color: #dc3545;
}

.auth-recovery .form-control {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1rem;
}

.auth-recovery .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
  outline: none;
}

.auth-recovery .form-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.auth-recovery .info-box {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.auth-recovery .info-box h5 {
  color: #2d3748;
  font-weight: 600;
}

.auth-recovery .info-box ul {
  color: #495057;
  padding-left: 1.5rem;
}

.auth-recovery .info-box li {
  margin-bottom: 0.5rem;
}

.auth-recovery .input-group {
  position: relative;
}

.auth-recovery .password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  z-index: 10;
}

.auth-recovery .password-toggle:hover {
  color: #0d6efd;
}

/* ==================== 5개 카드 레이아웃 ==================== */
@media (min-width: 992px) {
  .col-md-2-4 {
    flex: 0 0 calc(20% - 0.5rem);
    max-width: calc(20% - 0.5rem);
    margin-right: 0.5rem;
  }
  
  .col-md-2-4:last-child {
    margin-right: 0;
  }
}

@media (max-width: 991px) {
  .col-md-2-4 {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
    margin-right: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .col-md-2-4:nth-child(even) {
    margin-right: 0;
  }
}

/* ==================== 6개 카드 레이아웃 (관리자 대시보드용) ==================== */
@media (min-width: 992px) {
  .col-md-2-4-6 {
    flex: 0 0 calc(16.666% - 0.42rem);
    max-width: calc(16.666% - 0.42rem);
    margin-right: 0.42rem;
  }
  
  .col-md-2-4-6:last-child {
    margin-right: 0;
  }
}

@media (max-width: 991px) {
  .col-md-2-4-6 {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
    margin-right: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .col-md-2-4-6:nth-child(even) {
    margin-right: 0;
  }
}

/* ==================== Media Queries (Responsive) ==================== */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    z-index: 999;
  }

  main {
    margin-left: 0;
    height: auto;
  }

  .quick-add-schedule {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .calendar-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .consultant-filter {
    min-width: auto;
    width: 100%;
  }

  .calendar-legend {
    gap: 1rem;
  }

  .robot-select-container {
    grid-template-columns: 1fr;
  }
  
  .document-container {
    padding: 1rem;
  }
}

/* ==================== Sidebar Badge ==================== */
.sidebar .nav-link .badge,
.sidebar .nav-link .status-badge {
  background-color: #007bff !important;
  color: #fff !important;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: auto;
  text-align: center;
  white-space: nowrap;
}

.sidebar .nav-link .status-badge.status-primary {
  background-color: #007bff !important;
  color: #fff !important;
}

/* ==================== Dashboard Stat Card Hover ==================== */
.stat-card {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==================== Business Status Step ==================== */
.business-status-item {
  background: #fff;
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.business-status-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-progress {
  position: relative;
  width: 100%;
}

.step-item {
  position: relative;
  z-index: 1;
  min-width: 60px;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid #dee2e6;
  background: #fff;
  color: #adb5bd;
}

.step-label {
  font-size: 1rem;
  color: #adb5bd;
  display: block;
  white-space: nowrap;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #dee2e6;
  margin: 0 -5px;
  margin-top: -20px;
  z-index: 0;
}

.step-line-active {
  background: #0d6efd;
}

.step-active .step-circle {
  border-color: #0d6efd;
  background: #0d6efd;
  color: #fff;
}

.step-active .step-label {
  color: #0d6efd;
  font-size: 1rem;
}

.step-current .step-circle {
  border-color: #0d6efd;
  background: #0d6efd;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.step-current .step-label {
  color: #0d6efd;
  font-weight: bold;
  font-size: 0.9rem;
}

.step-revision .step-circle {
  border-color: #fd7e14;
  background: #fd7e14;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.25);
}

.step-revision .step-label {
  color: #fd7e14;
  font-weight: bold;
  font-size: 1rem;
}

/* ==================== Schedule Item ==================== */
.schedule-item {
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1rem;
}

.schedule-item strong {
  font-size: 1rem;
  font-weight: 500;
}

.schedule-item small {
  font-size: 1rem;
}

.schedule-item:hover {
  background: #f8f9fa;
}

.schedule-indicator {
  width: 4px;
  height: 40px;
  flex-shrink: 0;
}

/* ==================== Inquiry Stat Mini Card ==================== */
.stat-mini-card {
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 2px solid;
}

.stat-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-mini-card.warning {
  border-color: #ffc107;
  background: linear-gradient(135deg, #fff3cd 0%, #fffaeb 100%);
}

.stat-mini-card.primary {
  border-color: #0d6efd;
  background: linear-gradient(135deg, #e7f1ff 0%, #f0f7ff 100%);
}

.stat-mini-card.pink {
  border-color: #e83e8c;
  background: linear-gradient(135deg, #f8d7e8 0%, #fce4ec 100%);
}

.stat-mini-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0;
}

.stat-mini-card .stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0;
}

.stat-mini-card .stat-icon {
  font-size: 2.5rem;
  opacity: 0.3;
}

/* ==================== Inquiry Form Styles ==================== */
.inquiry-form-section {
  margin: 2rem 0;
}

.inquiry-form-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #333;
}

.inquiry-form-title-small {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
}

.inquiry-form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
}

.inquiry-form-top-actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 2rem;
}

.inquiry-form-top-actions-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.inquiry-form-action-group {
  display: flex;
  gap: 0.5rem;
}

.inquiry-content-box {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  min-height: 150px;
  white-space: pre-wrap;
  line-height: 1.8;
}

.inquiry-answer-section {
  margin: 3rem 0 2rem 0;
}

.inquiry-answer-header {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 1rem;
  border-radius: 6px 6px 0 0;
  border: none;
  text-align: left;
}

.inquiry-answer-body {
  border: 2px solid #28a745;
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 2rem;
  background-color: #f8fff8;
}

.inquiry-answer-content {
  background-color: white;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #d4edda;
  min-height: 100px;
  white-space: pre-wrap;
  line-height: 1.8;
}

/* ==================== Profile Styles ==================== */
.section-card {
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-radius: 10px;
  margin-bottom: 20px;
}

.section-card .card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  border-radius: 10px 10px 0 0 !important;
  padding: 12px 20px;
}

.section-card .card-body {
  padding: 20px;
}

.file-preview-box {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.file-icon-large {
  font-size: 3rem;
  margin-bottom: 10px;
}

.info-card {
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-radius: 10px;
}

.info-card .card-header {
  background-color: #fff;
  border-bottom: 2px solid #667eea;
  font-weight: 600;
  color: #333;
}

.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.3rem;
}

.readonly-field {
  background-color: #e9ecef !important;
}

/* ==================== Table Row Clickable ==================== */
.table-row-clickable {
  cursor: pointer;
}

.empty-state-custom {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #f8f9fa;
  border-radius: 12px;
}

/* ==================== Table Column Widths ==================== */
.col-number {
  width: 60px;
}

.col-date {
  width: 130px;
}

.col-time {
  width: 80px;
}

.col-status {
  width: 100px;
}

.col-download {
  width: 120px;
  white-space: nowrap;
}

/* ==================== Background Colors ==================== */
.bg-info-light {
  background-color: #e3f2fd;
}

.bg-success-light {
  background-color: #d1f2eb;
}

.bg-danger-light {
  background-color: #f8d7da;
}

.bg-primary-light {
  background-color: #f8f9ff;
}

.bg-success-gradient {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.bg-primary-gradient {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.min-h-100 {
  min-height: 100px;
}

.min-h-150 {
  min-height: 150px;
}

.w-15 {
  width: 15%;
}

.w-35 {
  width: 35%;
}

/* ==================== Calendar Styles ==================== */
.calendar-container {
  background-color: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e2e8f0;
}

.calendar-header h3 {
  margin: 0;
  font-weight: 600;
}

.calendar-nav button {
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
}

.calendar-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 1px;
  background-color: #e2e8f0;
  padding: 1px;
  margin: 1rem;
}

.calendar-day-header {
  background-color: #f8f9fa;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day-header.saturday {
  color: #0052a3;
  font-weight: 700;
}

.calendar-day-header.sunday {
  color: #dc3545;
  font-weight: 700;
}

.calendar-day {
  background-color: #fff;
  height: 160px;
  padding: 0.75rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.calendar-day.saturday {
  color: #0052a3;
}

.calendar-day.sunday {
  color: #dc3545;
}

.calendar-day.other-month {
  background-color: #f9fafb;
  color: #cbd5e0;
}

.calendar-day.today {
  background-color: #fffacd;
  border: 2px solid #ffd700;
}

.calendar-day-number {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schedule-count {
  background-color: #3182ce;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.schedule-item {
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.4rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.schedule-item:hover {
  opacity: 0.85;
}

.week-view {
  border-collapse: collapse;
  width: 100%;
  background-color: white;
  margin-top: 1rem;
}

.week-view thead {
  background-color: #f8f9fa;
  border-bottom: 2px solid #e2e8f0;
}

.week-view th, .week-view td {
  border: 1px solid #e2e8f0;
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

.week-view th {
  font-weight: 600;
  background-color: #f8f9fa;
}

.week-view tbody tr:hover {
  background-color: #f9fafb;
}

.time-slot-container {
  display: flex;
  gap: 0;
}

.time-column {
  width: 80px;
  min-width: 80px;
  border-right: 2px solid #e2e8f0;
  background-color: #f8f9fa;
}

.time-slot {
  height: 60px;
  padding: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: #718096;
  font-weight: 600;
  text-align: center;
}

.schedule-slots {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #e2e8f0;
  padding: 1px;
}

.schedule-column {
  background-color: white;
  overflow: hidden;
  min-width: 0;
}

.schedule-slot {
  height: 60px;
  padding: 0.25rem;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.schedule-block {
  display: block;
  padding: 0.4rem 0.5rem;
  margin: 2px 0;
  font-size: 0.8rem;
  border-radius: 0.375rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  min-width: 0;
  max-width: 100%;
}

.day-view {
  background-color: white;
  border-radius: 0.5rem;
}

.day-header {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1rem;
}

.day-header h4 {
  margin: 0;
  font-weight: 600;
}

.schedule-list {
  list-style: none;
  padding: 0;
}

.schedule-list-item {
  padding: 1rem;
  border-left: 4px solid #3182ce;
  background-color: #e6f3ff;
  margin-bottom: 0.5rem;
  border-radius: 0.25rem;
}

.schedule-list-item.completed {
  background-color: #d1fae5;
  border-left-color: #059669;
}

.schedule-list-item.cancelled {
  background-color: #fee2e2;
  border-left-color: #dc2626;
}

.schedule-list-item strong {
  color: #2d3748;
  display: block;
  margin-bottom: 0.25rem;
}

.schedule-list-item small {
  color: #718096;
}

.no-schedule {
  padding: 2rem;
  text-align: center;
  color: #a0aec0;
  background-color: #f9fafb;
  border-radius: 0.5rem;
}

/* ==================== Text Utilities ==================== */
.text-pre-wrap {
  white-space: pre-wrap;
}

.text-pink {
  color: #e83e8c;
}

/* ==================== Proxy Badge ==================== */
.proxy-badge {
  background-color: #17a2b8;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ==================== Badge Sizes ==================== */
.badge-sm {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
}

/* ==================== File List Grid ==================== */
.file-list-grid {
  display: grid;
  gap: 0.75rem;
}

.file-item-card {
  background-color: #f8f9fa;
  border-left: 3px solid #0d6efd;
  border-radius: 4px;
  padding: 0.75rem;
}

.btn-xs {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
}

.page-break-avoid {
  page-break-inside: avoid;
}

/* ==================== Info Table Column Widths ==================== */
.info-table .info-label.col-15 {
  width: 15%;
}

.info-table .info-value.col-35 {
  width: 35%;
}

/* ==================== Warning Info Box ==================== */
.info-box-warning {
  margin: 3rem 0;
  border-left-color: #ffc107;
  background-color: #fff3cd;
}

.info-box-warning h6 {
  color: #856404;
}

.info-box-warning ul {
  margin-bottom: 0;
}

.info-box-warning li {
  color: #856404;
}

/* ==================== Field Item Label ==================== */
.field-item-label {
  display: block;
  cursor: pointer;
}

/* ==================== Readonly Input ==================== */
.form-control-readonly {
  background-color: #f8f9fa;
  cursor: not-allowed;
}

/* ==================== Section Hidden ==================== */
.section-hidden {
  display: none;
}

/* ==================== Success Page Body ==================== */
.success-page-body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== Alert Small ==================== */
.alert-sm {
  font-size: 0.9rem;
}

/* ==================== File Label Optional ==================== */
.file-label-optional {
  font-size: 0.8rem;
  color: #6c757d;
}

/* ==================== Report Detail Styles ==================== */
.detail-header {
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.detail-header h3 {
  margin: 0;
  font-weight: 600;
  color: #333;
}

.detail-section {
  background-color: transparent;
  border: none;
  padding: 0;
  margin-bottom: 2rem;
}

.detail-section h4,
.detail-section h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e0e0e0;
}

.detail-section .info-row,
.detail-section .detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-section .info-row:last-child,
.detail-section .detail-row:last-child {
  border-bottom: none;
}

.detail-section .info-label,
.detail-section .detail-label {
  font-weight: 600;
  color: #666;
  font-size: 0.9rem;
  min-width: 120px;
  flex-shrink: 0;
}

.detail-section .info-value,
.detail-section .detail-value {
  color: #333;
  font-size: 0.95rem;
  flex: 1;
  word-break: break-word;
}

.detail-section .detail-value .field-badge {
  display: inline-block;
  background-color: #e7f1ff;
  color: #0d6efd;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
  border: 1px solid #b3d9ff;
}

.detail-section .file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.detail-section .file-item:last-child {
  margin-bottom: 0;
}

.approved-box {
  background-color: #d1f2eb;
  border: 2px solid #28a745;
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1rem;
}

.revision-box {
  background-color: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 6px;
  padding: 1rem;
  margin-top: 1rem;
}

/* ==================== Assignment Detail Page Styles ==================== */
.detail-section {
    margin-bottom: 2rem;
}

.detail-section h5 {
    font-weight: 600;
    color: #2d3748;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

/* 2025.12.01 : PEJ : 배정된 컨설턴트 정보 섹션 스타일 - 사업 정보와 동일 */
#assignedConsultantSection {
    margin-top: 2rem;
}

.detail-row {
    display: flex;
    margin-bottom: 1.5rem;
}

.detail-label {
    font-weight: 600;
    width: 150px;
    color: #4a5568;
    min-width: 150px;
}

.detail-value {
    flex: 1;
    color: #2d3748;
    word-break: break-word;
}

.consultant-select-section {
    background-color: #f7fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #4299e1;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.consultant-select-section h6 {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.consultant-table {
    margin-top: 1rem;
}

.consultant-table thead {
    background-color: #f8f9fa;
}

.consultant-table th,
.consultant-table td {
    text-align: center;
    vertical-align: middle;
}

.consultant-table tbody tr {
    cursor: pointer;
    transition: all 0.2s ease;
}

.consultant-table tbody tr:hover {
    background-color: #f0f4ff;
}

.consultant-table tbody tr.selected {
    background-color: #f0fdf4;
    border-left: 4px solid #48bb78;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.action-buttons button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.back-button {
    margin-bottom: 1rem;
}

/* ==================== Project Detail Page Styles ==================== */
.detail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.detail-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    padding: 1.25rem;
}

.detail-card .card-body {
    padding: 1.5rem;
}

.info-group {
    margin-bottom: 1.5rem;
}

.info-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.info-value {
    color: #555;
    padding: 0.5rem 0;
}

.status-receipt {
    background-color: #fff3cd;
    color: #664d03;
}

.status-progress {
    background-color: #cfe2ff;
    color: #084298;
}

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

.date-range {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.date-range .info-value {
    flex: 1;
}

/* ==================== Apply Proxy Page Styles ==================== */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    z-index: 0;
}

.step-indicator::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    height: 2px;
    background-color: #28a745;
    z-index: 0;
    transition: width 0.3s ease;
    width: var(--progress-width, 0%);
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #e9ecef;
    color: #666;
    font-weight: bold;
    margin-bottom: 10px;
}

.step.active .step-number {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.step.completed .step-number {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.step-label {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin-top: 5px;
}

.step.active .step-label {
    color: #007bff;
    font-weight: 500;
    font-size: 1rem;
}

.step.completed .step-label {
    color: #28a745;
    font-size: 1rem;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.search-result {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.field-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.field-item {
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #fff;
}

.field-item:hover:not(.disabled) {
    border-color: #007bff;
    background-color: #f0f7ff;
}

.field-item.checked {
    border-color: #007bff;
    background-color: #e7f1ff;
}

.field-item.disabled {
    background-color: #f8f9fa;
    opacity: 0.6;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.robot-select-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.robot-select {
    padding: 20px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #fff;
}

.robot-select:hover {
    border-color: #007bff;
    background-color: #f0f7ff;
}

.robot-select.selected {
    border-color: #007bff;
    background-color: #e7f1ff;
}

.project-select-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.project-select {
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #fff;
}

.project-select:hover {
    border-color: #007bff;
    background-color: #f0f7ff;
}

.project-select.selected {
    border-color: #007bff;
    background-color: #e7f1ff;
}
