/* ../../../../../../../eletrocel-cte-receipt-20261022/web/cte.css */
.cte-workspace {
  width: 100%;
  min-width: 0;
}
.cte-toolbar,
.cte-toolbar > div:last-child,
.cte-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.cte-toolbar {
  justify-content: space-between;
}
.cte-toolbar p {
  margin: 4px 0;
  color: #64748b;
}
.cte-upload {
  display: inline-flex;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px 14px;
  background: #145caa;
  color: white;
  align-items: center;
}
.cte-upload input {
  display: none;
}
.cte-filters {
  margin: 16px 0;
}
.cte-filters input {
  flex: 1;
  min-width: 220px;
}
.cte-table {
  width: 100%;
  overflow: auto;
}
.cte-table table {
  width: 100%;
  border-collapse: collapse;
}
.cte-table td,
.cte-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #dce4ee;
  vertical-align: top;
}
.cte-table small {
  display: block;
  max-width: 260px;
  color: #64748b;
  margin-top: 5px;
}
.cte-detail {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: var(--bg,#f3f6fa);
  overflow: auto;
  padding: 20px;
  box-sizing: border-box;
}
.cte-detail > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cte-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cte-detail .panel {
  margin: 12px 0;
  padding: 20px;
}
.cte-detail dl {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px;
}
.cte-detail dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.cte-detail dt {
  color: #64748b;
}
.cte-key {
  overflow-wrap: anywhere;
  font-family: monospace;
}
.cte-detail .secondary {
  margin: 4px;
}
.cte-manifest textarea {
  width: 100%;
  box-sizing: border-box;
}
.cte-confirm {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0;
}
.cte-confirm input {
  width: auto !important;
  flex: none;
  margin-top: 4px;
}
.cte-manifest .notice span,
.cte-manifest .notice small {
  display: block;
}
.cte-pdf {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 8px;
}
.cte-pdf iframe {
  width: 100%;
  flex: 1;
  border: 0;
}
.cte-pdf button {
  align-self: flex-end;
}
.cte-filters input,
.cte-filters select {
  padding: 10px;
  border: 1px solid #cad5e4;
  border-radius: 8px;
}
@media (max-width: 750px) {
  .cte-detail {
    padding: 12px;
  }
  .cte-detail-grid {
    grid-template-columns: 1fr;
  }
  .cte-detail dl {
    grid-template-columns: 1fr;
  }
  .cte-detail dd {
    margin-bottom: 8px;
  }
  .cte-table thead {
    display: none;
  }
  .cte-table tr {
    display: block;
    border: 1px solid #dce4ee;
    border-radius: 10px;
    margin: 10px 0;
    padding: 8px;
  }
  .cte-table td {
    display: block;
    border: 0;
    padding: 6px;
  }
  .cte-table td[data-label]:before {
    content: attr(data-label) ": ";
    font-weight: 600;
  }
  .cte-table small {
    max-width: 100%;
  }
  .cte-toolbar > div:last-child > * {
    flex: 1;
  }
  .cte-filters select {
    width: 100%;
  }
}
