.operations-filter[hidden],
.record-form .field[hidden] {
  display: none;
}
.schedule-staff-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.schedule-staff-picker [draggable="true"] {
  cursor: grab;
}
.schedule-project-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 155px;
  margin-bottom: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #f8fafd;
  font-size: 12px;
}
.schedule-project-slot.drag-over {
  background: #edf3fb;
  border-color: var(--blue);
  outline: 1px solid var(--blue);
}
.schedule-project-empty {
  padding: 12px;
  border-top: 1px solid var(--line);
}
.operations-thumb {
  display: block;
  width: 64px;
  height: 48px;
  object-fit: contain;
  background: #f8fafc;
}
.operations-section {
  margin: 0;
  padding: 16px;
}
.operations-section + .operations-section {
  border-top: 1px solid var(--line);
}
.operations-section h3 {
  margin-bottom: 10px;
}
.operations-filter {
  border-bottom: 1px solid var(--line);
}
.operations-filter input[type="search"] {
  max-width: 440px;
}
.operations-schedule {
  display: grid;
  grid-template-columns: 150px repeat(7, minmax(132px, 1fr));
  min-width: 1080px;
  gap: 1px;
  background: var(--line);
}
.operations-schedule .schedule-cell {
  min-height: 108px;
}
.operations-schedule .header {
  min-height: 38px;
}
.operations-schedule .schedule-task {
  cursor: pointer;
}
.operations-filter + div td small {
  display: block;
  font-size: 11px;
  line-height: 1.5;
}
.stock-query {
  align-items: flex-end;
}
.stock-query .field {
  min-width: 170px;
}
.dialog-body > .detail-actions {
  position: sticky;
  top: -20px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  z-index: 2;
}
.detail-section .check-label {
  margin: 8px 0;
}
.detail-section h3:not(:first-child) {
  margin-top: 14px;
}
.operations-filter button {
  flex: none;
}
.operations-filter select {
  max-width: 220px;
}
.stock-error {
  margin: 0 14px 12px;
}
.operations-section details summary,
td details summary {
  color: var(--blue);
  cursor: pointer;
}
.dialog .detail-section th {
  position: sticky;
  top: 0;
}
.dialog table {
  font-variant-numeric: tabular-nums;
}
.dialog .detail-actions + .detail-section {
  margin-top: 10px;
}
.record-form .inline-notice {
  margin-top: 16px;
  border: 1px solid #efdfc0;
}
.record-form > .table-scroll {
  margin-top: 14px;
}
.detail-grid > div {
  overflow-wrap: anywhere;
}
.dialog-body .detail-section:first-child {
  margin-top: 0;
}
input[type="checkbox"] {
  flex: none;
}
@media (max-width: 640px) {
  .operations-filter {
    align-items: stretch;
  }
  .operations-filter select {
    max-width: none;
    flex: 1;
  }
  .operations-filter input[type="search"] {
    width: 100%;
    max-width: none;
  }
  .stock-query .field {
    min-width: 0;
    width: 100%;
  }
  .stock-query .button {
    width: 100%;
  }
  .dialog-body > .detail-actions {
    top: -15px;
  }
  .operations-section {
    padding: 12px;
  }
  .operations-schedule {
    grid-template-columns: 112px repeat(7, minmax(128px, 1fr));
    min-width: 1020px;
  }
  .dialog .detail-actions .button {
    flex: 1;
  }
  .detail-actions {
    gap: 6px;
  }
}
.asset-scan-form {
  align-items: flex-end;
}
.asset-scan-form .field:first-child {
  min-width: 180px;
}
.asset-scan-form .field:nth-child(2) {
  flex: 1;
  min-width: 240px;
}
.asset-scan-form input {
  font-variant-numeric: tabular-nums;
}
.operations-scan-note {
  padding: 0 14px;
}
.scan-result:empty {
  display: none;
}
.scan-result .form-error {
  margin-top: 0;
}
.scan-result .detail-actions {
  margin-top: 10px;
}
@media (max-width: 640px) {
  .asset-scan-form .field:first-child,
  .asset-scan-form .field:nth-child(2) {
    min-width: 0;
    width: 100%;
    flex: auto;
  }
  .asset-scan-form .button {
    width: 100%;
  }
}
