/* Website hero: drawing of the company dashboard (partials/website/hero-dashboard.blade.php). */
.hd { --ok: #10b981; --late: #f59e0b; --out: #ef4444; --away: #8b5cf6;
  background: white; color: #334155; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(10, 20, 60, 0.35);
  transform: perspective(1200px) rotateY(-7deg) rotateX(2deg); transition: transform .6s ease;
  animation: hdIn .9s cubic-bezier(.2, .8, .2, 1) both; }
.hd:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
@keyframes hdIn { from { opacity: 0; transform: perspective(1200px) rotateY(-18deg) translateY(20px); } }

.hd-top { display: flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.8rem; background: #f8fafc; border-bottom: 1px solid #eef2f7; }
.hd-dot { width: 9px; height: 9px; border-radius: 50%; background: #fca5a5; }
.hd-dot + .hd-dot { background: #fcd34d; } .hd-dot + .hd-dot + .hd-dot { background: #86efac; }
.hd-url { margin-left: 0.5rem; flex: 1; min-width: 0; font-size: 0.62rem; color: #64748b; background: white; border: 1px solid #e2e8f0; border-radius: 999px; padding: 0.2rem 0.65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-url i { color: #10b981; font-size: 0.55rem; margin-right: 0.25rem; }
.hd-live { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.6rem; font-weight: 800; color: #047857; background: #d1fae5; border-radius: 999px; padding: 0.15rem 0.5rem; }
.hd-live i { width: 6px; height: 6px; border-radius: 50%; background: #10b981; animation: hdBlink 1.4s ease-in-out infinite; }
@keyframes hdBlink { 50% { opacity: .25; } }

.hd-body { display: flex; }
.hd-nav { width: 29%; flex-shrink: 0; background: #1b263b; padding: 0.7rem 0.45rem; display: flex; flex-direction: column; gap: 2px; }
.hd-brand { display: flex; align-items: center; gap: 0.35rem; padding: 0.1rem 0.4rem 0.6rem; color: white; font-size: 0.7rem; }
.hd-brand img { border-radius: 4px; background: white; padding: 1px; }
.hd-nav > span { display: flex; align-items: center; gap: 0.45rem; padding: 0.38rem 0.45rem; border-radius: 7px; font-size: 0.6rem; font-weight: 600; color: rgba(255, 255, 255, 0.62); white-space: nowrap; }
.hd-nav > span i { width: 12px; text-align: center; font-size: 0.6rem; }
.hd-nav > span.on { background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); color: white; box-shadow: 0 4px 10px rgba(67, 97, 238, 0.4); }
.hd-nav em { margin-left: auto; font-style: normal; font-size: 0.52rem; font-weight: 800; background: #f72585; color: white; border-radius: 999px; padding: 0 0.35rem; line-height: 1.5; }

.hd-main { flex: 1; min-width: 0; padding: 0.75rem 0.85rem 0.85rem; background: #f8fafc; display: flex; flex-direction: column; gap: 0.6rem; }
.hd-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.hd-head b { display: block; font-size: 0.8rem; color: #1b263b; }
.hd-head span { font-size: 0.58rem; color: #94a3b8; font-weight: 600; }
.hd-head .hd-date { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.3rem; font-size: 0.82rem; font-weight: 700; color: var(--primary-color); background: #eef2ff; border-radius: 8px; padding: 0.2rem 0.55rem; white-space: nowrap; }
.hd-head .hd-date i { font-size: 0.72rem; }
.hd-pick { font-size: 0.58rem !important; color: #475569 !important; background: white; border: 1px solid #e2e8f0; border-radius: 7px; padding: 0.2rem 0.45rem; white-space: nowrap; }
.hd-pick i { font-size: 0.5rem; margin: 0 0.15rem; }

.hd-glance { display: flex; align-items: center; gap: 0.75rem; background: white; border-radius: 10px; padding: 0.6rem; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04); }
.hd-ring { --p: 360deg; width: 78px; height: 78px; flex-shrink: 0; border-radius: 50%; position: relative;
  background: conic-gradient(var(--ok) 0 min(var(--a), var(--p)), var(--late) 0 min(var(--b), var(--p)), var(--out) 0 min(var(--c), var(--p)), var(--away) 0 var(--p), #eef2f7 0);
  animation: hdRing 1.4s cubic-bezier(.3, .7, .2, 1) .3s both; }
@property --p { syntax: '<angle>'; inherits: false; initial-value: 360deg; }
@keyframes hdRing { from { --p: 0deg; } to { --p: 360deg; } }
.hd-ring-in { position: absolute; inset: 11px; border-radius: 50%; background: white; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hd-ring-in b { font-size: 0.95rem; color: #1b263b; line-height: 1; }
.hd-ring-in span { font-size: 0.5rem; color: #94a3b8; font-weight: 700; }
.hd-kpis { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; }
.hd-kpis div { display: grid; grid-template-columns: 20px 1fr; grid-template-rows: auto auto; column-gap: 0.35rem; align-items: center; border-radius: 8px; padding: 0.3rem 0.4rem; background: #ecfdf5; animation: hdPop .4s ease both; }
.hd-kpis div:nth-child(2) { background: #fffbeb; animation-delay: .1s; } .hd-kpis div:nth-child(3) { background: #fef2f2; animation-delay: .2s; } .hd-kpis div:nth-child(4) { background: #f5f3ff; animation-delay: .3s; }
.hd-kpis i { grid-row: span 2; width: 20px; height: 20px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; color: white; background: var(--ok); }
.hd-kpis .k-late i { background: var(--late); } .hd-kpis .k-out i { background: var(--out); } .hd-kpis .k-away i { background: var(--away); }
.hd-kpis b { font-size: 0.78rem; color: #1b263b; line-height: 1.1; }
.hd-kpis span { font-size: 0.52rem; color: #64748b; font-weight: 700; white-space: nowrap; }
@keyframes hdPop { from { opacity: 0; transform: scale(.9); } }

.hd-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0.6rem; }
.hd-box { background: white; border-radius: 10px; padding: 0.5rem 0.6rem; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04); }
.hd-box-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.35rem; }
.hd-box-head b { font-size: 0.62rem; color: #1b263b; }
.hd-box-head b i { color: var(--primary-color); margin-right: 0.2rem; }
.hd-box-head span { font-size: 0.5rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; }

/* Latest punches: the list (twice over) scrolls up one row at a time, forever */
.hd-feed-win { height: 112px; overflow: hidden; position: relative; -webkit-mask: linear-gradient(#000 80%, transparent); mask: linear-gradient(#000 80%, transparent); }
.hd-feed ul { list-style: none; margin: 0; padding: 0; animation: hdFeed 15s steps(6, end) infinite; }
@keyframes hdFeed { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.hd-feed li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 0.4rem; height: 28px; border-bottom: 1px dashed #eef2f7; }
.hd-av { width: 22px; height: 22px; border-radius: 50%; background: #e0e7ff; color: var(--primary-color); font-size: 0.48rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hd-av.b { background: #fce7f3; color: #db2777; } .hd-av.c { background: #dcfce7; color: #16a34a; } .hd-av.d { background: #fef3c7; color: #b45309; } .hd-av.e { background: #cffafe; color: #0e7490; }
.hd-who { min-width: 0; line-height: 1.15; }
.hd-who b { display: block; font-size: 0.6rem; color: #1b263b; }
.hd-who small { display: block; font-size: 0.5rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-feed time { font-size: 0.58rem; font-weight: 800; color: #047857; background: #d1fae5; border-radius: 5px; padding: 0.05rem 0.3rem; }

.hd-side { display: grid; gap: 0.6rem; align-content: start; }
.hd-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; height: 58px; align-items: end; }
.hd-bars div { display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%; justify-content: flex-end; }
.hd-bars i { width: 100%; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent-color), var(--primary-color)); height: var(--h); transform-origin: bottom; animation: hdBar .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms + .5s); }
.hd-bars i.off { background: #e2e8f0; }
.hd-bars span { font-size: 0.48rem; color: #94a3b8; font-weight: 700; }
@keyframes hdBar { from { transform: scaleY(0); } }
.hd-devs { display: flex; align-items: center; gap: 0.45rem; }
.hd-devs > i { width: 24px; height: 24px; border-radius: 7px; background: #e0e7ff; color: var(--primary-color); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.hd-devs b { display: block; font-size: 0.6rem; color: #1b263b; }
.hd-devs span { font-size: 0.52rem; color: #047857; font-weight: 700; }
.hd-pulse { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: hdPing 1.8s ease-out infinite; }
@keyframes hdPing { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); } 100% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } }

@media (max-width: 576px) {
  .hd { transform: none; }
  .hd-nav { display: none; }
  .hd-row { grid-template-columns: 1fr; }
  .hd-side { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hd, .hd *, .hd *::before { animation: none !important; transition: none !important; }
}

/* Reports rotate like scrolling the real dashboard (one slide shown; JS moves .is-on) */
.hd-slides { position: relative; height: 158px; }
.hd-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease, visibility 0s .5s; }
.hd-slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s ease; }
.hd-slide .hd-box { height: 100%; overflow: hidden; }
.hd-slide:not(.is-on) * { animation-play-state: paused; }
.hd-dots { display: flex; align-items: center; gap: 4px; margin-top: -0.15rem; }
.hd-dots-title { font-size: 0.52rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; margin-right: auto; }
.hd-dots i { width: 6px; height: 6px; border-radius: 3px; background: #cbd5e1; transition: width .3s ease, background .3s ease; }
.hd-dots i.on { width: 16px; background: var(--primary-color); }

/* widgets inside the slides (re-run their drawing each time a slide comes in) */
.hd-slide.is-on .hd-hbars em, .hd-slide.is-on .hd-stack em { animation: hdW .9s cubic-bezier(.2, .8, .2, 1) both; }
.hd-slide.is-on .hd-bars i, .hd-slide.is-on .hd-pay i { animation: hdBar .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.hd-slide.is-on .hd-list li, .hd-slide.is-on .hd-roster > div { animation: hdPop .35s ease both; }
.hd-slide.is-on .hd-list li:nth-child(2), .hd-slide.is-on .hd-roster > div:nth-child(2) { animation-delay: .08s; }
.hd-slide.is-on .hd-list li:nth-child(3), .hd-slide.is-on .hd-roster > div:nth-child(3) { animation-delay: .16s; }
.hd-slide.is-on .hd-list li:nth-child(4) { animation-delay: .24s; }
@keyframes hdW { from { width: 0; } }
.hd-hbars, .hd-stack { display: grid; gap: 0.42rem; }
.hd-hbars div, .hd-stack div { display: grid; grid-template-columns: 52px 1fr 32px; align-items: center; gap: 0.35rem; }
.hd-stack div { grid-template-columns: 44px 1fr; }
.hd-hbars span, .hd-stack span { font-size: 0.52rem; font-weight: 700; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-hbars i, .hd-stack i { height: 8px; border-radius: 4px; background: #eef2f7; overflow: hidden; display: flex; }
.hd-hbars em { display: block; height: 100%; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); }
.hd-stack em { display: block; height: 100%; width: var(--w); }
.hd-stack em.ok, .hd-keys i.ok { background: var(--ok); } .hd-stack em.late, .hd-keys i.late { background: var(--late); } .hd-stack em.out, .hd-keys i.out { background: var(--out); }
.hd-hbars b { font-size: 0.52rem; color: #1b263b; text-align: right; }
.hd-keys { display: flex; gap: 0.5rem; margin-top: 0.45rem; font-size: 0.48rem; font-weight: 700; color: #64748b; }
.hd-keys span { display: inline-flex; align-items: center; gap: 0.2rem; }
.hd-keys i { width: 7px; height: 7px; border-radius: 2px; }
.hd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.hd-list li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 0.4rem; }
.hd-list b { font-size: 0.58rem; color: #1b263b; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
.hd-list small { display: block; font-size: 0.48rem; color: #94a3b8; font-weight: 600; }
.hd-list em { font-style: normal; font-size: 0.52rem; font-weight: 800; border-radius: 5px; padding: 0.08rem 0.35rem; }
.hd-list em.late { color: #b45309; background: #fef3c7; }
.hd-list em.btn { color: white; background: var(--primary-color); }
.hd-split { display: grid; gap: 0.4rem; }
.hd-split div { border-radius: 8px; padding: 0.4rem 0.5rem; background: #ecfdf5; display: flex; align-items: center; justify-content: space-between; }
.hd-split div.v { background: #ecfeff; }
.hd-split b { font-size: 1rem; color: #047857; }
.hd-split .v b { color: #0e7490; }
.hd-split span { font-size: 0.55rem; font-weight: 700; color: #475569; }
.hd-roster { display: grid; gap: 0.35rem; }
.hd-roster > div { display: grid; grid-template-columns: 20px 1fr auto; gap: 0.4rem; align-items: center; }
.hd-roster > div > span { width: 20px; height: 20px; border-radius: 6px; color: white; font-size: 0.52rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hd-roster .s-M { background: #f59e0b; } .hd-roster .s-E { background: #3b82f6; } .hd-roster .s-N { background: #4338ca; }
.hd-roster b { font-size: 0.58rem; color: #1b263b; line-height: 1.15; }
.hd-roster small { display: block; font-size: 0.48rem; color: #94a3b8; }
.hd-roster em { font-style: normal; font-size: 0.56rem; font-weight: 800; color: #1b263b; background: #f1f5f9; border-radius: 5px; padding: 0.08rem 0.35rem; }
.hd-pay { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; height: 92px; align-items: end; }
.hd-pay div { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; gap: 1px; height: 100%; align-items: end; }
.hd-pay i { height: var(--h); border-radius: 2px 2px 0 0; transform-origin: bottom; }
.hd-pay i.g { background: #c7d2fe; } .hd-pay i.n { background: var(--primary-color); }
.hd-pay span { grid-column: span 2; font-size: 0.46rem; color: #94a3b8; font-weight: 700; text-align: center; }
.hd-paid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; }
.hd-paid div { background: #f8fafc; border-radius: 8px; padding: 0.35rem 0.45rem; }
.hd-paid span { display: block; font-size: 0.5rem; color: #64748b; font-weight: 700; }
.hd-paid b { font-size: 0.78rem; color: #1b263b; }
.hd-paid b.ok { color: #047857; } .hd-paid b.late { color: #b45309; } .hd-paid b.out { color: #dc2626; }
@media (max-width: 576px) {
  .hd-slides { height: 330px; }
}
.hd-slide > .hd-box > .hd-bars { height: 112px; }
.hd-slide > .hd-box > .hd-stack { gap: 0.7rem; margin-top: 0.3rem; }
