/* Full-width month and week calendar, using existing account records. */
.ag-panel{padding:26px;overflow:hidden}.ag-toolbar,.ag-period,.ag-options,.ag-legend,.ag-summary{display:flex;align-items:center;gap:14px}.ag-toolbar,.ag-options{justify-content:space-between;flex-wrap:wrap}.ag-toolbar{margin-bottom:22px}.ag-period h2{font-size:22px;letter-spacing:-.6px;text-transform:capitalize;margin:0;min-width:195px;text-align:center}.ag-period>.icon-button{width:36px;height:36px;flex-shrink:0}.ag-view{display:flex;border:1px solid var(--line);padding:4px;border-radius:13px;background:var(--surface-soft)}.ag-view button{border:0;border-radius:9px;background:transparent;color:var(--muted);font:inherit;font-size:12px;padding:9px 18px;cursor:pointer}.ag-view button.active{background:var(--brand);color:white}.ag-options{margin-bottom:18px;gap:14px}.ag-legend{gap:18px;font-size:11px;color:var(--muted);flex-wrap:wrap}.ag-legend>span{display:flex;align-items:center;gap:6px}.ag-legend i,.ag-mobile-count i{width:7px;height:7px;border-radius:50%;display:inline-block}.ag-legend .event,.ag-mobile-count .event{background:var(--brand)}.ag-legend .bill,.ag-mobile-count .bill{background:var(--warning)}.ag-filter{display:flex;align-items:center;gap:10px}.ag-filter select{font-size:11px;padding:9px 12px;margin:0}.ag-calendar{border:1px solid var(--line);border-radius:17px;overflow:hidden;background:var(--line)}.ag-weekdays,.ag-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px}.ag-weekdays{background:var(--surface-soft)}.ag-weekdays span{padding:13px;text-align:center;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:1px;font-weight:600}.ag-grid{padding-top:1px}.ag-day{min-height:120px;background:var(--surface);padding:8px;min-width:0;position:relative}.ag-day.outside{background:var(--surface-soft)}.ag-day.outside .ag-day-number{color:var(--muted)}.ag-day.selected{box-shadow:inset 0 0 0 2px var(--brand);z-index:1}.ag-day-number{display:flex;width:100%;gap:6px;align-items:center;background:transparent;border:0;color:var(--ink);padding:0 0 6px;font:inherit;font-size:12px;cursor:pointer;text-align:left}.ag-day-number>span{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;flex-shrink:0}.today .ag-day-number>span{background:var(--brand);color:white}.ag-day-number>em{font-style:normal;font-size:8px;color:var(--brand-text);margin-left:auto}.ag-day-items{display:flex;flex-direction:column;gap:4px}.ag-chip{display:flex;align-items:center;gap:5px;border:0;border-radius:5px;padding:6px;width:100%;text-align:left;font:inherit;font-size:10px;line-height:1.5;background:var(--brand-soft);color:var(--brand-text);cursor:pointer;min-width:0}.ag-chip>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-chip.bill{background:var(--warning-soft);color:var(--warning)}.ag-chip.completed{background:var(--surface-soft);color:var(--muted)}.ag-chip.completed>span:last-child{text-decoration:line-through}.ag-dot{width:4px;height:4px;flex-shrink:0;border-radius:50%;background:currentColor}.ag-more{border:0;background:transparent;color:var(--brand-text);font:inherit;font-size:10px;cursor:pointer;padding:6px}.ag-summary{font-size:11px;color:var(--muted);margin-top:21px;justify-content:space-between;flex-wrap:wrap}.ag-summary b{color:var(--ink);font-size:13px;margin-right:3px}.ag-help{font-size:11px;color:var(--muted);line-height:1.7;margin:14px 0 0}.ag-detail{margin-top:22px}.ag-detail .panel-head{align-items:center;flex-wrap:wrap}.ag-detail h2{text-transform:capitalize}.ag-detail .eyebrow{font-size:9px;margin-bottom:8px}.ag-mobile-count{display:none}.week-view .ag-day{min-height:330px}.week-view .ag-chip>span:last-child{white-space:normal;overflow-wrap:anywhere}.week-view .ag-day-number{flex-wrap:wrap}.week-view .ag-day-number small{font-size:9px;color:var(--muted)}
@media(min-width:1550px){.ag-day{min-height:145px}.ag-chip{font-size:11px}.ag-panel{padding:32px}}
@media(max-width:1120px){.ag-period h2{font-size:19px;min-width:170px}.ag-panel{padding:20px}.ag-period{gap:7px}.ag-day{padding:6px;min-height:115px}.ag-day-number>em{display:none}.ag-chip{font-size:9px;padding:5px}.ag-legend{gap:12px}}
@media(max-width:760px){.sidebar nav{grid-template-columns:repeat(6,minmax(0,1fr))!important}.sidebar nav [data-page="agenda"]{display:flex!important}.ag-panel{padding:17px 12px;border-radius:22px}.ag-toolbar{gap:16px}.ag-period{width:100%;justify-content:space-between;gap:3px}.ag-period h2{font-size:18px;min-width:0;flex:1}.ag-period .button{padding:9px 11px;min-height:36px}.ag-view{width:100%}.ag-view button{flex:1;font-size:12px}.ag-options{gap:15px;align-items:flex-start}.ag-legend{font-size:10px;gap:10px}.ag-filter{width:100%;justify-content:space-between;font-size:11px}.ag-filter select{max-width:180px;font-size:12px}.ag-calendar{border-radius:12px}.ag-weekdays span{padding:11px 1px;font-size:8px;letter-spacing:0}.ag-day{padding:5px 2px;min-height:76px}.ag-day-number{justify-content:center;padding:0;font-size:12px;min-height:34px}.ag-day-number>span{width:27px;height:27px}.ag-day-items,.ag-more{display:none}.ag-mobile-count{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;padding:4px 0;background:transparent;border:0;color:var(--muted);font:inherit;font-size:10px;min-height:26px;cursor:pointer}.ag-mobile-count>span{display:flex;gap:2px}.ag-mobile-count i{width:4px;height:4px}.ag-mobile-count b{font-weight:500}.ag-summary{gap:10px;font-size:10px;flex-direction:column;align-items:flex-start}.ag-summary b{font-size:12px}.ag-help{font-size:10px}.ag-detail{padding:22px 18px}.ag-detail .panel-head{gap:15px}.ag-detail h2{font-size:16px}.ag-calendar-scroll:has(.week-view){overflow-x:auto}.week-view{min-width:770px}.week-view .ag-day{min-height:250px;padding:8px}.week-view .ag-day-items{display:flex}.week-view .ag-mobile-count{display:none}.week-view .ag-day-number{justify-content:flex-start;margin-bottom:8px}.week-view .ag-chip{font-size:11px;padding:7px}.week-view .ag-day-number>em{display:inline}}

.ag-swipe{display:none}@media(max-width:760px){.ag-swipe{display:block;font-size:10px;color:var(--muted);margin-top:12px}}
