/* FINAL163: focused field schedule and professional dialog dismissal. */
.schedule163{display:grid!important;grid-template-columns:minmax(230px,300px) minmax(0,1fr);gap:14px!important;align-items:start}
.schedule163>*{min-width:0}
.schedule163-banner{grid-column:1/-1;padding:22px 26px;border-radius:12px;background:linear-gradient(90deg,#071a30f5,#071a30a0 52%,#071a3022),url('art/schedule-dispatch166.jpg') center/cover;color:#edf8ff;min-height:112px;box-sizing:border-box;border:1px solid #24618a}
.schedule163-banner small{font-size:10px;letter-spacing:.16em;color:#86dfff}.schedule163-banner h2{font-size:clamp(21px,2.5vw,30px)!important;margin:7px 0!important;color:#fff!important;background:none!important}.schedule163-banner p{font-size:12px;margin:0;color:#bcd7e9}
.schedule163>.schedule-toolbar,.schedule163>.schedule-tabs{grid-column:1/-1;margin:0!important;padding:8px 0;gap:8px}
.schedule163 .schedule-toolbar select{flex:1;max-width:260px}.schedule163 .schedule-period-controls{display:flex;gap:4px}.schedule163 .schedule-add-appointment{margin-left:auto!important}
.schedule163>.schedule-dashboard{display:block;margin:0!important}.schedule163>.schedule163-agenda{margin:0;border:1px solid #d6e3ed;border-radius:10px;background:#fff;overflow:hidden;padding:16px}
.schedule163 .schedule-calendar-panel{padding:12px!important;box-shadow:none!important;border-radius:10px!important}
.schedule163 .schedule-panel-heading{background:#eff6fc!important;margin:-12px -12px 10px!important;padding:10px!important;min-height:44px!important;border-bottom:1px solid #d6e3ed!important;border-radius:10px 10px 0 0!important}
.schedule163 .schedule-panel-heading h3{color:#133653!important;font-size:13px!important}.schedule163 .schedule-month-grid{gap:4px!important}
html body #workspaceModule .schedule163 .schedule-month-date{min-height:46px!important;padding:5px 2px!important;border-radius:5px!important;background:#f4f8fc!important;color:#214566!important;font-size:11px!important;gap:3px!important;border:1px solid #e2ebf3!important;box-shadow:none!important}
html body #workspaceModule .schedule163 .schedule-month-date[aria-pressed=true]{background:#0868cf!important;color:#fff!important;border-color:#0868cf!important}
.schedule163-agenda-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;padding-bottom:12px;border-bottom:1px solid #e0eaf2}.schedule163-agenda-heading h3{font-size:16px;margin:0;color:#153a57}.schedule163-agenda-heading span{font-size:11px;color:#56738a}
.schedule163 .schedule-stop{display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:14px;padding:14px 0;border-bottom:1px solid #e1eaf2}.schedule163-time{border-left:3px solid #198bdf;padding-left:9px;display:grid;gap:5px}.schedule163-time small{font-size:10px}.schedule163 .schedule-stop p{font-size:12px;margin:4px 0;line-height:1.5}.schedule163-row-actions{display:flex;flex-wrap:wrap;gap:5px;max-width:145px}.schedule163-row-actions button{width:100%;font-size:11px!important;padding:5px 8px!important}.schedule163-empty{padding:28px 10px;color:#55718a;font-size:13px;text-align:center}
.schedule163 .schedule-period-grid{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px}.schedule163 .schedule-period-day{padding:8px;border-color:#dce7f0}.schedule163 .schedule-period-appointment{font-size:11px!important;line-height:1.5}
.schedule163:has(.schedule163-routing){grid-template-columns:minmax(0,1fr)}.schedule163 .schedule163-routing{display:grid;grid-template-columns:minmax(240px,.65fr) minmax(0,1.35fr);gap:14px}.schedule163 .schedule-map-panel{padding:12px;box-shadow:none}.schedule163 .schedule-map-panel .schedule-panel-heading{margin:-12px -12px 10px!important}.schedule163 .schedule-open-map{height:330px}.schedule163-route-actions{grid-column:1/-1}
html body #modal #closeModal,html body .sc-confirm-close{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:8px!important;background:#f2f6fa!important;border:1px solid #d3dee8!important;border-radius:8px!important;box-shadow:none!important;transition:background .15s}
html body #modal #closeModal img,html body .sc-confirm-close img{width:18px!important;height:18px!important;animation:none!important;transform:none!important}html body #modal #closeModal:hover,html body .sc-confirm-close:hover{background:#e3edf6!important}html body #modal #closeModal:focus-visible,html body .sc-confirm-close:focus-visible{outline:2px solid #0879d9!important;outline-offset:3px!important}
@media(max-width:1000px){.schedule163{grid-template-columns:minmax(210px,260px) minmax(0,1fr)}.schedule163 .schedule-stop{grid-template-columns:66px minmax(0,1fr)}.schedule163-row-actions{grid-column:2;max-width:none}.schedule163-row-actions button{width:auto}.schedule163 .schedule163-routing{grid-template-columns:1fr}}
@media(max-width:700px){.schedule163{grid-template-columns:1fr}.schedule163-banner{padding:18px;min-height:108px}.schedule163 .schedule-add-appointment{margin-left:0!important}.schedule163>.schedule163-agenda{padding:12px}.schedule163 .schedule-toolbar>*{flex:1 1 auto}.schedule163 .schedule-toolbar select{max-width:none}.schedule163 .schedule-month-date{min-height:44px!important}html body #modal #closeModal,html body .sc-confirm-close{width:44px!important;height:44px!important;min-height:44px!important;min-width:44px!important}.schedule163 .schedule-stop{gap:10px}.schedule163 .schedule-period-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.schedule163-banner{display:none}.schedule163{display:block!important}.schedule163 .schedule-stop{break-inside:avoid}}
/* Override legacy card styling so the agenda reads as a precise timeline. */
html body #workspaceModule .schedule163 .schedule-stop{margin:0!important;padding:12px 0!important;border:0!important;border-bottom:1px solid #e1eaf2!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;min-height:0!important}
html body #workspaceModule .schedule163 .schedule-stop strong{font-size:13px!important}html body #workspaceModule .schedule163 .schedule-stop p{margin:3px 0!important;font-size:12px!important}html body #workspaceModule .schedule163 .schedule-stop small{font-size:11px!important}
html body #workspaceModule .schedule163 .schedule-toolbar{padding:10px!important;margin:0!important}html body #workspaceModule .schedule163 .schedule-toolbar input[type=date]{width:160px!important;flex:0 1 160px!important}html body #workspaceModule .schedule163 .schedule-toolbar select{flex:1 1 160px!important;max-width:none!important}
html body #workspaceModule .schedule163 .schedule-panel-heading{background:#edf5fc!important;background-image:none!important;min-height:44px!important;color:#163d5c!important}html body #workspaceModule .schedule163 .schedule-panel-heading h3{color:#163d5c!important}
@media(max-width:700px){html body #workspaceModule .schedule163 .schedule-toolbar input[type=date]{flex:1 1 100%!important;width:100%!important}}
