/* =========================================================
   PATCH 2026-08-13 08:05 | ZAR STATUS DYNAMIC TAXONOMY
   Refines dynamic categories and independent record/report navigation.
========================================================= */

.zar-status-groups,
.zar-status-selector,
.zar-status-tabs {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.zar-status-groups::-webkit-scrollbar,
.zar-status-selector::-webkit-scrollbar,
.zar-status-tabs::-webkit-scrollbar {
    display: none;
}

.zar-status-groups {
    padding: 5px 7px;
    border-bottom: 1px solid var(--zsc-line);
    background: #fff;
}

.zar-status-groups__track {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: 3px;
}

.zar-status-groups__button {
    display: inline-flex;
    min-height: 34px;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--zsc-muted);
   font-weight: 700;
   font-size: 12px;
   line-height: 1;
   font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.zar-status-groups__button:hover,
.zar-status-groups__button:focus-visible {
    color: var(--zsc-ink);
    background: var(--zsc-soft);
    outline: 2px solid #2a6cb0;
    outline-offset: -3px;
}

.zar-status-groups__button.is-active {
    border-color: #198a75;
    color: #0d6657;
    background: #e3f4ef;
}

/* =========================================================
   PATCH 2026-08-13 10:59 | CATEGORY COUNT BADGE REFINEMENT

   Reduces taxonomy count badges so longer dynamic category
   names retain visual priority and horizontal navigation space.
========================================================= */

.zar-status-groups__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    min-width: 16px;
    height: 16px;
    padding: 0 4px;

    border: 1px solid currentColor;
    border-radius: 4px;

    font-family: "Roboto Mono", Consolas, monospace;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
}

.zar-status-selector {
    border-bottom: 1px solid var(--zsc-line);
    background: var(--zsc-soft);
}

.zar-status-selector__track {
    display: flex;
    width: max-content;
    min-width: 100%;
    padding: 4px 5px;
    gap: 3px;
}

.zar-status-selector__button,
.zar-status-tab {
   min-height: 36px;
   padding: 6px 9px;
   border: 0;
   border-radius: 4px;
   background: transparent;
   color: var(--zsc-muted);
   font-weight: 650;
   font-size: 12px;
   line-height: 1.2;
   font-family: inherit;
   cursor: pointer;
   white-space: nowrap;
}

.zar-status-selector__button:hover,
.zar-status-selector__button:focus-visible,
.zar-status-tab:hover,
.zar-status-tab:focus-visible {
    color: var(--zsc-ink);
    background: #fff;
    outline: 2px solid #2a6cb0;
    outline-offset: -3px;
}

.zar-status-selector__button.is-active {
    color: #fff;
    background: var(--zsc-accent);
}

.zar-status-tabs {
    display: flex;
    width: auto;
    min-width: 0;
    margin-top: 10px;
    border-bottom: 1px solid var(--zsc-line);
    background: transparent;
}

.zar-status-tab {
    min-height: 38px;
    border-radius: 0;
}

.zar-status-tab.is-active {
    color: var(--zsc-ink);
    background: transparent;
    box-shadow: inset 0 -3px 0 var(--zsc-accent);
}
/* =========================================================
   PATCH 2026-08-13 09:03 | INTEGRATED OVERFLOW CHEVRONS

   Integrates conditional navigation chevrons into dedicated
   edge columns so hidden tabs are never covered by controls.
========================================================= */

.zar-status-overflow {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;

    width: 100%;
    min-width: 0;

    overflow: hidden;
}

/*
 * Navigation always occupies the centre column.
 * Hidden chevron columns collapse automatically.
 */
.zar-status-overflow > .zar-status-groups,
.zar-status-overflow > .zar-status-selector,
.zar-status-overflow > .zar-status-tabs {
    grid-column: 2;

    width: 100%;
    min-width: 0;
}

/* =========================================================
   EDGE CHEVRONS
========================================================= */

.zar-status-overflow__chevron {
    position: static;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 13px;
    min-width: 13px;
    height: auto;
    min-height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--zsc-muted);
    box-shadow: none;
    font: 700 18px/1 system-ui, sans-serif;
    cursor: pointer;
    transition: color 0.16s ease,
        background-color 0.16s ease;
}

.zar-status-overflow__chevron.is-left {
    grid-column: 1;
    grid-row: 1;

    justify-content: flex-start;
    padding-left: 2px;

    border-right: 1px solid var(--zsc-line);
}

.zar-status-overflow__chevron.is-right {
    grid-column: 3;
    grid-row: 1;

    justify-content: flex-end;
    padding-right: 2px;

    border-left: 1px solid var(--zsc-line);
}

.zar-status-overflow__chevron:hover {
    color: var(--zsc-ink);

    /* background: rgba(25, 138, 117, 0.06); */
}

.zar-status-overflow__chevron:active {
    background: rgba(25, 138, 117, 0.11);
}

.zar-status-overflow__chevron:focus-visible {
    outline: 2px solid #2a6cb0;
    outline-offset: -2px;
}

/*
 * display:none removes the corresponding auto grid column,
 * returning the full width to the navigation strip.
 */
.zar-status-overflow__chevron[hidden] {
    display: none;
}