/* Seră — salon board (admin agenda + public demo) */
.bd-host, .pd, .bd {
	--forest: #1f3329; --forest-2: #16251d; --forest-3: #2a4234; --ivory: #f6f1e8; --linen: #ece4d6; --travertine: #dccfb9;
	--brass: #b08d57; --brass-2: #c9a874; --brass-text: #85662f; --ink: #1b211d; --soft: #64675e;
	--c-par: #2f5a45; --c-barber: #8a5a35; --c-unghii: #a5794a; --c-cosmetica: #6f8a6a; --c-gene: #6d5a78; --c-machiaj: #a05a52; --c-epilare: #7d7a70;
	font-family: "Jost", system-ui, sans-serif; color: var(--ink);
}
.bd-host { max-width: 1500px; margin-top: 16px; }
.bd__loading, .bd__empty { color: var(--soft); padding: .8rem 0; margin: 0; }
.bd { position: relative; }
.bd__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.bd__eyebrow { margin: 0; color: var(--brass-text); font-size: .85rem; letter-spacing: .06em; }
.bd__title { margin: .15rem 0 0; font-family: "Bodoni Moda", Georgia, serif; font-weight: 400; font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.1; color: var(--ink); padding: 0; }
.bd__nav { display: flex; gap: .35rem; }
.bd__nav button { font: 400 .95rem "Jost", sans-serif; min-width: 42px; height: 40px; padding: 0 .9rem; border: 1px solid #cdbfa7; background: #fff; color: var(--ink); cursor: pointer; border-radius: 4px; }
.bd__nav button:hover { border-color: var(--forest); }
.bd__nav button.is-on { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.bd__stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1.2rem; }
.bd__stat { background: #fff; border: 1px solid var(--linen); padding: .85rem 1rem; display: grid; gap: .1rem; }
.bd__stat strong { font-family: "Bodoni Moda", Georgia, serif; font-weight: 400; font-size: 1.6rem; line-height: 1.15; color: var(--forest); }
.bd__stat span { font-size: .82rem; color: var(--soft); }
.bd__closed { background: #fff; border: 1px dashed #cdbfa7; padding: 2.5rem; text-align: center; color: var(--soft); }

.bd__scroll { overflow: auto; max-height: 720px; border: 1px solid var(--linen); background: #fff; position: relative; }
.bd__grid { display: grid; grid-template-columns: 58px repeat(var(--cols), minmax(150px, 1fr)); position: relative; min-width: calc(58px + var(--cols) * 150px); }
.bd__head { position: sticky; top: 0; z-index: 3; background: var(--ivory); border-bottom: 1px solid var(--travertine); border-left: 1px solid var(--linen); display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; min-height: 62px; }
.bd__head--corner { left: 0; z-index: 4; border-left: 0; }
.bd__head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; border: 1px solid var(--brass); }
.bd__head div { display: grid; line-height: 1.2; min-width: 0; }
.bd__head strong { font-weight: 500; font-size: .95rem; }
.bd__head span { font-size: .75rem; color: var(--soft); }
.bd__head.is-off { opacity: .55; }
.bd__times { grid-column: 1; grid-row: 2; position: sticky; left: 0; z-index: 2; background: #fff; border-right: 1px solid var(--linen); }
.bd__times span { display: block; font-size: .72rem; color: var(--soft); text-align: right; padding-right: .5rem; transform: translateY(-.5em); font-variant-numeric: tabular-nums; }
.bd__col { grid-row: 2; position: relative; border-left: 1px solid var(--linen); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 33px, #f1ebe0 33px, #f1ebe0 34px); }
.bd__col.is-off { background-color: #f7f4ee; background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(0,0,0,.025) 8px 16px); }
.bd__offlabel { position: absolute; top: 1rem; left: 0; right: 0; text-align: center; font-size: .8rem; color: var(--soft); }
.bd__appt { position: absolute; left: 4px; right: 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: .35rem .5rem; overflow: hidden; text-align: left; font: inherit; cursor: pointer; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--ink); border-radius: 3px; transition: box-shadow .15s; }
.bd__appt:hover, .bd__appt:focus-visible { box-shadow: 0 6px 18px -8px rgba(0,0,0,.35); z-index: 2; outline: none; }
.bd__appt-time { font-size: .7rem; color: var(--soft); font-variant-numeric: tabular-nums; }
.bd__appt-name { font-size: .85rem; font-weight: 500; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bd__appt-svc { font-size: .75rem; color: color-mix(in srgb, var(--c) 80%, #000); line-height: 1.25; }
.bd__appt-st { margin-top: auto; font-size: .68rem; padding: .05rem .4rem; border-radius: 99px; background: rgba(255,255,255,.8); }
.bd__appt.is-short { flex-direction: row; flex-wrap: wrap; gap: 0 .4rem; align-items: baseline; }
.bd__appt.is-short .bd__appt-svc { display: none; }
.bd__appt.is-tiny { padding: 0 .45rem; flex-wrap: nowrap; align-items: center; }
.bd__appt.is-tiny .bd__appt-time, .bd__appt.is-tiny .bd__appt-st { display: none; }
.bd__appt.is-tiny .bd__appt-name { font-size: .72rem; line-height: 1; }
.bd__appt.is-past { opacity: .55; }
.bd__appt.is-now { box-shadow: 0 0 0 2px var(--brass); }
.bd__appt.st-anulata { opacity: .35; text-decoration: line-through; }
.bd__appt.st-absent { background: repeating-linear-gradient(135deg, #f8ece9 0 6px, #fff 6px 12px); border-left-color: #9b3a2c; }
.bd__appt.st-prezent .bd__appt-st { color: #2f6b4a; }
.bd__now { position: absolute; left: 58px; right: 0; height: 0; border-top: 1.5px solid #9b3a2c; z-index: 2; pointer-events: none; margin-top: 62px; }
.bd__now span { position: absolute; left: -52px; top: -.7em; background: #9b3a2c; color: #fff; font-size: .68rem; padding: 0 .3rem; border-radius: 2px; }
.cat-par { --c: var(--c-par); } .cat-barber { --c: var(--c-barber); } .cat-unghii { --c: var(--c-unghii); } .cat-cosmetica { --c: var(--c-cosmetica); } .cat-gene { --c: var(--c-gene); } .cat-machiaj { --c: var(--c-machiaj); } .cat-epilare { --c: var(--c-epilare); }
.bd__legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: .8rem 0 0; font-size: .8rem; color: var(--soft); }
.bd__legend span { display: inline-flex; align-items: center; gap: .35rem; }
.bd__legend i, .bd__svc i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); display: inline-block; }

.bd__drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(400px, 100%); background: #fff; z-index: 100000; box-shadow: -20px 0 50px -20px rgba(0,0,0,.35); padding: 2rem 1.8rem; overflow: auto; border-left: 1px solid var(--brass); }
.bd__drawer[hidden] { display: none; }
.bd__drawer h3 { font-family: "Bodoni Moda", Georgia, serif; font-weight: 400; font-size: 2rem; margin: .3rem 0 .4rem; padding: 0; color: var(--ink); }
.bd__close { position: absolute; right: 1rem; top: 1rem; width: 38px; height: 38px; border: 1px solid #cdbfa7; background: #fff; border-radius: 50%; cursor: pointer; font-size: 1.2rem; }
.bd__svc { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; }
.bd__note { margin: 0 0 1rem; padding: .7rem .9rem; background: var(--ivory); font-style: italic; }
.bd__facts { margin: 0 0 1.4rem; display: grid; gap: .1rem; }
.bd__facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--linen); }
.bd__facts dt { color: var(--soft); font-size: .88rem; }
.bd__facts dd { margin: 0; text-align: right; }
.bd__facts a { color: var(--brass-text); }
.bd__actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.bd__btn { font: 400 .88rem "Jost", sans-serif; padding: .55rem .9rem; border: 1px solid #cdbfa7; background: #fff; cursor: pointer; text-decoration: none; color: var(--ink); border-radius: 4px; }
.bd__btn:hover { border-color: var(--forest); }
.bd__btn--danger { color: #9b3a2c; border-color: #e0b7ae; }
@media (max-width: 900px) { .bd__stats { grid-template-columns: repeat(2, 1fr); } .bd__scroll { max-height: 620px; } }

/* ---------- Public demo shell ---------- */
.board-wrap { padding-bottom: clamp(4rem, 9vw, 7rem); }
.board-demo { box-shadow: 0 40px 80px -50px rgba(10, 20, 14, .55); border: 1px solid var(--brass, #b08d57); }
.pd { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 760px; background: #f8f5ef; }
.pd__side { background: var(--forest-2); color: #cfc8b8; padding: 1.6rem 1rem; display: flex; flex-direction: column; gap: 1.6rem; }
.pd__logo { width: 120px; margin: 0 .5rem; }
.pd__nav { display: grid; gap: .2rem; }
.pd__nav button { all: unset; cursor: pointer; padding: .7rem .8rem; font-size: .94rem; display: flex; align-items: center; justify-content: space-between; border-left: 2px solid transparent; }
.pd__nav button:hover { color: #fff; background: rgba(255,255,255,.04); }
.pd__nav button:focus-visible { outline: 2px solid var(--brass); }
.pd__nav button.is-on { color: #fff; border-left-color: var(--brass); background: rgba(176, 141, 87, .14); }
.pd__badge { background: var(--brass); color: var(--forest-2); font-size: .72rem; border-radius: 99px; padding: 0 .45rem; }
.pd__user { margin-top: auto; padding: 0 .5rem; font-size: .82rem; color: #8f8a7c; }
.pd__user strong { color: #e9e2d4; font-weight: 400; }
.pd__main { padding: clamp(1rem, 2.5vw, 2rem); min-width: 0; }
.pd__table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--linen); }
.pd__table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pd__table th, .pd__table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--linen); white-space: nowrap; }
.pd__table th { font-weight: 400; font-size: .78rem; letter-spacing: .06em; color: var(--brass-text); background: var(--ivory); }
.pd__mono { letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.pd__pill { font-size: .75rem; padding: .1rem .55rem; border-radius: 99px; }
.pd__pill--activ { background: #e6efe8; color: #2f6b4a; }
.pd__pill--folosit { background: #efefef; color: #6b6b6b; }
.pd__loyal { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; }
.pd__lcard { background: #fff; border: 1px solid var(--linen); padding: 1.1rem 1.2rem; }
.pd__lhead { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.pd__lhead strong { font-weight: 500; }
.pd__lhead span { font-size: .82rem; color: var(--brass-text); }
.pd__stamps { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: .8rem 0; }
.pd__stamps i { aspect-ratio: 1; border-radius: 50%; border: 1px solid #cdbfa7; }
.pd__stamps i.on { background: var(--forest); border-color: var(--forest); }
.pd__stamps i.last { border-color: var(--brass); border-width: 2px; }
.pd__stamps i.last.on { background: var(--brass); }
.pd__lcard p { margin: 0; font-size: .85rem; color: var(--soft); }
.pd__cards { display: grid; grid-template-columns: 1.2fr 1fr; gap: .8rem; }
.pd__card { background: #fff; border: 1px solid var(--linen); padding: 1.2rem 1.3rem; }
.pd__card:last-child { grid-column: 1 / -1; }
.pd__card h3 { margin: 0 0 1rem; font-size: 1rem; font-weight: 500; }
.pd__bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; height: 200px; align-items: end; }
.pd__bar { display: grid; grid-template-rows: 1fr auto auto; height: 100%; text-align: center; gap: .25rem; }
.pd__bar span { align-self: end; background: var(--travertine); min-height: 4px; }
.pd__bar.is-today span { background: var(--forest); }
.pd__bar em { font-style: normal; font-size: .78rem; color: var(--soft); }
.pd__bar b { font-weight: 400; font-size: .78rem; color: var(--ink); }
.pd__rank { margin: 0; padding-left: 1.2rem; }
.pd__rank li { padding: .45rem 0; border-bottom: 1px solid var(--linen); }
.pd__rank li span { display: inline-block; max-width: 75%; }
.pd__rank li strong { float: right; font-weight: 500; }
.pd__specs { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pd__specs li { display: grid; grid-template-columns: 32px 90px 1fr auto; align-items: center; gap: .8rem; font-size: .92rem; }
.pd__specs img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.pd__specs i { height: 8px; background: var(--linen); border-radius: 4px; overflow: hidden; }
.pd__specs i b { display: block; height: 100%; background: var(--brass); }
.pd__specs strong { font-weight: 400; font-variant-numeric: tabular-nums; }
.pd__msgs { display: grid; gap: .7rem; }
.pd__msg { background: #fff; border: 1px solid var(--linen); padding: 1rem 1.2rem; }
.pd__msg.is-new { border-left: 3px solid var(--brass); }
.pd__mhead { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pd__mhead strong { font-weight: 500; }
.pd__mhead span { font-size: .85rem; color: var(--soft); }
.pd__msg p { margin: .45rem 0 0; font-size: .95rem; }
.pd__mfoot { display: flex; gap: 1.2rem; font-size: .85rem; color: var(--brass-text); }
@media (max-width: 960px) {
	.pd { grid-template-columns: 1fr; }
	.pd__side { flex-direction: row; flex-wrap: wrap; align-items: center; padding: .9rem; gap: .8rem; }
	.pd__logo { width: 80px; }
	.pd__nav { display: flex; flex-wrap: wrap; gap: .2rem; }
	.pd__nav button { padding: .5rem .7rem; border-left: 0; border-bottom: 2px solid transparent; }
	.pd__nav button.is-on { border-bottom-color: var(--brass); }
	.pd__user { display: none; }
	.pd__cards { grid-template-columns: 1fr; }
}
