/* Spa ERP — "Lumière". Warm taupe/terracotta palette. Namespaced .se */
* { box-sizing: border-box; }
.se {
    --bg: #f4efe7; --panel: #ffffff; --panel2: #faf6ee; --line: #e6dfd3;
    --ink: #2e2a24; --muted: #8b8175; --brand: #b26a4e; --brand-ink: #9a5233; --accent: #a89c89;
    --ok: #4a7c59; --warn: #c98a3a; --danger: #b4453a;
    --shadow: 0 14px 34px -20px rgba(90,60,40,.4);
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif; color: var(--ink);
    min-height: calc(100vh - 44px);
    background: radial-gradient(900px 380px at 90% -8%, rgba(178,106,78,.08), transparent), var(--bg);
}
:root[data-demo-theme="dark"] .se {
    --bg: #1a1613; --panel: #241f1a; --panel2: #1f1a16; --line: #362f27;
    --ink: #f0ebe3; --muted: #a99e8f; --accent: #c9b79f;
}
.se h2, .se h3 { margin: 0; }
.se-topbar { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.5rem; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; flex-wrap: wrap; }
.se-brand { display: flex; align-items: center; gap: .6rem; }
.se-logo { width: 2.1rem; height: 2.1rem; border-radius: .6rem; background: linear-gradient(135deg, var(--brand), var(--brand-ink)); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.se-brand b { display: block; font-size: 1.02rem; letter-spacing: .01em; } .se-brand small { color: var(--muted); font-size: .72rem; }
.se-nav { display: flex; gap: .25rem; margin: 0 auto; flex-wrap: wrap; }
.se-navbtn { border: 0; background: transparent; color: var(--muted); padding: .5rem .85rem; border-radius: .6rem; font: 600 .85rem inherit; cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; }
.se-navbtn:hover { color: var(--ink); background: var(--panel2); } .se-navbtn.active { background: var(--brand); color: #fff; }
.se-top-actions { display: flex; align-items: center; gap: .6rem; }
.se-live { color: var(--ok); font-size: .72rem; font-weight: 800; letter-spacing: .08em; display: inline-flex; gap: .35rem; align-items: center; }
.se-live::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ok); animation: sep 1.4s infinite; }
@keyframes sep { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.se-btn { border: 0; cursor: pointer; border-radius: .6rem; padding: .55rem .95rem; font: 700 .84rem inherit; background: var(--brand); color: #fff; transition: transform .1s, box-shadow .16s; }
.se-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px var(--brand); }
.se-btn.ghost { background: var(--panel2); color: var(--ink); border: 1px solid var(--line); }
.se-view { max-width: 1220px; margin: 0 auto; padding: 1.5rem; } .se-view[hidden] { display: none !important; }
.se-h { font-size: 1.3rem; font-weight: 800; margin-bottom: .2rem; } .se-sub { color: var(--muted); font-size: .85rem; margin-bottom: 1.2rem; }

.se-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.3rem; }
@media (max-width: 780px) { .se-kpis { grid-template-columns: repeat(2, 1fr); } }
.se-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.se-kpi .ic { font-size: 1.2rem; } .se-kpi b { font-size: 1.7rem; font-weight: 800; display: block; margin: .3rem 0 .1rem; }
.se-kpi small { color: var(--muted); font-size: .76rem; } .se-kpi .dl { font-size: .72rem; font-weight: 700; color: var(--ok); }
.se-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.2rem; } @media (max-width: 900px) { .se-grid { grid-template-columns: 1fr; } }
.se-card { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.2rem; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.se-card h3 { font-size: .95rem; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; }
#se-rev { width: 100%; height: 180px; }
.se-appt { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: .86rem; }
.se-appt:last-child { border-bottom: 0; }
.se-appt .tm { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 3rem; color: var(--brand-ink); }
.se-appt .who b { display: block; } .se-appt .who small { color: var(--muted); font-size: .76rem; }
.se-appt .st { margin-left: auto; font-size: .66rem; font-weight: 800; text-transform: uppercase; padding: .12rem .5rem; border-radius: 999px; }
.se-appt .st.done { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.se-appt .st.active { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand-ink); }
.se-appt .st.upcoming { background: var(--panel2); color: var(--muted); }
.se-svc { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; font-size: .85rem; }
.se-svc .bar { flex: 1; height: 7px; background: var(--panel2); border-radius: 999px; overflow: hidden; }
.se-svc .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--brand)); }
.se-svc .ct { color: var(--muted); font-size: .78rem; min-width: 2rem; text-align: right; }

.se-staff-grid, .se-inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.se-staff { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.1rem; box-shadow: var(--shadow); }
.se-staff .sh { display: flex; align-items: center; gap: .6rem; }
.se-av { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--brand)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.se-staff b { display: block; } .se-staff .rl { color: var(--muted); font-size: .76rem; }
.se-badge { font-size: .64rem; font-weight: 800; text-transform: uppercase; padding: .12rem .5rem; border-radius: 999px; }
.se-badge.in-session { background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand-ink); }
.se-badge.free { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.se-badge.break { background: var(--panel2); color: var(--muted); }
.se-util { margin-top: .8rem; font-size: .78rem; color: var(--muted); }
.se-util .bar { height: 7px; background: var(--panel2); border-radius: 999px; overflow: hidden; margin-top: .3rem; }
.se-util .bar i { display: block; height: 100%; background: var(--brand); }
.se-inv-row { background: var(--panel); border: 1px solid var(--line); border-radius: .9rem; padding: .9rem 1rem; box-shadow: var(--shadow); }
.se-inv-row.low { border-left: 3px solid var(--danger); }
.se-inv-row b { display: block; } .se-inv-row .meta { color: var(--muted); font-size: .78rem; margin: .2rem 0 .5rem; }
.se-inv-row .lvl { height: 8px; background: var(--panel2); border-radius: 999px; overflow: hidden; }
.se-inv-row .lvl i { display: block; height: 100%; }
.se-toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: .7rem 1.1rem; border-radius: .7rem; font: 700 .86rem inherit; z-index: 200; box-shadow: var(--shadow); }
.se-toast[hidden] { display: none; }
