/* Haizivis apmeklējums — kluba stils (tumši violets, lillā akcents) */

/* Visa lapa kluba violetajā (Astra tēmas baltā kaste un melnais fons) */
body.hv-page{background:#110b1c!important}
body.hv-page .site-content,body.hv-page #primary,body.hv-page .ast-article-single,body.hv-page article.page{background:#110b1c!important;box-shadow:none!important;border:0!important}
body.hv-page .entry-header{text-align:center;margin-bottom:8px}
body.hv-page .entry-title{color:#fff!important;font-family:"Montserrat",system-ui,sans-serif;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
body.hv-page .entry-title::after{content:"";display:block;width:64px;height:3px;margin:14px auto 0;background:#a77fd6;border-radius:2px}
body.hv-page .hv{padding-left:0;padding-right:0}
.hv{
  --hv-bg:#110b1c; --hv-surface:#2a1d40; --hv-sunk:#1d142e; --hv-line:#3d2c5a;
  --hv-fg:#ffffff; --hv-muted:#b9a8d6; --hv-accent:#a77fd6; --hv-accent-fg:#160d24;
  --hv-soft:#3e2a63; --hv-warn:#ff8a8a; --hv-ok:#8fe0a8;
  color:var(--hv-fg); font-family:"Montserrat",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:15px; line-height:1.45; font-weight:500;
  display:flex; flex-direction:column; gap:18px; max-width:860px; margin:0 auto;
  background:var(--hv-bg); padding:24px clamp(14px,3vw,28px) 28px; border-radius:28px;
  color-scheme:dark;
}
.hv *, .hv *::before, .hv *::after{box-sizing:border-box}
.hv section{display:flex;flex-direction:column;gap:18px}
.hv [hidden]{display:none!important}
.hv h2{font-family:inherit;font-weight:800;font-size:1.45rem;margin:0;color:var(--hv-fg);text-wrap:balance}
.hv .hv-lbl{font-size:.74rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--hv-muted)}
.hv .hv-note{font-size:.84rem;color:var(--hv-muted);margin:0;max-width:65ch}

/* cilnes */
.hv .hv-tabs{display:flex;justify-content:center;flex-wrap:wrap}
.hv .hv-tabs button{all:unset;cursor:pointer;color:var(--hv-fg);font:400 1.35rem "Roboto Condensed","Arial Narrow",sans-serif;padding:8px 18px 10px;opacity:.7;border-bottom:3px solid transparent;position:relative}
.hv .hv-tabs button+button::before{content:"";position:absolute;left:0;top:30%;height:40%;width:3px;background:var(--hv-accent);opacity:.6;border-radius:2px}
.hv .hv-tabs button[aria-selected="true"]{opacity:1;border-bottom-color:var(--hv-accent)}

/* lauki */
.hv .hv-controls{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end}
.hv .hv-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.hv input:not([type=checkbox]),.hv select,.hv textarea{font:inherit;color:var(--hv-fg);background:var(--hv-sunk);border:2px solid var(--hv-line);border-radius:14px;padding:9px 12px;min-height:44px;width:auto;max-width:100%;box-shadow:none}
.hv textarea{min-height:110px;width:100%;resize:vertical}
.hv input::placeholder,.hv textarea::placeholder{color:var(--hv-muted);opacity:.7}
.hv .hv-grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}
.hv .hv-grid2 input,.hv .hv-grid2 select{width:100%}
.hv .hv-check{display:flex;gap:10px;align-items:center;font-size:.9rem;color:var(--hv-muted)}
.hv .hv-check input{width:18px;height:18px;accent-color:var(--hv-accent)}

/* pogas */
.hv .hv-seg{display:flex;gap:6px;flex-wrap:wrap}
.hv .hv-seg button,.hv .hv-btn,.hv .hv-mini{all:unset;box-sizing:border-box;cursor:pointer;border:2px solid var(--hv-accent);color:var(--hv-accent);border-radius:999px;font-weight:800;text-align:center}
.hv .hv-seg button{font-size:.95rem;padding:9px 18px;min-height:44px;letter-spacing:.03em}
.hv .hv-seg button[aria-pressed="true"],.hv .hv-btn.hv-primary{background:var(--hv-accent);color:var(--hv-accent-fg)}
.hv .hv-btn{font-size:.95rem;font-weight:700;padding:10px 20px;min-height:44px}
.hv .hv-btn.hv-danger{color:var(--hv-warn);border-color:var(--hv-warn)}
.hv .hv-mini{font-size:.78rem;padding:5px 12px;white-space:nowrap}
.hv .hv-actions{display:flex;gap:10px;flex-wrap:wrap}
.hv button:focus-visible,.hv input:focus-visible,.hv select:focus-visible,.hv textarea:focus-visible,.hv summary:focus-visible,.hv a:focus-visible{outline:2px solid var(--hv-accent);outline-offset:2px}

/* kartītes */
.hv .hv-card{border-radius:26px;background:var(--hv-surface);padding:22px;display:flex;flex-direction:column;gap:14px}
.hv details.hv-card{display:block}
.hv details.hv-card > *+*{margin-top:14px}
.hv summary{cursor:pointer}
.hv .hv-empty{color:var(--hv-muted)}
.hv .hv-empty b{color:var(--hv-fg)}

/* datuma kartīte */
.hv .hv-dayline{display:flex;align-items:center;gap:18px;flex-wrap:wrap;background:var(--hv-surface);border-radius:26px;padding:18px 24px}
.hv .hv-daytitle{display:flex;align-items:center;gap:18px;flex:1;min-width:0}
.hv .hv-datebox{display:flex;flex-direction:column;align-items:center;line-height:1}
.hv .hv-datebox .dd{font-weight:900;font-size:2.4rem}
.hv .hv-datebox .mm{font-weight:800;font-size:2.1rem;color:var(--hv-accent)}
.hv .hv-dayinfo{display:flex;flex-direction:column;gap:2px}
.hv .hv-dayinfo b{font-weight:800;font-size:1.15rem}
.hv .hv-dayinfo span{color:var(--hv-muted);font-weight:600}
.hv .hv-count{font-weight:800;font-size:2.1rem;color:var(--hv-accent);text-align:right;line-height:1;font-variant-numeric:tabular-nums}
.hv .hv-count small{display:block;font-size:.8rem;color:var(--hv-muted);font-weight:600;margin-top:4px}

/* saraksti */
.hv .hv-roll,.hv .hv-people{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.hv .hv-roll li,.hv .hv-people li{margin:0;padding:0}
.hv .hv-roll button,.hv .hv-people button{all:unset;box-sizing:border-box;cursor:pointer;display:flex;width:100%;height:100%;align-items:center;gap:12px;background:var(--hv-surface);color:var(--hv-fg);padding:12px 16px;min-height:60px;border-radius:18px;border:2px solid transparent}
.hv .hv-people button{min-height:52px;border-radius:16px}
.hv .hv-people button:hover{background:var(--hv-soft)}
.hv .hv-people button.is-off{opacity:.55}
.hv .hv-roll button[aria-pressed="true"]{border-color:var(--hv-accent);background:var(--hv-soft)}
.hv .hv-tick{flex:none;width:30px;height:30px;border-radius:50%;border:2px solid var(--hv-accent);display:grid;place-items:center;font-weight:800;color:transparent}
.hv .hv-roll button[aria-pressed="true"] .hv-tick{background:var(--hv-accent);color:var(--hv-accent-fg)}
.hv .hv-who{flex:1;min-width:0}
.hv .hv-who b{display:block;font-weight:700;overflow-wrap:anywhere}
.hv .hv-who span{font-size:.8rem;color:var(--hv-muted)}
.hv .hv-chip{font-weight:800;font-size:.72rem;letter-spacing:.05em;padding:3px 9px;border-radius:999px;border:1.5px solid var(--hv-accent);color:var(--hv-accent);white-space:nowrap}
.hv .hv-head2{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.hv .hv-grouplbl{margin:6px 0 0}
.hv .hv-linkbox{display:flex;flex-direction:column;gap:10px}
.hv .hv-linkbox input{width:100%}

/* tabula */
.hv .hv-tablebox{overflow-x:auto;border-radius:22px;background:var(--hv-surface)}
.hv table{border-collapse:collapse;width:100%;margin:0;font-size:.88rem;font-variant-numeric:tabular-nums;border:0}
.hv th,.hv td{padding:11px 12px;text-align:left;white-space:nowrap;border:0;border-bottom:1px solid var(--hv-line);background:none;color:var(--hv-fg)}
.hv th{font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:var(--hv-accent);font-weight:800}
.hv td.n,.hv th.n{text-align:right}
.hv tfoot td{font-weight:800;border-bottom:0;color:var(--hv-accent)}
.hv .hv-ok{color:var(--hv-ok);font-size:.78rem}

/* tabletes */
.hv .hv-pills{display:flex;flex-wrap:wrap;gap:6px}
.hv .hv-pill{font-size:.8rem;font-weight:700;padding:5px 12px;border-radius:999px;background:var(--hv-surface);color:var(--hv-muted);text-decoration:none;font-variant-numeric:tabular-nums}
.hv a.hv-pill{border:2px solid var(--hv-accent);background:none;color:var(--hv-accent)}
.hv a.hv-pill.is-on{background:var(--hv-accent);color:var(--hv-accent-fg)}

/* vecāku skats */
.hv .hv-hero{text-align:center;display:flex;flex-direction:column;gap:4px}
.hv .hv-sub{color:var(--hv-accent);font-weight:800}
.hv .hv-dates{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px}
.hv .hv-date{background:var(--hv-surface);border-radius:18px;padding:14px 8px;display:flex;flex-direction:column;align-items:center;line-height:1.05}
.hv .hv-date .dd{font-weight:900;font-size:1.6rem}
.hv .hv-date .mm{font-weight:800;font-size:1.3rem;color:var(--hv-accent)}
.hv .hv-date .wd{font-size:.75rem;color:var(--hv-muted);margin-top:6px;font-weight:700}
.hv .hv-sum{gap:0;padding:8px 22px}
.hv .hv-sumrow{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--hv-line)}
.hv .hv-sumrow:last-child{border-bottom:0}
.hv .hv-sumrow span{color:var(--hv-muted)}
.hv .hv-sumrow b{font-weight:800;text-align:right;font-variant-numeric:tabular-nums}
.hv .hv-sumrow.hv-ok span,.hv .hv-sumrow.hv-ok b{color:var(--hv-ok);font-size:inherit}
.hv .hv-total b{color:var(--hv-accent);font-size:1.4rem}

/* maksājumi */
.hv .hv-mini.is-paid{background:var(--hv-ok);border-color:var(--hv-ok);color:#0d2416}
.hv .hv-mini:disabled{opacity:.5;cursor:default}
.hv .hv-debt{border:2px solid var(--hv-warn)}
.hv .hv-debt .hv-total span,.hv .hv-debt .hv-total b{color:var(--hv-warn)}
.hv .hv-paidall{color:var(--hv-ok);font-weight:700;text-align:center}
.hv .hv-sumrow.hv-due span,.hv .hv-sumrow.hv-due b{color:var(--hv-warn)}
.hv a.hv-pill.is-due{border-color:var(--hv-warn);color:var(--hv-warn)}
.hv a.hv-pill.is-due.is-on{background:var(--hv-warn);color:#2a0d0d}
.hv a.hv-pill.is-paid{border-color:var(--hv-ok);color:var(--hv-ok)}
.hv a.hv-pill.is-paid.is-on{background:var(--hv-ok);color:#0d2416}

/* pieteikšanās */
.hv .hv-login form p{display:flex;flex-direction:column;gap:6px;margin:0 0 12px}
.hv .hv-login label{color:var(--hv-muted);font-size:.85rem;font-weight:600}
.hv .hv-login input[type=submit]{cursor:pointer;background:var(--hv-accent);color:var(--hv-accent-fg);border:0;border-radius:999px;font-weight:800;padding:10px 24px}
.hv .hv-login .login-remember label{flex-direction:row;display:flex;gap:8px;align-items:center}

.hv .hv-toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom,0px));background:var(--hv-accent);color:var(--hv-accent-fg);font-weight:700;padding:11px 20px;border-radius:999px;font-size:.9rem;z-index:9999;max-width:calc(100vw - 32px);text-align:center}

@media (max-width:480px){
  .hv .hv-tabs button{font-size:1rem;padding:8px 9px 10px}
  .hv .hv-datebox .dd{font-size:2rem}.hv .hv-datebox .mm{font-size:1.7rem}
  .hv .hv-card{padding:18px}
}
/* profils un pārbaudījumi */
.hv .hv-h3{margin:6px 0 0;font-weight:800;font-size:1.1rem;color:var(--hv-fg)}
.hv #hv-profile{display:flex;flex-direction:column;gap:10px}
.hv .hv-tests{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.hv .hv-test{padding:16px 18px;gap:8px;background:var(--hv-sunk)}
.hv .hv-test-h{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.hv .hv-test-v{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:var(--hv-accent)}
.hv .hv-big{font-size:1.6rem;font-weight:900;color:var(--hv-fg);font-variant-numeric:tabular-nums}
.hv .hv-up{color:var(--hv-ok);font-weight:800}
.hv .hv-down{color:var(--hv-warn);font-weight:800}
.hv .hv-spark{margin-left:auto;display:block;max-width:100%}
.hv .hv-frow .hv-xval{width:110px;text-align:right;font-variant-numeric:tabular-nums;min-height:40px}
/* komandas */
.hv .hv-flist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.hv .hv-frow{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;background:var(--hv-sunk);border-radius:16px;padding:10px 14px}
.hv .hv-frow input[type=checkbox]{width:20px;height:20px;accent-color:var(--hv-accent)}
.hv .hv-frow .hv-fname{flex:1 1 170px;min-width:0;font-weight:700}
.hv .hv-frow select,.hv .hv-frow input[type=number]{min-height:36px;padding:5px 8px;border-radius:10px;font-size:.85rem}
.hv .hv-frow input[type=number]{width:96px}
.hv .hv-frow.is-out .hv-fname{opacity:.45;text-decoration:line-through}
.hv .hv-teams{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.hv .hv-team{background:var(--hv-surface);border-radius:22px;padding:16px 18px;display:flex;flex-direction:column;gap:10px;border-top:4px solid var(--hv-accent)}
.hv .hv-team:nth-child(4n+2){border-top-color:var(--hv-ok)}
.hv .hv-team:nth-child(4n+3){border-top-color:var(--hv-warn)}
.hv .hv-team:nth-child(4n+4){border-top-color:#7cc4ff}
.hv .hv-team h3{margin:0;font-weight:800;font-size:1.1rem;color:var(--hv-fg)}
.hv .hv-team ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.hv .hv-team li{display:flex;justify-content:space-between;gap:8px;margin:0}
.hv .hv-tstat{font-size:.78rem;color:var(--hv-muted);font-weight:600}
/* PIN pieslēgšanās */
.hv.hv-sbar{flex-direction:row;justify-content:flex-end;align-items:center;gap:6px;padding:0 4px 10px;background:none;border-radius:0;font-size:.85rem;color:var(--hv-muted)}
.hv.hv-sbar a,.hv .hv-login a{color:var(--hv-accent);font-weight:700}
.hv .hv-pinform{display:flex;gap:10px;flex-wrap:wrap}
.hv .hv-pinform input{flex:1 1 160px;font-size:1.4rem!important;letter-spacing:.35em;text-align:center}
.hv .hv-pinerr{color:var(--hv-warn);font-weight:700;margin:0}
.hv .hv-pin{font-size:1.35rem;letter-spacing:.2em;color:var(--hv-fg)}
.hv .hv-people .hv-tli{display:flex;gap:8px;align-items:center}
.hv .hv-people .hv-tli .hv-trev{flex:1 1 auto;min-width:0}
.hv .hv-people .hv-tli .hv-tpin{flex:none;width:auto;height:auto;min-height:0;padding:9px 14px;border:2px solid var(--hv-accent);border-radius:999px;background:none;color:var(--hv-accent);font-weight:800;font-size:.8rem;white-space:nowrap}
/* darbību žurnāls */
.hv .hv-loglist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:440px;overflow:auto}
.hv .hv-loglist li{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;background:var(--hv-sunk);border-radius:12px;padding:8px 12px;font-size:.84rem;margin:0}
.hv .hv-ltime{color:var(--hv-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.hv .hv-lwho{font-weight:700;color:var(--hv-accent);min-width:0;overflow-wrap:anywhere}
.hv .hv-ldet{grid-column:1/-1;overflow-wrap:anywhere}
.hv #hv-logbox select{flex:1 1 140px}
/* ---------- izkārtojums: dators un telefons ---------- */
.hv .hv-pleft,.hv .hv-pright{display:flex;flex-direction:column;gap:18px;min-width:0}

/* dators: plašāk, divas kolonnas */
@media (min-width:980px){
  .hv{max-width:1200px}
  .hv section[data-view="people"]{display:grid;grid-template-columns:minmax(380px,460px) minmax(0,1fr);gap:24px;align-items:start}
  .hv .hv-pleft{position:sticky;top:110px;max-height:calc(100vh - 126px);overflow:auto;padding-right:4px;scrollbar-width:thin}
  .hv .hv-roll{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
  .hv #hv-kflist,.hv #hv-xlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(440px,1fr));gap:10px}
  .hv .hv-teams{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
  .hv .hv-tests{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
  .hv .hv-tabs button{font-size:1.45rem;padding:8px 22px 10px}
}

/* telefons: cilnes apakšā kā lietotnē, lielāki pieskāriena laukumi */
@media (max-width:700px){
  .hv#hv-app{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
  .hv .hv-tabs{position:fixed;left:0;right:0;bottom:0;z-index:900;margin:0;background:#170f26;border-top:1px solid var(--hv-line);box-shadow:0 -8px 22px rgba(0,0,0,.45);
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:8px max(8px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px))}
  .hv .hv-tabs button{font:700 .74rem "Montserrat",system-ui,sans-serif;padding:12px 2px;text-align:center;border-bottom:0;border-radius:12px;opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .hv .hv-tabs button+button::before{display:none}
  .hv .hv-tabs button[aria-selected="true"]{background:var(--hv-soft);color:#fff;opacity:1;border-bottom:0}
  .hv .hv-toast{bottom:calc(88px + env(safe-area-inset-bottom,0px))}
  /* kad atvērta mājaslapas izvēlne, apakšējās cilnes paslēpjas */
  body:has(.elementor-menu-toggle.elementor-active) .hv .hv-tabs{display:none}

  .hv input:not([type=checkbox]),.hv select,.hv textarea{font-size:16px}
  .hv .hv-controls{flex-direction:column;align-items:stretch}
  .hv .hv-field input[type=date],.hv .hv-field input[type=month],.hv .hv-field select{width:100%}
  .hv .hv-seg{display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr))}
  .hv #hv-kmode,.hv #hv-kprin,.hv #hv-sfilter{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}
  .hv .hv-seg button{font-size:.88rem;padding:11px 6px;white-space:nowrap}
  .hv .hv-actions .hv-btn{flex:1 1 140px}
  .hv .hv-card{padding:18px 16px;border-radius:22px}
  .hv .hv-dayline{padding:16px 18px}
  .hv .hv-roll button{min-height:64px}

  /* komandu faktori 2×2 */
  .hv #hv-kflist .hv-fname{flex:1 1 calc(100% - 40px)}
  .hv #hv-kflist .hv-kf{flex:1 1 calc(50% - 5px);width:auto}
  /* testu rezultāti */
  .hv #hv-xlist .hv-fname{flex:1 1 100%}
  .hv #hv-xlist .hv-tstat{flex:1 1 auto}
  .hv #hv-xlist .hv-xval{width:120px;min-height:44px}
  .hv #hv-xtests .hv-frow > *{flex:1 1 calc(50% - 5px)}
  .hv #hv-xtests .hv-tn{flex:1 1 100%!important}

  /* mēneša tabula kā kartītes */
  .hv .hv-tablebox{background:none;overflow:visible;border-radius:0}
  .hv .hv-tablebox table,.hv .hv-tablebox tbody,.hv .hv-tablebox tfoot{display:block}
  .hv .hv-tablebox thead{display:none}
  .hv .hv-tablebox tr{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;background:var(--hv-surface);border-radius:18px;padding:14px 16px;margin-bottom:10px}
  .hv .hv-tablebox td{border:0;padding:0;white-space:normal;text-align:left!important}
  .hv .hv-tablebox td:empty{display:none}
  .hv .hv-tablebox tbody td:nth-child(1){grid-column:1/-1;font-weight:800;font-size:1rem}
  .hv .hv-tablebox tbody td:nth-child(n+2):nth-child(-n+7)::before{display:block;font-size:.66rem;text-transform:uppercase;letter-spacing:.07em;color:var(--hv-muted);font-weight:700;margin-bottom:2px}
  .hv .hv-tablebox tbody td:nth-child(2)::before{content:"Līgums"}
  .hv .hv-tablebox tbody td:nth-child(3)::before{content:"Treniņi"}
  .hv .hv-tablebox tbody td:nth-child(4)::before{content:"Svētdienas"}
  .hv .hv-tablebox tbody td:nth-child(5)::before{content:"Summa"}
  .hv .hv-tablebox tbody td:nth-child(6)::before{content:"Atlaide"}
  .hv .hv-tablebox tbody td:nth-child(7)::before{content:"Maksājams"}
  .hv .hv-tablebox tbody td:nth-child(7){font-size:1.1rem}
  .hv .hv-tablebox .hv-mini{display:block;width:100%;padding:11px 8px;font-size:.84rem}
  .hv .hv-tablebox tfoot td{grid-column:1/-1}
}
@media (prefers-reduced-motion:reduce){.hv *{transition:none!important}}
