/* Agent calendar: compact controls, readable itineraries, touch-friendly views. */
.abn-schedule{min-width:0;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:hidden}
.schedule-controls{padding:20px 22px 17px;border-bottom:1px solid var(--line);background:#fff}
.schedule-control-row{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.schedule-period{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.schedule-period h2{font-size:19px;letter-spacing:-.45px;line-height:1.4}
.schedule-arrows{display:flex;gap:5px}
.schedule-arrows .btn.icon-only{width:34px;min-height:34px;padding:6px}
.schedule-arrows .icon{width:17px;height:17px}
.schedule-views{display:flex;border:1px solid #dce5e8;background:#f4f7f8;border-radius:9px;padding:3px;gap:2px}
.schedule-views button{min-height:34px;min-width:53px;border:0;border-radius:6px;background:transparent;color:#627486;font-size:12px;font-weight:650;padding:6px 12px}
.schedule-views button:hover{color:var(--ink);background:#e8f0f0}
.schedule-views button.active{background:#fff;box-shadow:0 1px 4px #182b3d1c;color:var(--teal)}
.schedule-filter-row{display:grid;grid-template-columns:minmax(200px,1.4fr) minmax(420px,2.1fr);gap:12px;margin-top:18px}
.schedule-filter-panel{display:grid;grid-template-columns:minmax(110px,.8fr) minmax(130px,1fr) minmax(145px,1fr);gap:12px;min-width:0}
.schedule-filter-toggle{display:none}
.schedule-filter-count{display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:5px;background:var(--teal);color:#fff;font-size:10px;line-height:1}
.schedule-filter-row label{font-size:11px;color:#526575;font-weight:650;min-width:0}
.schedule-filter-row input,.schedule-filter-row select{font-size:12px;padding:9px 10px;min-height:38px;margin-top:5px;border-radius:7px}
.schedule-filter-row input::placeholder{color:#7b8994}
.schedule-result-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 22px;min-height:53px;border-bottom:1px solid var(--line)}
.schedule-count{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:11px;color:var(--muted)}
.schedule-count strong{font-size:12px;color:var(--ink);font-weight:650}
.schedule-count>span{padding-left:14px;border-left:1px solid var(--line)}
.schedule-updated{font-size:10px;color:var(--muted);white-space:nowrap}
.schedule-footnote{display:flex;align-items:flex-start;gap:8px;font-size:11px;color:var(--muted);padding:16px 22px;border-top:1px solid var(--line);background:#fbfcfd;line-height:1.6}
.schedule-footnote .icon{width:15px;height:15px;margin-top:1px;color:#5f858a}
.schedule-week-wrap{overflow-x:auto;overscroll-behavior-x:contain}
.schedule-week{display:grid;grid-template-columns:repeat(7,minmax(142px,1fr));min-height:350px}
.schedule-week-day{min-width:0;background:#fbfcfd;border-right:1px solid var(--line)}
.schedule-week-day:last-child{border-right:0}
.schedule-week-day>header{position:relative;border-bottom:1px solid var(--line);background:#fff;padding:11px 9px}
.schedule-week-day>header>button{border:0;background:transparent;display:flex;flex-direction:column;align-items:flex-start;gap:2px;color:var(--ink);padding:0 4px;min-height:55px;min-width:46px;text-align:left}
.schedule-week-day>header>button>span{font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:.8px;color:var(--muted)}
.schedule-week-day>header strong{font-size:22px;line-height:1.2;letter-spacing:-.6px}
.schedule-week-day>header small{position:absolute;left:47px;bottom:18px;font-size:9px;font-weight:700;color:var(--teal)}
.schedule-day-count{position:absolute;top:12px;right:9px;font-size:10px;color:var(--muted);background:#f0f4f6;border-radius:5px;min-width:18px;text-align:center;padding:1px 3px}
.schedule-week-day.is-today{background:#f2f9f8}
.schedule-week-day.is-today>header{background:#e9f5f2;border-bottom-color:#c8e3dd}
.schedule-week-day.is-today>header strong{color:var(--teal)}
.schedule-week-list{padding:10px 7px;display:flex;flex-direction:column;gap:10px}
.schedule-day-empty{font-size:10px;color:#7a8995;text-align:center;padding:20px 3px}
.schedule-visit{width:100%;display:block;min-width:0;padding:0;text-align:left;background:#fff;border:1px solid #d8e3e7;border-left:3px solid var(--event-color,var(--teal));border-radius:8px;color:var(--ink);box-shadow:0 2px 4px #18334505;transition:border-color .15s,box-shadow .15s;overflow:hidden}
.schedule-visit:hover{border-color:#8eb6ba;box-shadow:0 3px 10px #18334513}
.schedule-visit-main{display:block;padding:14px 15px}
.schedule-visit-top{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:7px}
.schedule-visit-time{font-size:12px;font-weight:650;color:var(--teal);line-height:1.5}
.schedule-visit-arrow{color:#7c939f;display:flex}
.schedule-visit-arrow .icon{width:15px;height:15px}
.schedule-visit-main>strong{display:block;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.schedule-service{display:block;font-size:12px;color:var(--muted);line-height:1.5;margin-top:3px;overflow-wrap:anywhere}
.schedule-visit-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:11px}
.schedule-location{display:inline-flex;align-items:center;gap:5px;color:#5e7680;font-size:10px;font-weight:550;line-height:1.4}
.schedule-location .icon{width:12px;height:12px}
.schedule-status{border:1px solid var(--line);border-radius:5px;padding:2px 5px;font-size:9px;text-transform:capitalize;color:var(--muted);background:#f4f7f8}
.schedule-status.cancelled{background:#fff1f2;border-color:#f3d4d8;color:var(--red)}
.schedule-status.completed{background:#eef4fa;color:#466d95;border-color:#dae6f3}
.schedule-travel-strip{display:flex;align-items:flex-start;gap:6px;padding:8px 15px;background:#eef7f5;border-bottom:1px dashed #c6dfda;color:#3c6c6d;font-size:10px;line-height:1.5}
.schedule-travel-strip:last-child{border-bottom:0;border-top:1px dashed #c6dfda}
.schedule-travel-strip>.icon{width:12px;height:12px;margin-top:1px}
.schedule-travel-strip>span{display:flex;flex-wrap:wrap;gap:3px 10px}
.schedule-travel-strip b{font-weight:650}
.schedule-buffer,.schedule-continued{display:block;margin-top:8px;font-size:10px;line-height:1.5;color:#637c87}
.schedule-conflict{display:flex;align-items:flex-start;gap:5px;margin-top:9px;color:#8d5a13;font-size:10px;line-height:1.5;font-weight:600}
.schedule-conflict .icon{width:12px;height:12px;margin-top:2px}
.schedule-visit.has-conflict{border-color:#d7bc89;border-left-color:#bb8b37}
.schedule-visit.is-cancelled{border-left-color:#bac4cc;background:#f9fafb}
.schedule-visit.is-cancelled .schedule-visit-time{text-decoration:line-through;color:#6d7f89}
.schedule-visit.compact .schedule-visit-main{padding:10px 9px}
.schedule-visit.compact .schedule-visit-time{font-size:10px}
.schedule-visit.compact .schedule-visit-top{margin-bottom:5px}
.schedule-visit.compact .schedule-visit-arrow{display:none}
.schedule-visit.compact .schedule-visit-main>strong{font-size:12px}
.schedule-visit.compact .schedule-service{font-size:10px}
.schedule-visit.compact .schedule-visit-meta{margin-top:8px;gap:5px}
.schedule-visit.compact .schedule-location{font-size:9px}
.schedule-visit.compact .schedule-travel-strip{padding:7px 8px;gap:4px;font-size:9px}
.schedule-visit.compact .schedule-travel-strip>span{display:block}
.schedule-visit.compact .schedule-travel-strip>span>span{display:block;margin-top:2px}
.schedule-visit.compact .schedule-travel-strip .icon{width:10px;height:10px}
.schedule-visit.compact .schedule-conflict,.schedule-visit.compact .schedule-buffer,.schedule-visit.compact .schedule-continued{font-size:9px}
.schedule-day-layout{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:24px;padding:24px;background:#fafcfd}
.schedule-day-itinerary{display:flex;flex-direction:column;gap:15px;min-width:0}
.schedule-day-summary{align-self:start;background:#fff;border:1px solid var(--line);border-radius:10px;padding:19px}
.schedule-day-summary .eyebrow{font-size:9px;letter-spacing:1.2px}
.schedule-day-summary h3{font-size:14px;margin:7px 0 18px}
.schedule-day-summary>div:not(.eyebrow){border-top:1px solid var(--line);padding:14px 0;display:flex;flex-direction:column;gap:3px}
.schedule-day-summary>div>strong{font-size:23px;letter-spacing:-.7px;line-height:1.3}
.schedule-day-summary>div>span{font-size:11px;color:var(--muted)}
.schedule-day-summary p{display:flex;gap:7px;font-size:10px;line-height:1.6;color:var(--muted);margin:6px 0 18px}
.schedule-day-summary p .icon{width:14px;height:14px;margin-top:2px}
.schedule-day-summary .btn{width:100%}
.schedule-empty{text-align:center;padding:52px 24px;background:#fbfcfd}
.schedule-empty>span{display:grid;place-items:center;width:46px;height:46px;margin:0 auto 15px;border-radius:13px;background:#eaf2f3;color:var(--teal)}
.schedule-empty h3{font-size:16px;margin-bottom:7px}
.schedule-empty p{font-size:12px;color:var(--muted);max-width:370px;margin:0 auto}
.schedule-empty .btn{margin-top:18px}
.schedule-month-wrap{overflow-x:auto;overscroll-behavior-x:contain}
.schedule-month{display:grid;grid-template-columns:repeat(7,minmax(100px,1fr))}
.schedule-weekday{font-size:10px;font-weight:650;color:#6a7c88;text-transform:uppercase;letter-spacing:.6px;padding:12px 10px;background:#fbfcfd;border-bottom:1px solid var(--line);border-right:1px solid var(--line)}
.schedule-weekday:nth-child(7){border-right:0}
.schedule-month-cell{min-height:135px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:8px;background:#fff;min-width:0}
.schedule-month-cell:nth-child(7n){border-right:0}
.schedule-month-cell:nth-last-child(-n+7){border-bottom:0}
.schedule-month-cell.outside-month{background:#f7f9fa}
.schedule-month-cell.outside-month .schedule-month-cell-head>button{color:#8a9ba5}
.schedule-month-cell.is-today{background:#f6fbfa}
.schedule-month-cell-head{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:6px}
.schedule-month-cell-head>button{border:0;display:grid;place-items:center;width:27px;height:27px;border-radius:7px;background:transparent;font-size:12px;color:var(--ink);font-weight:650}
.schedule-month-cell-head>button:hover{background:#e8f0f2}
.schedule-month-cell.is-today .schedule-month-cell-head>button{background:var(--teal);color:#fff}
.schedule-month-cell-head>span{font-size:9px;color:#6e828c;background:#edf3f4;min-width:17px;text-align:center;border-radius:5px;padding:1px 3px}
.schedule-month-events{display:flex;flex-direction:column;gap:5px}
.schedule-month-event{border:0;border-left:2px solid #3c908d;background:#edf6f4;border-radius:4px;display:flex;flex-direction:column;gap:1px;text-align:left;padding:5px 6px;color:#284e54;min-width:0;width:100%;line-height:1.4}
.schedule-month-event:hover{background:#deeeea}
.schedule-month-event>b{font-size:9px;font-weight:650;white-space:nowrap}
.schedule-month-event>span{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.schedule-month-event>small{font-size:8px;color:#557a7a;line-height:1.4}
.schedule-month-event.is-cancelled{background:#f2f3f5;border-left-color:#bcc5ce;color:#7a8592}
.schedule-month-event.is-cancelled>b{text-decoration:line-through}
.schedule-month-event .schedule-conflict-label{color:#8a5c1d}
.schedule-more{display:block;padding:4px 6px;border:0;background:transparent;text-align:left;font-size:10px;font-weight:650;color:var(--teal);min-height:27px}
.schedule-more:hover{background:#eef5f5}
.schedule-agenda{padding:22px;background:#fafcfd;display:flex;flex-direction:column;gap:26px}
.schedule-agenda-day{display:grid;grid-template-columns:165px minmax(0,1fr);gap:20px}
.schedule-agenda-day>header>button{display:flex;flex-direction:column;gap:5px;border:0;background:transparent;text-align:left;color:var(--ink);padding:9px 0}
.schedule-agenda-day>header strong{font-size:12px;line-height:1.6}
.schedule-agenda-day>header span{font-size:10px;color:var(--muted)}
.schedule-agenda-day>div{display:flex;flex-direction:column;gap:12px}
.schedule-mobile-hint{display:none;color:var(--muted);font-size:10px;padding:12px 18px;border-top:1px solid var(--line);background:#fbfcfd}
@media(min-width:1450px){.schedule-week{grid-template-columns:repeat(7,minmax(150px,1fr))}.schedule-visit.compact .schedule-visit-main{padding:12px}.schedule-visit.compact .schedule-visit-time{font-size:11px}.schedule-visit.compact .schedule-visit-main>strong{font-size:13px}}
@media(max-width:1200px){.schedule-week{grid-template-columns:repeat(7,minmax(155px,1fr))}.schedule-mobile-hint{display:block}.schedule-filter-row{grid-template-columns:1fr}.schedule-filter-panel{grid-template-columns:1fr 1fr 1fr}.schedule-control-row{gap:15px}}
@media(max-width:760px){.schedule-controls{padding:16px}.schedule-period{gap:9px}.schedule-period h2{font-size:17px}.schedule-control-row{align-items:flex-start}.schedule-views{width:100%}.schedule-views button{flex:1;min-height:38px;padding:8px}.schedule-filter-row{grid-template-columns:1fr;gap:10px;margin-top:15px}.schedule-filter-panel{grid-template-columns:1fr 1fr 1fr;gap:10px}.schedule-jump{max-width:none}.schedule-filter-row input,.schedule-filter-row select{min-height:42px;font-size:14px}.schedule-result-bar{padding:12px 16px}.schedule-updated{display:none}.schedule-count{gap:9px}.schedule-count>span{padding-left:9px}.schedule-day-layout{grid-template-columns:1fr;padding:16px;gap:18px}.schedule-day-summary{display:none}.schedule-week{grid-template-columns:repeat(7,210px)}.schedule-week-list{padding:10px}.schedule-visit.compact .schedule-visit-main{padding:12px}.schedule-visit.compact .schedule-visit-main>strong{font-size:14px}.schedule-visit.compact .schedule-visit-time{font-size:11px}.schedule-visit.compact .schedule-service{font-size:11px}.schedule-visit.compact .schedule-travel-strip{font-size:10px;padding:8px 10px}.schedule-month{grid-template-columns:repeat(7,minmax(90px,1fr));min-width:630px}.schedule-agenda{padding:16px;gap:23px}.schedule-agenda-day{grid-template-columns:1fr;gap:7px}.schedule-agenda-day>header>button{flex-direction:row;align-items:center;justify-content:space-between;width:100%;padding:0 0 8px}.schedule-agenda-day>header strong{font-size:12px}.schedule-footnote{padding:14px 16px;font-size:10px}.schedule-visit-main{padding:13px}.schedule-travel-strip{padding:8px 13px}}
@media(max-width:390px){.schedule-period{gap:7px}.schedule-period h2{font-size:15px}.schedule-period>.btn{padding:6px 8px}.schedule-controls{padding:13px}.schedule-arrows .btn.icon-only{width:31px;min-height:34px}.schedule-filter-row{gap:9px}.schedule-filter-row label{font-size:10px}.schedule-filter-row input,.schedule-filter-row select{font-size:13px;padding:9px 7px}.schedule-views button{min-width:0;padding:8px}.schedule-count{font-size:10px}.schedule-count strong{font-size:11px}}
@media(prefers-reduced-motion:reduce){.schedule-visit{transition:none}}

@media(max-width:600px){.schedule-filter-row{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}.schedule-filter-toggle{display:inline-flex;min-height:42px;padding:9px 11px;font-size:12px;gap:6px}.schedule-filter-toggle .icon{width:16px;height:16px}.schedule-filter-panel{grid-column:1/-1;grid-template-columns:1fr 1fr;padding-top:4px}.schedule-filter-panel[data-collapsed=true]{display:none}.schedule-filter-panel .schedule-jump{grid-column:1/-1;max-width:220px}.schedule-filter-row input,.schedule-filter-row select{font-size:16px}.schedule-search input{font-size:16px}.schedule-search{min-width:0}.schedule-search input::placeholder{font-size:12px}}
