.entry-page {
  min-width: 0;
}

.service-entry-form {
  width: 100%;
  max-width: 980px;
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
}

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

.service-entry-main label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.service-entry-main label > span {
  display: inline-block;
  line-height: 1.25;
}

.service-entry-main label:nth-child(1),
.service-entry-main label:nth-child(2),
.service-entry-main label:nth-child(3),
.service-entry-main label:nth-child(4) {
  grid-column: span 3;
}

.service-entry-main label:nth-child(n+5) {
  grid-column: span 2;
}

.service-entry-main .form-control,
.service-entry-main .form-select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  height: 42px;
  padding-top: 7px;
  padding-bottom: 7px;
  border-radius: var(--radius-sm, 12px);
}

.service-entry-main .share-output {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  background: var(--surface-muted, #f8fafc);
}

.service-entry-form.hide-shares .share-field {
  display: none;
}

.service-entry-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.entry-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 18px 0 10px;
}

.entry-filter-bar label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.entry-filter-bar label > span {
  display: inline-block;
  line-height: 1.25;
}

.staff-date-limited > span {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.staff-date-lock {
  color: var(--accent-color, #2563eb);
  cursor: help;
  font-size: 11px;
  opacity: .85;
}

.staff-date-limited input[type="date"] {
  cursor: help;
  color-scheme: light !important;
}

.staff-date-range-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: -2px;
  color: var(--text-subtle, #64748b);
  font-size: 10px;
  font-weight: 600;
}

.staff-date-range-hint i {
  color: var(--accent-color, #2563eb);
}

.entry-filter-bar .form-control,
.entry-filter-bar .form-select {
  min-height: 42px;
  height: 42px;
  border-radius: var(--radius-sm, 12px);
}

.entry-filter-bar .icon-text-btn {
  min-height: 42px;
}

.entry-grid-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: var(--text-subtle, #64748b);
  font-size: 11px;
  font-weight: 600;
}

.entry-grid-note i {
  color: var(--accent-color, #2563eb);
}

.entry-page .zr-grid {
  gap: 8px;
}

.entry-page .zr-grid-toolbar {
  align-items: center;
}

.entry-page .zr-grid-table th,
.entry-page .zr-grid-table td {
  padding-top: 8px;
  padding-bottom: 8px;
}

@media (max-width: 1180px) {
  .service-entry-form {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .service-entry-main {
    grid-template-columns: 1fr;
  }

  .service-entry-main label:nth-child(n) {
    grid-column: auto;
  }

  .service-entry-actions {
    justify-content: stretch;
  }

  .service-entry-actions button {
    flex: 1 1 auto;
  }

  .entry-filter-bar {
    grid-template-columns: 1fr;
  }
}
