:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --green: #16a34a;
  --yellow: #f59e0b;
  --red: #dc2626;
  --purple: #7c3aed;
  --blue-soft: #dbeafe;
  --green-soft: #dcfce7;
  --yellow-soft: #fef3c7;
  --red-soft: #fee2e2;
  --purple-soft: #ede9fe;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 45%, #f4f7fb 100%);
  color: var(--text);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.app {
  width: min(1560px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.top-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.description {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 900;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #fff;
  background: var(--primary);
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.secondary {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
}

.btn.danger {
  color: #fff;
  background: var(--red);
}

.btn.full {
  width: 100%;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.summary-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  min-height: 130px;
}

.summary-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.summary-card strong {
  display: block;
  margin-top: 12px;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.summary-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.summary-card.highlight {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border-color: #bfdbfe;
}

.summary-card.highlight strong {
  color: var(--primary);
}

.summary-card.deadline {
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border-color: #fed7aa;
}

.progress-section,
.panel,
.table-panel,
.calendar-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.progress-section {
  padding: 22px;
  margin-bottom: 18px;
}

.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-title h2,
.calendar-header h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.section-title p,
.calendar-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.progress-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.progress-item {
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 900;
}

.progress-bar {
  overflow: hidden;
  height: 16px;
  background: #e5e7eb;
  border-radius: 999px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.progress-fill.time {
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.progress-fill.result {
  background: linear-gradient(90deg, #34d399, #16a34a);
}

.control-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 18px;
}

.control-panel label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 900;
}

.control-panel input,
.control-panel select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  outline: none;
}

.control-panel input:focus,
.control-panel select:focus,
.table-input:focus,
.table-textarea:focus,
.schedule-form-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.calendar-panel {
  padding: 22px;
  margin-bottom: 18px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-nav strong {
  min-width: 150px;
  text-align: center;
  font-size: 20px;
}

.big-calendar {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.weekday {
  display: inline-flex;
  width: calc(100% / 7);
  height: 42px;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  color: #475569;
  font-weight: 900;
}

.weekday.sun {
  color: var(--red);
}

.weekday.sat {
  color: var(--primary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
  min-height: 145px;
  padding: 10px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.other {
  background: #f8fafc;
  color: #cbd5e1;
}

.calendar-day.today {
  background: #eff6ff;
}

.calendar-day.out-period {
  opacity: 0.55;
}

.day-number {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 900;
  margin-bottom: 8px;
}

.today-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
}

.day-events {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.event-chip {
  border-radius: 10px;
  padding: 6px 7px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  font-size: 12px;
  line-height: 1.35;
}

.event-chip strong {
  display: block;
  color: #1e1b4b;
}

.event-chip span {
  display: block;
  color: #4f46e5;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  padding: 22px;
  min-height: 330px;
}

.chart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-row {
  display: grid;
  grid-template-columns: 130px 1fr 80px;
  gap: 12px;
  align-items: center;
}

.chart-row.compact-row {
  grid-template-columns: 170px 1fr 70px;
}

.chart-name {
  font-size: 14px;
  font-weight: 900;
  word-break: keep-all;
}

.chart-track {
  height: 13px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.chart-fill {
  height: 100%;
  min-width: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #93c5fd, #2563eb);
}

.chart-fill.good {
  background: linear-gradient(90deg, #86efac, #16a34a);
}

.chart-fill.warn {
  background: linear-gradient(90deg, #fde68a, #f59e0b);
}

.chart-fill.bad {
  background: linear-gradient(90deg, #fecaca, #dc2626);
}

.chart-value {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  font-weight: 900;
}

.table-panel {
  padding: 22px;
}

.table-title {
  align-items: center;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot.achieved {
  background: var(--green);
}

.dot.active {
  background: var(--primary);
}

.dot.plan {
  background: var(--purple);
}

.dot.risk {
  background: var(--yellow);
}

.dot.fail {
  background: var(--red);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1450px;
  background: #fff;
}

thead {
  background: #f8fafc;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  color: #475569;
  font-size: 13px;
  white-space: nowrap;
}

tbody tr:hover {
  background: #f9fbff;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status-badge.달성 {
  color: #166534;
  background: var(--green-soft);
}

.status-badge.진행중 {
  color: #1d4ed8;
  background: var(--blue-soft);
}

.status-badge.예정 {
  color: #6d28d9;
  background: var(--purple-soft);
}

.status-badge.위험 {
  color: #92400e;
  background: var(--yellow-soft);
}

.status-badge.미달 {
  color: #991b1b;
  background: var(--red-soft);
}

.table-input,
.table-textarea {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 9px;
  padding: 8px;
  outline: none;
}

.table-input:hover,
.table-textarea:hover {
  border-color: var(--border);
  background: #fff;
}

.table-input.number {
  text-align: right;
  min-width: 64px;
}

.table-textarea {
  resize: vertical;
  min-height: 38px;
  min-width: 160px;
}

.rate-cell {
  font-weight: 900;
  white-space: nowrap;
}

.rate-pill {
  display: inline-block;
  min-width: 58px;
  text-align: center;
  padding: 7px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

.schedule-cell {
  min-width: 230px;
}

.schedule-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 900;
}

.schedule-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.schedule-preview span {
  display: inline-flex;
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

/* Modal */
.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  width: min(1000px, calc(100% - 28px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 24px auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.modal-kicker {
  margin: 0 0 6px;
  color: var(--primary);
  font-weight: 900;
  font-size: 13px;
}

.modal-header h2 {
  margin: 0;
  font-size: 26px;
}

.modal-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.modal-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
}

.modal-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  padding: 24px;
}

.mini-calendar-box,
.schedule-form-box {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: #f8fafc;
}

.mini-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mini-calendar-header strong {
  font-size: 18px;
}

.mini-nav-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 900;
}

.mini-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  color: #64748b;
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 8px;
}

.sun {
  color: var(--red);
}

.sat {
  color: var(--primary);
}

.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.mini-day {
  min-height: 60px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  text-align: left;
  font-weight: 900;
}

.mini-day:hover {
  border-color: var(--primary);
}

.mini-day.other {
  color: #cbd5e1;
  background: #f1f5f9;
}

.mini-day.selected {
  background: #dbeafe;
  border-color: var(--primary);
  color: var(--primary);
}

.mini-day.has-event {
  box-shadow: inset 0 -4px 0 #2563eb;
}

.schedule-form-box h3 {
  margin: 0 0 14px;
}

.schedule-form-box label {
  display: block;
  margin: 14px 0 7px;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.schedule-form-box input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  outline: none;
  background: #fff;
}

.current-schedules {
  margin-top: 22px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 10px;
}

.activity-item strong {
  display: block;
  font-size: 14px;
}

.activity-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.delete-activity-btn {
  border: 0;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 900;
}

@media (max-width: 1350px) {
  .summary-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .top-header,
  .calendar-header,
  .section-title,
  .table-title,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-grid,
  .progress-wrapper,
  .control-panel,
  .modal-body {
    grid-template-columns: 1fr;
  }

  .calendar-nav {
    width: 100%;
    justify-content: space-between;
  }

  .calendar-day {
    min-height: 120px;
    padding: 7px;
  }

  .event-chip {
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    min-height: 95px;
  }

  .event-chip strong {
    display: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  .header-actions,
  .control-panel,
  .schedule-button,
  .modal {
    display: none !important;
  }

  .app {
    width: 100%;
    padding: 0;
  }

  .summary-card,
  .progress-section,
  .panel,
  .table-panel,
  .calendar-panel {
    box-shadow: none;
  }
}
/* ===== 큰 달력 전체 월간 표시 보정 ===== */

.calendar-panel {
  overflow: hidden;
}

.calendar-title {
  align-items: center;
}

.week {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #f8fafc;
}

.week b {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-right: 1px solid var(--line);
  color: #475569;
  font-weight: 900;
  font-size: 13px;
}

.week b:last-child {
  border-right: 0;
}

.week .sun {
  color: var(--red);
}

.week .sat {
  color: var(--blue);
}

.calendar-grid {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(6, minmax(135px, auto));
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: #fff;
}

.day {
  display: block !important;
  min-height: 135px !important;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.day:nth-child(7n) {
  border-right: 1px solid var(--line);
}

.day.other {
  background: #f8fafc;
  color: #94a3b8;
}

.day.outside-period {
  background-image: linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.04) 25%,
    transparent 25%,
    transparent 50%,
    rgba(148, 163, 184, 0.04) 50%,
    rgba(148, 163, 184, 0.04) 75%,
    transparent 75%,
    transparent
  );
  background-size: 12px 12px;
}

.day.today {
  background: #eff6ff;
}

.day-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 22px;
  margin-bottom: 6px;
  color: #0f172a;
  font-weight: 900;
  font-size: 12px;
}

.day.today .day-num span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
}

.day.other .day-num {
  color: #94a3b8;
}

.day-events {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 6px;
  padding: 5px 7px;
  background: #15803d;
  color: #fff;
  text-align: left;
  font-size: 12px;
  line-height: 1.25;
  cursor: pointer;
}

.event:hover {
  background: #166534;
  transform: none;
}

.event span {
  display: inline;
  margin-right: 4px;
  color: #dcfce7;
  font-weight: 900;
}

.event b {
  display: inline;
  color: #fff;
  font-weight: 900;
}

.event small {
  display: block;
  margin-top: 2px;
  color: #bbf7d0;
  font-size: 11px;
}

@media (max-width: 900px) {
  .calendar-grid {
    grid-template-rows: repeat(6, minmax(100px, auto));
  }

  .day {
    min-height: 100px !important;
    padding: 5px;
  }

  .event {
    padding: 4px 5px;
    font-size: 11px;
  }

  .event small {
    display: none;
  }
}
/* =========================================================
   운영 점검표 입력칸 / 숫자칸 / 일정 버튼 스타일 개선
   ========================================================= */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 18px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 1180px !important;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

th,
td {
  padding: 10px 8px !important;
  border-bottom: 1px solid var(--border, #e5e7eb);
  vertical-align: middle;
  font-size: 13px;
}

th {
  height: 42px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  text-align: center;
}

/* 컬럼 폭 조정 */
th:nth-child(1),
td:nth-child(1) {
  width: 72px;
  text-align: center;
}

th:nth-child(2),
td:nth-child(2) {
  width: 110px;
}

th:nth-child(3),
td:nth-child(3) {
  width: 145px;
}

th:nth-child(4),
td:nth-child(4) {
  width: 105px;
  text-align: center;
}

/* 목표, 참석자, 상담, 복음방, 결실 */
th:nth-child(5),
td:nth-child(5),
th:nth-child(6),
td:nth-child(6),
th:nth-child(7),
td:nth-child(7),
th:nth-child(8),
td:nth-child(8),
th:nth-child(9),
td:nth-child(9) {
  width: 66px;
  text-align: center;
}

/* 달성률 */
th:nth-child(10),
td:nth-child(10) {
  width: 70px;
  text-align: center;
}

/* 연계 부서 */
th:nth-child(11),
td:nth-child(11) {
  width: 120px;
}

/* 지역 */
th:nth-child(12),
td:nth-child(12) {
  width: 95px;
}

/* 메모 */
th:nth-child(13),
td:nth-child(13) {
  width: 180px;
}

/* 기본 입력창 스타일 */
.inp,
.txt,
.table-input,
.table-textarea {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  border-radius: 10px !important;
  padding: 0 10px !important;
  color: #0f172a;
  font-size: 13px;
  outline: none;
  transition: 0.15s ease;
}

.inp:hover,
.txt:hover,
.table-input:hover,
.table-textarea:hover {
  border-color: #bfdbfe !important;
  background: #f8fbff !important;
}

.inp:focus,
.txt:focus,
.table-input:focus,
.table-textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
  background: #fff !important;
}

/* 숫자 입력칸 축소 */
.inp.num,
.table-input.number {
  width: 46px !important;
  max-width: 46px !important;
  min-width: 46px !important;
  height: 32px !important;
  padding: 0 6px !important;
  text-align: center !important;
  margin: 0 auto;
  font-weight: 800;
}

/* number input 화살표 제거 */
.inp.num::-webkit-outer-spin-button,
.inp.num::-webkit-inner-spin-button,
.table-input.number::-webkit-outer-spin-button,
.table-input.number::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.inp.num,
.table-input.number {
  appearance: textfield;
  -moz-appearance: textfield;
}

/* 메모칸 */
.txt,
.table-textarea {
  min-height: 34px !important;
  height: 34px;
  resize: vertical;
  padding-top: 8px !important;
  line-height: 1.4;
}

/* 활동 일정 칸 */
.schedule-cell {
  text-align: center;
}

/* 일정 미리보기 숨김 */
.preview,
.schedule-preview {
  display: none !important;
}

/* 일정 버튼 새 스타일 */
.schedule-btn,
.schedule-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 82px;
  height: 34px;
  padding: 0 10px !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #eff6ff, #ffffff) !important;
  color: #1d4ed8 !important;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  transition: 0.18s ease;
}

.schedule-btn:hover,
.schedule-button:hover {
  transform: translateY(-1px);
  border-color: #2563eb !important;
  background: #dbeafe !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

.schedule-btn em,
.schedule-button em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

/* 상태 배지 정리 */
.badge,
.status-badge {
  min-width: 58px !important;
  height: 28px;
  padding: 0 9px !important;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 900;
}

/* 달성률 표시 */
.rate,
.rate-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 28px;
  padding: 0 8px !important;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

/* 테이블 행 */
tbody tr {
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: #f8fbff !important;
}

/* 표 안의 긴 텍스트 잘림 방지 */
td input {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 모바일 대응 */
@media (max-width: 900px) {
  table {
    min-width: 1120px !important;
  }

  th,
  td {
    padding: 8px 6px !important;
  }

  .inp.num,
  .table-input.number {
    width: 42px !important;
    max-width: 42px !important;
    min-width: 42px !important;
  }

  .schedule-btn,
  .schedule-button {
    min-width: 74px;
    font-size: 11px;
  }
}
/* =========================================================
   전체 활동 달력 배경 정리 + 부서별 일정 색상 적용
   ========================================================= */

/* 달력 전체 배경 */
.big-calendar,
.calendar-grid {
  background: #ffffff !important;
}

/* 날짜 칸 기본 배경 */
.day {
  background: #ffffff !important;
  background-image: none !important;
}

/* 이전/다음 달 날짜도 빗금 없이 흰색 */
.day.other {
  background: #ffffff !important;
  background-image: none !important;
  color: #94a3b8;
}

/* 모집 기간 밖 날짜도 빗금 제거 */
.day.outside-period {
  background: #ffffff !important;
  background-image: none !important;
}

/* 오늘 날짜만 은은하게 표시 */
.day.today {
  background: #eff6ff !important;
}

/* 날짜 숫자 */
.day-num {
  color: #0f172a;
}

.day.other .day-num {
  color: #94a3b8;
}

/* 부서별 색상은 JS에서 CSS 변수로 주입 */
.event {
  width: 100%;
  display: block;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 6px 8px !important;
  background: var(--event-bg, #334155) !important;
  color: #ffffff !important;
  text-align: left;
  font-size: 12px;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  transition: 0.16s ease;
}

.event:hover {
  background: var(--event-hover, #1e293b) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.event span {
  display: inline;
  margin-right: 4px;
  color: var(--event-sub, #e2e8f0) !important;
  font-weight: 900;
}

.event b {
  display: inline;
  color: #ffffff !important;
  font-weight: 900;
}

.event small {
  display: block;
  margin-top: 3px;
  color: var(--event-sub, #e2e8f0) !important;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.95;
}
/* =========================================================
   부서별 / 프로그램별 달성률 그래프 시각화
   ========================================================= */

.dashboard-grid {
  align-items: stretch;
}

.panel .chart-list {
  display: flex !important;
  flex-direction: column;
  gap: 13px;
  width: 100%;
}

.chart-row {
  display: grid !important;
  grid-template-columns: 120px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 12px;
  min-height: 28px;
}

.chart-row > b {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track {
  position: relative;
  width: 100%;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.fill {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: 999px;
  transition: width 0.35s ease;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.fill.good {
  background: linear-gradient(90deg, #34d399, #16a34a);
}

.fill.warn {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.fill.bad {
  background: linear-gradient(90deg, #f87171, #dc2626);
}

.val {
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

/* 부서별 현황은 등록수/목표수가 잘 보이도록 */
#departmentChart .chart-row {
  grid-template-columns: 105px minmax(0, 1fr) 64px;
}

/* 프로그램별 현황은 프로그램명이 길 수 있어서 이름 영역 조금 넓게 */
#programChart .chart-row {
  grid-template-columns: 150px minmax(0, 1fr) 48px;
}

/* 그래프가 너무 적을 때 빈 화면처럼 보이지 않도록 패널 최소 높이 조정 */
.dashboard-grid .panel {
  min-height: 380px;
}

/* 0%도 아주 얇은 막대로 표시 */
.fill[style*="width:0%"],
.fill[style*="width: 0%"] {
  width: 4px !important;
  opacity: 0.55;
}

/* 차트 행 hover */
.chart-row {
  padding: 3px 0;
  border-radius: 10px;
}

.chart-row:hover {
  background: #f8fbff;
}

/* 모바일 대응 */
@media (max-width: 900px) {
  .chart-row,
  #departmentChart .chart-row,
  #programChart .chart-row {
    grid-template-columns: 110px minmax(0, 1fr) 48px;
    gap: 8px;
  }

  .chart-row > b {
    font-size: 12px;
  }

  .track {
    height: 14px;
  }
}
