
/* NexusDesk 3.0 Operations workspaces — compatible with existing light/dark themes */
.ops-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(155px,1fr));
  gap: 13px;
  margin: 0 0 20px;
}
.ops-kpi {
  background: var(--surface,#151d30);
  border: 1px solid var(--border,rgba(160,180,220,.14));
  padding: 19px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.ops-kpi small,.ops-kpi span {
  color: var(--muted,#8f9baa);
  font-size: 12px;
}
.ops-kpi strong {
  font-size: 26px;
  letter-spacing: -.7px;
  color: var(--text,#ebf0f8);
}
.ops-panel {
  padding: 23px;
  margin: 0 0 18px;
  overflow: hidden;
}
.ops-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ops-section-head h3 {
  margin: 0;
  font-size: 16px;
}
.ops-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
  margin: 8px 0 14px;
}
.ops-actions .field {
  margin: 0;
  min-width: 185px;
}
.ops-empty {
  padding: 24px 0;
  margin: 0;
}
.ops-company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
  gap: 14px;
}
.ops-company-card {
  border-radius: 18px;
  text-align: left;
  padding: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface,#141e31);
  border: 1px solid var(--border,rgba(160,180,220,.2));
  color: var(--text,#f1f4fb);
  font: inherit;
  transition: border .15s,transform .15s;
}
.ops-company-card:hover {
  border-color: #8796ef;
  transform: translateY(-2px);
}
.ops-company-card strong {
  font-size: 17px;
}
.ops-company-card small,.ops-company-card>span:last-child {
  color: var(--muted,#a6afbf);
  font-size: 12px;
}
.ops-company-monogram {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #5368bf33;
  color: #aebaff;
  font-weight: 800;
}
.ops-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 14px;
  margin: 20px 0;
}
.ops-subgrid>.ops-panel {
  margin: 0;
}
.ops-subpanel {
  border-radius: 14px;
  border: 1px solid var(--border,rgba(160,180,220,.18));
  padding: 16px;
  min-width: 0;
}
.ops-subpanel h3 {
  font-size: 15px;
}
.ops-line {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  gap: 3px;
  border-bottom: 1px solid var(--border,rgba(160,180,220,.1));
}
.ops-line small {
  color: var(--muted,#a7b0bf);
}
.ops-linked-ticket {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  border-bottom: 1px solid var(--border,rgba(160,180,220,.13));
  padding: 12px 0;
  cursor: pointer;
}
.ops-table-wrap {
  overflow-x: auto;
  width: 100%;
}
.ops-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
}
.ops-table th {
  text-align: left;
  color: var(--muted,#b1bbc9);
  font-weight: 650;
  border-bottom: 1px solid var(--border,rgba(160,180,220,.18));
  padding: 12px 10px;
}
.ops-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--border,rgba(160,180,220,.1));
  vertical-align: top;
}
.ops-table td small {
  display: block;
  color: var(--muted,#9ca8b8);
  margin-top: 3px;
  max-width: 310px;
}
.ops-live-timer {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.ops-live-timer strong {
  font-size: 28px;
  letter-spacing: -.5px;
}
.ops-live-timer span {
  color: var(--muted,#a5b0c0);
}
.ops-approval-item,.ops-secret-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border,rgba(160,180,220,.16));
}
.ops-approval-item small,.ops-secret-row small {
  display: block;
  color: var(--muted,#9aa6b8);
  margin: 6px 0;
}
.ops-secret-row>div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.ops-secret-icon {
  font-size: 25px;
  background: #4a619a33;
  padding: 10px;
  border-radius: 12px;
}
.ops-secret-value {
  background: #0005;
  border-radius: 10px;
  padding: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ops-receipt {
  padding: 17px;
  background: #4769bd22;
  border-radius: 12px;
}
.ops-integration-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border,rgba(160,180,220,.16));
  padding: 12px 0;
  gap: 10px;
}
.ops-integration-row strong {
  font-size: 12px;
}
@media(max-width:650px) {
  .ops-panel {
    padding: 15px;
  }
  .ops-subgrid {
    grid-template-columns: 1fr;
  }
  .ops-kpi {
    padding: 14px;
  }
  .ops-company-grid {
    grid-template-columns: 1fr;
  }
}
/* Keep the expanded navigation usable on shorter laptop displays. */
.sidebar {
  min-height: 0;
}
#sidebar #nav {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #394562 transparent;
  padding-bottom: 12px;
}
#sidebar .sidebar-bottom {
  flex-shrink: 0;
}
#sidebar #nav .nav-link {
  min-height: 39px;
  padding-top: 9px;
  padding-bottom: 9px;
}
body.light .ops-company-card {
  background: #fff;
}

/* 3.10.10: customer directory category filters and mobile add actions. */
.ops-customer-groups{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;align-items:center}
.ops-customer-groups .btn{min-height:38px}
@media(max-width:650px){.ops-customer-groups{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:7px;scrollbar-width:thin}.ops-customer-groups .btn{white-space:nowrap;flex-shrink:0}.ops-actions:has(#ops-add-residential){display:grid;grid-template-columns:1fr 1fr;width:100%}.ops-actions #ops-add-residential{grid-column:1/-1}.ops-actions:has(#ops-add-residential) .btn{white-space:normal}}
