.neerp-wrap,
.neerp-wrap * {
  box-sizing: border-box;
}

.neerp-wrap {
  color: var(--neerp-text);
  font-family: inherit;
}

.neerp-card {
  background: var(--neerp-bg);
  border: 1px solid var(--neerp-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(23, 50, 77, 0.06);
  padding: 24px;
}

.neerp-card + .neerp-card {
  margin-top: 20px;
}

.neerp-card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.neerp-card__header h3 {
  margin: 8px 0 8px;
  color: var(--neerp-blue);
  font-size: 2rem;
  line-height: 1.2;
}

.neerp-card__header p,
.neerp-meta-list,
.neerp-notice p {
  color: var(--neerp-muted);
}

.neerp-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 76, 129, 0.2);
  background: var(--neerp-blue-soft);
  color: var(--neerp-blue);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.neerp-stat-pill {
  min-width: 92px;
  text-align: center;
  border-radius: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(15, 76, 129, 0.18);
  background: var(--neerp-blue);
  color: #fff;
}

.neerp-stat-pill strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
}

.neerp-stat-pill span {
  display: block;
  font-size: 12px;
  margin-top: 6px;
}

.neerp-grid,
.neerp-filter-grid,
.neerp-row-grid {
  display: grid;
  gap: 16px;
}

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

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

.neerp-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.neerp-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--neerp-text);
}

.neerp-field input,
.neerp-field select,
.neerp-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--neerp-border);
  background: #fff;
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--neerp-text);
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.neerp-field textarea {
  min-height: 100px;
}

.neerp-field input:focus,
.neerp-field select:focus,
.neerp-field textarea:focus {
  border-color: var(--neerp-blue);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.12);
  outline: none;
}

.neerp-rows-head,
.neerp-filter-actions,
.neerp-form-actions,
.neerp-row-actions,
.neerp-entry-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.neerp-rows-head {
  margin: 24px 0 12px;
}

.neerp-rows-head h4 {
  margin: 0;
  color: var(--neerp-blue);
  font-size: 1.2rem;
}

.neerp-row-list,
.neerp-card-list {
  display: grid;
  gap: 16px;
}

.neerp-row-item,
.neerp-entry-card {
  background: var(--neerp-surface);
  border: 1px solid var(--neerp-border);
  border-radius: 16px;
  padding: 18px;
}

.neerp-row-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.neerp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--neerp-blue);
  background: var(--neerp-blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}

.neerp-button:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.neerp-button--secondary {
  background: #fff;
  color: var(--neerp-blue);
}

.neerp-button--danger {
  background: #fff;
  color: #b42318;
  border-color: #f3b7b2;
}

.neerp-notice {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--neerp-border);
  background: var(--neerp-surface);
}

.neerp-notice p {
  margin: 0;
}

.neerp-notice--success {
  border-color: rgba(12, 166, 120, 0.2);
  background: rgba(12, 166, 120, 0.08);
}

.neerp-notice--error {
  border-color: rgba(180, 35, 24, 0.2);
  background: rgba(180, 35, 24, 0.07);
}

.neerp-notice--warning {
  border-color: rgba(180, 83, 9, 0.2);
  background: rgba(180, 83, 9, 0.07);
}

.neerp-meta-list {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.neerp-meta-list span {
  position: relative;
}

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

.neerp-data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.neerp-data-table th,
.neerp-data-table td {
  border-bottom: 1px solid var(--neerp-border);
  text-align: left;
  padding: 12px 14px;
  font-size: 14px;
}

.neerp-data-table th {
  background: var(--neerp-blue);
  color: #fff;
  font-weight: 700;
}

.neerp-data-table tbody tr:nth-child(even) td {
  background: rgba(15, 76, 129, 0.03);
}

@media (max-width: 1024px) {
  .neerp-grid--two,
  .neerp-filter-grid,
  .neerp-row-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .neerp-card {
    padding: 18px;
    border-radius: 14px;
  }

  .neerp-card__header,
  .neerp-entry-card__head,
  .neerp-rows-head,
  .neerp-filter-actions,
  .neerp-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .neerp-grid--two,
  .neerp-filter-grid,
  .neerp-row-grid {
    grid-template-columns: 1fr;
  }

  .neerp-data-table,
  .neerp-data-table thead,
  .neerp-data-table tbody,
  .neerp-data-table th,
  .neerp-data-table td,
  .neerp-data-table tr {
    display: block;
    min-width: 0;
  }

  .neerp-data-table thead {
    display: none;
  }

  .neerp-data-table tr {
    border: 1px solid var(--neerp-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #fff;
  }

  .neerp-data-table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--neerp-border);
  }

  .neerp-data-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--neerp-blue);
  }
}

