.doctor-mobile-profile{max-width:980px;margin:0 auto;padding:18px;display:grid;gap:16px}.doctor-profile-hero{display:flex;gap:14px;align-items:center;padding:18px;border:1px solid rgba(148,163,184,.22);border-radius:24px;background:linear-gradient(135deg,#fff,#f8fbff);box-shadow:0 16px 40px rgba(15,23,42,.08)}.doctor-profile-avatar{width:58px;height:58px;border-radius:20px;background:#eef7ff;color:#0f6ca8;display:grid;place-items:center;flex:none}.doctor-profile-avatar svg{width:30px;height:30px}.doctor-profile-hero small{display:block;color:#64748b;font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:11px}.doctor-profile-hero h1{margin:2px 0 4px;font-size:clamp(24px,4vw,38px);line-height:1.05;color:#0f172a}.doctor-profile-hero p{margin:0;color:#64748b;font-size:14px}.doctor-profile-filter{display:flex;align-items:end;gap:12px;padding:12px;border:1px solid rgba(148,163,184,.2);border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.05);flex-wrap:wrap}.doctor-profile-filter label{display:grid;gap:5px;min-width:190px;flex:1}.doctor-profile-filter label span{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:#64748b}.doctor-profile-filter select,.doctor-profile-filter input[type=date]{height:42px;border:1px solid #d8e0ea;border-radius:14px;background:#fff;color:#0f172a;padding:0 12px;font-weight:700}.doctor-profile-date-actions{display:flex;align-items:center;gap:8px}.doctor-profile-date-actions a{height:42px;min-width:42px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;color:#0f172a;text-decoration:none;font-weight:800}.doctor-profile-date-actions a.is-active,.doctor-profile-date-actions a:hover{background:#eef7ff;border-color:#bfdbfe;color:#075985}.doctor-profile-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.doctor-profile-summary article{padding:14px;border-radius:18px;border:1px solid #e8eef6;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.04)}.doctor-profile-summary small{display:block;color:#64748b;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.doctor-profile-summary strong{font-size:26px;color:#0f172a}.doctor-profile-empty{display:grid;place-items:center;text-align:center;gap:8px;padding:28px;border:1px dashed #cbd5e1;border-radius:22px;background:#fff;color:#64748b}.doctor-profile-empty svg{width:34px;height:34px;color:#0f6ca8}.doctor-profile-empty strong{color:#0f172a}.doctor-appointment-list{display:grid;gap:12px}.doctor-appointment-card{display:grid;grid-template-columns:84px 1fr auto;gap:14px;align-items:start;padding:14px;border:1px solid #e5edf6;border-radius:22px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.06);position:relative;overflow:hidden}.doctor-appointment-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:#3b82f6}.doctor-appointment-card.status-cancelled{opacity:.72}.doctor-appointment-card.status-cancelled:before{background:#ef4444}.doctor-appointment-card.status-completed:before{background:#16a34a}.doctor-appointment-card.status-in_progress:before{background:#f59e0b}.doctor-appointment-time{display:grid;gap:3px;justify-items:center;padding:10px 6px;border-radius:16px;background:#f8fafc}.doctor-appointment-time strong{font-size:22px;color:#0f172a;line-height:1}.doctor-appointment-time span{font-size:11px;color:#64748b;font-weight:700}.doctor-appointment-main{min-width:0}.doctor-appointment-title{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.doctor-appointment-title strong,.doctor-appointment-title a{font-size:17px;font-weight:850;color:#0f172a;text-decoration:none}.doctor-appointment-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:7px;color:#64748b;font-size:12px}.doctor-appointment-meta span{display:inline-flex;align-items:center;gap:5px}.doctor-appointment-meta svg{width:15px;height:15px}.doctor-appointment-service,.doctor-appointment-note{margin:8px 0 0;color:#334155;font-size:13px}.doctor-appointment-note{color:#64748b}.doctor-cancel-box{min-width:170px}.doctor-cancel-box summary{height:38px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;border-radius:13px;background:#fff1f2;color:#be123c;border:1px solid #fecdd3;font-weight:850;cursor:pointer;list-style:none}.doctor-cancel-box summary::-webkit-details-marker{display:none}.doctor-cancel-box form{margin-top:8px;padding:10px;border:1px solid #ffe4e6;border-radius:16px;background:#fff7f8;display:grid;gap:8px}.doctor-cancel-box input{height:36px;border:1px solid #fecdd3;border-radius:12px;padding:0 10px;background:#fff}.doctor-cancel-box button{height:38px;border:0;border-radius:12px;background:#be123c;color:#fff;font-weight:850;display:inline-flex;gap:7px;align-items:center;justify-content:center}.doctor-cancel-box button svg{width:16px;height:16px}@media(max-width:760px){.doctor-mobile-profile{padding:12px}.doctor-profile-hero{border-radius:20px;padding:15px}.doctor-profile-avatar{width:50px;height:50px;border-radius:17px}.doctor-profile-filter{align-items:stretch}.doctor-profile-filter label{min-width:100%;width:100%}.doctor-profile-date-actions{width:100%;justify-content:space-between}.doctor-profile-date-actions a{flex:1}.doctor-profile-summary{grid-template-columns:repeat(3,1fr)}.doctor-appointment-card{grid-template-columns:1fr;gap:10px;border-radius:20px}.doctor-appointment-time{display:flex;justify-content:space-between;align-items:center}.doctor-cancel-box{min-width:0}.doctor-cancel-box summary{width:100%}.doctor-cancel-box form{width:100%}}@media(max-width:420px){.doctor-profile-summary article{padding:11px}.doctor-profile-summary strong{font-size:21px}.doctor-appointment-title{align-items:flex-start}.doctor-appointment-title .badge{width:100%;justify-content:center}}

/* v407 — doctor-only mobile transfer */
.doctor-card-actions{display:grid;gap:8px;min-width:190px}.doctor-card-actions details{min-width:0}.doctor-transfer-box summary{height:38px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:13px;background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe;font-weight:850;cursor:pointer;list-style:none}.doctor-transfer-box summary::-webkit-details-marker{display:none}.doctor-transfer-box summary svg{width:16px;height:16px}.doctor-transfer-box form{margin-top:8px;padding:10px;border:1px solid #dbeafe;border-radius:16px;background:#f8fbff;display:grid;gap:8px}.doctor-transfer-box label{display:grid;gap:5px;margin:0}.doctor-transfer-box label span{font-size:10px;font-weight:850;letter-spacing:.07em;text-transform:uppercase;color:#64748b}.doctor-transfer-box select,.doctor-transfer-box input{height:36px;border:1px solid #cfe0f6;border-radius:12px;padding:0 10px;background:#fff;color:#0f172a;font-weight:700}.doctor-transfer-box button{height:38px;border:0;border-radius:12px;background:#2563eb;color:#fff;font-weight:850;display:inline-flex;gap:7px;align-items:center;justify-content:center}.doctor-transfer-box button svg{width:16px;height:16px}.doctor-cancel-box summary{width:100%}@media(max-width:760px){.doctor-card-actions{width:100%;min-width:0;grid-template-columns:1fr 1fr}.doctor-transfer-box summary{width:100%}.doctor-transfer-box form{width:100%}.doctor-card-actions details[open]{grid-column:1/-1}}@media(max-width:420px){.doctor-card-actions{grid-template-columns:1fr}}

/* v2 - cleaner mobile appointment profile */
body.app-body .doctor-profile-modern{max-width:1040px;padding:18px;gap:14px}
body.app-body .doctor-profile-hero-modern{background:linear-gradient(135deg,#0f172a,#17345f 58%,#0f6ca8);border:0;color:#fff;box-shadow:0 20px 50px rgba(15,23,42,.18);align-items:flex-start}
body.app-body .doctor-profile-hero-modern .doctor-profile-avatar{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.15)}
body.app-body .doctor-profile-hero-modern small,body.app-body .doctor-profile-hero-modern p{color:rgba(255,255,255,.76)}
body.app-body .doctor-profile-hero-modern h1{color:#fff;font-size:clamp(25px,4vw,36px);margin-top:3px}
body.app-body .doctor-profile-doctor-strip{display:inline-flex;margin-top:9px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);font-size:12px;font-weight:800;color:#fff}
body.app-body .doctor-date-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.app-body .doctor-date-pill{min-height:70px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;border:1px solid #e2e8f0;border-radius:22px;background:#fff;color:#0f172a;text-decoration:none;box-shadow:0 10px 26px rgba(15,23,42,.06);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease}
body.app-body .doctor-date-pill span{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#64748b}
body.app-body .doctor-date-pill strong{font-size:21px;line-height:1;color:#0f172a}
body.app-body .doctor-date-pill:hover{transform:translateY(-1px);border-color:#bfdbfe;box-shadow:0 16px 34px rgba(37,99,235,.12)}
body.app-body .doctor-date-pill.is-active{background:linear-gradient(135deg,#eaf4ff,#fff);border-color:#93c5fd;box-shadow:0 18px 38px rgba(37,99,235,.16)}
body.app-body .doctor-date-pill.is-active span{color:#075985}
body.app-body .doctor-profile-filter-modern{padding:12px 14px;border-radius:20px;background:#f8fafc;box-shadow:none}
body.app-body .doctor-profile-summary-modern{grid-template-columns:repeat(2,minmax(0,1fr))}
body.app-body .doctor-profile-summary-modern article{padding:16px 18px;border-radius:22px;background:linear-gradient(180deg,#fff,#f8fbff)}
body.app-body .doctor-profile-summary-modern article span{display:block;margin-top:2px;color:#64748b;font-size:12px;font-weight:800}
body.app-body .doctor-appointment-list-modern{gap:11px}
body.app-body .doctor-appointment-card-modern{grid-template-columns:92px minmax(0,1fr) auto;border-radius:24px;border-color:#e6edf7;box-shadow:0 14px 34px rgba(15,23,42,.07);padding:15px;background:linear-gradient(180deg,#fff,#fbfdff)}
body.app-body .doctor-appointment-card-modern:before{width:6px;background:#0f6ca8}
body.app-body .doctor-appointment-time-modern{background:#eef7ff;border:1px solid #dbeafe;border-radius:18px;color:#075985;align-self:stretch;align-content:center}
body.app-body .doctor-appointment-time-modern strong{font-size:25px;color:#075985}
body.app-body .doctor-appointment-title-modern a,body.app-body .doctor-appointment-title-modern strong{font-size:18px;font-weight:900}
body.app-body .doctor-appointment-meta-modern{margin-top:8px;gap:8px}
body.app-body .doctor-appointment-meta-modern span{padding:6px 8px;border-radius:999px;background:#f1f5f9;color:#334155;font-weight:750}
body.app-body .doctor-card-actions-modern{display:flex;flex-direction:column;gap:8px;min-width:168px;align-items:stretch}
body.app-body .doctor-card-actions-modern details summary{width:100%;height:38px;border-radius:14px;font-weight:900}
body.app-body .doctor-action-box form{box-shadow:0 12px 30px rgba(15,23,42,.08)}
body.app-body .doctor-profile-empty-modern{border-style:solid;background:linear-gradient(180deg,#fff,#f8fbff)}
@media(max-width:760px){
 body.app-body .doctor-profile-modern{padding:12px}.doctor-date-menu{gap:8px}.doctor-date-pill{min-height:64px;border-radius:18px}.doctor-date-pill strong{font-size:19px}
 body.app-body .doctor-profile-summary-modern{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.app-body .doctor-appointment-card-modern{grid-template-columns:1fr;padding:13px;border-radius:21px}
 body.app-body .doctor-appointment-time-modern{display:flex;justify-content:space-between;align-items:center;align-content:initial;padding:10px 12px}
 body.app-body .doctor-card-actions-modern{min-width:0;width:100%}
}
@media(max-width:420px){body.app-body .doctor-date-pill span{font-size:10px}.doctor-date-pill strong{font-size:17px}}

/* v3 — doctor-only appointments: compact professional header context */
body.app-body[data-active-menu="doctor-profile"] .topbar-title-block.medibox-only-topbar{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:8px;
    align-items:start;
    min-height:0;
}
body.app-body[data-active-menu="doctor-profile"] .doctor-topbar-context{
    min-width:0;
    max-width:760px;
}
body.app-body[data-active-menu="doctor-profile"] .doctor-topbar-context-main{
    display:flex;
    align-items:center;
    gap:11px;
    padding:10px 12px;
    border:1px solid #e2e8f0;
    border-radius:16px;
    background:linear-gradient(180deg,#fff,#f8fbff);
    box-shadow:0 8px 22px rgba(15,23,42,.05);
}
body.app-body[data-active-menu="doctor-profile"] .doctor-topbar-context-icon{
    width:38px;
    height:38px;
    flex:0 0 38px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:#eef7ff;
    color:#0f6ca8;
}
body.app-body[data-active-menu="doctor-profile"] .doctor-topbar-context-icon svg{width:20px;height:20px}
body.app-body[data-active-menu="doctor-profile"] .doctor-topbar-context-copy{min-width:0;display:grid;gap:1px}
body.app-body[data-active-menu="doctor-profile"] .doctor-topbar-context-copy small{
    color:#64748b;
    font-size:10px;
    line-height:1.2;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.08em;
}
body.app-body[data-active-menu="doctor-profile"] .doctor-topbar-context-copy strong{
    min-width:0;
    color:#0f172a;
    font-size:15px;
    line-height:1.25;
    font-weight:900;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
body.app-body[data-active-menu="doctor-profile"] .doctor-topbar-context-copy span{
    color:#64748b;
    font-size:12px;
    line-height:1.35;
}
body.app-body .doctor-profile-compact{padding-top:10px}

@media(max-width:760px){
    body.app-body[data-active-menu="doctor-profile"] .topbar-title-block.medibox-only-topbar{gap:7px}
    body.app-body[data-active-menu="doctor-profile"] .topbar-medibox-title{
        font-size:14px !important;
        line-height:1.25;
        white-space:normal;
    }
    body.app-body[data-active-menu="doctor-profile"] .doctor-topbar-context-main{
        gap:9px;
        padding:9px 10px;
        border-radius:14px;
    }
    body.app-body[data-active-menu="doctor-profile"] .doctor-topbar-context-icon{
        width:34px;
        height:34px;
        flex-basis:34px;
        border-radius:11px;
    }
    body.app-body[data-active-menu="doctor-profile"] .doctor-topbar-context-copy strong{font-size:14px}
    body.app-body[data-active-menu="doctor-profile"] .doctor-topbar-context-copy span{font-size:11px}
    body.app-body .doctor-profile-compact{padding-top:8px}
}
@media(max-width:420px){
    body.app-body[data-active-menu="doctor-profile"] .doctor-topbar-context-copy span{font-size:10.5px}
    body.app-body[data-active-menu="doctor-profile"] .doctor-topbar-context-main{align-items:flex-start}
}


/* v3 — simpler mobile doctor appointments layout */
body.app-body .doctor-appointments-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 2px 2px}
body.app-body .doctor-appointments-head small{display:block;color:#64748b;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
body.app-body .doctor-appointments-head strong{display:block;margin-top:2px;color:#0f172a;font-size:20px;line-height:1.1}
body.app-body .doctor-appointments-head>span{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border-radius:999px;background:#eff6ff;color:#075985;border:1px solid #dbeafe;font-size:12px;font-weight:800;white-space:nowrap}
body.app-body .doctor-profile-compact .doctor-date-menu{gap:8px}
body.app-body .doctor-profile-compact .doctor-date-pill{min-height:60px;padding:8px 6px;border-radius:18px;box-shadow:0 8px 22px rgba(15,23,42,.05)}
body.app-body .doctor-profile-compact .doctor-date-pill span{font-size:11px;letter-spacing:.07em}
body.app-body .doctor-profile-compact .doctor-date-pill strong{font-size:18px}
body.app-body .doctor-profile-compact .doctor-profile-filter-modern{padding:10px 12px;border-radius:18px}
body.app-body .doctor-profile-compact .doctor-profile-filter-modern select{height:40px}
body.app-body .doctor-profile-compact .doctor-appointment-list-modern{gap:10px}
body.app-body .doctor-profile-compact .doctor-appointment-card-modern{grid-template-columns:84px minmax(0,1fr) auto;gap:12px;padding:13px 14px;border-radius:20px;box-shadow:0 10px 24px rgba(15,23,42,.06)}
body.app-body .doctor-profile-compact .doctor-appointment-time-modern{padding:10px 7px;border-radius:16px}
body.app-body .doctor-profile-compact .doctor-appointment-time-modern strong{font-size:22px}
body.app-body .doctor-profile-compact .doctor-appointment-time-modern span{font-size:10px}
body.app-body .doctor-profile-compact .doctor-appointment-title-modern a,body.app-body .doctor-profile-compact .doctor-appointment-title-modern strong{font-size:16px}
body.app-body .doctor-profile-compact .doctor-appointment-meta-modern{gap:6px;margin-top:7px}
body.app-body .doctor-profile-compact .doctor-appointment-meta-modern span{padding:5px 8px;font-size:11px;font-weight:700}
body.app-body .doctor-profile-compact .doctor-appointment-service{margin-top:7px;font-size:12px;font-weight:700;color:#334155}
body.app-body .doctor-profile-compact .doctor-appointment-note{margin-top:5px;font-size:12px;line-height:1.45}
body.app-body .doctor-profile-compact .doctor-card-actions-modern{min-width:154px}
body.app-body .doctor-profile-only-topbar .doctor-topbar-context{display:none}
body.app-body .doctor-profile-only-topbar .doctor-topbar-context-main{display:flex;align-items:flex-start;gap:10px}
body.app-body .doctor-profile-only-topbar .doctor-topbar-context-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:grid;place-items:center;background:#eef7ff;color:#0f6ca8}
body.app-body .doctor-profile-only-topbar .doctor-topbar-context-icon svg{width:18px;height:18px}
body.app-body .doctor-profile-only-topbar .doctor-topbar-context-copy{display:grid;gap:1px;min-width:0}
body.app-body .doctor-profile-only-topbar .doctor-topbar-context-label{margin:0;color:#64748b;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
body.app-body .doctor-profile-only-topbar .doctor-topbar-context-copy strong{margin:0;color:#0f172a;font-size:13px;font-weight:800;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
@media(max-width:760px){
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;min-height:auto}
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .medibox-custom-topbar-logo{display:none}
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .global-patient-search,body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .topbar-clinic-context,body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .module-topbar-title{display:none !important}
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .topbar-title-block{display:block;min-width:0;flex:1 1 auto}
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .doctor-topbar-context{display:block;min-width:0}
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .top-actions{margin-left:0;gap:8px}
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .top-actions .icon-action-primary{display:none}
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .notification-trigger{width:40px;height:40px;border-radius:12px}
 body.app-body .doctor-appointments-head{padding-top:2px}
 body.app-body .doctor-appointments-head strong{font-size:17px}
 body.app-body .doctor-appointments-head>span{min-height:30px;padding:0 10px;font-size:11px}
 body.app-body .doctor-profile-compact .doctor-date-menu{gap:7px}
 body.app-body .doctor-profile-compact .doctor-date-pill{min-height:56px;padding:7px 4px;border-radius:16px;box-shadow:none}
 body.app-body .doctor-profile-compact .doctor-date-pill strong{font-size:16px}
 body.app-body .doctor-profile-compact .doctor-profile-filter-modern{padding:10px}
 body.app-body .doctor-profile-compact .doctor-appointment-card-modern{grid-template-columns:1fr;gap:10px;padding:12px;border-radius:18px}
 body.app-body .doctor-profile-compact .doctor-appointment-time-modern{display:flex;justify-content:space-between;align-items:center;padding:9px 10px;border-radius:14px}
 body.app-body .doctor-profile-compact .doctor-appointment-time-modern strong{font-size:20px}
 body.app-body .doctor-profile-compact .doctor-appointment-title-modern{align-items:flex-start;gap:8px}
 body.app-body .doctor-profile-compact .doctor-appointment-title-modern .badge{margin-left:auto}
 body.app-body .doctor-profile-compact .doctor-appointment-meta-modern span{font-size:10px}
 body.app-body .doctor-profile-compact .doctor-card-actions-modern{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0;width:100%}
 body.app-body .doctor-profile-compact .doctor-card-actions-modern details[open]{grid-column:1/-1}
}
@media(max-width:420px){
 body.app-body .doctor-profile-only-topbar .doctor-topbar-context-icon{display:none}
 body.app-body .doctor-profile-only-topbar .doctor-topbar-context-copy strong{font-size:12px}
 body.app-body .doctor-appointments-head{align-items:flex-start}
 body.app-body .doctor-appointments-head>span{font-size:10px}
 body.app-body .doctor-profile-compact .doctor-date-pill span{font-size:10px}
 body.app-body .doctor-profile-compact .doctor-date-pill strong{font-size:15px}
 body.app-body .doctor-profile-compact .doctor-appointment-title-modern .badge{width:100%;justify-content:center;margin-left:0}
 body.app-body .doctor-profile-compact .doctor-card-actions-modern{grid-template-columns:1fr}
}


/* v4 — mobile-only simplified doctor schedule */
body.app-body .doctor-patient-phone{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:#f8fafc;color:#0f172a;text-decoration:none;font-size:12px;font-weight:800;border:1px solid #e2e8f0}
body.app-body .doctor-patient-phone svg{width:14px;height:14px;color:#0f6ca8}
body.app-body .doctor-icon-action{width:40px!important;height:40px!important;padding:0!important;border-radius:12px!important;display:grid!important;place-items:center!important}
body.app-body .doctor-icon-action svg{width:18px!important;height:18px!important}
@media(max-width:760px){
 body.app-body[data-active-menu="doctor-profile"] .content{padding:10px 10px 22px}
 body.app-body .doctor-profile-compact{padding:0;gap:10px}
 body.app-body .doctor-profile-compact .doctor-date-menu{position:sticky;top:61px;z-index:12;background:#f8fafc;padding:8px 0 6px;margin:0}
 body.app-body .doctor-profile-compact .doctor-date-pill{min-height:50px;border-radius:14px;padding:6px 3px;background:#fff}
 body.app-body .doctor-profile-compact .doctor-date-pill span{font-size:9px}
 body.app-body .doctor-profile-compact .doctor-date-pill strong{font-size:14px}
 body.app-body .doctor-profile-compact .doctor-profile-filter-modern{margin:0;padding:8px;border-radius:14px}
 body.app-body .doctor-profile-compact .doctor-appointment-list-modern{gap:8px}
 body.app-body .doctor-profile-compact .doctor-appointment-card-modern{grid-template-columns:68px minmax(0,1fr) auto;gap:10px;padding:10px 10px 10px 12px;border-radius:16px;align-items:center}
 body.app-body .doctor-profile-compact .doctor-appointment-card-modern:before{width:4px}
 body.app-body .doctor-profile-compact .doctor-appointment-time-modern{display:grid;justify-items:center;align-self:stretch;justify-content:center;padding:8px 5px;border-radius:12px}
 body.app-body .doctor-profile-compact .doctor-appointment-time-modern strong{font-size:18px}
 body.app-body .doctor-profile-compact .doctor-appointment-time-modern span{font-size:9px}
 body.app-body .doctor-profile-compact .doctor-appointment-title-modern{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center}
 body.app-body .doctor-profile-compact .doctor-appointment-title-modern a,body.app-body .doctor-profile-compact .doctor-appointment-title-modern strong{font-size:15px;line-height:1.15}
 body.app-body .doctor-profile-compact .doctor-appointment-title-modern .badge{width:auto;margin:0;padding:4px 7px;font-size:9px}
 body.app-body .doctor-profile-compact .doctor-appointment-meta-modern{margin-top:6px}
 body.app-body .doctor-profile-compact .doctor-patient-phone{padding:5px 8px;font-size:11px}
 body.app-body .doctor-profile-compact .doctor-appointment-service{margin-top:5px;font-size:11px}
 body.app-body .doctor-profile-compact .doctor-appointment-note{display:none}
 body.app-body .doctor-profile-compact .doctor-card-actions-modern{display:flex;flex-direction:column;gap:6px;width:auto;min-width:auto}
 body.app-body .doctor-profile-compact .doctor-card-actions-modern details{width:40px}
 body.app-body .doctor-profile-compact .doctor-card-actions-modern details[open]{position:static;width:100%;grid-column:auto}
 body.app-body .doctor-profile-compact .doctor-card-actions-modern details[open] form{position:absolute;left:10px;right:10px;z-index:20;margin-top:6px}
 body.app-body .doctor-profile-empty-modern{padding:20px 14px;border-radius:16px}
}
@media(max-width:420px){
 body.app-body .doctor-profile-compact .doctor-appointment-card-modern{grid-template-columns:62px minmax(0,1fr) auto;gap:8px;padding:9px 9px 9px 11px}
 body.app-body .doctor-profile-compact .doctor-appointment-title-modern{grid-template-columns:1fr}
 body.app-body .doctor-profile-compact .doctor-appointment-title-modern .badge{justify-self:start}
 body.app-body .doctor-icon-action{width:36px!important;height:36px!important;border-radius:10px!important}
 body.app-body .doctor-profile-compact .doctor-card-actions-modern details{width:36px}
}


/* v4 — doctor-only mobile header: clinic + doctor + notifications only */
@media(max-width:760px){
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar{
   display:flex !important;
   align-items:center !important;
   flex-wrap:nowrap !important;
   gap:10px !important;
   min-height:62px !important;
   padding:9px 12px !important;
 }
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar > .mobile-menu,
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar > .topbar-brand-logo,
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar > .global-patient-search,
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar > .topbar-clinic-context,
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar > .topbar-practitioner-switch,
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .module-topbar-title,
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .top-actions > :not(.topbar-notifications){display:none !important}
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .topbar-title-block{
   display:block !important;
   flex:1 1 auto !important;
   min-width:0 !important;
   margin:0 !important;
 }
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .doctor-topbar-context{
   display:block !important;
   min-width:0 !important;
 }
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .doctor-topbar-context-copy{
   display:grid !important;
   gap:2px !important;
   min-width:0 !important;
 }
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .doctor-topbar-clinic-name{
   display:block !important;
   max-width:100% !important;
   overflow:hidden !important;
   text-overflow:ellipsis !important;
   white-space:nowrap !important;
   color:#0f172a !important;
   font-size:14px !important;
   font-weight:800 !important;
   line-height:1.15 !important;
 }
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .doctor-topbar-doctor-name{
   display:block !important;
   max-width:100% !important;
   overflow:hidden !important;
   text-overflow:ellipsis !important;
   white-space:nowrap !important;
   color:#64748b !important;
   font-size:12px !important;
   font-weight:700 !important;
   line-height:1.15 !important;
 }
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .top-actions{
   display:flex !important;
   flex:0 0 auto !important;
   margin:0 0 0 auto !important;
   padding:0 !important;
   align-items:center !important;
 }
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .topbar-notifications{display:block !important;margin:0 !important}
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .notification-trigger{
   width:42px !important;
   height:42px !important;
   min-width:42px !important;
   border-radius:12px !important;
   display:grid !important;
   place-items:center !important;
 }
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .notification-popover{
   right:0 !important;
   left:auto !important;
   width:min(92vw,360px) !important;
 }
 body.app-body[data-active-menu="doctor-profile"] .mobile-bottom-nav,
 body.app-body[data-active-menu="doctor-profile"] .mobile-more-sheet,
 body.app-body[data-active-menu="doctor-profile"] .mobile-sheet-backdrop{display:none !important}
}
@media(max-width:390px){
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar{gap:8px !important;padding:8px 10px !important}
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .doctor-topbar-clinic-name{font-size:13px !important}
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .doctor-topbar-doctor-name{font-size:11px !important}
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .notification-trigger{width:40px !important;height:40px !important;min-width:40px !important}
}

/* v6 — wider transfer panel on mobile */
@media(max-width:760px){
 body.app-body .doctor-profile-compact .doctor-appointment-card-modern{overflow:visible !important}
 body.app-body .doctor-profile-compact .doctor-card-actions-modern{width:100% !important;min-width:0 !important;grid-column:1/-1 !important;overflow:visible !important}
 body.app-body .doctor-profile-compact .doctor-transfer-box{width:100% !important;min-width:0 !important;overflow:visible !important}
 body.app-body .doctor-profile-compact .doctor-transfer-box[open]{grid-column:1/-1 !important;width:100% !important}
 body.app-body .doctor-profile-compact .doctor-transfer-box form{width:100% !important;max-width:none !important;min-width:0 !important;padding:12px !important;box-sizing:border-box !important;overflow:visible !important}
 body.app-body .doctor-profile-compact .doctor-transfer-box label{width:100% !important;min-width:0 !important}
 body.app-body .doctor-profile-compact .doctor-transfer-box select{display:block !important;width:100% !important;max-width:none !important;min-width:0 !important;height:44px !important;padding:0 36px 0 12px !important;box-sizing:border-box !important;font-size:14px !important;text-overflow:ellipsis !important}
 body.app-body .doctor-profile-compact .doctor-transfer-box button{width:100% !important;min-height:42px !important}
}


/* v7 — logout icon next to notification for doctor-only mobile header */
body.app-body .doctor-mobile-logout{display:none;margin:0;padding:0}
body.app-body .doctor-mobile-logout-button{border:1px solid #e2e8f0;background:#fff;color:#64748b;display:grid;place-items:center;cursor:pointer}
body.app-body .doctor-mobile-logout-button svg{width:18px;height:18px}
@media(max-width:760px){
 body.app-body[data-active-menu="doctor-profile"] .doctor-profile-only-topbar .top-actions{
   flex:0 0 auto !important;
   width:auto !important;
   min-width:0 !important;
   height:40px !important;
   display:flex !important;
   align-items:center !important;
   justify-content:flex-end !important;
   gap:6px !important;
 }
 body.app-body[data-active-menu="doctor-profile"] .doctor-mobile-logout{
   display:block !important;
   flex:0 0 40px !important;
   width:40px !important;
   height:40px !important;
 }
 body.app-body[data-active-menu="doctor-profile"] .doctor-mobile-logout-button{
   width:40px !important;
   height:40px !important;
   min-width:40px !important;
   padding:0 !important;
   border-radius:11px !important;
   box-shadow:none !important;
 }
 body.app-body[data-active-menu="doctor-profile"] .doctor-mobile-logout-button:active{
   background:#f8fafc !important;
 }
}


/* v8 — appointment actions beside patient name */
body.app-body .doctor-patient-title-line{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
body.app-body .doctor-patient-title-line>a,body.app-body .doctor-patient-title-line>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.app-body .doctor-inline-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto;margin-left:2px}
body.app-body .doctor-inline-actions details{position:relative;min-width:0;margin:0}
body.app-body .doctor-inline-actions .doctor-icon-action{width:34px!important;height:34px!important;min-width:34px!important;padding:0!important;border-radius:10px!important;display:grid!important;place-items:center!important}
body.app-body .doctor-inline-actions .doctor-icon-action svg{width:16px;height:16px}
body.app-body .doctor-inline-actions details form{position:absolute;z-index:20;top:40px;right:0;width:min(320px,calc(100vw - 40px));max-width:320px;box-sizing:border-box}
body.app-body .doctor-inline-actions .doctor-transfer-box select{width:100%;max-width:none;min-width:0}
body.app-body .doctor-profile-compact .doctor-appointment-title-modern>a,
body.app-body .doctor-profile-compact .doctor-appointment-title-modern>strong,
body.app-body .doctor-profile-compact .doctor-patient-title-line>a,
body.app-body .doctor-profile-compact .doctor-patient-title-line>strong{font-size:15px!important;font-weight:850!important}
@media(max-width:760px){
 body.app-body .doctor-profile-compact .doctor-appointment-title-modern{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:7px 8px}
 body.app-body .doctor-profile-compact .doctor-patient-title-line{grid-column:1/-1;width:100%;gap:7px}
 body.app-body .doctor-profile-compact .doctor-patient-title-line>a,
 body.app-body .doctor-profile-compact .doctor-patient-title-line>strong{font-size:14px!important;line-height:1.2}
 body.app-body .doctor-profile-compact .doctor-appointment-title-modern>.badge{grid-column:1/-1;width:max-content!important;max-width:100%;margin:0!important;padding:4px 8px!important;font-size:10px!important}
 body.app-body .doctor-profile-compact .doctor-inline-actions{margin-left:auto;gap:5px}
 body.app-body .doctor-profile-compact .doctor-inline-actions .doctor-icon-action{width:32px!important;height:32px!important;min-width:32px!important;border-radius:9px!important}
 body.app-body .doctor-profile-compact .doctor-inline-actions details[open]{position:static!important}
 body.app-body .doctor-profile-compact .doctor-inline-actions details form{position:absolute!important;left:12px!important;right:12px!important;top:auto!important;margin-top:7px!important;width:auto!important;max-width:none!important;z-index:30!important}
 body.app-body .doctor-profile-compact .doctor-appointment-card-modern{position:relative!important;padding-bottom:12px}
}


/* Mobile action refinement — Transfer + Cancel always in one row */
@media(max-width:760px){
 body.app-body .doctor-profile-compact .doctor-card-actions-modern,
 body.app-body .doctor-card-actions,
 body.app-body .doctor-inline-actions{
   display:grid!important;
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
   gap:7px!important;
   width:auto!important;
   min-width:0!important;
   align-items:center!important;
 }
 body.app-body .doctor-card-actions-modern details,
 body.app-body .doctor-card-actions details,
 body.app-body .doctor-inline-actions details{
   min-width:0!important;
 }
 body.app-body .doctor-card-actions-modern details>summary,
 body.app-body .doctor-card-actions details>summary,
 body.app-body .doctor-inline-actions details>summary{
   width:100%!important;
 }
 body.app-body .doctor-card-actions-modern details[open],
 body.app-body .doctor-card-actions details[open],
 body.app-body .doctor-inline-actions details[open]{
   grid-column:1/-1!important;
 }
}
@media(max-width:420px){
 body.app-body .doctor-profile-compact .doctor-card-actions-modern,
 body.app-body .doctor-card-actions,
 body.app-body .doctor-inline-actions{
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
}
\n\n/* Mobile date labels + clean inline transfer panel */\n@media(max-width:760px){\n  body.app-body .doctor-profile-compact .doctor-date-pill strong{\n    min-height:16px!important;\n    display:flex!important;\n    align-items:center!important;\n    justify-content:center!important;\n    font-size:13px!important;\n    letter-spacing:.04em!important;\n  }\n  body.app-body .doctor-profile-compact .doctor-inline-actions{\n    display:flex!important;\n    flex-wrap:nowrap!important;\n    align-items:center!important;\n    gap:6px!important;\n  }\n  body.app-body .doctor-profile-compact .doctor-inline-actions details{\n    position:static!important;\n  }\n  body.app-body .doctor-profile-compact .doctor-transfer-box[open]{\n    width:auto!important;\n  }\n  body.app-body .doctor-profile-compact .doctor-transfer-box form{\n    position:static!important;\n    width:100%!important;\n    max-width:none!important;\n    margin:10px 0 0!important;\n    padding:12px!important;\n    border:1px solid #dbe7f5!important;\n    border-radius:14px!important;\n    background:#f8fbff!important;\n    box-shadow:none!important;\n    gap:10px!important;\n  }\n  body.app-body .doctor-profile-compact .doctor-transfer-box[open] form{\n    display:grid!important;\n  }\n  body.app-body .doctor-profile-compact .doctor-patient-title-line:has(.doctor-transfer-box[open]){\n    flex-wrap:wrap!important;\n  }\n  body.app-body .doctor-profile-compact .doctor-patient-title-line:has(.doctor-transfer-box[open]) .doctor-inline-actions{\n    width:100%!important;\n    display:grid!important;\n    grid-template-columns:1fr auto!important;\n  }\n  body.app-body .doctor-profile-compact .doctor-patient-title-line:has(.doctor-transfer-box[open]) .doctor-transfer-box{\n    grid-column:1/-1!important;\n    order:3!important;\n  }\n  body.app-body .doctor-profile-compact .doctor-patient-title-line:has(.doctor-transfer-box[open]) .doctor-cancel-box{\n    grid-column:2!important;\n    grid-row:1!important;\n  }\n  body.app-body .doctor-profile-compact .doctor-transfer-panel-title{\n    display:grid!important;\n    gap:2px!important;\n  }\n  body.app-body .doctor-profile-compact .doctor-transfer-panel-title strong{\n    font-size:12px!important;\n    color:#17324d!important;\n  }\n  body.app-body .doctor-profile-compact .doctor-transfer-panel-title span{\n    font-size:10px!important;\n    line-height:1.3!important;\n    color:#748399!important;\n  }\n  body.app-body .doctor-profile-compact .doctor-transfer-fields{\n    display:grid!important;\n    grid-template-columns:1fr!important;\n    gap:9px!important;\n  }\n  body.app-body .doctor-profile-compact .doctor-transfer-fields label{\n    display:grid!important;\n    gap:4px!important;\n  }\n  body.app-body .doctor-profile-compact .doctor-transfer-fields label>span{\n    font-size:9px!important;\n    font-weight:800!important;\n    letter-spacing:.05em!important;\n    text-transform:uppercase!important;\n    color:#64748b!important;\n  }\n  body.app-body .doctor-profile-compact .doctor-transfer-fields select,\n  body.app-body .doctor-profile-compact .doctor-transfer-fields input{\n    width:100%!important;\n    height:40px!important;\n    box-sizing:border-box!important;\n    border:1px solid #cfdceb!important;\n    border-radius:10px!important;\n    background:#fff!important;\n    padding:0 10px!important;\n    font-size:12px!important;\n  }\n  body.app-body .doctor-profile-compact .doctor-transfer-box form>button{\n    width:100%!important;\n    min-height:40px!important;\n    border-radius:10px!important;\n    font-size:11px!important;\n  }\n}\n

/* v13 — actions truly below appointment content + stronger selected date */
@media(max-width:760px){

  /* Clearly highlight selected day (Sot / Nesër / Pasnesër). */
  body.app-body .doctor-profile-compact .doctor-date-pill.is-active{
    background:#eaf5ff!important;
    border-color:#63b3ff!important;
    box-shadow:0 6px 16px rgba(37,99,235,.10)!important;
  }
  body.app-body .doctor-profile-compact .doctor-date-pill.is-active span{
    color:#0369a1!important;
    font-weight:800!important;
  }
  body.app-body .doctor-profile-compact .doctor-date-pill.is-active strong{
    color:#0f172a!important;
    font-weight:850!important;
  }

  body.app-body .doctor-profile-compact .doctor-appointment-card-modern{
    position:relative!important;
    overflow:visible!important;
  }

  /* Closed Transfer/Cancel icons stay compact in the same row, right aligned. */
  body.app-body .doctor-profile-compact .doctor-card-actions-below{
    display:flex!important;
    flex-wrap:nowrap!important;
    justify-content:flex-end!important;
    align-items:center!important;
    gap:6px!important;
    width:100%!important;
    margin:6px 0 0!important;
    padding:0!important;
  }

  body.app-body .doctor-profile-compact .doctor-card-actions-below details{
    width:auto!important;
    min-width:0!important;
    margin:0!important;
  }

  body.app-body .doctor-profile-compact .doctor-card-actions-below .doctor-icon-action{
    width:32px!important;
    min-width:32px!important;
    height:32px!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border-radius:9px!important;
  }

  /* When one action opens, it becomes a full-width block BELOW the appointment. */
  body.app-body .doctor-profile-compact .doctor-card-actions-below:has(details[open]){
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
    margin-top:8px!important;
    padding-top:8px!important;
    border-top:1px solid #e6edf5!important;
  }

  body.app-body .doctor-profile-compact .doctor-card-actions-below details[open]{
    width:100%!important;
    display:grid!important;
    gap:7px!important;
  }

  body.app-body .doctor-profile-compact .doctor-card-actions-below details[open] > summary{
    justify-self:end!important;
  }

  body.app-body .doctor-profile-compact .doctor-card-actions-below details[open] > form{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:10px!important;
    box-sizing:border-box!important;
    display:grid!important;
    gap:8px!important;
    border:1px solid #d7e3ef!important;
    border-radius:12px!important;
    background:#f8fbff!important;
    box-shadow:none!important;
    overflow:visible!important;
  }

  body.app-body .doctor-profile-compact .doctor-transfer-panel-title{
    display:grid!important;
    gap:2px!important;
    margin:0!important;
  }

  body.app-body .doctor-profile-compact .doctor-transfer-panel-title strong{
    font-size:10px!important;
    line-height:1.15!important;
    font-weight:850!important;
    letter-spacing:.04em!important;
    color:#17324d!important;
  }

  body.app-body .doctor-profile-compact .doctor-transfer-panel-title span{
    font-size:9px!important;
    line-height:1.3!important;
    color:#7b8798!important;
  }

  body.app-body .doctor-profile-compact .doctor-transfer-fields{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
  }

  body.app-body .doctor-profile-compact .doctor-transfer-fields label{
    display:grid!important;
    gap:3px!important;
    margin:0!important;
  }

  body.app-body .doctor-profile-compact .doctor-transfer-fields label > span{
    font-size:8px!important;
    line-height:1!important;
    font-weight:850!important;
    letter-spacing:.06em!important;
    color:#64748b!important;
  }

  body.app-body .doctor-profile-compact .doctor-transfer-fields select,
  body.app-body .doctor-profile-compact .doctor-transfer-fields input{
    width:100%!important;
    height:36px!important;
    min-height:36px!important;
    box-sizing:border-box!important;
    border:1px solid #cbd8e6!important;
    border-radius:9px!important;
    background:#fff!important;
    padding:0 10px!important;
    font-size:11px!important;
    color:#223047!important;
  }

  body.app-body .doctor-profile-compact .doctor-transfer-box form > button{
    width:100%!important;
    height:36px!important;
    min-height:36px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    border-radius:9px!important;
    font-size:10px!important;
    font-weight:850!important;
  }
}


/* v14 — stronger selected day card highlight */
@media(max-width:760px){
  body.app-body .doctor-profile-compact .doctor-date-pill.is-active{
    background:linear-gradient(180deg,#dff1ff 0%,#cfe9ff 100%)!important;
    border:2px solid #2f9df4!important;
    box-shadow:0 8px 22px rgba(47,157,244,.24)!important;
    transform:translateY(-1px)!important;
  }
  body.app-body .doctor-profile-compact .doctor-date-pill.is-active span{
    color:#0369a1!important;
    font-weight:900!important;
    letter-spacing:.08em!important;
  }
  body.app-body .doctor-profile-compact .doctor-date-pill.is-active strong{
    color:#0b3a66!important;
    font-weight:900!important;
    font-size:18px!important;
  }
}


/* v15 — refined selected day card */
@media(max-width:760px){
  body.app-body .doctor-profile-compact .doctor-date-pill.is-active{
    background:#f3f9ff!important;
    border:1.5px solid #7abcf2!important;
    box-shadow:0 4px 12px rgba(47,157,244,.10)!important;
    transform:none!important;
  }
  body.app-body .doctor-profile-compact .doctor-date-pill.is-active span{
    color:#126b9f!important;
    font-weight:600!important;
    letter-spacing:.04em!important;
  }
  body.app-body .doctor-profile-compact .doctor-date-pill.is-active strong{
    color:#0f2742!important;
    font-weight:600!important;
    font-size:16px!important;
  }
}


/* v16 — PZU + logged doctor on one mobile header line */
@media(max-width:760px){
  body.app-body .doctor-profile-only-topbar .doctor-topbar-context-copy{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:6px!important;
    min-width:0!important;
    white-space:nowrap!important;
  }
  body.app-body .doctor-profile-only-topbar .doctor-topbar-clinic-name{
    flex:0 1 auto!important;
    min-width:0!important;
    max-width:46vw!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  body.app-body .doctor-profile-only-topbar .doctor-topbar-context-separator{
    flex:0 0 auto!important;
    color:#98a2b3!important;
    font-size:11px!important;
  }
  body.app-body .doctor-profile-only-topbar .doctor-topbar-doctor-name{
    flex:0 1 auto!important;
    min-width:0!important;
    max-width:34vw!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:10px!important;
    font-weight:600!important;
    color:#667085!important;
  }
}


/* v17 — mobile doctor quick appointment */
@media(max-width:760px){
  body.app-body .doctor-profile-only-topbar .doctor-mobile-add-appointment{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    display:grid!important;
    place-items:center!important;
    border:1px solid #dbe5ef!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#1769aa!important;
    box-shadow:none!important;
    cursor:pointer!important;
  }
  body.app-body .doctor-profile-only-topbar .doctor-mobile-add-appointment svg{
    width:17px!important;
    height:17px!important;
  }
}

.doctor-mobile-appointment-dialog{
  width:min(470px,calc(100vw - 24px))!important;
  max-width:470px!important;
  padding:0!important;
  border:0!important;
  border-radius:18px!important;
  background:#fff!important;
  overflow:hidden!important;
  box-shadow:0 24px 70px rgba(15,23,42,.22)!important;
}
.doctor-mobile-appointment-dialog::backdrop{
  background:rgba(15,23,42,.46)!important;
  backdrop-filter:blur(3px);
}
.doctor-mobile-appointment-form{
  display:flex;
  flex-direction:column;
  max-height:min(760px,92vh);
}
.doctor-mobile-appointment-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid #edf1f5;
}
.doctor-mobile-appointment-head>div{
  display:grid;
  gap:2px;
}
.doctor-mobile-appointment-head small{
  font-size:8px;
  font-weight:800;
  letter-spacing:.12em;
  color:#8b98a9;
}
.doctor-mobile-appointment-head strong{
  font-size:15px;
  font-weight:700;
  color:#172033;
}
.doctor-mobile-appointment-body{
  display:grid;
  gap:12px;
  padding:14px 16px;
  overflow:auto;
}
.doctor-mobile-appointment-section{
  display:grid;
  gap:7px;
}
.doctor-mobile-appointment-section>label,
.doctor-mobile-date-time-grid label{
  display:grid;
  gap:5px;
}
.doctor-mobile-field-label,
.doctor-mobile-appointment-section label>span,
.doctor-mobile-date-time-grid label>span{
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
  color:#667085;
}
.doctor-mobile-patient-search,
.doctor-mobile-input-icon{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:0 11px;
  border:1px solid #d7e1eb;
  border-radius:10px;
  background:#fff;
}
.doctor-mobile-patient-search svg,
.doctor-mobile-input-icon svg{
  width:15px;
  height:15px;
  flex:0 0 auto;
  color:#7d8ca0;
}
.doctor-mobile-patient-search input,
.doctor-mobile-input-icon input{
  flex:1 1 auto;
  width:100%;
  min-width:0;
  height:38px;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  font-size:12px;
}
.doctor-mobile-patient-results{
  max-height:220px;
  overflow:auto;
  border:1px solid #e0e7ef;
  border-radius:10px;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.08);
}
.doctor-mobile-patient-result{
  width:100%;
  display:grid;
  gap:2px;
  padding:9px 11px;
  border:0;
  border-bottom:1px solid #eef2f6;
  background:#fff;
  text-align:left;
  cursor:pointer;
}
.doctor-mobile-patient-result:last-child{border-bottom:0}
.doctor-mobile-patient-result strong{
  font-size:11px;
  font-weight:650;
  color:#1d2939;
}
.doctor-mobile-patient-result small{
  font-size:9px;
  color:#7b8798;
}
.doctor-mobile-patient-empty{
  padding:12px;
  text-align:center;
  font-size:10px;
  color:#7b8798;
}
.doctor-mobile-selected-patient{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:42px;
  padding:8px 10px;
  border:1px solid #b9d9f4;
  border-radius:10px;
  background:#f5faff;
}
.doctor-mobile-selected-patient>div{
  display:grid;
  gap:2px;
}
.doctor-mobile-selected-patient strong{
  font-size:11px;
  color:#17324d;
}
.doctor-mobile-selected-patient small{
  font-size:9px;
  color:#667085;
}
.doctor-mobile-selected-patient button{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:8px;
  background:#eaf3fb;
  color:#47647d;
}
.doctor-mobile-selected-patient button svg{
  width:13px;
  height:13px;
}
.doctor-mobile-date-time-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:9px;
}
.doctor-mobile-date-time-grid input[type="time"]{
  width:100%;
  height:40px;
  box-sizing:border-box;
  padding:0 10px;
  border:1px solid #d7e1eb;
  border-radius:10px;
  background:#fff;
  font-size:12px;
}
.doctor-mobile-appointment-section textarea{
  width:100%;
  min-height:72px;
  resize:vertical;
  box-sizing:border-box;
  padding:10px;
  border:1px solid #d7e1eb;
  border-radius:10px;
  background:#fff;
  font:inherit;
  font-size:11px;
}
.doctor-mobile-appointment-footer{
  display:grid;
  grid-template-columns:.7fr 1.3fr;
  gap:9px;
  padding:12px 16px 16px;
  border-top:1px solid #edf1f5;
  background:#fff;
}
.doctor-mobile-appointment-footer button{
  min-height:40px;
  border-radius:10px;
  font-size:11px;
  font-weight:700;
}
.doctor-mobile-appointment-cancel{
  border:1px solid #d7e1eb;
  background:#fff;
  color:#5d6b7c;
}
.doctor-mobile-appointment-save{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:0;
  background:#1769aa;
  color:#fff;
}
.doctor-mobile-appointment-save:disabled{
  opacity:.48;
  cursor:not-allowed;
}
.doctor-mobile-appointment-save svg{
  width:15px;
  height:15px;
}


/* v18 — project-style calendar inside mobile doctor new appointment */
.doctor-mobile-calendar-section{
    gap:9px!important;
}
.doctor-mobile-calendar-section-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:10px;
}
.doctor-mobile-calendar-section-head>div:first-child{
    display:grid;
    gap:2px;
}
.doctor-mobile-calendar-section-head span{
    font-size:8px;
    font-weight:800;
    letter-spacing:.08em;
    color:#667085;
}
.doctor-mobile-calendar-section-head strong{
    font-size:11px;
    font-weight:650;
    color:#1d2939;
}
.doctor-mobile-slot-legend{
    display:flex;
    align-items:center;
    gap:8px;
    white-space:nowrap;
}
.doctor-mobile-slot-legend span{
    display:flex;
    align-items:center;
    gap:4px;
    font-size:8px;
    font-weight:600;
    letter-spacing:0;
    color:#7b8798;
}
.doctor-mobile-slot-legend i{
    width:7px;
    height:7px;
    border-radius:50%;
    display:inline-block;
}
.doctor-mobile-slot-legend .is-free{background:#8cc9f3}
.doctor-mobile-slot-legend .is-busy{background:#cbd5e1}

.doctor-mobile-calendar-scroll{
    max-height:300px;
    overflow:auto;
    overscroll-behavior:contain;
    border:1px solid #dfe7f0;
    border-radius:12px;
    background:#fff;
    scrollbar-width:thin;
}
.doctor-mobile-project-calendar{
    min-width:560px!important;
    grid-template-columns:52px repeat(5,minmax(94px,1fr))!important;
    border:0!important;
    box-shadow:none!important;
}
.doctor-mobile-project-calendar .calendar-corner,
.doctor-mobile-project-calendar .calendar-day-header{
    position:sticky!important;
    top:0!important;
    z-index:5!important;
}
.doctor-mobile-project-calendar .calendar-corner{
    left:0!important;
    z-index:7!important;
    min-height:44px!important;
    display:grid!important;
    place-items:center!important;
    background:#f7f9fc!important;
    border-right:1px solid #e4eaf1!important;
    border-bottom:1px solid #e4eaf1!important;
    font-size:8px!important;
    font-weight:800!important;
    color:#7b8798!important;
}
.doctor-mobile-project-calendar .calendar-day-header{
    min-height:44px!important;
    padding:5px 4px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:1px!important;
    background:#fbfcfe!important;
    border-bottom:1px solid #e4eaf1!important;
}
.doctor-mobile-project-calendar .calendar-day-header strong{
    font-size:9px!important;
    font-weight:700!important;
    color:#344054!important;
}
.doctor-mobile-project-calendar .calendar-day-header span{
    font-size:9px!important;
    color:#667085!important;
}
.doctor-mobile-project-calendar .calendar-day-header.is-today{
    background:#f0f8ff!important;
}
.doctor-mobile-project-calendar .calendar-day-header.is-today strong{
    color:#1769aa!important;
}
.doctor-mobile-project-calendar .calendar-time-label{
    position:sticky!important;
    left:0!important;
    z-index:4!important;
    min-height:38px!important;
    display:grid!important;
    place-items:center!important;
    background:#fafbfd!important;
    border-right:1px solid #e4eaf1!important;
    border-bottom:1px solid #edf1f5!important;
}
.doctor-mobile-project-calendar .calendar-time-label strong{
    font-size:9px!important;
    font-weight:650!important;
    color:#667085!important;
}
.doctor-mobile-project-calendar .doctor-mobile-calendar-slot{
    appearance:none!important;
    position:relative!important;
    width:100%!important;
    min-width:0!important;
    min-height:38px!important;
    height:38px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-right:1px solid #edf1f5!important;
    border-bottom:1px solid #edf1f5!important;
    border-radius:0!important;
    background:#fff!important;
    cursor:pointer!important;
    display:grid!important;
    place-items:center!important;
}
.doctor-mobile-project-calendar .doctor-mobile-calendar-slot.is-today{
    background:#fbfdff!important;
}
.doctor-mobile-project-calendar .doctor-mobile-calendar-slot:not(:disabled):hover{
    background:#f2f8fd!important;
}
.doctor-mobile-project-calendar .doctor-mobile-calendar-slot .slot-add-symbol{
    width:22px!important;
    height:22px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:7px!important;
    background:#edf7ff!important;
    color:#1769aa!important;
    font-size:15px!important;
    line-height:1!important;
    font-weight:500!important;
    opacity:.9!important;
}
.doctor-mobile-project-calendar .doctor-mobile-calendar-slot.is-selected{
    background:#eaf5ff!important;
    box-shadow:inset 0 0 0 2px #5aa9e6!important;
    z-index:2!important;
}
.doctor-mobile-project-calendar .doctor-mobile-calendar-slot.is-selected .slot-add-symbol{
    background:#1769aa!important;
    color:#fff!important;
}
.doctor-mobile-project-calendar .doctor-mobile-calendar-slot.is-busy{
    background:#f3f5f8!important;
    cursor:not-allowed!important;
}
.doctor-mobile-project-calendar .doctor-mobile-calendar-slot.is-past,
.doctor-mobile-project-calendar .doctor-mobile-calendar-slot.is-closed-day{
    background:#f8f9fb!important;
    opacity:.55!important;
    cursor:not-allowed!important;
}
.doctor-mobile-busy-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#b8c3d1;
}
.doctor-mobile-selected-slot{
    display:flex;
    align-items:center;
    gap:9px;
    min-height:42px;
    padding:8px 10px;
    border:1px solid #b9d9f4;
    border-radius:10px;
    background:#f5faff;
}
.doctor-mobile-selected-slot[hidden]{
    display:none!important;
}
.doctor-mobile-selected-slot>svg{
    width:17px;
    height:17px;
    color:#1769aa;
    flex:0 0 auto;
}
.doctor-mobile-selected-slot>div{
    display:grid;
    gap:1px;
}
.doctor-mobile-selected-slot small{
    font-size:7px;
    font-weight:800;
    letter-spacing:.08em;
    color:#7b8798;
}
.doctor-mobile-selected-slot strong{
    font-size:11px;
    font-weight:700;
    color:#17324d;
}

@media(max-width:520px){
    .doctor-mobile-appointment-dialog{
        width:calc(100vw - 12px)!important;
        max-width:none!important;
        border-radius:14px!important;
    }
    .doctor-mobile-appointment-body{
        padding:12px!important;
    }
    .doctor-mobile-calendar-scroll{
        max-height:280px!important;
    }
}


/* v19 — busy slots label + compact patient dropdown */
.doctor-mobile-project-calendar .doctor-mobile-calendar-slot.is-busy{
    background:#f1f3f6!important;
    color:#8a94a3!important;
}
.doctor-mobile-busy-label{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:34px!important;
    height:18px!important;
    padding:0 5px!important;
    border-radius:6px!important;
    background:#e2e7ed!important;
    color:#667085!important;
    font-size:7px!important;
    line-height:1!important;
    font-weight:800!important;
    letter-spacing:.05em!important;
    white-space:nowrap!important;
}

.doctor-mobile-patient-search-wrap{
    position:relative!important;
    z-index:20!important;
}
.doctor-mobile-patient-results{
    position:absolute!important;
    left:0!important;
    right:0!important;
    top:calc(100% + 5px)!important;
    z-index:60!important;
    max-height:180px!important;
    overflow:auto!important;
    margin:0!important;
    border:1px solid #dce4ed!important;
    border-radius:10px!important;
    background:#fff!important;
    box-shadow:0 12px 30px rgba(15,23,42,.14)!important;
}
.doctor-mobile-patient-result{
    min-height:42px!important;
    padding:7px 9px!important;
}
.doctor-mobile-patient-result strong{
    font-size:10px!important;
    line-height:1.2!important;
    font-weight:650!important;
}
.doctor-mobile-patient-result small{
    margin-top:1px!important;
    font-size:8px!important;
    line-height:1.2!important;
}
.doctor-mobile-patient-empty{
    padding:9px!important;
    font-size:9px!important;
}

/* prevent mobile browser zoom on focus and keep form compact */
@media(max-width:760px){
    .doctor-mobile-patient-search input,
    .doctor-mobile-input-icon input,
    .doctor-mobile-date-time-grid input[type="time"],
    .doctor-mobile-appointment-section textarea{
        font-size:16px!important;
    }

    .doctor-mobile-appointment-dialog{
        max-height:92dvh!important;
        overflow:hidden!important;
    }

    .doctor-mobile-appointment-form{
        max-height:92dvh!important;
        overflow:hidden!important;
    }

    .doctor-mobile-appointment-body{
        overflow-y:auto!important;
        overflow-x:hidden!important;
        -webkit-overflow-scrolling:touch!important;
    }

    .doctor-mobile-patient-search{
        min-height:38px!important;
        height:38px!important;
        padding:0 9px!important;
    }

    .doctor-mobile-patient-search input{
        height:36px!important;
        min-height:36px!important;
        line-height:36px!important;
        padding:0!important;
    }

    .doctor-mobile-selected-patient{
        min-height:38px!important;
        padding:6px 8px!important;
    }

    .doctor-mobile-selected-patient strong{
        font-size:10px!important;
    }

    .doctor-mobile-selected-patient small{
        font-size:8px!important;
    }
}


/* v20 — prevent mobile page zoom on patient search/focus */
@media(max-width:760px){
  html,
  body{
    touch-action:manipulation!important;
    -webkit-text-size-adjust:100%!important;
    text-size-adjust:100%!important;
  }

  .doctor-mobile-appointment-dialog,
  .doctor-mobile-appointment-dialog input,
  .doctor-mobile-appointment-dialog select,
  .doctor-mobile-appointment-dialog textarea,
  .doctor-mobile-patient-search input{
    font-size:16px!important;
  }

  .doctor-mobile-appointment-dialog input,
  .doctor-mobile-appointment-dialog select,
  .doctor-mobile-appointment-dialog textarea{
    transform:none!important;
    zoom:1!important;
  }

  .doctor-mobile-patient-search input:focus,
  .doctor-mobile-appointment-dialog input:focus,
  .doctor-mobile-appointment-dialog select:focus,
  .doctor-mobile-appointment-dialog textarea:focus{
    font-size:16px!important;
  }
}


/* Profile avatar + modern logout icon */
.sidebar-footer .medibox-profile-card{
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    min-height:50px!important;
    padding:7px 8px!important;
    border-radius:10px!important;
}
.sidebar-footer .medibox-profile-avatar{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:50%!important;
    background:#eef5fb!important;
    border:1px solid #d8e4ef!important;
    color:#1769aa!important;
    font-size:0!important;
}
.sidebar-footer .medibox-profile-avatar svg{
    width:17px!important;
    height:17px!important;
}
.sidebar-footer .medibox-profile-copy{
    display:grid!important;
    min-width:0!important;
    gap:1px!important;
}
.sidebar-footer .medibox-profile-copy strong{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:11px!important;
}
.sidebar-footer .medibox-profile-copy small{
    font-size:9px!important;
    color:#7c8798!important;
}
.sidebar-footer .medibox-modern-logout{
    color:#5f6c7d!important;
}
.sidebar-footer .medibox-modern-logout-icon{
    width:18px!important;
    height:18px!important;
    flex:0 0 18px!important;
}
.sidebar-footer .medibox-modern-logout:hover{
    color:#b42318!important;
    background:#fff6f5!important;
}


/* Avatar refinement — white, borderless */
.sidebar-footer .medibox-profile-avatar{
    background:#fff!important;
    border:0!important;
    color:#5f6c7d!important;
    box-shadow:none!important;
}


/* Avatar refinement — icon only, no background */
.sidebar-footer .medibox-profile-avatar{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}


/* Logout icon smaller */
.sidebar-footer .medibox-modern-logout-icon{
    width:15px!important;
    height:15px!important;
    flex:0 0 15px!important;
}
