/* Customer dashboard (/my). Loaded after sayra.css. */
.my-page { background: var(--bg); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.my-top { background: var(--panel); border-bottom: 1px solid var(--line); padding: 12px 20px; display: flex; align-items: center; gap: 14px; }
.my-top img { height: 30px; width: auto; display: block; }
.my-biz { flex: 1; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-link { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; padding: 4px; }
.my-wrap { max-width: 860px; margin: 0 auto; padding: 22px 16px 60px; }
.my-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.my-narrow { max-width: 460px; margin: 40px auto; }
.my-card h1 { font-size: 26px; margin: 0 0 10px; }
.my-card h2 { font-size: 18px; margin: 26px 0 8px; }
.my-card h2:first-child { margin-top: 0; }
.my-full { width: 100%; justify-content: center; margin-top: 16px; }
.my-ok { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #e6f4ee; color: #0d4a33; }
.field { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 0; }
.field input, .field textarea { display: block; width: 100%; margin-top: 6px; font-weight: 400; }
.field textarea { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; background: var(--panel); resize: vertical; }
.field select { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; background: var(--panel); color: inherit; }
.opt { color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }
.my-small { font-size: 13px; margin-top: 8px; }

.my-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.my-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.my-stat b { display: block; font-size: 26px; letter-spacing: -.3px; }
.my-stat span { font-size: 13px; color: var(--muted); }
.my-meter { height: 6px; border-radius: 99px; background: var(--line); margin-top: 8px; overflow: hidden; }
.my-meter i { display: block; height: 100%; background: var(--accent); }
.my-warn { border-color: #e8b04a; background: #fff8e8; }
.my-warn .my-start { margin-top: 10px; width: 100%; }

.my-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.my-tabs button { border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); padding: 10px 14px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.my-tabs button[aria-selected=true] { color: var(--brand-ink, #002434); border-bottom-color: var(--accent); }

.my-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.my-bar input { flex: 1; }
.my-calls { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.my-call { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.my-call > button { width: 100%; text-align: left; background: none; border: 0; font: inherit; color: inherit; padding: 14px 16px; cursor: pointer; display: grid; gap: 4px; }
.my-call-top { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.my-call-top b { font-size: 16px; }
.my-call-top span { font-size: 13px; color: var(--muted); }
.my-call p { margin: 0; color: var(--ink, inherit); font-size: 15px; }
.my-tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--info-bg); color: var(--brand-ink, #002434); }
.my-tag.urgent { background: #fde8e4; color: #8a2414; }
.my-detail { padding: 0 16px 16px; }
.my-detail audio { width: 100%; margin: 4px 0 12px; }
.my-lines { display: grid; gap: 6px; max-height: 420px; overflow-y: auto; padding: 10px; border-radius: 10px; background: var(--bg); }
.my-line { font-size: 14px; line-height: 1.45; }
.my-line b { color: var(--muted); font-weight: 600; margin-right: 6px; }
.my-empty { padding: 20px 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 13px; border-radius: 999px; border: 2px solid var(--line); background: var(--panel); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed=true] { border-color: var(--accent); background: var(--info-bg); color: var(--brand-ink, #002434); }
.chip[aria-pressed=true]::before { content: "✓ "; }
.chip[aria-pressed=false] { color: var(--muted); text-decoration: line-through; }
.my-radios { display: grid; gap: 8px; margin-top: 12px; }
.my-radios label { display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; }
.my-radios input, .switch input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.switch { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 15px; cursor: pointer; }
.my-save { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 26px; position: sticky; bottom: 0; background: var(--panel); padding: 12px 0; border-top: 1px solid var(--line); }
.my-msg { font-size: 14px; }
.my-msg.bad { color: #8a2414; }
.my-msg.good { color: #0d4a33; }
.my-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.my-row:last-child { border-bottom: 0; }
.my-row p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .my-card { padding: 16px; } .my-tabs button { padding: 10px 10px; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid var(--accent); white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--accent-ink, #fff); }
.btn-primary:hover:not(:disabled) { filter: brightness(.92); }
.btn-line { background: var(--panel); color: var(--accent); }
.switch input, .my-radios input { appearance: auto; -webkit-appearance: auto; padding: 0; border-radius: 4px; }
.field textarea, .field input { font-weight: 400; }
.my-stat b { font-size: 24px; }
@media (max-width: 560px) {
  .my-stats { grid-template-columns: 1fr 1fr; }
  .my-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .my-stat b { font-size: 21px; }
  .my-row .btn { width: 100%; }
}
.my-confirm { margin-bottom: 18px; border-color: var(--accent); }
.my-confirm ul { margin: 8px 0 0; padding-left: 20px; }
.my-ended { color: var(--muted); font-style: italic; border-top: 1px dashed var(--line); padding-top: 6px; }
.rm-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.rm-grid .chip { cursor: pointer; }
.rm-cal { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 14px; }
.my-upgrade { border: 2px solid var(--accent); border-radius: 12px; padding: 12px 14px !important; margin: 8px 0; background: var(--info-bg, #eaf5f6); }
/* sayra.css hides .switch inputs for its toggle style; on the dashboard they are plain checkboxes */
.my-card .switch input { position: static; opacity: 1; width: 18px; height: 18px; pointer-events: auto; clip: auto; }
.my-call-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
@media (max-width: 560px) { .my-call-actions .btn { flex: 1 1 100%; } }
.my-help { padding: 14px 0 0; }
.my-help details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-top: 8px; background: var(--panel); }
.my-help summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.my-help details p { margin: 8px 0 6px; color: var(--muted); font-size: 14px; }
.my-help details a { font-size: 14px; font-weight: 600; color: var(--accent); }
.my-learn { display: flex; gap: 8px; margin: 8px 0 4px; flex-wrap: wrap; }
.my-learn input { flex: 1 1 200px; }
#learn-site-msg:empty { display: none; }

/* calls as a to-do list */
.my-filters { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.my-filters .chip[aria-pressed=false] { text-decoration: none; color: var(--ink, inherit); }
.my-filters .chip[aria-pressed=true]::before { content: none; }
.my-count:not(:empty) { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: #fde8e4; color: #8a2414; font-size: 12px; font-weight: 700; text-align: center; }
.my-tag.done { background: #e6f4ee; color: #0d4a33; }
.my-call.is-done > button p { color: var(--muted); }
.my-handled { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.my-handled .my-ok { margin: 0; padding: 8px 12px; }
.my-stat-btn { text-align: left; font: inherit; color: inherit; cursor: pointer; }
.my-stat-btn:hover { border-color: var(--accent); }
@media (max-width: 560px) { .my-handled .btn { flex: 1 1 40%; } }

/* tabs fit on a phone: scroll sideways rather than wrap */
.my-tabs { overflow-x: auto; scrollbar-width: none; }
.my-tabs::-webkit-scrollbar { display: none; }
.my-tabs button { white-space: nowrap; flex: none; }

/* closed / holiday */
.my-closed-banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; padding: 14px 16px; border-radius: 14px; border: 2px solid #e8b04a; background: #fff8e8; }
.my-closed-banner b { display: block; font-size: 17px; }
.my-closed-banner span { font-size: 14px; color: #5b4a1d; }
.my-closed-more { margin-top: 6px; }
.my-closed-more .btn { margin-top: 12px; }
.field input[type=date] { min-height: 44px; }
#closed-card, #hear { margin-bottom: 14px; }

/* what callers hear */
.my-quote { font-size: 16px; line-height: 1.5; margin: 0 0 12px; padding: 12px 14px; border-left: 4px solid var(--accent); background: var(--bg); border-radius: 0 10px 10px 0; }

/* hours rows (same as signup) */
.my-hours .hrow { display: grid; grid-template-columns: 90px 1fr auto 1fr auto; gap: 8px; align-items: center; padding: 6px 0; }
.my-hours .hrow b { font-size: 14px; }
.my-hours .hrow span { font-size: 14px; color: var(--muted); }
.my-hours .hrow select { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: var(--panel); font: inherit; color: inherit; width: 100%; }
.my-hours .hrow.off select, .my-hours .hrow.off span { opacity: .35; pointer-events: none; }
.my-hours .closed { font-size: 14px; display: flex; gap: 6px; align-items: center; white-space: nowrap; cursor: pointer; }
.my-hours .closed input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
@media (max-width: 480px) { .my-hours .hrow { grid-template-columns: 1fr auto 1fr auto; } .my-hours .hrow b { grid-column: 1 / -1; } }

/* insights */
.my-win { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #e6f4ee; color: #0d4a33; font-weight: 600; }
.my-chart { margin-bottom: 14px; }
.my-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.my-bars li { display: grid; grid-template-columns: 44px 1fr 28px; gap: 10px; align-items: center; font-size: 14px; }
.my-bar-label { color: var(--muted); }
.my-bar-track { height: 14px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.my-bar-track i { display: block; height: 100%; min-width: 2px; border-radius: 99px; background: var(--accent); }
.my-bar-n { text-align: right; font-weight: 600; }
.my-reasons { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.my-reasons li { padding-left: 4px; }
.my-reasons li span { margin-right: 8px; }
.my-reasons li b { color: var(--muted); font-weight: 600; }
#insights > .my-card:last-child { margin-bottom: 0; }
.my-stat-num b { white-space: nowrap; font-size: 20px; padding-top: 3px; }
@media (max-width: 560px) { .my-stat-num b { font-size: 18px; } }
.my-stat-btn { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; width: 100%; }
