/* Lumen Pass Dental front desk (desk.html, requests.html, patients.html, recall.html). */
.dshell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.dside { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 22px 14px 16px; background: #173d31; color: #d5e8de; overflow-y: auto; }
.dlogo { display: flex; align-items: center; gap: 10px; padding: 0 10px 18px; }
.dlogo svg { width: 28px; height: 28px; color: #fff; }
.dlogo span { font: 600 20px/1 var(--serif); color: #fff; display: flex; flex-direction: column; gap: 3px; }
.dlogo small { font: 500 10px/1 var(--ui); letter-spacing: .24em; color: #bfe8d4; }
.dlabel { padding: 8px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9cc2b1; }
.dnav { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-weight: 500; }
.dnav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dnav:hover { background: rgba(255,255,255,.06); color: #fff; }
.dnav[aria-current="page"] { background: rgba(191,232,212,.14); color: #bfe8d4; }
.dnav.ext { font-size: 13.5px; color: #b5d3c5; }
.dnav .badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #f2c46d; color: #3b2600; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.dside hr { border: 0; border-top: 1px solid rgba(255,255,255,.1); margin: 10px 8px; }
.dside .grow { flex: 1; }
.dopen { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 13px; font-weight: 600; }
.dopen i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.22); }
.dme { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; }
.dme img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.dme b { display: block; color: #fff; font-size: 14px; }
.dme small { font-size: 12px; color: #9cc2b1; }

.dmain { padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dtop { display: none; }
.dhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.dhead h1 { font: 600 38px/1.05 var(--serif); letter-spacing: -.01em; margin-top: 8px; }
.dk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dk div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); }
.dk dt { font-size: 12.5px; color: var(--mu); }
.dk dd { font: 600 30px/1 var(--serif); font-variant-numeric: tabular-nums; }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; }
.muted { color: var(--mu); font-size: 13px; }

.drail { display: flex; flex-direction: column; gap: 16px; }
.feed { padding: 16px; }
.mb-feed-list li { background: var(--bg); }
.mb-ico { background: var(--mint); color: var(--wil); }

/* tables */
.pcard { display: flex; flex-direction: column; gap: 12px; }
.mtools { display: flex; align-items: center; gap: 12px; }
.srch { flex: 1; }
.srch input { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); font-size: 15px; }
.srch input:focus { outline: 2px solid var(--wil); outline-offset: -1px; background: var(--s1); }
.mtbl table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mtbl th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mu); padding: 4px 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mtbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mtbl tr:last-child td { border-bottom: 0; }
.mtbl tr.fresh td { background: rgba(44,122,95,.1); }
.mtbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.mtbl .empty { text-align: center; color: var(--mu); padding: 28px; white-space: normal; }
.warn-t { color: var(--warn-tx); font-weight: 600; }
.mrow { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.mrow span { display: flex; flex-direction: column; min-width: 0; }
.mrow b { font-weight: 600; }
.mrow small { font-size: 12px; color: var(--mu); }
.mrow:hover b { text-decoration: underline; text-underline-offset: 3px; }
.mform { display: flex; flex-direction: column; gap: 14px; }
[aria-invalid="true"] { border-color: var(--bad-tx) !important; }

.dlogo svg { width: 32px; height: 32px; }
.dlogo span { font-size: 18px; }
.dside .dnav[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.legend b { font-size: 14px; }
.legend ul li { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.legend .muted { margin-top: 4px; }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.dd { display: flex; flex-direction: column; align-items: center; min-width: 62px; padding: 6px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--s1); line-height: 1.15; }
.dd span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mu); }
.dd b { font: 600 19px/1.15 var(--serif); }
.dd small { font-size: 11px; color: var(--wil); font-weight: 600; }
.dd.on { background: var(--wil); border-color: var(--wil); color: #fff; }
.dd.on span, .dd.on small { color: #d5ece1; }
.dk { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* schedule grid */
.sched { padding: 0; overflow: hidden; }
.g-head { display: grid; grid-template-columns: 64px repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--mint2); }
.g-head > div { display: flex; align-items: center; gap: 10px; padding: 12px; border-left: 1px solid var(--line); min-width: 0; }
.g-head span { display: flex; flex-direction: column; min-width: 0; }
.g-head b { font-weight: 600; white-space: nowrap; }
.g-head small { font-size: 12px; color: var(--mu); }
.g-body { position: relative; display: grid; grid-template-columns: 64px repeat(3, minmax(0, 1fr)); margin: 10px 0 14px; }
.g-hours { position: relative; }
.g-hours span { position: absolute; right: 10px; transform: translateY(-50%); font-size: 11.5px; color: var(--mu); font-weight: 600; }
.g-col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 78px); }
.lunch { position: absolute; left: 0; right: 0; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--mu); background: repeating-linear-gradient(135deg, var(--s2) 0 8px, #f7faf8 8px 16px); }
.ap { position: absolute; left: 6px; right: 6px; display: flex; flex-direction: column; gap: 2px; padding: 6px 9px; border-radius: 10px; background: var(--s1); border: 1px solid var(--line2); text-align: left; overflow: hidden; box-shadow: 0 1px 2px rgba(20,42,36,.06); }
.ap:hover { box-shadow: 0 4px 14px rgba(20,42,36,.12); z-index: 2; }
.ap-t { font-size: 11.5px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap b { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap .st { height: 20px; font-size: 11px; align-self: flex-start; }
.ap small { font-size: 11px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap.short { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 6px; padding: 3px 8px; }
.ap.short .ap-t, .ap.short small { display: none; }
.ap.s-confirmed { background: var(--mint); }
.ap.s-checkedin { background: #eaf1fc; }
.ap.s-inchair { background: #f1eafb; }
.ap.s-done { background: var(--s2); }
.ap.s-done b, .ap.s-done .ap-t { color: var(--mu); }
.ap.s-noshow { border-left-color: var(--bad-tx); opacity: .7; }
.ap.fresh, .ag.fresh { background: var(--mint2); }
.flag { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--bad-tx); color: #fff; font-size: 10px; font-weight: 800; vertical-align: 1px; }
.gap { position: absolute; left: 6px; right: 6px; display: flex; flex-direction: column; justify-content: center; padding: 4px 9px; border-radius: 10px; border: 1.5px dashed #a9cdbb; background: rgba(228,241,234,.55); color: var(--wil-d); text-align: left; overflow: hidden; }
.gap:hover { background: var(--mint); }
.gap b { font-size: 12.5px; } .gap small { font-size: 11px; color: var(--mu); }
.now { position: absolute; left: 64px; right: 0; height: 0; border-top: 2px solid #d9534f; z-index: 3; pointer-events: none; }
.now span { position: absolute; left: -62px; top: -10px; padding: 1px 6px; border-radius: 6px; background: #d9534f; color: #fff; font-size: 10.5px; font-weight: 700; }
.agenda { display: none; }
.agenda ul { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ag { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--s1); text-align: left; }
.ag.s-confirmed { border-left-color: var(--wil); } .ag.s-checkedin { border-left-color: var(--info-tx); } .ag.s-inchair { border-left-color: var(--pur-tx); } .ag.s-done { border-left-color: var(--tx); opacity: .75; }
.ag-t b { display: block; font: 600 17px/1 var(--serif); } .ag-t small { font-size: 11px; color: var(--mu); }
.ag-i { min-width: 0; display: flex; flex-direction: column; }
.ag-i b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-i small { font-size: 12px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda .empty { padding: 20px; text-align: center; color: var(--mu); }
.who { display: flex; align-items: center; gap: 10px; }
.who span { display: flex; flex-direction: column; } .who small { color: var(--mu); font-size: 12.5px; }
.alert { color: var(--bad-tx); }
.stp { display: flex; flex-wrap: wrap; gap: 6px; }
.slots { display: flex; flex-direction: column; gap: 8px; }
.slot { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.slot:has(input:checked) { background: var(--mint2); }
.slot input { accent-color: #2c7a5f; width: 18px; height: 18px; }
.slot b { display: block; } .slot small { color: var(--mu); }

/* requests */
.rqs { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rqlist { display: flex; flex-direction: column; gap: 10px; }
.rqc { padding: 16px 18px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); box-shadow: var(--sh); display: flex; flex-direction: column; gap: 10px; }
.rqc.urgent { background: color-mix(in srgb, var(--bad-tx) 7%, var(--s1)); }
.rqc.fresh { background: var(--mint2); }
.rq-top { display: flex; align-items: center; gap: 10px; }
.rq-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rq-who b { font-weight: 600; font-size: 15px; } .rq-who b small { font-weight: 500; color: var(--mu); font-size: 12.5px; }
.rq-who > small { font-size: 12.5px; color: var(--mu); }
.rq-why { font-size: 14.5px; }
.rq-kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 14px; font-size: 13px; }
.rq-kv dt { color: var(--mu); font-size: 12px; } .rq-kv dd { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.rq-log { font-size: 13px; color: var(--ink2); padding: 8px 10px; border-radius: 10px; background: var(--mint2); }
.rq-act { display: flex; flex-wrap: wrap; gap: 8px; }
.rq-go { font-weight: 600; color: var(--wil-d); text-decoration: underline; text-underline-offset: 3px; }
.rqlist .empty { padding: 26px; text-align: center; color: var(--mu); border: 1px dashed var(--line2); border-radius: 16px; }
.prow { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.prow span { display: flex; flex-direction: column; min-width: 0; }
.prow b { font-weight: 600; } .prow small { font-size: 12px; color: var(--mu); }
button.prow:hover b { text-decoration: underline; text-underline-offset: 3px; }
.mtbl .st { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.mtbl .lg { display: block; font-size: 11.5px; color: var(--mu); margin-top: 3px; }
.mtbl .acts { text-align: right; } .mtbl .acts .btn { margin-left: 6px; }
.pform { display: flex; flex-direction: column; gap: 14px; }

@media (max-width: 1280px) and (min-width: 761px) {
  .dgrid { grid-template-columns: 1fr; }
  .drail { display: grid; grid-template-columns: 1fr 1fr; }
  .mtbl .ph { display: none; }
  .rq-kv { grid-template-columns: 1fr 1fr; }
  .dhead { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .dshell { display: block; }
  .dside { width: min(300px, 84vw); }
  .dmain { padding: 0 16px 96px; gap: 12px; }
  .dtop { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; margin: 0 -16px; padding: 10px 16px; background: rgba(243,246,243,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .dtop b { font: 600 18px/1 var(--serif); }
  .dtop span { font-size: 12px; color: var(--mu); }
  .dhead { flex-direction: column; align-items: stretch; gap: 10px; }
  .dhead h1 { font-size: 28px; }
  .dhead > .btn { align-self: flex-start; }
  .dd { min-width: 0; flex: 1 1 calc(33% - 6px); }
  .dk { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dk div { padding: 12px 14px; }
  .dk dd { font-size: 22px; }
  .dgrid { display: flex; flex-direction: column; gap: 12px; }
  .dgrid .drail { order: -1; }
  .legend { display: none; }
  .grid { display: none; }
  .sched { padding: 14px; }
  .agenda { display: block; }
  .card { padding: 14px; }
  .rq-kv { grid-template-columns: 1fr 1fr; }
  .rqc { padding: 14px; }
  .mtools { flex-wrap: wrap; }
  .mtbl thead { display: none; }
  .mtbl table, .mtbl tbody, .mtbl tr, .mtbl td { display: block; width: 100%; }
  .mtbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .mtbl td { padding: 0; border: 0; white-space: normal; }
  .mtbl td:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
  .mtbl td:nth-child(2) { display: none; }
  .mtbl td:nth-child(3) { display: none; }
  .mtbl td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; font-size: 12.5px; }
  .mtbl td:nth-child(5) { grid-column: 2; grid-row: 2; text-align: right; font-size: 12.5px; color: var(--mu); }
  .mtbl td:nth-child(6) { grid-column: 1 / -1; grid-row: 3; }
  .rtbl td:nth-child(2) { display: block; grid-column: 2; grid-row: 1; text-align: right; font-size: 12.5px; }
  .rtbl td:nth-child(4) { display: none; }
  .rtbl td:nth-child(5) { grid-column: 2; grid-row: 2; text-align: right; color: inherit; }
  .rtbl td:nth-child(6) { grid-column: 1 / -1; grid-row: 3; text-align: left; }
  .rtbl .acts .btn { margin: 4px 6px 0 0; }
  .mtbl .empty { grid-column: 1 / -1; }
  .prow b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.ap .tm { display: none; }
.ap.mid .tm, .ap.short .tm { display: inline; font-weight: 500; color: var(--mu); margin-right: 5px; }
.ap.mid .ap-t, .ap.fit small { display: none; }
.ap.mid { gap: 3px; padding-top: 5px; }
@media (max-width: 760px) { .dk div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
