@charset "UTF-8";

.njob-page {
  padding-bottom: 72px;
}

.njob-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.njob-card {
  background: #fff;
  border: 1px solid #e8ebf2;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
  margin-bottom: 24px;
}

.calendar-header,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-header h2,
.section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.calendar-nav {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid #d9dfeb;
  background: #fff;
  font-size: 28px;
  line-height: 1;
  color: #475569;
  cursor: pointer;
  transition: 0.2s ease;
  flex-shrink: 0;
}

.calendar-nav:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 22px;
  margin-bottom: 12px;
  gap: 10px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 13px;
  color: #7c8aa5;
  font-weight: 700;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar-day {
  min-height: 96px;
  border-radius: 18px;
  border: 1px solid #e4e8f0;
  background: #fff;
  padding: 10px 8px 8px;
  cursor: pointer;
  position: relative;
  transition: 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.calendar-day:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
}

.calendar-day.empty {
  background: #f8fafc;
  cursor: default;
  opacity: 0.75;
}

.calendar-day.empty:hover {
  transform: none;
  box-shadow: none;
}

.day-number {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  text-align: left;
}

.calendar-day.today {
  border-color: #c9d7ee;
  background: #f8fbff;
}

.calendar-day.selected {
  border: 2px solid #0f172a;
}

.calendar-day.has-record {
  background: #fcfcff;
}

.day-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  min-height: 34px;
}

.day-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 12px;
}

.day-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-job1 {
  background: #db2777;
}

.dot-job2 {
  background: #2563eb;
}

.dot-job3 {
  background: #059669;
}

.dot-job4 {
  background: #d97706;
}

.day-hours {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  line-height: 1.3;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
}

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

.legend-dot.selected {
  background: #0f172a;
}

.legend-dot.today {
  background: #94a3b8;
}

.legend-dot.job1 {
  background: #db2777;
}

.legend-dot.job2 {
  background: #2563eb;
}

.legend-dot.job3 {
  background: #059669;
}

.legend-dot.job4 {
  background: #d97706;
}

.panel-section + .panel-section {
  margin-top: 20px;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.workplace-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.workplace-tab {
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
  padding: 0 12px;
}

.workplace-tab:hover {
  transform: translateY(-1px);
}

.workplace-tab.active {
  border-width: 2px;
}

.workplace-tab.job1.active {
  border-color: #db2777;
  background: #fde7f2;
  color: #9d174d;
}

.workplace-tab.job2.active {
  border-color: #2563eb;
  background: #e8f1ff;
  color: #1d4ed8;
}

.workplace-tab.job3.active {
  border-color: #059669;
  background: #e8fbf5;
  color: #047857;
}

.workplace-tab.job4.active {
  border-color: #d97706;
  background: #fff5db;
  color: #b45309;
}

.selected-job-preview,
.current-record-box,
.panel-note,
.default-summary-item,
.summary-item,
.job-summary-item {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 18px;
}

.selected-job-preview,
.panel-note {
  padding: 14px 16px;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.field-help,
.section-desc {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

.current-date-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
}

.current-record-box {
  padding: 16px;
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
  word-break: keep-all;
}

.current-record-item {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.current-record-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.field-row {
  display: grid;
  gap: 14px;
}

.field-row.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.input-unit-wrap {
  position: relative;
}

.input-unit-wrap .utility-input {
  padding-right: 52px;
}

.input-unit {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quick-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dbe2ea;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.quick-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
}

.btn-stack .utility-btn-row.two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.btn-stack .utility-btn-row + .utility-btn-row {
  margin-top: 10px;
}

.btn-stack .utility-btn-row:not(.two) {
  display: flex;
}

.btn-stack .utility-btn-row:not(.two) .utility-btn {
  width: 100%;
}

.utility-btn.danger-soft {
  border-color: #f3c4d8;
  color: #d63384;
  background: #fff7fb;
}

.utility-btn.danger-soft:hover {
  background: #fff0f7;
}

.default-summary-grid,
.summary-grid,
.job-summary-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.default-summary-grid {
  grid-template-columns: repeat(2, 1fr);
}

.summary-grid {
  grid-template-columns: repeat(6, 1fr);
}

.job-summary-grid {
  grid-template-columns: repeat(4, 1fr);
}

.default-summary-item,
.summary-item,
.job-summary-item {
  padding: 16px;
}

.default-summary-item h4,
.summary-item h4,
.job-summary-item h4,
.subsection-title {
  margin: 0 0 10px;
  color: #0f172a;
}

.default-summary-item h4,
.job-summary-item h4 {
  font-size: 16px;
  font-weight: 800;
}

.summary-item h4 {
  font-size: 14px;
  font-weight: 800;
  color: #64748b;
}

.subsection-title {
  margin-top: 28px;
  font-size: 18px;
  font-weight: 800;
}

.default-summary-item p,
.summary-item p,
.job-summary-item p {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.7;
}

.default-summary-meta {
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
}

.summary-item.highlight {
  border-color: #f3c4d8;
  background: #fff5fa;
}

.job-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  max-width: 100%;
  line-height: 1.3;
}

.job-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.job-pill.job1 {
  background: #fde7f2;
  color: #db2777;
}

.job-pill.job2 {
  background: #e8f1ff;
  color: #2563eb;
}

.job-pill.job3 {
  background: #e8fbf5;
  color: #059669;
}

.job-pill.job4 {
  background: #fff5db;
  color: #d97706;
}

.history-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.history-table th,
.history-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e8edf5;
  text-align: center;
  font-size: 14px;
  white-space: nowrap;
}

.history-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
}

.history-table td {
  color: #334155;
  font-weight: 700;
}

.empty-row {
  color: #94a3b8 !important;
  font-weight: 700;
}

.inline-actions {
  width: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .job-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .njob-card {
    padding: 20px;
    border-radius: 22px;
  }

  .calendar-header,
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-header h2,
  .section-head h2 {
    text-align: center;
    font-size: 20px;
  }

  .calendar-day {
    min-height: 82px;
    border-radius: 14px;
  }

  .day-number {
    font-size: 16px;
  }

  .field-row.two-col,
  .default-summary-grid,
  .summary-grid,
  .job-summary-grid,
  .btn-stack .utility-btn-row.two,
  .workplace-tabs {
    grid-template-columns: 1fr;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 8px;
  }

  .inline-actions {
    width: 100%;
    justify-content: stretch;
  }

  .inline-actions .utility-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .njob-page {
    padding-bottom: 56px;
  }

  .njob-card {
    padding: 18px;
    border-radius: 20px;
  }

  .calendar-nav {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 24px;
  }

  .calendar-day {
    min-height: 74px;
    padding: 8px 6px 6px;
  }

  .day-dot {
    width: 9px;
    height: 9px;
  }

  .day-hours {
    font-size: 11px;
  }

  .selected-job-preview,
  .panel-note,
  .current-record-box,
  .default-summary-item,
  .summary-item,
  .job-summary-item {
    border-radius: 16px;
  }
}