.provider-business-view {
  display: grid;
  gap: 1rem;
}

.provider-business-view.hidden {
  display: none;
}

.provider-business-quick-actions,
.provider-business-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.provider-business-status {
  background: var(--provider-soft, #edf5ff);
  border: 1px solid var(--provider-border, #d8e4f0);
  border-radius: 999px;
  color: var(--provider-primary, #075da8);
  font-size: 0.72rem;
  font-weight: 850;
  padding: 0.55rem 0.75rem;
}

.provider-profile-progress {
  align-items: center;
  background: var(--provider-soft, #edf5ff);
  border: 1px solid var(--provider-border, #d8e4f0);
  border-radius: 16px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.65fr);
  margin-bottom: 1rem;
  padding: 0.85rem;
}

.provider-profile-progress div {
  display: grid;
  gap: 0.25rem;
}

.provider-profile-progress span {
  color: var(--provider-text, #18364d);
  font-weight: 850;
}

.provider-profile-progress small {
  color: var(--provider-muted, #677d8e);
}

.provider-profile-progress progress {
  accent-color: var(--provider-mint, #20d0a4);
  height: 14px;
  width: 100%;
}

.provider-business-notice {
  background: #fff5df;
  border: 1px solid #ffd48a;
  border-radius: 14px;
  color: #714600;
  margin-bottom: 1rem;
  padding: 0.8rem 0.9rem;
}

.provider-media-editor {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(190px, 0.6fr) minmax(0, 1.4fr);
  margin-top: 1rem;
}

.provider-media-editor > section {
  background: var(--provider-soft, #f3f8fc);
  border: 1px solid var(--provider-border, #d8e4f0);
  border-radius: 16px;
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
}

.provider-media-editor > section > span {
  color: var(--provider-text, #18364d);
  font-weight: 850;
}

.provider-cover-preview {
  align-items: center;
  aspect-ratio: 16 / 10;
  background: var(--provider-card, #fff);
  border: 1px dashed var(--provider-border, #d8e4f0);
  border-radius: 14px;
  color: var(--provider-muted, #677d8e);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.provider-cover-preview img,
.provider-portfolio-preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.provider-portfolio-preview {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  min-height: 86px;
}

.provider-portfolio-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.provider-portfolio-item button {
  align-items: center;
  background: rgba(5, 28, 46, 0.78);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 28px;
  justify-content: center;
  position: absolute;
  right: 5px;
  top: 5px;
  width: 28px;
}

.provider-upload-button {
  align-items: center;
  background: var(--provider-primary, #075da8);
  border-radius: 11px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 850;
  justify-content: center;
  min-height: 42px;
  padding: 0.6rem 0.8rem;
  width: fit-content;
}

.provider-business-inline-form {
  align-items: end;
  background: var(--provider-soft, #f3f8fc);
  border: 1px solid var(--provider-border, #d8e4f0);
  border-radius: 16px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0.9rem;
}

.provider-business-inline-form label {
  display: grid;
  gap: 0.35rem;
}

.provider-business-inline-form label > span {
  font-size: 0.72rem;
  font-weight: 800;
}

.provider-business-inline-form input,
.provider-business-inline-form textarea,
.provider-business-document-form input,
.provider-business-document-form textarea,
.provider-business-document-form select {
  background: var(--provider-card, #fff);
  border: 1px solid var(--provider-border, #d8e4f0);
  border-radius: 12px;
  color: var(--provider-text, #18364d);
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.provider-business-inline-form .is-wide {
  grid-column: 1 / -1;
}

.provider-business-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.provider-business-list-card {
  align-items: center;
  background: var(--provider-soft, #f3f8fc);
  border: 1px solid var(--provider-border, #d8e4f0);
  border-radius: 15px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.85rem;
}

.provider-business-list-card > div:first-child {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.provider-business-list-card p {
  color: var(--provider-muted, #677d8e);
  margin: 0;
}

.provider-business-list-card-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.provider-business-list-card-actions button {
  background: var(--provider-card, #fff);
  border: 1px solid var(--provider-border, #d8e4f0);
  border-radius: 10px;
  color: var(--provider-primary, #075da8);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  min-height: 38px;
  padding: 0.45rem 0.65rem;
}

.provider-business-document-form {
  display: grid;
  gap: 1rem;
}

.provider-document-items {
  background: var(--provider-soft, #f3f8fc);
  border: 1px solid var(--provider-border, #d8e4f0);
  border-radius: 16px;
  padding: 0.85rem;
}

.provider-document-items > header {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.provider-quote-item {
  align-items: end;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(170px, 1.5fr) minmax(80px, 0.5fr) minmax(105px, 0.7fr) auto;
  margin-bottom: 0.55rem;
}

.provider-quote-item label {
  display: grid;
  gap: 0.3rem;
}

.provider-quote-item label span {
  font-size: 0.68rem;
  font-weight: 800;
}

.provider-quote-item button {
  background: #fff0f4;
  border: 0;
  border-radius: 10px;
  color: #b51e4e;
  cursor: pointer;
  height: 44px;
  width: 44px;
}

.provider-document-total {
  align-items: center;
  background: linear-gradient(135deg, #092b48, #075da8);
  border-radius: 16px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 1rem;
}

.provider-document-total strong {
  font-size: 1.3rem;
}

.provider-business-empty {
  color: var(--provider-muted, #677d8e);
  padding: 1.2rem;
  text-align: center;
}

.provider-chat-page-card {
  min-height: 640px;
}

html[data-theme="dark"] .provider-business-notice {
  background: rgba(255, 174, 45, 0.14);
  border-color: rgba(255, 192, 93, 0.34);
  color: #ffd38a;
}

html[data-theme="dark"] .provider-document-total {
  background: linear-gradient(135deg, #123d60, #0d6aaf);
}

html[data-theme="dark"] .provider-quote-item button {
  background: rgba(202, 41, 92, 0.2);
  color: #ff9cbc;
}

@media (max-width: 900px) {
  .provider-media-editor,
  .provider-profile-progress {
    grid-template-columns: 1fr;
  }

  .provider-business-inline-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .provider-business-inline-form,
  .provider-quote-item {
    grid-template-columns: 1fr;
  }

  .provider-business-list-card {
    align-items: stretch;
    flex-direction: column;
  }

  .provider-business-list-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .provider-quote-item button {
    width: 100%;
  }
}
