/* Shared by all designs, palettes, modes and icon packs. */
.cm-value{white-space:nowrap}
.cm-detail,#panel{container:cm-detail / inline-size}
:is(main,#panel,.modal,.cm-detail) :is(h1,h2,h3){word-break:normal;overflow-wrap:break-word;text-wrap:balance}
@container cm-detail (max-width:36rem){
  .cm-lines,.cm-lines tbody,.cm-lines tr{display:block}
  .cm-lines thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .cm-lines tbody tr{padding:.5rem .75rem}
  .cm-lines tbody td{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.25rem .8rem;text-align:end;padding:.55rem 0}
  .cm-lines tbody td:first-child{display:block;text-align:start}
  .cm-lines tbody td:first-child::before{display:block}
  .cm-lines tbody td::before{content:attr(data-label);font-size:.84rem;font-weight:600;color:var(--muted)}
}
@media screen and (max-width:690px){
  .executive-header .header-center{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;width:100%;align-items:center}
  .executive-header .header-center select{width:100%;min-width:0;max-width:100%;padding-inline:6px}
  .executive-header .header-center #search{grid-column:3;grid-row:1;display:grid;place-content:center;width:44px;min-width:0;height:44px;padding:0;font-size:0}
  .executive-header #search .tiny{display:none}
  :is(main,#panel,.modal) button{word-break:normal;white-space:normal}
}
@media screen and (max-width:390px){
  .executive-header .header-center{grid-template-columns:minmax(0,1fr) 44px}
  .executive-header .header-center #search{grid-column:2;grid-row:1 / 3}
  .executive-header .header-center select{grid-column:1}
}
/* Natural line breaks for content; keep numeric units intact. */
@media screen{
  :is(main,#panel,.modal,.popover) :is(.card,.row,.toolbar,.heading,.document-actions)>*{min-width:0}
  :is(main,#panel,.modal,.popover) :is(p,label,h1,h2,h3,.item-name,.detail,.meta){overflow-wrap:break-word;word-break:normal}
  :is(.tablewrap,.worktabs,.tabs){min-width:0;max-width:100%}
  .tablewrap table{min-width:max-content}
  .tablewrap td:first-child{white-space:normal;max-width:42ch;overflow-wrap:break-word}
  .tablewrap :is(th,td):not(:first-child){white-space:nowrap}
  :is(.toolbar,.document-actions,.period,.work-picker-head){flex-wrap:wrap}
  :is(.toolbar,.document-actions) button{max-width:100%;white-space:normal}
  #panel .row{flex-wrap:wrap}
  :is(.toolbar,.row) :is(input,select){max-width:100%;min-width:0}
  body .worktab-main span:last-child{white-space:normal;overflow:visible;text-overflow:clip}
  .worktab{flex-shrink:0}
}
.au-metrics strong,.au-demo td:last-child{white-space:nowrap}
.grid>.card,.modular-builder>*{min-width:0}
.chart{max-width:100%;overflow-x:auto}
@media screen and (max-width:700px){
  .main-grid,.modular-builder{grid-template-columns:minmax(0,1fr)}
  .module-price-card,.module-extra{flex-wrap:wrap}
  .module-extra small{white-space:normal}
}
@media screen and (max-width:390px){.executive-kpis,.grid.kpis{grid-template-columns:minmax(0,1fr)}}
@media screen and (max-width:480px){
  .module-list{grid-template-columns:minmax(0,1fr)}
  .module-price-main{flex-wrap:wrap}
  .module-price-main label{min-width:min(100%,8rem)}
}
