/* T-LAYOUT-FIT (owner 11-23-2026: «revisa todas las páginas y tarjetas, que se vean ajustadas y con sus márgenes»).
   Loaded last in the firm workspace. Only layout: nothing here hides data or changes what a page does.
   - Tables never run past their card: wide ones scroll inside it, with a soft shadow at the edge that has more.
   - Activity lets long text wrap so the table fits its card (Accounts keeps one line per account and scrolls).
   - Phones: the top bar keeps Help and News as round icons and tab strips wrap, so nothing is cut off at the right. */

/* Tables keep inside their card; the edge that has more columns shows a shadow (scroll hint). */
.table-card{overflow-x:auto}
.table-wrap,.table-card:not(:has(.table-wrap)),#content .card:has(>table){
  background:
    linear-gradient(90deg,#fff 30%,rgba(255,255,255,0)) left/36px 100% no-repeat local,
    linear-gradient(270deg,#fff 30%,rgba(255,255,255,0)) right/36px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%,rgba(16,24,40,.16),transparent) left/12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%,rgba(16,24,40,.16),transparent) right/12px 100% no-repeat scroll,
    #fff;
}
#content .card:has(>table){overflow-x:auto}

/* Accounts keeps one line per account (owner 11-22-2026); the list scrolls inside its card with the edge shadow. */

/* Activity: the item and action text wrap so the six columns fit the card. */
#content .card>table td{white-space:normal}
#content .card>table td:first-child{white-space:nowrap}

/* Phones */
@media(max-width:600px){
  .top>.crumb{display:none}
  .top{justify-content:flex-end}
  .dfh-top,.dfn-top{font-size:0;gap:0;padding:5px 7px}
  .dfh-top span,.dfn-count{font-size:11px}
  .dfn-top .dfn-label{display:none}
  .dfn-top .dfn-count{margin-left:4px}
  th{padding:10px 10px}
  td{padding:11px 10px}
  .page-title{margin-bottom:18px}
  /* Tab strips (Campaigns, Requests, Calendar…) and the Communications channels wrap instead of hiding a tab. */
  nav.tdx-tabs,div.dfv-tabs,nav.dfcm-tabs{flex-wrap:wrap;width:auto;overflow-x:visible}
  .tdc-side{flex-wrap:wrap!important;gap:2px}
  .tdc-side button{width:auto;padding:8px 10px}
  .page-title h1{font-size:23px}
}
