/* Unified graphite workspaces for sales, documents, services and delivery. */
body.srm-page .operational-workspace {
  --ops-line: rgba(222, 226, 232, .14);
  --ops-line-strong: rgba(232, 235, 240, .28);
  --ops-surface: #0b0d10;
  --ops-surface-raised: #111419;
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

body.srm-page .operational-header {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 5px;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  background: rgba(7, 9, 11, .96);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .2);
}

body.srm-page .operational-tabs {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 1fr);
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

body.srm-page .operational-tabs::-webkit-scrollbar { display: none; }

body.srm-page .operational-tabs button {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #a9afb8 !important;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

body.srm-page .operational-tabs button:hover,
body.srm-page .operational-tabs button:focus-visible {
  border-color: var(--ops-line) !important;
  background: #12151a !important;
  color: #f1f3f5 !important;
  outline: none;
}

body.srm-page .operational-tabs button.active,
body.srm-page .operational-tabs button.is-active {
  border-color: var(--ops-line-strong) !important;
  background: #1a1e24 !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 7px 18px rgba(0, 0, 0, .22);
}

body.srm-page .operational-actions {
  flex: 0 0 auto;
  padding-right: 3px;
}

body.srm-page .operational-content {
  min-width: 0;
  display: grid;
  gap: 14px;
}

body.srm-page .documents-shell .document-tabs {
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.srm-page .documents-shell .document-toolbar,
body.srm-page .services-delivery-shell .delivery-controls {
  padding: 13px;
  border-color: var(--ops-line);
  border-radius: 8px;
  background: var(--ops-surface);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

body.srm-page .documents-shell .document-grid,
body.srm-page .documents-shell .document-template-grid,
body.srm-page .services-delivery-shell .delivery-grid,
body.srm-page .services-delivery-shell .service-grid,
body.srm-page .services-delivery-shell .template-grid {
  gap: 10px;
}

body.srm-page .documents-shell .document-card,
body.srm-page .documents-shell .document-template-card,
body.srm-page .services-delivery-shell .delivery-card,
body.srm-page .services-delivery-shell .service-card {
  border-color: var(--ops-line);
  border-radius: 8px;
  background: linear-gradient(145deg, #15181d, #0a0c0f);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
}

body.srm-page .documents-shell .document-card:hover,
body.srm-page .documents-shell .document-card:focus-visible,
body.srm-page .services-delivery-shell .delivery-card:hover,
body.srm-page .services-delivery-shell .delivery-card:focus-visible {
  border-color: var(--ops-line-strong);
  background: linear-gradient(145deg, #1a1e23, #0d0f12);
  outline: none;
}

body.srm-page .services-delivery-shell .section-heading,
body.srm-page .documents-shell .section-heading {
  min-width: 0;
  gap: 12px;
}

body.srm-page .services-delivery-shell .section-heading > div,
body.srm-page .documents-shell .section-heading > div {
  min-width: 0;
}

body.srm-page .services-delivery-shell .section-heading strong,
body.srm-page .services-delivery-shell .section-heading small,
body.srm-page .documents-shell .section-heading strong,
body.srm-page .documents-shell .section-heading small {
  overflow-wrap: anywhere;
}

body.srm-page .services-delivery-shell .badge,
body.srm-page .documents-shell .badge {
  border-color: var(--ops-line);
  background: #0a0c0f;
  color: #d9dde3;
}

body.srm-page .services-delivery-shell .delivery-meta {
  border-top: 1px solid var(--ops-line);
  border-bottom: 1px solid var(--ops-line);
}

body.srm-page .services-delivery-shell .service-category-row {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body.srm-page .sales-control-header {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 5px;
  border: 1px solid rgba(222, 226, 232, .14);
  border-radius: 8px;
  background: rgba(7, 9, 11, .96);
}

body.srm-page .sales-control-tabs {
  min-width: 0;
  max-width: 100%;
  align-self: auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 1fr);
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

body.srm-page .sales-control-tabs::-webkit-scrollbar { display: none; }

body.srm-page .sales-control-tabs button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: transparent !important;
}

body.srm-page .sales-control-tabs button::after { content: none; }

body.srm-page .sales-control-tabs button:hover,
body.srm-page .sales-control-tabs button:focus-visible {
  border-color: rgba(222, 226, 232, .14) !important;
  background: #12151a !important;
  color: #f1f3f5 !important;
  outline: none;
}

body.srm-page .sales-control-tabs button.is-active {
  border-color: rgba(232, 235, 240, .28) !important;
  background: #1a1e24 !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 7px 18px rgba(0, 0, 0, .22);
}

@media (max-width: 860px) {
  body.srm-page .operational-header,
  body.srm-page .sales-control-header {
    align-items: stretch;
    flex-direction: column;
  }

  body.srm-page .operational-tabs,
  body.srm-page .sales-control-tabs {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    grid-auto-columns: minmax(118px, 1fr);
  }

  body.srm-page .operational-actions,
  body.srm-page .sales-control-head-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    padding: 0;
  }

  body.srm-page .operational-actions .button,
  body.srm-page .sales-control-head-actions .button { width: 100%; }
}

@media (max-width: 520px) {
  body.srm-page .operational-header,
  body.srm-page .sales-control-header { border-radius: 7px; }
  body.srm-page .operational-tabs { grid-auto-columns: minmax(132px, 1fr); }
  body.srm-page .sales-control-tabs { grid-auto-columns: minmax(106px, 1fr); }
  body.srm-page .operational-tabs button,
  body.srm-page .sales-control-tabs button { min-height: 38px; padding-inline: 10px; font-size: 11px; }
  body.srm-page .documents-shell .document-grid,
  body.srm-page .documents-shell .document-template-grid,
  body.srm-page .services-delivery-shell .delivery-grid,
  body.srm-page .services-delivery-shell .service-grid,
  body.srm-page .services-delivery-shell .template-grid { grid-template-columns: minmax(0, 1fr); }
}
