/* Shared chart composition; instantiated only on the family overview. */
#app .fc-card{padding:16px;margin:0;min-width:0}
#app .fc-card[hidden]{display:none!important}
#app .fc-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}
#app .fc-heading>.overview-analytics-title{margin:0;min-width:0;font-size:16px;line-height:24px}
#app .fc-mode{display:flex;align-items:center;gap:4px;padding:4px;flex:none;margin:0;border-radius:10px;background:#f0f6f7}
#app .fc-mode>button{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-height:44px;padding:12px;margin:0;border:1px solid transparent;border-radius:8px;background:transparent;color:#60778a;box-shadow:none}
#app .fc-mode>button[aria-pressed=true]{color:#087960;background:#fff;border-color:#c6ddda;box-shadow:0 1px 3px #1234410a}
#app .fc-mode>button>svg{display:block;width:20px;height:20px;stroke-width:1.8}
#app .fc-mode>button:focus-visible{outline:2px solid #087960;outline-offset:2px}
#app .fc-mode>button::after{position:absolute;z-index:20;top:calc(100% + 8px);right:0;content:attr(data-label);display:none;width:max-content;max-width:220px;padding:8px 12px;border:1px solid #d6e3e9;border-radius:8px;background:#fff;color:#123441;font-size:12px;line-height:20px;font-weight:400;box-shadow:0 4px 12px #12344114;pointer-events:none}
#app .fc-mode>button:focus-visible::after{display:block}
@media(hover:hover){#app .fc-mode>button:hover::after{display:block}}
#app.family-overview-live[data-family-view=dashboard] .fc-card #family-filter-slot{margin:16px 0}
#app .fc-card #period-filters{position:relative;margin:0;padding:0 0 16px;border:0;border-bottom:1px solid #e0e9ee;border-radius:0;box-shadow:none;background:transparent}
#app .fc-card #family-filter-slot #period-loading{position:absolute;right:0;bottom:0;height:16px;max-width:100%;margin:0;font-size:11px;line-height:16px;pointer-events:none}
#app .fc-card #family-filter-slot #period-loading::before{box-sizing:border-box;width:12px;height:12px}
#app .fc-stage{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;min-width:0;isolation:isolate}
#app .fc-stage>.card{grid-area:1/1;min-width:0;width:100%;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;align-self:stretch}
#app .fc-stage>[aria-hidden=true]{visibility:hidden;opacity:0;pointer-events:none;z-index:0}
#app .fc-stage>[aria-hidden=false]{opacity:1;z-index:1}
#app .fc-stage>.movement-card{display:flex;flex-direction:column;justify-content:center}
#app .fc-stage>.movement-card>.card-heading{margin:0 0 16px}
#app .fc-stage>.movement-card>.card-heading h2{display:none}
#app .fc-stage>.movement-card>.card-heading p{margin:0}
#app .fc-card .distribution-preview #chart-types{padding:0 0 8px}
#app .fc-card .cabinet-chart-preview .report-heading{padding-left:0!important;padding-right:0!important}
#app .fc-card .cabinet-chart-preview .report-body{padding-left:0;padding-right:0}
#app .fc-card .distribution-preview #pie-chart{margin:0}
@media(min-width:900px){
 #app .fc-card #family-filter-slot #period-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
 #app .fc-card #family-filter-slot #period-filters>label{display:flex;flex-direction:row;align-items:center;gap:8px;flex:0 0 144px;width:auto;min-width:0;margin:0;white-space:nowrap}
 #app .fc-card #family-filter-slot #period-filters>label:nth-of-type(2){flex-basis:152px}
 #app .fc-card #family-filter-slot #period-filters>label:nth-of-type(3){flex:1.1 0 170px}
 #app .fc-card #family-filter-slot #period-filters>label:nth-of-type(4){flex:1 0 140px}
 #app .fc-card #family-filter-slot #period-filters>label>:is(.gc-date-field,.category-picker){flex:1;min-width:0;width:0;margin:0}
 #app .fc-card #family-filter-slot #period-filters input{margin:0}
 #app .fc-card #family-filter-slot #apply-filters{flex:none;margin:0 0 0 auto}
 #app .fc-card #family-filter-slot #period-loading{flex-basis:100%}
}
@media(max-width:699px){
 .fc-preview-bar{padding:8px;gap:4px}
 .fc-preview-bar>strong{width:100%;margin:0}
 .fc-preview-bar a,.fc-preview-bar button{min-height:44px}
 #app .fc-card{padding:12px}
 #app .fc-heading{gap:8px}
 #app .fc-heading>.overview-analytics-title{font-size:14px;line-height:20px}
}
@media(min-width:390px) and (max-width:699px){
 #app .fc-card #period-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 8px;align-items:end}
 #app .fc-card #period-filters label{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;max-width:100%;margin:0}
 #app .fc-card #period-filters :is(.gc-date-field,.category-picker){width:100%;min-width:0;margin:0}
 #app .fc-card #period-filters input{margin:0}
 #app .fc-card #apply-filters{justify-self:start}
 #app .fc-card #period-loading{grid-column:1/-1}
}
