@charset "UTF-8";

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

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

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

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

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

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

.man-day-summary-item,
.man-day-input-card,
.man-day-rate-card,
.man-day-task-card,
.man-day-result-card,
.man-day-detail-card,
.man-day-share-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.man-day-summary-item {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

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

.man-day-summary-item strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

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

.man-day-input-card,
.man-day-rate-card,
.man-day-task-card,
.man-day-result-card,
.man-day-detail-card,
.man-day-share-card {
  margin-bottom: 24px;
  padding: 30px;
  border-radius: 28px;
}

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

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

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

.man-day-status-badge,
.man-day-result-badge,
.man-day-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0fdf4, #eff6ff);
  color: #166534;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.man-day-form-grid,
.man-day-rate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.man-day-field {
  min-width: 0;
}

.man-day-field-full {
  grid-column: 1 / -1;
}

.man-day-page .utility-field-label {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

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

.man-day-input-with-unit .utility-input {
  padding-right: 82px;
}

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

.man-day-page .utility-input,
.man-day-page .utility-textarea {
  width: 100%;
  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;
}

.man-day-page .utility-input {
  min-height: 52px;
  padding: 0 16px;
}

.man-day-page select.utility-input {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 22px,
    calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.man-day-page .utility-textarea {
  min-height: 300px;
  padding: 18px;
  resize: vertical;
  line-height: 1.8;
}

.man-day-page .utility-input:focus,
.man-day-page .utility-textarea:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.man-day-page .utility-input::placeholder,
.man-day-page .utility-textarea::placeholder {
  color: #94a3b8;
}

.man-day-field-help {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.man-day-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

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

.man-day-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.45);
  background: #f0fdf4;
}

.man-day-task-toolbar {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(10px);
}

.man-day-task-toolbar strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.man-day-task-toolbar p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.man-day-task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.man-day-task-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.man-day-task-item:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.man-day-task-main strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.man-day-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.man-day-task-meta span,
.man-day-task-side span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.man-day-task-side {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.man-day-task-side .man-day-task-hours {
  background: #f0fdf4;
  color: #166534;
}

.man-day-task-side .man-day-task-remove {
  border: 0;
  background: #fff1f2;
  color: #be123c;
  cursor: pointer;
}

.man-day-empty {
  padding: 34px 22px;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  border-radius: 24px;
  background: #f8fafc;
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.man-day-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

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

.man-day-page .utility-btn-primary {
  border-color: #0f172a;
  background: linear-gradient(135deg, #0f172a, #166534);
  color: #ffffff;
}

.man-day-page .utility-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(22, 101, 52, 0.22);
}

.man-day-message {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, #f0fdf4, #eff6ff);
  color: #166534;
  line-height: 1.8;
}

.man-day-message strong {
  color: #0f172a;
  font-weight: 900;
}

.man-day-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.man-day-result-item {
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.man-day-result-item-wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #f8fafc, #f0fdf4);
}

.man-day-result-item span {
  display: block;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.man-day-result-item strong {
  display: block;
  color: #0f172a;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.04em;
  word-break: break-word;
}

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

.man-day-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

.man-day-table thead {
  background: #f8fafc;
}

.man-day-table th,
.man-day-table td {
  padding: 17px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
  font-size: 14px;
}

.man-day-table th {
  color: #0f172a;
  font-weight: 900;
}

.man-day-table td {
  color: #475569;
  line-height: 1.6;
}

.man-day-table tbody tr:last-child td {
  border-bottom: 0;
}

.man-day-table td:first-child,
.man-day-table th:first-child {
  text-align: left;
}

.man-day-share-textarea {
  width: 100%;
  min-height: 360px;
  white-space: pre-wrap;
}

.man-day-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.man-day-modal.is-open {
  display: flex;
}

.man-day-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(6px);
}

.man-day-modal-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.man-day-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.man-day-modal-label {
  margin: 0 0 6px;
  color: #16a34a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.man-day-modal-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.man-day-modal-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.man-day-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.man-day-modal-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, #f0fdf4, #eff6ff);
}

.man-day-modal-preview span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.man-day-modal-preview strong {
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.man-day-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

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

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

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

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

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

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

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

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

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

body.man-day-modal-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .man-day-form-grid,
  .man-day-rate-grid,
  .man-day-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .man-day-summary-card,
  .man-day-form-grid,
  .man-day-rate-grid,
  .man-day-result-grid {
    grid-template-columns: 1fr;
  }

  .man-day-result-item-wide {
    grid-column: auto;
  }

  .man-day-task-toolbar {
    position: static;
    grid-template-columns: 1fr;
  }

  .man-day-task-toolbar .utility-btn {
    width: 100%;
  }
}

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

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

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

  .man-day-input-card,
  .man-day-rate-card,
  .man-day-task-card,
  .man-day-result-card,
  .man-day-detail-card,
  .man-day-share-card {
    padding: 22px;
    border-radius: 22px;
  }

  .man-day-card-head {
    grid-template-columns: 1fr;
  }

  .man-day-task-item {
    grid-template-columns: 1fr;
  }

  .man-day-task-side {
    justify-content: flex-start;
  }

  .man-day-btn-row,
  .man-day-modal-actions {
    flex-direction: column;
  }

  .man-day-btn-row .utility-btn,
  .man-day-modal-actions .utility-btn {
    width: 100%;
  }

  .man-day-share-textarea {
    min-height: 300px;
  }

  .man-day-modal {
    padding: 14px;
    align-items: flex-end;
  }

  .man-day-modal-panel {
    max-height: calc(100vh - 28px);
    padding: 22px;
    border-radius: 24px;
  }

  .man-day-modal-grid {
    grid-template-columns: 1fr;
  }

  .man-day-modal-preview {
    align-items: flex-start;
    flex-direction: column;
  }
}