/* 피아노교실 운영일지 & 출석·명단 관리 시스템 스타일시트 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --blue-sat: #2563eb;
  --red-sun: #dc2626;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #d1d5db;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* App Header */
.app-header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.brand-title h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.brand-title p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.role-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
}

.role-btn {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.role-btn.active {
  background: white;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.role-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-worker {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-teacher {
  background-color: #fef3c7;
  color: #92400e;
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid #e2e8f0;
  background: white;
  padding: 0 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
  overflow-x: auto;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #1e293b;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Container */
.main-container {
  max-width: 1440px;
  margin: 1.25rem auto;
  padding: 0 1.5rem;
}

/* Tab Panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Split View Layout */
.split-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
}

/* Left Sidebar: Calendar & Date List */
.sidebar-panel {
  background: white;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

/* Mini Calendar Widget */
.calendar-widget {
  padding: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0 4px;
}

.cal-month-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
}

.cal-nav-btn {
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 2px 7px;
  cursor: pointer;
  font-size: 0.75rem;
  color: #64748b;
}

.cal-nav-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.cal-day-name {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 0;
  color: #64748b;
}

.cal-day-name.sun {
  color: var(--red-sun);
}

.cal-day-name.sat {
  color: var(--blue-sat);
}

.cal-day-cell {
  position: relative;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.15s ease;
  user-select: none;
}

.cal-day-cell:hover:not(.empty) {
  background: #f1f5f9;
}

.cal-day-cell.empty {
  cursor: default;
}

.cal-day-cell.sun {
  color: var(--red-sun);
}

.cal-day-cell.sat {
  color: var(--blue-sat);
}

.cal-day-cell.holiday {
  color: var(--red-sun);
  font-weight: 700;
  background-color: #fff1f2;
}

.cal-day-cell.has-lesson {
  font-weight: 700;
}

.cal-day-cell.has-lesson::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--primary);
}

.cal-day-cell.selected {
  background-color: var(--primary) !important;
  color: white !important;
  font-weight: 800;
}

.cal-day-cell.selected::after {
  background-color: white !important;
}

/* Sidebar List view under calendar */
.sidebar-list-wrap {
  max-height: 250px;
  overflow-y: auto;
  padding: 0.35rem;
}

.log-item {
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.log-item:hover {
  background-color: #f8fafc;
}

.log-item.active {
  background-color: #eff6ff;
  border-color: #bfdbfe;
}

.log-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.log-date {
  font-weight: 700;
  font-size: 0.88rem;
  color: #1e293b;
}

.log-status-badge {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 9999px;
  font-weight: 700;
}

.status-approved {
  background-color: #dcfce7;
  color: #15803d;
}

.status-pending {
  background-color: #fef9c3;
  color: #a16207;
}

.status-draft {
  background-color: #f1f5f9;
  color: #64748b;
}

.log-item-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748b;
}

/* Detail & Document Panel */
.doc-panel {
  background: white;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  padding: 1.25rem;
}

.doc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.toolbar-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-outline {
  background-color: white;
  border-color: #cbd5e1;
  color: #334155;
}

.btn-outline:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

.btn-success {
  background-color: var(--success);
  color: white;
}

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

.btn-xs {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ========================================================
   HWP OFFICIAL DOCUMENT STYLES (직관적 & 여백 축소 & 결재란 공란)
   ======================================================== */
.hwp-paper {
  background: white;
  border: 2px solid #000;
  padding: 16px 20px;
  margin: 0 auto;
  max-width: 860px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-family: "Batang", "Malgun Gothic", "Pretendard", serif;
  color: #000;
}

.hwp-header-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 8px;
}

.hwp-doc-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-family: "Malgun Gothic", "Batang", sans-serif;
  padding-right: 12px;
}

/* 결재란: 공란 처리 (도장/글자 없이 수기 결재 가능) */
.hwp-approval-table {
  border-collapse: collapse;
  width: 190px;
  text-align: center;
  font-size: 0.82rem;
  border: 1.5px solid #000;
}

