/* Layout only; surfaces, controls, and status colors come from the shared UI. */
.service-demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}
.service-demo-banner i {
  margin-right: 0.4rem;
}
.service-reset {
  white-space: nowrap;
}
.service-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
}
.service-workspace-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
}
.service-currency {
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
  white-space: nowrap;
}
.service-search {
  position: relative;
}
.service-search > i {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  color: var(--bs-secondary-color);
}
.service-search input {
  padding-left: 2.4rem;
}
.service-purchases-table-container {
  overflow: hidden;
}
.service-purchases-table {
  table-layout: fixed;
}
.service-col-purchase {
  width: 19%;
}
.service-col-customer {
  width: 17%;
}
.service-col-date {
  width: 10%;
}
.service-col-amount {
  width: 10%;
}
.service-col-hours {
  width: 10%;
}
.service-col-status {
  width: 10%;
}
.service-col-assignee {
  width: 13%;
}
.service-col-actions {
  width: 11%;
}
.service-purchases-table .table-header-cell,
.service-purchases-table .table-cell {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  overflow-wrap: anywhere;
}
.service-purchases-table .service-cell-title,
.service-purchases-table .service-assignee {
  white-space: normal;
}
.service-purchases-table .service-date {
  white-space: normal;
}
.service-purchases-table .service-row-actions .btn {
  max-width: 100%;
  white-space: normal;
}
.service-purchases-table .service-assignee {
  min-width: 0;
}
.service-purchases-table .service-assignee > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.service-purchases-table .badge {
  max-width: 100%;
  font-size: 0.68rem;
  white-space: normal;
}
.service-purchase-cards,
.service-mobile-results {
  display: none;
}
.service-order-id {
  display: block;
  color: var(--bs-primary-text-emphasis);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}
.service-cell-title {
  display: block;
  font-weight: 500;
  white-space: nowrap;
}
.service-cell-secondary {
  display: block;
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
.service-date {
  white-space: nowrap;
  color: var(--bs-secondary-color);
}
.service-amount {
  font-variant-numeric: tabular-nums;
}
.service-assignee {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.service-unassigned {
  color: var(--bs-secondary-color);
}
.service-row-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}
.service-bottom-note {
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 1rem 0 0;
}
.service-bottom-note i {
  margin-right: 0.4rem;
}
.service-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--bs-secondary-color);
}
.service-empty > i {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-empty h3 {
  font-size: 1.125rem;
  color: var(--bs-body-color);
}
.service-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  width: 530px;
  max-width: 100vw;
  border: 0;
  border-left: var(--bs-border-width) solid var(--bs-border-color);
  padding: 0;
  color: var(--bs-body-color);
}
.service-drawer::backdrop {
  background: rgba(var(--bs-black-rgb), 0.5);
}
.service-drawer form {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-drawer-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.service-drawer-heading h2 {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 0.3rem;
}
.service-drawer-body {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.service-detail-customer {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}
.service-detail-customer strong,
.service-detail-customer small {
  display: block;
}
.service-detail-customer strong {
  font-weight: 500;
}
.service-detail-customer small {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
}
.service-detail-summary dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0;
}
.service-detail-summary dt {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--bs-secondary-color);
}
.service-detail-summary dd {
  font-size: 0.875rem;
  margin: 0.25rem 0 0;
}
.service-detail-section {
  margin-top: 1.5rem;
}
.service-detail-section h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.service-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.service-field-hint {
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
  margin: 0.5rem 0 0;
}
.service-small-label {
  color: var(--bs-secondary-color);
  font-size: 0.625rem;
  margin-left: 0.4rem;
  letter-spacing: 0.08em;
}
.service-activity {
  list-style: none;
  padding: 0 0 0 0.5rem;
  margin: 0;
}
.service-activity li {
  position: relative;
  border-left: var(--bs-border-width) solid var(--bs-border-color);
  padding: 0 0 1.25rem 1rem;
}
.service-activity li::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bs-secondary-color);
}
.service-activity p {
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.service-activity small {
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
}
.service-activity-entry {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.service-activity-copy {
  min-width: 0;
}
.service-activity-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.15rem;
}
.service-activity-action {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.15rem;
  border: 0;
  background: transparent;
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
  transition: color 0.15s ease;
}
.service-activity-action:hover {
  background: transparent;
  color: var(--bs-primary);
}
.service-activity-action:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.2);
}
.service-activity-action--delete:hover {
  background: transparent;
  color: var(--bs-danger);
}
.service-drawer-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-top: var(--bs-border-width) solid var(--bs-border-color);
}
.service-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 2rem);
  width: max-content;
  z-index: 1100;
}
.service-admin [hidden] {
  display: none !important;
}
@media (max-width: 1199px) {
  .service-demo-banner {
    align-items: flex-start;
  }
  .service-page-heading {
    padding: 1rem 0 1.5rem;
  }
  .service-workspace-label {
    display: none;
  }
  .service-purchases-table-container {
    display: none;
  }
  .service-purchase-cards {
    display: grid;
    gap: 0.75rem;
  }
  .service-purchase-card {
    padding: 1rem;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    /* background: var(--bs-body-bg); */
    box-shadow: var(--bs-box-shadow-sm);
  }
  .service-purchase-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .service-purchase-card__heading h3 {
    margin: 0;
    font-size: 1rem;
    overflow-wrap: anywhere;
  }
  .service-purchase-card__heading .badge {
    flex-shrink: 0;
  }
  .service-purchase-card__customer {
    display: flex;
    align-items: center;
    min-width: 0;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: var(--bs-border-width) solid var(--bs-border-color);
  }
  .service-purchase-card__customer > span:last-child {
    min-width: 0;
  }
  .service-purchase-card__customer strong,
  .service-purchase-card__customer small {
    display: block;
    overflow-wrap: anywhere;
  }
  .service-purchase-card__customer small {
    margin-top: 0.2rem;
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
  }
  .service-purchase-card__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    margin: 0;
  }
  .service-purchase-card__details div {
    min-width: 0;
  }
  .service-purchase-card__details dt {
    margin-bottom: 0.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .service-purchase-card__details dd {
    margin: 0;
    font-size: 0.875rem;
    overflow-wrap: anywhere;
  }
  .service-purchase-card__details .service-assignee {
    white-space: normal;
  }
  .service-purchase-card__actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: var(--bs-border-width) solid var(--bs-border-color);
  }
  .service-purchase-card__actions .btn {
    width: 100%;
  }
  .service-mobile-results {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.75rem 0 0;
  }
  .service-currency {
    display: none;
  }
  .service-demo-description {
    display: block;
    margin-top: 0.5rem;
    line-height: 1.7;
  }
  .service-demo-banner {
    flex-wrap: wrap;
  }
  .service-drawer-footer .btn {
    font-size: 0.875rem;
  }
}
@media (max-width: 380px) {
  .service-form-grid {
    grid-template-columns: 1fr;
  }
}
