/* =========================================================
   Work Hours – „Lentelės“ išdėstymas (tab'ai + išskleidžiami darbuotojai)
   Spalvos susietos su svetainės tema (--e-global-color-*), su atsargomis.
   ========================================================= */
.wht {
    --wht-accent: var(--e-global-color-primary, #4A6BC1);
    --wht-accent-ink: var(--e-global-color-secondary, #2F4C9E);
    --wht-accent-soft: #E8EEF9;
    --wht-ink: var(--e-global-color-text, #1C2333);
    --wht-ink-2: #2C3444;
    --wht-muted: #5A616E;
    --wht-muted-2: #737A86;
    --wht-line: #E3E6EC;
    --wht-line-2: #D5DAE3;
    --wht-gray-soft: #F2F3F5;
    --wht-warn-soft: #FFF1E0;
    --wht-warn-ink: #8A4B00;

    color: var(--wht-ink);
}
.wht *, .wht *::before, .wht *::after { box-sizing: border-box; }
.wht button, .wht input, .wht select { font: inherit; }
.wht :focus-visible { outline: 3px solid var(--wht-accent); outline-offset: 2px; }
.wht .wht-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Antraštė ---------- */
.wht-hours { display: flex; flex-direction: column; gap: 28px; }
.wht-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.wht-title { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 400; letter-spacing: -1px; }
.wht-today { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--wht-muted); }

/* ---------- Valdikliai ---------- */
.wht-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.wht-seg { display: flex; border: 1px solid var(--wht-line-2); }
.wht-seg-btn {
    display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px;
    border: 0; background: #fff; color: var(--wht-ink); font-size: 15px; font-weight: 600; cursor: pointer;
}
.wht-seg-btn[hidden] { display: none; }
.wht-count { font-size: 13px; font-weight: 500; color: var(--wht-muted); }
.wht-seg-btn[aria-selected="true"] { background: var(--wht-accent); color: #fff; }
.wht-seg-btn[aria-selected="true"] .wht-count { color: rgba(255, 255, 255, .85); }

.wht-search {
    flex: 1 1 260px; display: flex; align-items: center; gap: 10px;
    height: 48px; padding: 0 14px; border: 1px solid var(--wht-line-2); color: var(--wht-muted);
}
.wht-search-input { border: 0; outline: none; background: transparent; font-size: 15px; color: var(--wht-ink); flex-grow: 1; min-width: 0; }
.wht-search:focus-within { border-color: var(--wht-accent); }

.wht-select { position: relative; display: flex; align-items: center; height: 48px; border: 1px solid var(--wht-line-2); background: #fff; }
.wht-select.is-active { border-color: var(--wht-accent); }
.wht-select[hidden] { display: none; }
.wht-role {
    appearance: none; -webkit-appearance: none; height: 100%; min-width: 230px; padding: 0 40px;
    border: 0; background: transparent; font-size: 15px; font-weight: 600; color: var(--wht-ink); cursor: pointer;
}
.wht-ico-l, .wht-ico-r { position: absolute; pointer-events: none; color: var(--wht-muted); }
.wht-ico-l { left: 14px; }
.wht-ico-r { right: 14px; }

.wht-check {
    display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px;
    border: 1px solid var(--wht-line-2); background: #fff; color: var(--wht-ink);
    font-size: 15px; font-weight: 600; cursor: pointer;
}
.wht-check-box {
    width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 2px; border: 1.5px solid #9AA1AE; background: #fff;
}
.wht-check[aria-pressed="true"] { border-color: var(--wht-accent); }
.wht-check[aria-pressed="true"] .wht-check-box { border-color: var(--wht-accent); background: var(--wht-accent); }

/* ---------- Sąrašas ---------- */
.wht-list { border-top: 2px solid var(--wht-ink); }
.wht-list-head, .wht-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
    padding: 18px 4px; border-bottom: 1px solid var(--wht-line);
}
.wht-list-head { padding: 12px 4px; font-size: 13px; font-weight: 600; color: var(--wht-muted); }
.wht-c-name { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wht-c-week { flex: 0 0 250px; }
.wht-c-time { flex: 0 0 200px; }
.wht-c-today { flex: 0 0 180px; display: flex; justify-content: flex-end; }

.wht-row-name { font-size: 17px; font-weight: 600; line-height: 1.35; }
.wht-staff-toggle {
    display: inline-flex; align-items: center; gap: 8px; height: 44px;
    margin: 0 0 -10px -10px; padding: 0 10px; border: 0; background: transparent;
    font-size: 14px; font-weight: 600; color: var(--wht-accent); cursor: pointer;
}
.wht-staff-toggle:hover { color: var(--wht-accent-ink); }
.wht-chev { transition: transform .15s; }
.wht-staff-toggle[aria-expanded="true"] .wht-chev { transform: rotate(180deg); }

.wht-staff { flex: 1 1 100%; display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.wht-staff[hidden] { display: none; }
.wht-staff-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.wht-person {
    display: flex; flex-direction: column; gap: 10px; padding: 16px 18px;
    background: #F7F8FA; border: 1px solid #EDEFF3; border-radius: 2px;
}
.wht-person.is-match { border: 2px solid var(--wht-accent); }
.wht-person-name { font-size: 16px; font-weight: 600; line-height: 1.3; }
.wht-person-role { font-size: 14px; line-height: 1.4; color: var(--wht-muted); }
.wht-person.is-match .wht-person-role { color: var(--wht-accent-ink); font-weight: 600; }
.wht-person-contacts { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.wht-contact-link {
    display: inline-flex; align-items: center; gap: 10px; min-height: 28px;
    color: var(--wht-ink); text-decoration: none; overflow-wrap: anywhere;
}
.wht-contact-link:hover { color: var(--wht-accent); }
.wht-contact-link svg { flex-shrink: 0; color: var(--wht-muted); }

.wht-week { display: flex; gap: 4px; }
.wht-week span {
    width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 2px; font-size: 11px; font-weight: 600;
    border: 1px solid var(--wht-line); color: var(--wht-muted-2);
}
.wht-week span.on { background: var(--wht-accent-soft); border-color: var(--wht-accent-soft); color: var(--wht-accent-ink); }
.wht-week span.today { border: 2px solid var(--wht-ink); }

.wht-times { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--wht-ink-2); }
.wht-times b { display: inline-block; min-width: 54px; font-weight: 600; }

.wht-pill {
    display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 2px;
    font-size: 13px; font-weight: 600; white-space: nowrap;
}
.wht-pill--open { background: var(--wht-accent-soft); color: var(--wht-accent-ink); }
.wht-pill--closed { background: var(--wht-gray-soft); color: var(--wht-muted); }
.wht-pill--temp { background: var(--wht-warn-soft); color: var(--wht-warn-ink); }

.wht-empty { padding: 40px 4px; font-size: 16px; color: var(--wht-muted); }

@media (max-width: 760px) {
    .wht-title { font-size: 30px; }
    .wht-list-head { display: none; }
    .wht-c-week, .wht-c-time { flex: 1 1 100%; }
    .wht-c-today { flex: 1 1 100%; justify-content: flex-start; }
    .wht-select, .wht-role { width: 100%; min-width: 0; }
    .wht-seg { width: 100%; }
    .wht-seg-btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
    .wht-seg-btn, .wht-check, .wht-search, .wht-select { transition: background-color .15s, border-color .15s, color .15s; }
}
@media (prefers-reduced-motion: reduce) {
    .wht-chev { transition: none; }
}
