/* "Přehled prodejů" page (custom:views/sales-overview/index): the client's Tableau "Ashop základní přehled". */
.aso { padding: 4px 0 24px; }
.aso-head { text-align: center; margin-bottom: 14px; }
.aso-title { font-size: 26px; font-weight: 700; margin: 0; }
.aso-sub { color: #777; font-size: 12px; margin-top: 2px; }
.aso-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px;
    padding-bottom: 14px; border-bottom: 1px solid #ddd; }
.aso-kpi { padding: 6px 10px; }
.aso-kpi-label { font-size: 15px; color: #555; line-height: 1.25; }
.aso-kpi-value { font-size: 30px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.aso-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; align-items: start; }
.aso-charts { min-width: 0; }
.aso-chart-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.aso-chart { min-width: 0; margin-bottom: 18px; }
.aso-chart-title { font-size: 14px; font-weight: 700; margin: 0; }
.aso-chart-sub { font-size: 11px; font-style: italic; color: #777; margin-bottom: 4px; }
.aso-key { display: inline-block; width: 10px; height: 10px; margin: 0 3px 0 6px; vertical-align: -1px; }
.aso-key-current { background: #1e6b3a; }
.aso-key-previous { background: #c4c4c4; }
.aso-key-average { height: 0; border-top: 2px dotted #999; vertical-align: 3px; }
.aso-svg { display: block; overflow: visible; }
.aso-grid { stroke: #e6e6e6; stroke-width: 1; }
.aso-axis { font-size: 10px; fill: #555; }
.aso-label { font-size: 10px; fill: #333; font-weight: 600; }
.aso-change { font-size: 10px; fill: #222; font-weight: 700; }
.aso-bar-previous { fill: #c4c4c4; }
.aso-bar-current { fill: #1e6b3a; }
.aso-average { stroke: #999; stroke-width: 1.5; stroke-dasharray: 2 3; }
.aso-empty { color: #777; font-style: italic; margin: 4px 0 12px; }
.aso-filters .form-group { margin-bottom: 10px; }
.aso-reset { margin-bottom: 12px; }
/* The theme pads native selects 9 px top and bottom inside 34 px, which clips the chosen value. */
.aso-filters select.form-control { padding-top: 5px; padding-bottom: 5px; }
@media (max-width: 1100px) {
    .aso-layout { grid-template-columns: minmax(0, 1fr); }
    .aso-filters { order: -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 12px; }
    .aso-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aso-chart-row { grid-template-columns: minmax(0, 1fr); }
}
/* Tabs of the workbook, as the client's Tableau tab strip (mail 406705). */
.aso-tabs { margin-bottom: 12px; }
.aso-note { color: #777; font-size: 12px; margin-top: 4px; }
.aso-note:empty { display: none; }
/* Checkbox list filters: a select-like button opening a searchable list of ticks. */
.aso-pick { position: relative; }
.aso-pick-button { text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    padding: 5px 34px 5px 10px; cursor: pointer; }
.aso-pick-button .caret { position: absolute; right: 12px; top: 15px; }
.aso-pick-active .aso-pick-button { font-weight: 600; }
.aso-pick-clear { position: absolute; right: 24px; top: 6px; font-size: 16px; line-height: 20px; color: #888;
    text-decoration: none; cursor: pointer; }
.aso-pick-clear:hover { color: #333; text-decoration: none; }
/* As wide as the longest value (up to 640 px), so names read on one line; placePanel() opens it to the side and in the
   direction with room (mail 406810: the Produkt list at the bottom of the filter column showed only a small field). */
.aso-pick-panel { position: absolute; z-index: 1000; left: 0; top: 100%; margin-top: 2px; width: max-content;
    min-width: 100%; max-width: 640px; background: #fff; border: 1px solid #ccc; border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15); padding: 6px; }
.aso-pick-panel.aso-pick-left { left: auto; right: 0; }
.aso-pick-panel.aso-pick-up { top: auto; bottom: 100%; margin-top: 0; margin-bottom: 2px; }
.aso-pick-search { margin-bottom: 4px; }
.aso-pick-list { max-height: 420px; overflow-y: auto; }
.aso-pick-item { display: flex; align-items: flex-start; gap: 6px; font-weight: normal; margin: 0; padding: 3px 4px;
    cursor: pointer; line-height: 1.3; }
.aso-pick-item:hover { background: #f2f5f8; }
.aso-pick-item input { margin: 2px 0 0; flex: none; }
.aso-pick-none { color: #888; padding: 4px; }
/* Best / worst products: name, bar, value. */
.aso-top { display: grid; gap: 3px; margin-top: 6px; }
.aso-top-row { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr) auto; gap: 8px; align-items: center;
    font-size: 11px; }
.aso-top-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.aso-top-bar { background: #eee; height: 14px; }
.aso-top-bar span { display: block; height: 100%; }
.aso-top-value { white-space: nowrap; text-align: right; min-width: 70px; }