.hwp-approval-table td, .hwp-approval-table th {
  border: 1px solid #000;
  padding: 3px;
}

.hwp-approval-side {
  width: 22px;
  writing-mode: vertical-rl;
  letter-spacing: 0.25em;
  background: #f8fafc;
  font-weight: bold;
}

.hwp-approval-role {
  height: 22px;
  font-weight: bold;
  background: #f8fafc;
  width: 84px;
}

/* 완전히 깨끗한 공란 (도장이나 텍스트 없음) */
.hwp-approval-sign-blank {
  height: 52px;
  background: white;
}

/* Main Form Table (여백 최적화) */
.hwp-table {
  width: 100%;
  border-collapse: collapse;
  border: 1.5px solid #000;
}

.hwp-table th, .hwp-table td {
  border: 1px solid #000;
  padding: 4px 6px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.hwp-table th {
  background-color: #f1f5f9;
  font-weight: bold;
  text-align: center;
}

.text-center {
  text-align: center;
}

/* Lesson Content: 밀도 있고 가독성 높게 */
.lesson-content-box {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.85rem;
  min-height: 110px;
}

.lesson-sublist {
  margin-top: 4px;
  padding-left: 8px;
}

.lesson-item {
  margin-bottom: 3px;
  display: flex;
  gap: 6px;
}

.lesson-tag {
  font-weight: bold;
  min-width: 60px;
  color: #1e3a8a;
}

.supervision-box {
  min-height: 55px;
  font-size: 0.84rem;
  white-space: pre-wrap;
  line-height: 1.45;
}

/* Supervision Feedback Form */
.supervision-editor-card {
  margin-top: 1rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 1rem;
}

.supervision-editor-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editor-textarea {
  width: 100%;
  min-height: 75px;
  padding: 8px;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
  background: white;
}

.editor-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.editor-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-templates {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* Modal Form Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background: white;
  border-radius: 10px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #94a3b8;
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.form-input, .form-select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.88rem;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

/* Modal Date Picker (Calendar) */
.date-picker-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 0.75rem;
}

.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}

.date-picker-cell {
  padding: 6px 0;
  font-size: 0.82rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.date-picker-cell:hover:not(.empty) {
  background: #e2e8f0;
}

.date-picker-cell.sun {
  color: var(--red-sun);
}

.date-picker-cell.sat {
  color: var(--blue-sat);
}

.date-picker-cell.holiday {
  color: var(--red-sun);
  background: #fee2e2;
  font-weight: 700;
}

.date-picker-cell.selected {
  background: var(--primary) !important;
  color: white !important;
  font-weight: 800;
}

.attendance-input-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  background: #f8fafc;
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.attendance-total-display {
  grid-column: span 3;
  padding-top: 0.4rem;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: var(--primary);
}

.modal-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Tables & Cards */
.table-card {
  background: white;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  margin-bottom: 1.25rem;
}

.table-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
}

.modern-table th, .modern-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.85rem;
  text-align: left;
}

.modern-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
}

.modern-table tr:hover {
  background-color: #f8fafc;
}

.active-filter {
  background-color: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

/* Dashboard Summary Cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: white;
  border-radius: 10px;
  padding: 1.1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.stat-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0.35rem;
}

.stat-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* 오늘 날짜 하이라이트 (모든 달력 공통: 사이드바, 모달, 출석부 팝업) */
.cal-day-cell.today-cell,
.date-picker-cell.today-cell {
  position: relative !important;
  box-shadow: 0 0 0 2px #0284c7 inset !important;
  background-color: #f0f9ff !important;
  font-weight: 800 !important;
}

.cal-day-cell.today-cell::before,
.date-picker-cell.today-cell::before {
  content: '오늘';
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 8px;
  font-weight: 700;
  color: #0284c7;
  line-height: 1;
}

.cal-day-cell.today-cell.selected::before,
.date-picker-cell.today-cell.selected::before {
  color: #ffffff;
}

/* 출석부 캘린더 드롭다운 위젯 */
.attendance-date-picker-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.custom-datepicker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.15s ease;
  user-select: none;
}

