@charset "UTF-8";

.wage-page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 8px 0 42px;
}

.wage-page .utility-top {
  padding: 34px 20px 30px;
  text-align: center;
}

.wage-page .utility-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fdf2f8, #eff6ff);
  color: #be185d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.wage-page .utility-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.wage-page .utility-desc {
  max-width: 860px;
  margin: 18px auto 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
}

.wage-summary-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.wage-summary-guide-item {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.wage-summary-guide-item::before {
  content: "";
  display: block;
  width: 38px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ec4899, #2563eb);
}

.wage-summary-guide-item strong {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.wage-summary-guide-item span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

.wage-main-card,
.default-settings-card,
.summary-card,
.history-card {
  margin-bottom: 24px;
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.wage-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.wage-card-head h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.wage-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.wage-status-badge,
.summary-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fdf2f8, #eff6ff);
  color: #be185d;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.wage-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.calendar-panel,
.editor-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.editor-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.calendar-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.calendar-nav-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

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

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

.calendar-weekdays {
  margin-bottom: 10px;
}

.calendar-weekdays div {
  padding: 7px 0;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.calendar-day {
  position: relative;
  min-height: 92px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.18s ease;
}

.calendar-day:hover {
  border-color: rgba(236, 72, 153, 0.28);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.calendar-day.is-empty {
  background: #f8fafc;
  border-style: dashed;
  cursor: default;
}

.calendar-day.is-empty:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(148, 163, 184, 0.16);
}

.calendar-day.is-today {
  border-color: #94a3b8;
}

.calendar-day.is-selected {
  border-color: #0f172a;
  background: #f8fafc;
}

.calendar-day.has-data {
  border-color: rgba(236, 72, 153, 0.28);
  background: linear-gradient(180deg, #fff7fb 0%, #fce7f3 100%);
}

.calendar-day.has-data.is-selected {
  border-color: #ec4899;
  background: linear-gradient(180deg, #fdf2f8 0%, #fce7f3 100%);
}

.calendar-day.has-data::after {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.1);
}

.calendar-day-num {
  position: relative;
  z-index: 1;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.calendar-day-meta {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.calendar-day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ec4899;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.22);
}

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

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

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

.legend-worked {
  background: #ec4899;
}

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

.editor-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-bottom: 20px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.wage-page .utility-field {
  min-width: 0;
}

.wage-page .utility-field + .utility-field {
  margin-top: 20px;
}

.wage-page .utility-field-label {
  display: block;
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.wage-page .utility-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wage-page .utility-input:focus {
  outline: none;
  border-color: #ec4899;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

.wage-page .utility-input::placeholder {
  color: #94a3b8;
}

.utility-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

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

.editor-date {
  margin: 18px 0 20px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.current-apply-box {
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: #ffffff;
}

.current-apply-box h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.current-apply-box p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
}

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

.input-with-unit .utility-input {
  padding-right: 62px;
}

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

.quick-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.quick-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.quick-chip:hover {
  border-color: rgba(236, 72, 153, 0.28);
  background: #fdf2f8;
  color: #be185d;
  transform: translateY(-1px);
}

.utility-check-wrap {
  margin-top: 20px;
}

.utility-check-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.utility-check-label input {
  width: 18px;
  height: 18px;
  accent-color: #ec4899;
}

.wage-btn-row,
.history-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.wage-page .utility-btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 800;
}

.wage-page .utility-btn-primary {
  border-color: #0f172a;
  background: linear-gradient(135deg, #ec4899, #2563eb);
  color: #ffffff;
}

.utility-btn-danger-soft {
  border-color: rgba(236, 72, 153, 0.24);
  background: #fff5f9;
  color: #be185d;
}

.utility-btn-danger-soft:hover,
.history-clear-btn:hover {
  background: #fdf2f8;
  border-color: rgba(236, 72, 153, 0.34);
  color: #9d174d;
}

.editor-note-box,
.default-note-box {
  margin-top: 20px;
  min-height: 82px;
  display: flex;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 20px;
  background: linear-gradient(135deg, #fdf2f8, #eff6ff);
  color: #be185d;
}

.editor-note-box p,
.default-note-box p {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.8;
}

.default-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.summary-item {
  min-width: 0;
  min-height: 96px;
  padding: 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.summary-item-accent {
  border-color: rgba(236, 72, 153, 0.22);
  background: linear-gradient(135deg, #fdf2f8, #eff6ff);
}

.summary-label {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.summary-item strong {
  display: block;
  width: 100%;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.history-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: #ffffff;
}

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

.history-table th,
.history-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
  color: #334155;
  font-size: 14px;
  white-space: nowrap;
}

.history-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.history-table tbody tr:hover {
  background: #fafcff;
}

.empty-row td {
  padding: 24px 14px;
  color: #94a3b8;
}

.wage-page .help-panel {
  margin-top: 30px;
}

.wage-page .help-panel > h2 {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.wage-page .help-box {
  border-radius: 24px;
}

.wage-page .help-toggle-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.wage-page .help-toggle-box summary::-webkit-details-marker {
  display: none;
}

.wage-page .help-toggle-box summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #64748b;
  font-size: 1.2rem;
  font-weight: 700;
}

.wage-page .help-toggle-box[open] summary::after {
  content: "−";
}

.wage-page .help-toggle-content {
  margin-top: 14px;
}

.wage-page .help-toggle-content p {
  margin: 0;
  color: #334155;
  line-height: 1.8;
}

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

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

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

@media (max-width: 1080px) {
  .wage-summary-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .wage-card-head {
    grid-template-columns: 1fr;
  }

  .history-btn-row {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .wage-page {
    padding: 0 0 28px;
  }

  .wage-page .utility-top {
    padding: 26px 14px 24px;
  }

  .wage-page .utility-title {
    font-size: 34px;
  }

  .wage-main-card,
  .default-settings-card,
  .summary-card,
  .history-card {
    padding: 22px;
    border-radius: 22px;
  }

  .calendar-panel,
  .editor-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .calendar-header h2 {
    font-size: 22px;
  }

  .calendar-day {
    min-height: 78px;
    padding: 8px;
    border-radius: 14px;
  }

  .calendar-day-badge {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .editor-date {
    font-size: 20px;
  }

  .default-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .wage-btn-row,
  .history-btn-row {
    flex-direction: column;
  }

  .wage-btn-row .utility-btn,
  .history-btn-row .utility-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .wage-main-card,
  .default-settings-card,
  .summary-card,
  .history-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .calendar-panel,
  .editor-panel {
    padding: 18px 14px;
    border-radius: 18px;
  }

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

  .calendar-day {
    min-height: 64px;
  }

  .calendar-day-num {
    font-size: 12px;
  }

  .calendar-legend {
    gap: 10px;
    font-size: 12px;
  }

  .quick-chip {
    flex: 1 1 calc(50% - 6px);
  }

  .summary-item strong {
    font-size: 16px;
  }
}