/* Vila Stefana - homepage rates & availability, compact grouped table (2026-11-05) */
.vs-rates { color: #292524; }
.vs-rates-head { text-align: center; max-width: 46rem; margin: 0 auto 1.25rem; }
.vs-rates-title { font-family: Georgia, 'Times New Roman', serif; font-size: 1.75rem; line-height: 1.2; font-weight: 700; color: #1c1917; margin: 0 0 .5rem; text-wrap: balance; }
.vs-rates-sub { font-size: .95rem; line-height: 1.55; color: #57534e; margin: 0; }
.vs-rates-wrap { background: #fff; border: 1px solid #e7e5e4; border-radius: 16px; box-shadow: 0 6px 22px rgba(28, 25, 23, .07); overflow-x: auto; }
.vs-rates-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.vs-rates-table thead th { background: #68243c; color: #fff; text-align: start; padding: .7rem 1rem; font-size: .76rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; vertical-align: bottom; }
.vs-rates-table thead th small { display: block; font-size: .68rem; font-weight: 500; letter-spacing: 0; text-transform: none; opacity: .85; }
.vs-rates-table tbody th, .vs-rates-table tbody td { padding: .7rem 1rem; border-top: 1px solid #ebe7e4; text-align: start; vertical-align: top; font-weight: 400; }
.vs-rates-row:hover > * { background: #fbf8f6; }
.vs-rates-name { display: block; font-weight: 700; color: #1c1917; }
.vs-rates-minrow, .vs-rates-stdnote { display: block; margin-top: .1rem; font-size: .8rem; color: #78716c; }
.vs-rates-ranges { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .25rem; }
.vs-rates-ranges li { display: flex; flex-wrap: wrap; align-items: center; column-gap: .5rem; row-gap: .1rem; }
.vs-rates-dates { font-size: .84rem; color: #44403c; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-rates-badge { display: inline-block; padding: .08rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.vs-rates-badge.is-free { background: #dcfce7; color: #166534; border-color: #86efac; }
.vs-rates-badge.is-partial { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.vs-rates-badge.is-full { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.vs-rates-booked { flex-basis: 100%; font-size: .78rem; color: #991b1b; font-variant-numeric: tabular-nums; }
.vs-rates-price { white-space: nowrap; color: #44403c; font-variant-numeric: tabular-nums; }
.vs-rates-line { display: flex; align-items: baseline; gap: .45rem; line-height: 1.5; }
.vs-rates-line strong { font-weight: 600; min-width: 5.2rem; }
.vs-rates-line small { font-size: .72rem; color: #a8a29e; }
.vs-rates-line.is-weekend strong { color: #68243c; }
.vs-rates-price.is-main .vs-rates-line strong { font-family: Georgia, 'Times New Roman', serif; font-size: 1.02rem; font-weight: 700; color: #1c1917; min-width: 6rem; }
.vs-rates-price.is-main .vs-rates-line.is-weekend strong { color: #68243c; }
.vs-rates-table .vs-rates-action { text-align: end; white-space: nowrap; vertical-align: middle; }
.vs-rates-btn { min-height: 38px; padding: .45rem 1rem; border: 1px solid #68243c; border-radius: 8px; background: #68243c; color: #fff; font-size: .85rem; font-weight: 700; cursor: pointer; }
.vs-rates-btn:hover { background: #4e192d; }
.vs-rates-btn:focus-visible { outline: 3px solid #a77032; outline-offset: 2px; }
.vs-rates-none { color: #a8a29e; }
.vs-rates-standard > * { background: #faf7f5; }
.vs-rates-note { margin: .8rem auto 0; max-width: 54rem; font-size: .8rem; line-height: 1.5; color: #78716c; text-align: center; }
.vs-rates-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Phones: one card per tariff, prices side by side */
@media (max-width: 767px) {
    .vs-rates-title { font-size: 1.4rem; }
    .vs-rates-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
    .vs-rates-table, .vs-rates-table tbody { display: block; }
    .vs-rates-table { font-size: .86rem; }
    .vs-rates-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .vs-rates-table tbody tr { display: grid; grid-template-columns: repeat(var(--vs-rates-cols, 3), minmax(0, 1fr)); column-gap: .6rem; background: #fff; border: 1px solid #e7e5e4; border-radius: 14px; box-shadow: 0 4px 14px rgba(28, 25, 23, .06); margin-bottom: .7rem; padding: .8rem 1rem .9rem; }
    .vs-rates-table tbody tr.vs-rates-standard { background: #faf7f5; }
    .vs-rates-table tbody th, .vs-rates-table tbody td { display: block; padding: 0; border: 0; background: transparent !important; }
    .vs-rates-period { grid-column: 1 / -1; padding-bottom: .6rem !important; margin-bottom: .6rem; border-bottom: 1px solid #f0edeb !important; }
    .vs-rates-price { white-space: normal; }
    .vs-rates-price::before { content: attr(data-label); display: block; min-height: 2.5em; margin-bottom: .15rem; font-size: .68rem; line-height: 1.25; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #78716c; }
    .vs-rates-line { flex-direction: column; gap: 0; margin-bottom: .2rem; line-height: 1.3; }
    .vs-rates-line strong, .vs-rates-price.is-main .vs-rates-line strong { min-width: 0; font-size: .92rem; }
    .vs-rates-line small { font-size: .68rem; }
    .vs-rates-table .vs-rates-action { grid-column: 1 / -1; text-align: start; padding-top: .6rem !important; }
    .vs-rates-btn { width: 100%; min-height: 44px; }
    .vs-rates-action .vs-rates-none { display: none; }
}

/* Availability calendar under the rates table */
.vs-cal { margin-top: 2.5rem; }
.vs-cal-head { text-align: center; max-width: 46rem; margin: 0 auto 1rem; }
.vs-cal-title { font-family: Georgia, 'Times New Roman', serif; font-size: 1.35rem; line-height: 1.25; font-weight: 700; color: #1c1917; margin: 0 0 .35rem; }
.vs-cal-hint { font-size: .88rem; line-height: 1.5; color: #57534e; margin: 0; }
.vs-cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.vs-cal-kinds { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; background: #efeae6; border-radius: 10px; }
.vs-cal-kind { min-height: 36px; padding: .35rem .8rem; border: 0; border-radius: 8px; background: transparent; color: #57534e; font-size: .82rem; font-weight: 600; cursor: pointer; }
.vs-cal-kind:hover { color: #1c1917; }
.vs-cal-kind.is-on { background: #fff; color: #68243c; box-shadow: 0 1px 3px rgba(28, 25, 23, .15); }
.vs-cal-nav { display: inline-flex; gap: .35rem; margin-inline-start: auto; }
.vs-cal-navbtn { width: 40px; height: 40px; border: 1px solid #d6d3d1; border-radius: 10px; background: #fff; color: #68243c; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.vs-cal-navbtn:hover:not(:disabled) { background: #f5f0ec; }
.vs-cal-navbtn:disabled { opacity: .4; cursor: not-allowed; }
.vs-cal-kind:focus-visible, .vs-cal-navbtn:focus-visible, .vs-cal-day:focus-visible { outline: 3px solid #a77032; outline-offset: 2px; }
.vs-cal-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.vs-cal-month { background: #fff; border: 1px solid #e7e5e4; border-radius: 16px; box-shadow: 0 6px 22px rgba(28, 25, 23, .07); padding: .9rem .8rem 1rem; }
.vs-cal-mname { text-align: center; font-weight: 700; text-transform: capitalize; color: #1c1917; margin-bottom: .5rem; }
.vs-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.vs-cal-dow span { text-align: center; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #78716c; padding-bottom: .3rem; }
.vs-cal-dow span.is-wk { color: #68243c; }
.vs-cal-empty { min-height: 46px; }
.vs-cal-day { min-height: 46px; padding: 2px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid transparent; border-radius: 8px; font: inherit; line-height: 1.15; color: #292524; }
.vs-cal-day b { font-size: .86rem; font-weight: 700; }
.vs-cal-day small { font-size: .64rem; font-weight: 500; font-variant-numeric: tabular-nums; color: #57534e; }
.vs-cal-day.is-free { background: #f1faf4; border-color: #cfe9d8; cursor: pointer; }
.vs-cal-day.is-free:hover { background: #dcfce7; border-color: #86efac; }
.vs-cal-day.is-free.is-wk small { color: #68243c; font-weight: 700; }
.vs-cal-day.is-today { box-shadow: inset 0 0 0 2px #a77032; }
.vs-cal-day.is-booked { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.vs-cal-day.is-booked b { text-decoration: line-through; }
.vs-cal-day.is-booked small { color: #991b1b; font-size: .56rem; }
.vs-cal-day.is-past { color: #cfcac6; }
.vs-cal-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; margin-top: .9rem; font-size: .8rem; color: #57534e; }
.vs-cal-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.vs-cal-sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid transparent; }
.vs-cal-sw.is-free { background: #f1faf4; border-color: #86efac; }
.vs-cal-sw.is-booked { background: #fee2e2; border-color: #fca5a5; }
.vs-cal-sw.is-wk { background: #68243c; }
@media (max-width: 1023px) {
    .vs-cal-months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vs-cal-month:nth-child(n+3) { display: none; }
}
@media (max-width: 639px) {
    .vs-cal { margin-top: 2rem; }
    .vs-cal-title { font-size: 1.2rem; }
    .vs-cal-months { grid-template-columns: minmax(0, 1fr); }
    .vs-cal-month:nth-child(n+2) { display: none; }
    .vs-cal-kinds { width: 100%; }
    .vs-cal-kind { flex: 1 1 auto; padding: .35rem .5rem; }
    .vs-cal-nav { width: 100%; justify-content: space-between; }
    .vs-cal-day, .vs-cal-empty { min-height: 48px; }
}

/* Villa-only list: one price per column */
.vs-rates-price.is-flat strong { font-family: Georgia, 'Times New Roman', serif; font-size: 1.02rem; font-weight: 700; color: #1c1917; }
.vs-rates-price.is-flat.is-weekend strong { color: #68243c; }
.vs-cal.is-standalone { margin-top: 0; }
@media (max-width: 767px) {
    .vs-rates-price.is-flat strong { font-size: .98rem; }
    .vs-rates-price.is-flat::before { min-height: 0; }
}

/* Admin: homepage display switches (Preturi & Perioade) */
.vac-home-settings { background: #1c1917; border: 1px solid #292524; border-radius: 24px; padding: 20px 24px; color: #e7e5e4; }
.vac-home-settings-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.vac-home-settings-head strong { font-family: Georgia, 'Times New Roman', serif; font-size: 18px; color: #fff; }
.vac-home-settings-head span { font-size: 12px; color: #a8a29e; }
.vac-home-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.vac-switch { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid #292524; background: #0c0a09; cursor: pointer; }
.vac-switch.is-on { border-color: #047857; background: #0f2f26; }
.vac-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vac-switch-track { flex: none; position: relative; width: 40px; height: 22px; margin-top: 2px; border-radius: 999px; background: #44403c; transition: background .15s; }
.vac-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #e7e5e4; transition: transform .15s; }
.vac-switch.is-on .vac-switch-track { background: #10b981; }
.vac-switch.is-on .vac-switch-track::after { transform: translateX(18px); background: #fff; }
.vac-switch input:focus-visible + .vac-switch-track { outline: 2px solid #fbbf24; outline-offset: 2px; }
.vac-switch input:disabled + .vac-switch-track { opacity: .5; }
.vac-switch-text { display: flex; flex-direction: column; gap: 2px; }
.vac-switch-text strong { font-size: 13px; color: #fff; }
.vac-switch-text small { font-size: 11px; line-height: 1.4; color: #a8a29e; }

/* Villa-only list without buttons: narrower on desktop, a real compact table on phones */
.vs-rates-wrap.is-simple { max-width: 58rem; margin-inline: auto; }
.vs-rates-table.is-simple thead th:not(:first-child), .vs-rates-table.is-simple .vs-rates-price { text-align: end; }
@media (max-width: 767px) {
    .vs-rates-wrap.is-simple { background: #fff; border: 1px solid #e7e5e4; border-radius: 14px; box-shadow: 0 4px 14px rgba(28, 25, 23, .06); overflow: hidden; }
    .vs-rates-table.is-simple { display: table; font-size: .84rem; }
    .vs-rates-table.is-simple thead { display: table-header-group; position: static; width: auto; height: auto; overflow: visible; clip: auto; }
    .vs-rates-table.is-simple thead th { padding: .55rem .5rem; font-size: .6rem; line-height: 1.25; white-space: normal; }
    .vs-rates-table.is-simple thead th small { font-size: .56rem; }
    .vs-rates-table.is-simple tbody { display: table-row-group; }
    .vs-rates-table.is-simple tbody tr { display: table-row; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
    .vs-rates-table.is-simple tbody th, .vs-rates-table.is-simple tbody td { display: table-cell; padding: .6rem .5rem; border: 0; border-top: 1px solid #ebe7e4; }
    .vs-rates-table.is-simple tbody .vs-rates-period { margin: 0; padding: .6rem .5rem .6rem .8rem !important; border-bottom: 0 !important; border-top: 1px solid #ebe7e4 !important; }
    .vs-rates-table.is-simple thead th:first-child { padding-inline-start: .8rem; }
    .vs-rates-table.is-simple thead th:last-child, .vs-rates-table.is-simple tbody td:last-child { padding-inline-end: .8rem; }
    .vs-rates-table.is-simple tbody tr.vs-rates-standard > * { background: #faf7f5 !important; }
    .vs-rates-table.is-simple .vs-rates-price { white-space: nowrap; }
    .vs-rates-table.is-simple .vs-rates-price::before { content: none; }
    .vs-rates-table.is-simple .vs-rates-price.is-flat strong { font-size: .9rem; }
    .vs-rates-table.is-simple .vs-rates-dates { font-size: .78rem; }
    .vs-rates-table.is-simple .vs-rates-booked { font-size: .72rem; }
}

/* Phones, villa-only table: fixed price columns so both rates always fit */
@media (max-width: 767px) {
    .vs-rates-table.is-simple { table-layout: fixed; width: 100%; }
    .vs-rates-table.is-simple thead th:nth-child(2) { width: 4.9rem; }
    .vs-rates-table.is-simple thead th:nth-child(3) { width: 5.3rem; }
    .vs-rates-table.is-simple thead th, .vs-rates-table.is-simple tbody td { padding-inline: .35rem; }
    .vs-rates-table.is-simple thead th:last-child, .vs-rates-table.is-simple tbody td:last-child { padding-inline-end: .8rem; }
    .vs-rates-table.is-simple tbody .vs-rates-period { padding: .6rem .3rem .6rem .8rem !important; }
    .vs-rates-table.is-simple .vs-rates-price.is-flat strong { font-size: .92rem; }
    .vs-rates-table.is-simple .vs-rates-cur { font-size: .62rem; font-weight: 600; letter-spacing: .02em; }
    .vs-rates-table.is-simple .vs-rates-dates { white-space: normal; font-size: .76rem; }
    .vs-rates-table.is-simple .vs-rates-ranges li { column-gap: .35rem; }
}
/* Date ranges: booked intervals never break mid-date; phones hide the repeated year */
.vs-rates-bk { white-space: nowrap; }
@media (max-width: 767px) {
    .vs-rates-table.is-simple .vs-rates-dates { white-space: nowrap; }
    .vs-rates-table.is-simple .vs-rates-yr.is-same { display: none; }
    .vs-rates-table.is-simple .vs-rates-booked { font-size: .74rem; line-height: 1.45; }
}
.vs-rates-bk { display: inline-block; margin-inline-end: .25rem; }

/* Hero special offer: replaces the facts row, background pulses between cream and white */
.vs-hero-offer { margin-top: 1.6rem; max-width: 34rem; padding: 1.05rem 1.2rem 1.1rem; border: 1px solid #e2d3b8; border-radius: 14px; background-color: #f3e7cf; color: #292524; box-shadow: 0 6px 18px rgba(104, 36, 60, .10); animation: vs-offer-blink 1.4s ease-in-out infinite; }
@keyframes vs-offer-blink { 0%, 100% { background-color: #f3e7cf; } 50% { background-color: #ffffff; } }
@media (prefers-reduced-motion: reduce) { .vs-hero-offer { animation: none; } }
.vs-hero-offer p { margin: 0; }
.vs-offer-emoji { display: inline-block; margin-inline-end: .35rem; }
.vs-offer-title { font-family: Georgia, 'Times New Roman', serif; font-size: 1.15rem; line-height: 1.3; font-weight: 700; color: #68243c; }
.vs-offer-lead { margin-top: .45rem !important; font-size: .92rem; line-height: 1.5; }
.vs-offer-lead .vs-offer-emoji, .vs-offer-end .vs-offer-emoji { margin-inline: .1rem 0; }
.vs-offer-list { list-style: none; margin: .6rem 0; padding: 0; display: grid; gap: .3rem; font-size: .96rem; font-weight: 700; color: #1c1917; }
.vs-offer-list li { display: flex; align-items: baseline; gap: .15rem; }
.vs-offer-end { font-size: .88rem; line-height: 1.5; color: #57534e; }
@media (max-width: 767px) {
    .vs-hero-offer { margin-top: 1.2rem; padding: .95rem 1rem 1rem; }
    .vs-offer-title { font-size: 1.05rem; }
}

/* Admin switches for the offer reuse the .vac-switch styles above */

/* Offer text: plain text with the owner's own emoji */
.vs-offer-title, .vs-offer-lead, .vs-offer-end, .vs-offer-list li { white-space: pre-line; }
.vs-offer-list li { display: block; }

/* Admin: offer editor inside the homepage display card */
.vac-offer-editor { margin-top: 16px; padding-top: 16px; border-top: 1px solid #292524; }
.vac-offer-editor-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.vac-offer-editor-head strong { font-size: 14px; color: #fff; }
.vac-offer-lang { font-size: 12px; color: #a8a29e; }
.vac-offer-form { display: grid; gap: 10px; }
.vac-offer-form textarea { resize: vertical; min-height: 2.6rem; }
.vac-offer-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.vac-offer-hint { flex: 1 1 14rem; margin: 0; font-size: 11px; line-height: 1.45; color: #a8a29e; }
p.vac-offer-hint { margin-top: 10px; }

/* Admin: statistics page (dark surface). One data hue; text stays in neutral ink. */
.vst { --vst-surface: #1c1917; --vst-ink: #f0efec; --vst-ink2: #c3c2b7; --vst-muted: #898781; --vst-grid: #2c2c2a; --vst-axis: #44403c; --vst-series: #3987e5;
    display: grid; gap: 16px; color: var(--vst-ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.vst.is-loading .vst-tiles, .vst.is-loading .vst-card { opacity: .55; transition: opacity .15s; }
.vst-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.vst-head h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 700; color: #fff; }
.vst-head p { margin: 4px 0 0; max-width: 60ch; font-size: 12px; line-height: 1.5; color: var(--vst-ink2); }
.vst-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.vst-presets { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 10px; background: #0c0a09; border: 1px solid #292524; }
.vst-preset { min-height: 32px; padding: 4px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--vst-ink2); font-size: 12px; font-weight: 600; cursor: pointer; }
.vst-preset:hover { color: #fff; }
.vst-preset.is-on { background: #292524; color: #fff; }
.vst-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--vst-ink2); }
.vst-date input { padding: 5px 8px; border-radius: 8px; border: 1px solid #44403c; background: #0c0a09; color: #fff; font: inherit; color-scheme: dark; }
.vst-since { margin: 0; font-size: 12px; color: var(--vst-muted); }
.vst-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #450a0a; border: 1px solid #7f1d1d; color: #fecaca; font-size: 12px; }
.vst-empty { margin: 0; padding: 14px 0; font-size: 13px; color: var(--vst-muted); }
.vst-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.vst-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--vst-surface); border: 1px solid #292524; }
.vst-tile-label { font-size: 12px; color: var(--vst-ink2); }
.vst-tile-value { font-size: 28px; line-height: 1.1; font-weight: 600; color: #fff; }
.vst-tile-sub { font-size: 11px; color: var(--vst-muted); }
.vst-delta { font-size: 11px; font-weight: 600; }
.vst-delta.is-up { color: #0ca30c; }
.vst-delta.is-down { color: #e66767; }
.vst-card { padding: 16px 18px; border-radius: 16px; background: var(--vst-surface); border: 1px solid #292524; min-width: 0; }
.vst-card h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: #fff; }
.vst-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.vst-card-head h4 { margin: 0; }
.vst-note { margin: 0 0 10px; font-size: 11px; line-height: 1.45; color: var(--vst-muted); }
.vst-btn { min-height: 32px; padding: 5px 12px; border-radius: 8px; border: 1px solid #44403c; background: #292524; color: var(--vst-ink); font-size: 12px; font-weight: 600; cursor: pointer; }
.vst-btn:hover { background: #3f3a36; }
.vst-more { margin-top: 10px; }
.vst-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
/* column chart */
.vst-chart { margin-top: 10px; }
.vst-plot { position: relative; margin-left: 38px; }
.vst-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--vst-grid); }
.vst-grid.is-base { border-top-color: var(--vst-axis); }
.vst-grid span { position: absolute; right: 100%; top: -7px; padding-right: 8px; font-size: 10px; line-height: 14px; color: var(--vst-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vst-cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.vst-col { position: relative; flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; }
.vst-col.is-hover { background: rgba(255, 255, 255, .05); }
.vst-col:focus-visible { box-shadow: inset 0 0 0 1px #fbbf24; }
.vst-bar { width: 100%; max-width: 24px; background: var(--vst-series); border-radius: 4px 4px 0 0; }
.vst-col.is-hover .vst-bar { background: #6da7ec; }
.vst-tip { position: absolute; z-index: 5; bottom: calc(100% - 34px); left: 50%; display: flex; flex-direction: column; gap: 2px; min-width: 150px; padding: 8px 10px; border-radius: 10px; background: #0c0a09; border: 1px solid #44403c; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); font-size: 11px; line-height: 1.4; color: var(--vst-ink2); text-align: left; white-space: nowrap; pointer-events: none; }
.vst-tip.is-left { left: auto; right: 50%; }
.vst-tip strong { color: #fff; font-size: 12px; }
.vst-x { display: flex; gap: 2px; margin: 6px 0 0 38px; }
.vst-x span { flex: 1 1 0; min-width: 0; text-align: center; font-size: 10px; color: var(--vst-muted); white-space: nowrap; overflow: visible; font-variant-numeric: tabular-nums; }
/* daily table */
.vst-table-wrap { overflow-x: auto; }
.vst-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 640px; }
.vst-table th, .vst-table td { padding: 7px 10px; border-top: 1px solid var(--vst-grid); text-align: left; font-weight: 400; color: var(--vst-ink); vertical-align: top; }
.vst-table thead th { border-top: 0; font-size: 11px; font-weight: 700; color: var(--vst-ink2); white-space: nowrap; }
.vst-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vst-table tbody th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.vst-table tbody th small { margin-left: 6px; color: var(--vst-muted); }
.vst-table tr.is-zero th, .vst-table tr.is-zero td { color: var(--vst-muted); }
.vst-sources { color: var(--vst-ink2) !important; }
/* ranked bars */
.vst-rank { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 9px; }
.vst-rank-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12px; }
.vst-rank-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--vst-ink); }
.vst-rank-label small { margin-left: 6px; font-size: 11px; color: var(--vst-muted); }
.vst-rank-value { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--vst-ink); }
.vst-rank-value small { margin-left: 6px; font-weight: 400; color: var(--vst-muted); }
.vst-rank-bar { margin-top: 4px; height: 8px; }
.vst-rank-bar i { display: block; height: 100%; min-width: 2px; background: var(--vst-series); border-radius: 0 4px 4px 0; }
@media (max-width: 640px) { .vst-tile-value { font-size: 24px; } .vst-plot, .vst-x { margin-left: 30px; } }

/* Admin statistics: "most visited pages" table */
.vst-pages { min-width: 560px; }
.vst-pages .is-rank { width: 2.2rem; color: var(--vst-muted); font-variant-numeric: tabular-nums; }
.vst-pages tbody th { white-space: normal; font-weight: 600; }
.vst-pages tbody th small { display: inline-block; margin-left: 8px; font-weight: 400; color: var(--vst-muted); }
.vst-pages .is-share { width: 34%; min-width: 150px; }
.vst-share { display: flex; align-items: center; gap: 8px; }
.vst-share i { display: block; flex: none; height: 8px; min-width: 2px; max-width: calc(100% - 44px); background: var(--vst-series); border-radius: 0 4px 4px 0; }
.vst-share span { flex: none; font-variant-numeric: tabular-nums; color: var(--vst-ink2); }