.neerp-inline-radios,
.neerp-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.neerp-inline-radios label,
.neerp-checkbox-list label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}

.neerp-checkbox-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 4px 0;
}

.neerp-checkbox-list--multi {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.neerp-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--neerp-blue-soft);
  color: var(--neerp-blue);
  text-decoration: none;
  font-weight: 700;
}

.neerp-icon-action--danger {
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
}

.neerp-schedule-board {
  margin-top: 18px;
}

.neerp-schedule-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.neerp-schedule-day {
  border: 1px solid var(--neerp-border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.neerp-schedule-day__title {
  padding: 14px 12px;
  text-align: center;
  font-weight: 700;
  color: var(--neerp-text);
  border-bottom: 1px solid var(--neerp-border);
  background: #fff;
}

.neerp-schedule-day__body {
  padding: 12px;
  display: grid;
  gap: 12px;
  grid-auto-rows: minmax(136px, auto);
}

.neerp-slot-card {
  background: var(--neerp-surface);
  border: 1px solid var(--neerp-border);
  border-radius: 12px;
  padding: 14px 12px;
  color: #0b8b57;
  font-weight: 700;
  text-align: center;
  min-height: 136px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.neerp-slot-card__line + .neerp-slot-card__line {
  margin-top: 6px;
}

.neerp-slot-card--empty {
  color: var(--neerp-muted);
}

@media (max-width: 1024px) {
  .neerp-checkbox-list--multi,
  .neerp-schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .neerp-checkbox-list,
  .neerp-checkbox-list--multi,
  .neerp-schedule-grid,
  .neerp-grid--two,
  .neerp-filter-grid,
  .neerp-row-grid {
    grid-template-columns: 1fr;
  }

  .neerp-card__header h3 {
    font-size: 1.6rem;
  }
}


.neerp-row-item--head {
  background: transparent;
  border: 0;
  padding: 0 0 8px;
}

.neerp-row-item--head .neerp-field label {
  margin-bottom: 0;
  font-weight: 700;
}

.neerp-row-list .neerp-row-item {
  margin-bottom: 12px;
}

.neerp-row-grid--pattern {
  display: grid;
  grid-template-columns: 70px 1fr 1fr 1fr 1fr 1.5fr 1.5fr;
  gap: 12px;
  align-items: end;
}

.neerp-row-actions {
  margin-top: 10px;
}

.neerp-helper-text {
  margin: 0 0 14px;
  color: var(--neerp-muted);
}

@media (max-width: 991px) {
  .neerp-row-grid--pattern {
    grid-template-columns: 1fr 1fr;
  }

  .neerp-row-item--head {
    display: none;
  }
}


.neerp-row-item__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--neerp-border);
}

.neerp-row-item__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--neerp-blue);
}

.neerp-helper-text {
  margin: 0 0 14px;
  color: var(--neerp-muted);
}

.neerp-row-grid--pattern {
  grid-template-columns: 82px minmax(140px, 1fr) minmax(180px, 1.2fr) minmax(120px, .8fr) minmax(120px, .8fr) minmax(220px, 1.3fr) minmax(220px, 1.3fr);
}

.neerp-slot-card__line + .neerp-slot-card__line {
  margin-top: 6px;
}

.neerp-inline-actions .neerp-button {
  min-height: 38px;
  padding: 8px 14px;
}

.neerp-data-table td,
.neerp-data-table th {
  vertical-align: top;
}

@media (max-width: 980px) {
  .neerp-row-grid--pattern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
