:root {
  --sidebar-width: 240px;
}

body {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background-color: #f5f7fb;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: #1f2a44;
  color: #fff;
}

.app-header .navbar-brand,
.app-header .nav-link {
  color: #fff;
}

.app-layout {
  flex: 1;
  display: flex;
}

.sidebar {
  width: var(--sidebar-width);
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem 0.5rem;
}

.sidebar .nav-link {
  color: #e2e8f0;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  padding: 0.5rem 0.75rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background: #1e293b;
  color: #fff;
}

.main-content {
  flex: 1;
  padding: 1.5rem;
}

.app-body-row {
  flex-wrap: nowrap;
}

.app-body-row > .sidebar {
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
  max-width: var(--sidebar-width);
}

.app-main-content {
  min-width: 0;
  max-width: calc(100vw - var(--sidebar-width));
  overflow-x: hidden;
}

.app-body-row-no-sidebar > .app-main-content {
  max-width: 100%;
}

.content-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.table thead th {
  background-color: #f1f5f9;
}

.form-control,
.form-select {
  border-radius: 0.5rem;
}

.fc .fc-daygrid-day-number {
  color: #000;
}

.fc .fc-day-sat .fc-daygrid-day-number {
  color: #06c;
}

.fc .fc-day-sun .fc-daygrid-day-number {
  color: #c00;
}

.fc .is-holiday .fc-daygrid-day-number {
  color: #c00;
  font-weight: bold;
}

.cal-day-num {
  color: #000;
  display: inline-block;
}

.dow-sat .cal-day-num {
  color: #06c;
}

.dow-sun .cal-day-num,
.is-holiday .cal-day-num {
  color: #c00;
  font-weight: bold;
}

.fc .holiday-label {
  font-size: 0.7rem;
  color: #dc2626;
  margin-top: 0.1rem;
}

.holiday-label {
  font-size: 0.7rem;
  color: #dc2626;
}

@media (max-width: 991.98px) {
  .sidebar {
    display: none;
  }
  .main-content {
    padding: 1rem;
  }
  .app-main-content {
    max-width: 100vw;
    width: 100%;
  }
}

.day-work-date {
  cursor: pointer;
}

.project-notes-scroll {
  max-height: 9rem;
  overflow-y: auto;
}


.project-note-row { width: 100%; }
.project-note-date { width: 9.5rem; min-width: 9.5rem; }
.project-note-type { width: 6rem; min-width: 6rem; flex: 0 0 6rem; }
.project-note-text { flex: 1 1 auto; min-width: 0; }
.project-note-btn-add { white-space: nowrap; }

.project-note-date-view {
  width: 9.5rem;
  min-width: 9.5rem;
  display: flex;
  align-items: center;
}

.project-note-type-view {
  width: 4.5rem;
  min-width: 4.5rem;
  display: flex;
  align-items: center;
}

.project-note-text-view {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-note-actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  white-space: nowrap;
}

.btn-outline-purple {
  color: #6f42c1;
  border-color: #6f42c1;
}

.btn-outline-purple:hover,
.btn-outline-purple:focus,
.btn-outline-purple:active,
.btn-outline-purple.active {
  color: #fff;
  background-color: #6f42c1;
  border-color: #6f42c1;
}
