/* BOEKUNA quick period choice and Filters row. One size and style on every page:
   top right = quick period (Week/Maand/Kwartaal/Jaar/Alles, or Q1-Q4/Dit jaar on Btw);
   Filters = custom period and extra options. Loaded after exports-filters.css. */

#mainApp .page-period-slot{margin-left:auto;display:flex;align-items:flex-start;justify-content:flex-end;flex:0 0 auto;min-width:0;padding-top:0}

/* The quick period dropdown: one width and height on every page, never cut off ("Dit kwartaal" fits). */
#mainApp .period-quick{display:block;margin:0;flex:0 0 auto}
#mainApp .page-period-slot .period-quick-select,#mainApp .period-quick .period-quick-select{
  box-sizing:border-box;width:164px!important;min-width:164px!important;max-width:100%;height:40px!important;min-height:40px!important;
  padding:0 34px 0 14px!important;font-size:14px!important;font-weight:700!important;line-height:38px!important;
  text-overflow:clip;white-space:nowrap;border-radius:10px!important
}

/* Quick list filters (Alle / Concept / ...) share one size. */
#mainApp .list-toolbar-quick .filter-btn{
  box-sizing:border-box;height:38px!important;min-height:38px!important;margin:0;padding:0 14px!important;
  display:inline-flex;align-items:center;justify-content:center;font-size:13px!important;font-weight:700!important;line-height:1!important;white-space:nowrap;border-radius:10px!important
}

/* Filters on pages without a list (Btw, Rapportages): same button as in the list toolbar. */
/* Btw, Rapportages: Filters stacks right under the dropdown, same width and height; active filters show as chips below. */
#mainApp .page-period-stack{flex-direction:column;align-items:stretch;gap:8px}
#mainApp .page-period-stack .page-filter-btn{
  box-sizing:border-box;width:164px!important;min-width:164px!important;height:40px!important;min-height:40px!important;margin:0!important;
  padding:0 14px!important;display:inline-flex!important;align-items:center;justify-content:flex-start;gap:8px;font-size:14px!important;font-weight:700!important;border-radius:10px!important
}
#mainApp .page-period-stack .page-filter-btn .icon{width:16px;height:16px}
#mainApp .page-filter-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin:0 0 16px}
#mainApp .page-filter-row .list-filter-chip{height:38px;min-height:38px}
#modalRoot .field[hidden]{display:none!important}

/* Rapportages: calm bar lists */
#mainApp .report-bar-list{display:grid;gap:4px}
#mainApp .report-bar-meta{font-size:12px;font-weight:500;color:#6B757C;margin-left:4px}

@media(max-width:820px){
  /* Mobile: title left, dropdown right, same size on every page; it drops under the title only when space runs out. */
  #mainApp .page-head:has(.period-quick){display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;row-gap:10px!important;column-gap:12px!important}
  #mainApp .page-head:has(.period-quick)>div:first-child{flex:1 1 auto!important;min-width:0}
  #mainApp .page-head .page-period-slot{margin:0 0 0 auto!important;flex:0 0 auto!important}
  #mainApp .page-period-slot .period-quick-select,#mainApp .period-quick .period-quick-select{width:156px!important;min-width:156px!important;height:44px!important;min-height:44px!important;font-size:14px!important}
  #mainApp .list-toolbar-quick .filter-btn{height:44px!important;min-height:44px!important}
  #mainApp .page-period-stack .page-filter-btn{width:156px!important;min-width:156px!important;height:44px!important;min-height:44px!important}
  #mainApp .page-filter-row .list-filter-chip{height:44px!important;min-height:44px!important}
}
#mainApp .report-customers-card .progress span{background:#63D471!important}
