:host {
  display: block;
}

.table-workspace {
  min-height: 100vh;
  padding: 32px;
  background: #f6f7f9;
  color: #1f2933;
}

.workspace-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 20px;
  max-width: 1180px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #586777;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0;
}

.status-panel {
  display: flex;
  gap: 10px;
  color: #344054;
  font-size: 0.92rem;
}

.status-panel span {
  padding: 7px 10px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #ffffff;
}

.toolbar,
.grid-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid #d6dde5;
  background: #ffffff;
}

.toolbar {
  border-radius: 8px 8px 0 0;
  border-bottom: 0;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 300px;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 700;
}

.grid-search-host {
  min-width: 260px;
}

.button-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.button,
button {
  border: 1px solid #b8c4d0;
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.button.primary {
  border-color: #1f6feb;
  background: #1f6feb;
  color: #ffffff;
}

.button.secondary,
.icon-button {
  background: #ffffff;
  color: #1f2933;
}

.button:hover,
button:hover:not(:disabled) {
  filter: brightness(0.97);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.sales-grid {
  display: block;
  max-width: 1180px;
  height: 430px;
  margin: 0 auto;
  border-color: #d6dde5;
  background: #ffffff;
}

:host ::ng-deep .sales-grid .wj-header {
  background: #eef2f6;
  color: #24313d;
  font-weight: 700;
}

:host ::ng-deep .grid-search-host .wj-control {
  width: 100%;
}

.grid-footer {
  border-radius: 0 0 8px 8px;
  border-top: 0;
  color: #52616f;
  font-size: 0.9rem;
}

.grid-footer p {
  margin: 0;
}

.pager {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 1.35rem;
}

@media (max-width: 760px) {
  .table-workspace {
    padding: 18px;
  }

  .workspace-header,
  .toolbar,
  .grid-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .status-panel,
  .button-group,
  .search-field {
    width: 100%;
  }

  .search-field {
    align-items: stretch;
    flex-direction: column;
    min-width: 0;
  }

  .grid-search-host {
    min-width: 0;
  }
}
