/* ──────────────────────────────────────────
   CareNara 행정 자동화 전용 스타일
   ────────────────────────────────────────── */

/* ── 행정 허브 카드 그리드 ── */
.admin-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.hub-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow .15s, transform .1s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.hub-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.hub-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--hub-color, var(--color-primary));
}

.hub-icon {
  font-size: 2rem;
  line-height: 1;
}

.hub-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.hub-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.hub-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

/* ── "담당자 검토 필수" 안내 배너 ── */
.reviewer-notice {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: #92400e;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.reviewer-notice strong { display: block; margin-bottom: 2px; }

/* ── 기준 변경일 태그 ── */
.standard-date-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 8px;
}

/* ── 급여제공계획서 욕구사정 체크리스트 ── */
.needs-section {
  margin-bottom: 20px;
}

.needs-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  border-left: 3px solid var(--color-primary);
}

.needs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.needs-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .1s, background .1s;
  font-size: 0.8125rem;
}
.needs-item.checked {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  font-weight: 500;
}
.needs-item input[type="checkbox"] {
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ── 등급별 한도액 카드 ── */
.grade-limit-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grade-label {
  font-weight: 700;
  font-size: 0.9375rem;
}

.grade-amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.grade-bar-bg {
  flex: 1;
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  margin: 0 16px;
  overflow: hidden;
}

.grade-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: 4px;
  transition: width .5s;
}

/* ── 서류 완성도 대시보드 ── */
.completion-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.completion-bar-bg {
  flex: 1;
  height: 10px;
  background: #f1f5f9;
  border-radius: 5px;
  overflow: hidden;
}

.completion-bar {
  height: 100%;
  border-radius: 5px;
  transition: width .6s;
}

.completion-pct {
  font-size: 0.8125rem;
  font-weight: 700;
  min-width: 36px;
  text-align: right;
}

/* 완성도별 색상 */
.comp-high   { background: #16a34a; }
.comp-mid    { background: #d97706; }
.comp-low    { background: #dc2626; }

/* ── 법령 알림 카드 ── */
.law-alert-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  border-left: 4px solid;
}
.law-alert-card.law      { border-left-color: #dc2626; }
.law-alert-card.standard { border-left-color: #d97706; }
.law-alert-card.form     { border-left-color: #2563eb; }
.law-alert-card.rate     { border-left-color: #7c3aed; }
.law-alert-card.notice   { border-left-color: #64748b; }

.law-alert-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.law-alert-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.affected-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.affected-doc-chip {
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}

/* ── 근무편성표 ── */
.schedule-table-wrap {
  overflow-x: auto;
}

.schedule-table {
  border-collapse: collapse;
  font-size: 0.75rem;
  min-width: 800px;
}

.schedule-table th {
  background: #1e293b;
  color: #fff;
  padding: 8px 6px;
  text-align: center;
  white-space: nowrap;
}

.schedule-table td {
  border: 1px solid #e2e8f0;
  padding: 4px 6px;
  vertical-align: top;
  min-width: 60px;
}

.schedule-cell-visit {
  background: #eff6ff;
  border-radius: 3px;
  padding: 2px 4px;
  margin-bottom: 2px;
  font-size: 0.6875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 빠른 서류 도우미 ── */
.template-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.template-chip {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8125rem;
  cursor: pointer;
  background: var(--color-surface);
  transition: background .1s, border-color .1s;
}

.template-chip:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ── 평가 체크리스트 ── */
.eval-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.eval-item.urgent {
  border-color: #fca5a5;
  background: #fff5f5;
}

.eval-item-icon { font-size: 1.5rem; }

.eval-item-info { flex: 1; }

.eval-item-title {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.eval-item-sub {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.eval-item-pct {
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 56px;
  text-align: right;
}

/* ── 음성 입력 버튼 ── */
.voice-btn {
  width: 36px; height: 36px;
  border: none;
  background: #eff6ff;
  color: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background .15s;
  flex-shrink: 0;
}
.voice-btn:hover { background: #dbeafe; }
.voice-btn.recording { background: #fee2e2; color: #dc2626; animation: pulse 1s ease-in-out infinite; }

/* ── 반응형 ── */
@media (max-width: 768px) {
  .admin-hub-grid { grid-template-columns: 1fr 1fr; }
  .needs-grid     { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .admin-hub-grid { grid-template-columns: 1fr; }
  .grade-limit-card { flex-direction: column; gap: 8px; }
  .grade-bar-bg { width: 100%; margin: 0; }
}
