:root{--vvh-blue:#173f73;--vvh-muted:#667085;--vvh-line:#dce3ec;--vvh-bg:#f3f6fa}
*{box-sizing:border-box}
body{margin:0;background:var(--vvh-bg);color:#17233a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.vvh-wrap{max-width:980px;margin:18px auto;padding:0 12px}
.vvh-card{background:#fff;border:1px solid var(--vvh-line);border-radius:16px;padding:18px;margin:12px 0}
.vvh-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:center}
.vvh-head h1{margin:0 0 6px;color:var(--vvh-blue);font-size:clamp(30px,5vw,46px)}
.vvh-head p{margin:0;color:var(--vvh-muted);font-size:18px}
.vvh-back-icon{display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;border:1px solid #b8c6d8;border-radius:12px;color:var(--vvh-blue);font-size:42px;line-height:1;text-decoration:none;font-weight:700}
.vvh-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.vvh-nav a{display:flex;min-width:0;min-height:46px;align-items:center;justify-content:center;padding:9px;border:1px solid #cbd5e1;border-radius:10px;color:var(--vvh-blue);font-weight:700;text-decoration:none;text-align:center;overflow-wrap:anywhere}
.vvh-nav a.active{background:var(--vvh-blue);border-color:var(--vvh-blue);color:#fff}
.vvh-filter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end}
.vvh-filter label{display:block;color:#344054;font-weight:700}
.vvh-filter input{display:block;width:100%;min-height:48px;margin-top:6px;padding:0 12px;border:1px solid #b8c6d8;border-radius:10px;background:#fff;color:#17233a;font-size:17px}
.vvh-button{min-height:48px;padding:0 22px;border:1px solid var(--vvh-blue);border-radius:10px;background:var(--vvh-blue);color:#fff;font-size:17px;font-weight:700;cursor:pointer}
.vvh-filter-error{grid-column:1/-1;padding:10px;border-radius:9px;background:#fff1f0;color:#a61b1b}
.hidden{display:none!important}
.vvh-count{margin:0 0 14px;color:var(--vvh-blue);font-size:25px}
.vvh-list{display:grid;gap:10px}
.vvh-appointment{display:grid;grid-template-columns:130px minmax(0,1fr) auto;grid-template-areas:"when patient status" "when service status";gap:5px 14px;padding:15px;border:1px solid var(--vvh-line);border-left:7px solid var(--vvh-blue);border-radius:13px;background:#fff;min-width:0}
.vvh-when{grid-area:when;color:var(--vvh-blue);font-weight:800;line-height:1.35}
.vvh-patient{grid-area:patient;min-width:0;font-size:18px;font-weight:800;overflow-wrap:anywhere}
.vvh-service{grid-area:service;min-width:0;color:#344054;overflow-wrap:anywhere}
.vvh-status{grid-area:status;align-self:center;min-width:105px;padding:6px 10px;border-radius:16px;background:#eef2f6;text-align:center;font-size:13px;font-weight:700;overflow-wrap:anywhere}
.vvh-status.cancelled{background:#fff0ee;color:#a7352b}.vvh-status.completed{background:#e8f8f0;color:#176b45}
.vvh-empty{padding:18px 2px;color:var(--vvh-muted)}
.vvh-error{padding:12px;border-radius:9px;background:#fff1f0;color:#a61b1b}
@media(max-width:650px){
  .vvh-wrap{width:auto;margin:0;padding:10px}
  .vvh-card{padding:14px;margin:10px 0;border-radius:14px}
  .vvh-head{gap:11px}.vvh-head h1{font-size:31px}.vvh-head p{font-size:15px;line-height:1.35}
  .vvh-back-icon{width:48px;height:48px;font-size:36px}
  .vvh-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .vvh-filter{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
  .vvh-button{grid-column:1/-1;width:100%}
  .vvh-filter input{font-size:16px;padding:0 9px;text-align:center}
  .vvh-appointment{grid-template-columns:92px minmax(0,1fr);grid-template-areas:"when patient" "when service" "status status";gap:6px 10px;padding:13px 11px}
  .vvh-when{font-size:15px}.vvh-patient{font-size:17px}.vvh-status{justify-self:stretch;min-width:0}
}
@media(max-width:370px){.vvh-filter{grid-template-columns:1fr}.vvh-button,.vvh-filter-error{grid-column:1}.vvh-appointment{grid-template-columns:1fr;grid-template-areas:"when" "patient" "service" "status"}}