.custom-datepicker-trigger:hover {
  border-color: var(--primary);
  background: #f8fafc;
}

.dropdown-arrow {
  font-size: 0.68rem;
  color: #64748b;
  transition: transform 0.2s ease;
}

.custom-datepicker-trigger.active .dropdown-arrow {
  transform: rotate(180deg);
}

.calendar-dropdown-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  padding: 12px;
  z-index: 100;
  display: none;
  animation: fadeInDown 0.15s ease-out;
}

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

.calendar-dropdown-popup.open {
  display: block;
}

.cal-popup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.cal-legend {
  display: flex;
  gap: 8px;
  font-size: 0.72rem;
  color: #64748b;
}

.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 3px;
  vertical-align: middle;
}

.has-lesson-dot {
  background-color: var(--primary);
}

.today-dot {
  background-color: #0284c7;
  box-shadow: 0 0 0 1px #0284c7;
}

/* 출석부 출력(Print Sheet) 전용 스타일 */
.att-print-wrapper {
  background: white;
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.att-print-sheet {
  background: white;
  border: 2px solid #000;
  padding: 16px 20px;
  margin: 0 auto;
  font-family: "Batang", "Malgun Gothic", "Pretendard", serif;
  color: #000;
  max-width: 1200px;
}

.att-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 12px;
}

.att-sheet-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.att-approval-table {
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: center;
}

.att-approval-table td {
  border: 1px solid #000;
  padding: 3px 6px;
}

.att-info-strip {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 4px 6px;
  border-bottom: 1px solid #000;
  margin-bottom: 8px;
  font-weight: 600;
}

.att-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  text-align: center;
}

.att-matrix-table th,
.att-matrix-table td {
  border: 1px solid #475569;
  padding: 4px 2px;
  line-height: 1.2;
}

.att-matrix-table th {
  background-color: #f1f5f9;
  font-weight: 700;
}

.att-matrix-table td.cell-name {
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.att-matrix-table td.cell-group {
  font-size: 0.68rem;
  white-space: nowrap;
}

.att-mark-present {
  color: #15803d;
  font-weight: 700;
}

.att-mark-absent {
  color: #dc2626;
  font-weight: 700;
}

.att-summary-row {
  background-color: #f8fafc;
  font-weight: 800;
}

/* 수강생 월별 누적 이력 뱃지 & 타임라인 */
.history-badge-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}

.history-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.72rem;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  transition: all 0.15s ease;
}

.history-badge.latest {
  background-color: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
  font-weight: 700;
}

.history-arrow {
  color: #94a3b8;
  font-size: 0.7rem;
}

.history-manage-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  margin-top: 6px;
}

.history-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 5px;
  font-size: 0.8rem;
}

/* PRINT MEDIA QUERY (A4 공문서 출력 최적화) */
@media print {
  body {
    background: white;
    font-size: 10pt;
  }

  .app-header,
  .nav-tabs,
  .sidebar-panel,
  .doc-toolbar,
  .supervision-editor-card,
  .role-switcher,
  .no-print {
    display: none !important;
  }

  .main-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .split-layout {
    display: block;
  }

  .doc-panel {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  /* 운영일지 단독 인쇄 */
  #tab-detail.active .hwp-paper {
    box-shadow: none;
    border: 2px solid #000;
    padding: 8mm 10mm;
    margin: 0;
    max-width: 100%;
    width: 100%;
    page-break-after: always;
  }

  /* 출석부 단독 인쇄 (A4 가로 최적화) */
  #tab-att-print.active .att-print-sheet {
    box-shadow: none;
    border: 2px solid #000;
    padding: 5mm 8mm;
    margin: 0;
    max-width: 100%;
    width: 100%;
    page-break-after: always;
  }

  .att-print-wrapper {
    border: none;
    padding: 0;
  }

  @page {
    size: A4 landscape;
    margin: 6mm;
  }
}

