/* The admin pages «اسناد کسب‌وکار» (views-docs.js). Only .docs and .docs-* are used here, next to the .cmp-* rules of
   competitors.css that the editing tables share. Colours come from the app tokens. */
.docs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.docs-card { display: grid; gap: 6px; padding: 18px; text-decoration: none; color: inherit; }
.docs-card:hover { border-color: var(--c-border-hover); }
.docs-read { display: grid; gap: 14px; min-width: 0; padding: 24px; }
.docs-read > * { min-width: 0; }
.docs-title { margin: 0; font-size: 2.25rem; font-weight: 800; color: var(--c-accent); line-height: 1.3; }
.docs-subtitle { margin: 0; font-size: 1.375rem; font-weight: 700; color: var(--c-text-2); }
.docs-h1 { margin: 12px 0 0; padding-bottom: 8px; font-size: 1.75rem; font-weight: 800; color: var(--c-accent); border-bottom: 2px solid var(--c-accent); }
.docs-h2 { margin: 10px 0 0; font-size: 1.25rem; font-weight: 800; }
.docs-p { margin: 0; line-height: 1.9; }
.docs-p--muted { color: var(--c-text-2); }
.docs-p--soft { padding: 12px 14px; border-radius: 12px; background: var(--c-accent-soft); }
.docs-p--strong { font-weight: 800; }
.docs-list { margin: 0; padding: 0 20px 0 0; display: grid; gap: 8px; line-height: 1.9; }
.docs-li.docs-p--strong { font-weight: 800; }
.docs-table { border-collapse: collapse; width: 100%; }
.docs-table th, .docs-table td { padding: 10px 12px; vertical-align: top; text-align: right; border-bottom: 1px solid var(--c-border); line-height: 1.8; }
.docs-table thead th { background: var(--c-accent); color: var(--c-on-accent); font-weight: 800; }
.docs-table tbody th { background: var(--c-accent-soft); font-weight: 800; }
.docs-table tbody tr:last-child th, .docs-table tbody tr:last-child td { border-bottom: 0; }
.docs-table--calc { min-width: 520px; }
.docs-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.docs-gallery figure { margin: 0; display: grid; gap: 8px; align-content: start; }
.docs-gallery img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--c-border-strong); }
.docs-gallery figcaption { color: var(--c-text-2); font-size: .9375rem; line-height: 1.7; }
.docs-calc { display: grid; gap: 14px; min-width: 0; padding: 20px; border-color: var(--c-accent); }
.docs-facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.docs-facts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 12px; border-radius: 12px; background: var(--c-surface-2); }
.docs-funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.docs-edit { display: grid; gap: 10px; min-width: 0; }
.docs-edit__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.docs-kind { font-size: .8125rem; color: var(--c-text-3); }
.docs-tone { width: auto; min-width: 8rem; }
.docs-tools { display: flex; gap: 4px; margin-inline-start: auto; }
.docs-text { background: var(--c-surface-2); border-color: var(--c-border); }
.docs-text--title, .docs-text--h1 { font-size: 1.5rem; font-weight: 800; }
.docs-text--h2, .docs-text--subtitle { font-size: 1.125rem; font-weight: 800; }
/* «بوم مدل کسب‌وکار»: stacked cards on a phone, the classic nine-box layout on a wide screen */
.bmc { display: grid; gap: 12px; min-width: 0; }
.bmc__box { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 16px; }
.bmc__box .cmp-h3 { margin: 0; color: var(--c-accent); }
.bmc__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bmc__item { display: grid; gap: 6px; justify-items: start; padding: 10px 12px; border-radius: 12px; background: var(--c-surface-2); line-height: 1.8; }
@media (min-width: 1100px) {
  .bmc:not(.bmc--edit) {
    gap: 8px;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-areas:
      "partners partners activities activities value value relations relations segments segments"
      "partners partners resources resources value value channels channels segments segments"
      "costs costs costs costs costs revenue revenue revenue revenue revenue";
  }
  /* five narrow columns: smaller text and padding so a box is not a long strip */
  .bmc:not(.bmc--edit) .bmc__box { padding: 12px; }
  .bmc:not(.bmc--edit) .bmc__item { padding: 8px 10px; font-size: .875rem; line-height: 1.7; }
  .bmc:not(.bmc--edit) .bmc__box--partners { grid-area: partners; }
  .bmc:not(.bmc--edit) .bmc__box--activities { grid-area: activities; }
  .bmc:not(.bmc--edit) .bmc__box--resources { grid-area: resources; }
  .bmc:not(.bmc--edit) .bmc__box--value { grid-area: value; }
  .bmc:not(.bmc--edit) .bmc__box--relations { grid-area: relations; }
  .bmc:not(.bmc--edit) .bmc__box--channels { grid-area: channels; }
  .bmc:not(.bmc--edit) .bmc__box--segments { grid-area: segments; }
  .bmc:not(.bmc--edit) .bmc__box--costs { grid-area: costs; }
  .bmc:not(.bmc--edit) .bmc__box--revenue { grid-area: revenue; }
}
.docs-item { display: grid; gap: 6px; }
.docs-item__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.docs-item__tools .switch-row { flex: 1 1 14rem; width: auto; min-height: 0; border-bottom: 0; }
.docs-checks { display: grid; }
.docs-chips { margin: 0; padding: 0; list-style: none; }
