/* GriyaCRM v60.3.388 — Sales Planner Calendar Workspace */
.sp-shell{display:grid;gap:14px}.sp-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px;border:1px solid #dce6ee;border-radius:14px;background:#fff}.sp-head h2{margin:2px 0 4px;color:#15324a;font-size:22px}.sp-head p{margin:0;color:#71869a}.sp-head-actions{display:flex;gap:8px;flex:0 0 auto}.sp-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.sp-summary button{display:flex;align-items:center;justify-content:space-between;min-height:72px;padding:12px 14px;border:1px solid #dce6ee;border-radius:12px;background:#fff;color:#536b80;text-align:left;cursor:pointer}.sp-summary button:hover,.sp-summary button.active{border-color:#b8d6ed;background:#f5faff;color:#176ca7}.sp-summary strong{font-size:22px;color:#17364f}.sp-panel{padding:0!important;overflow:visible}.sp-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #e7edf2;background:#fbfdfe;border-radius:12px 12px 0 0}.sp-tabs{display:flex;gap:4px;align-items:center;flex-wrap:wrap}.sp-tabs button{min-height:34px;padding:0 11px;border:1px solid transparent;border-radius:8px;background:transparent;color:#657b8e;font-weight:600;cursor:pointer}.sp-tabs button.active{border-color:#bad8ec;background:#eef7fc;color:#0e6ca9}.sp-filter-menu{position:relative;margin-left:auto}.sp-filter-menu summary{display:flex;align-items:center;gap:7px;min-height:36px;padding:0 11px;border:1px solid #d8e3eb;border-radius:8px;background:#fff;color:#405e74;font-size:11px;font-weight:700;cursor:pointer;list-style:none}.sp-filter-menu summary::-webkit-details-marker{display:none}.sp-filter-menu[open] summary{border-color:#afd0e7;background:#f5faff;color:#0e6ca9}.sp-filter-count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#0e6ca9;color:#fff;font-size:9px}.sp-filter-count:empty,.sp-filter-count[data-count="0"]{display:none}.sp-filter-popover{position:absolute;top:43px;right:0;z-index:30;width:min(320px,calc(100vw - 38px));display:grid;gap:9px;padding:12px;border:1px solid #d7e2ea;border-radius:11px;background:#fff;box-shadow:0 18px 42px rgba(20,48,70,.16)}.sp-filter-popover label{display:grid;gap:5px;color:#62798c;font-size:10px;font-weight:700}.sp-filter-popover select{width:100%;min-height:38px;border:1px solid #d8e3eb;border-radius:8px;background:#fff;padding:0 9px;color:#334f65}.sp-list{display:grid;gap:8px;padding:12px}.sp-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:start;padding:13px 14px;border:1px solid #dce6ed;border-radius:11px;background:#fff}.sp-card.is-overdue{border-color:#efc9c6;background:#fffafa}.sp-type{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:#eef5fa;color:#386785}.sp-type.meeting{background:#edf6ff;color:#0c6eb5}.sp-card-title{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.sp-card-title strong{color:#17364f;font-size:13px}.sp-priority{display:inline-flex;padding:3px 7px;border-radius:999px;background:#f2f5f7;color:#6b7d8d;font-size:9px;text-transform:uppercase;font-weight:700}.sp-priority.is-high,.sp-priority.is-urgent{background:#fff3e8;color:#a05b11}.sp-priority.is-urgent{background:#fff0ef;color:#a63b34}.sp-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px;color:#71869a;font-size:10.5px}.sp-meta span,.sp-location{display:inline-flex;align-items:center;gap:5px}.sp-location{margin:7px 0 0;color:#5e778b;font-size:10.5px}.sp-outcome-chip{margin:7px 0 0;padding:6px 8px;border-radius:7px;background:#f1faf5;color:#287154;font-size:10.5px}.sp-actions{display:flex;gap:5px;align-items:center}.sp-actions button{width:34px;height:34px;display:grid;place-items:center;border:1px solid #dce6ed;border-radius:8px;background:#fff;color:#60778a;cursor:pointer}.sp-actions button:hover{background:#f2f7fa;color:#0d68a4}.sp-done{display:inline-flex;align-items:center;gap:5px;color:#2e805d;font-size:10px;font-weight:700}.sp-empty,.sp-migration{min-height:300px;display:grid;place-items:center;align-content:center;gap:7px;padding:34px;text-align:center;color:#71869a}.sp-empty i,.sp-migration i{font-size:30px;color:#2f79ac}.sp-empty strong,.sp-migration strong{font-size:15px;color:#29485f}.sp-migration p{max-width:600px;margin:0}

/* Calendar focus mode */
.sp-shell.is-calendar-mode{gap:10px}.sp-shell.is-calendar-mode .sp-head{padding:12px 16px;align-items:center}.sp-shell.is-calendar-mode .sp-head p:not(.eyebrow){display:none}.sp-shell.is-calendar-mode .sp-head h2{font-size:18px;margin-bottom:0}.sp-shell.is-calendar-mode .sp-summary{display:none}.sp-shell.is-calendar-mode .sp-panel{min-height:calc(100vh - 150px);border-radius:14px}.sp-shell.is-calendar-mode .sp-toolbar{padding:8px 10px}.sp-calendar-workspace{min-height:650px;background:#fff;border-radius:0 0 14px 14px;overflow:hidden}.sp-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #e5edf2;background:#fff}.sp-calendar-nav,.sp-calendar-view-switch{display:flex;align-items:center;gap:6px}.sp-calendar-nav>button,.sp-calendar-view-switch button{min-height:34px;border:1px solid #d8e3eb;border-radius:8px;background:#fff;color:#49677d;font-weight:700;cursor:pointer}.sp-calendar-nav>button{padding:0 10px}.sp-calendar-nav>button.sp-calendar-icon{width:34px;padding:0;display:grid;place-items:center}.sp-calendar-title{min-width:210px;margin-left:4px;color:#18384f;font-size:16px}.sp-calendar-view-switch{padding:3px;border:1px solid #d8e3eb;border-radius:9px;background:#f8fafc}.sp-calendar-view-switch button{min-width:68px;border:0;background:transparent}.sp-calendar-view-switch button.active{background:#fff;color:#0e6ca9;box-shadow:0 1px 4px rgba(20,48,70,.12)}.sp-calendar-body{overflow:auto}.sp-cal-week,.sp-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.sp-cal-week{position:sticky;top:0;z-index:3;border-bottom:1px solid #e5edf2;background:#fbfcfd;color:#708596;font-size:10px;text-align:center}.sp-cal-week span{padding:9px 4px;font-weight:700}.sp-calendar{gap:0;background:#e6edf2}.sp-cal-day{min-height:128px;padding:7px;background:#fff;overflow:hidden;box-shadow:inset -1px -1px 0 #e6edf2}.sp-cal-day.is-empty{background:#fbfcfd}.sp-cal-day.is-today{background:#f6fbff}.sp-cal-date{width:28px;height:28px;display:grid;place-items:center;margin:0 0 5px auto;border:0;border-radius:999px;background:transparent;color:#38546a;font-size:11px;font-weight:700;cursor:pointer}.sp-cal-day.is-today .sp-cal-date{background:#0e6ca9;color:#fff}.sp-cal-event{display:flex;width:100%;align-items:center;gap:5px;margin:3px 0;padding:5px 6px;border:0;border-radius:6px;background:#eef5fa;color:#375b73;text-align:left;font-size:9px;cursor:pointer;overflow:hidden}.sp-cal-event.is-meeting{background:#eaf5ff;color:#176ba3}.sp-cal-event.is-completed{opacity:.58;text-decoration:line-through}.sp-cal-event-time{flex:0 0 auto;font-weight:700}.sp-cal-event-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sp-cal-more{display:block;margin:4px 2px 0;color:#667e91;font-size:9px;font-weight:700}

/* Day view */
.sp-calendar-day-view{display:grid;grid-template-columns:78px minmax(0,1fr);min-width:640px}.sp-day-date-head{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:13px 16px;border-bottom:1px solid #e4ebf0;background:#fbfcfd}.sp-day-date-head strong{font-size:16px;color:#17364f}.sp-day-date-head span{color:#708596;font-size:11px}.sp-day-time,.sp-day-slot{min-height:58px;border-bottom:1px solid #edf1f4}.sp-day-time{padding:8px 10px 0 0;color:#8192a0;font-size:9px;text-align:right;background:#fbfcfd}.sp-day-slot{padding:5px 8px;border-left:1px solid #edf1f4;background:#fff}.sp-day-slot.is-now{background:#f7fbfe}.sp-day-slot .sp-cal-event{max-width:720px;padding:7px 9px;font-size:10px}.sp-day-empty{padding:24px;color:#7a8f9f;font-size:11px}

/* Week view */
.sp-calendar-week-view{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));min-width:980px;background:#e6edf2;gap:1px}.sp-week-column{min-height:590px;background:#fff}.sp-week-column.is-today{background:#f8fcff}.sp-week-head{position:sticky;top:0;z-index:2;display:grid;place-items:center;gap:2px;padding:10px 6px;border-bottom:1px solid #e5edf2;background:inherit}.sp-week-head span{color:#7a8f9f;font-size:9px;font-weight:700;text-transform:uppercase}.sp-week-head button{width:32px;height:32px;border:0;border-radius:999px;background:transparent;color:#284a63;font-weight:800;cursor:pointer}.sp-week-column.is-today .sp-week-head button{background:#0e6ca9;color:#fff}.sp-week-events{display:grid;gap:5px;padding:7px}.sp-week-events .sp-cal-event{padding:7px 8px;font-size:9.5px;align-items:flex-start}.sp-week-events .sp-cal-event-time{min-width:34px}.sp-week-empty{padding:12px 8px;color:#9aabb7;font-size:9px;text-align:center}

.sp-dialog{width:min(820px,calc(100vw - 28px));max-height:90vh;padding:0;border:1px solid #d8e2ea;border-radius:14px;box-shadow:0 24px 70px rgba(20,48,70,.2)}.sp-dialog::backdrop{background:rgba(20,42,58,.48);backdrop-filter:blur(2px)}.sp-form{display:grid}.sp-form header{display:flex;justify-content:space-between;align-items:flex-start;padding:17px 20px;border-bottom:1px solid #e4ebf0}.sp-form header h2{margin:2px 0 0;color:#17364f}.sp-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px 20px}.sp-form label{display:grid;gap:6px;color:#38556d;font-size:11px}.sp-form label>span{font-weight:700}.sp-form input,.sp-form select,.sp-form textarea{width:100%;min-height:42px;padding:9px 10px;border:1px solid #d3e0e9;border-radius:8px;background:#fff;color:#16364e;box-sizing:border-box}.sp-form textarea{resize:vertical}.sp-form .span-2{grid-column:1/-1}.sp-form footer{display:flex;justify-content:flex-end;gap:8px;padding:13px 20px;border-top:1px solid #e4ebf0;background:#fbfcfd}.sp-status{min-height:18px;margin:0;padding:0 20px 8px;color:#687f92;font-size:11px}.sp-status[data-status="error"]{color:#b23c35}.sp-outcome .sp-form{padding-bottom:0}.sp-outcome .sp-form>label{margin:14px 20px 0}.sp-activity-strip{margin-bottom:12px}.sp-activity-list{display:grid;gap:7px}.sp-activity-list>div{display:flex;gap:8px;align-items:flex-start;padding:8px 0;border-top:1px solid #edf1f4;color:#5e7486;font-size:11px}.sp-activity-list>div i{color:#2a7e5c}.sp-wa-action{margin-left:auto}.sp-toast{position:fixed;right:22px;bottom:22px;z-index:100000;max-width:360px;padding:11px 14px;border:1px solid #cfe0eb;border-radius:9px;background:#fff;color:#27445c;box-shadow:0 14px 34px rgba(26,52,76,.16);opacity:0;transform:translateY(8px);transition:.18s}.sp-toast.show{opacity:1;transform:none}.sp-toast.is-warning{border-color:#efd69f;background:#fffaf0;color:#7b560d}.hidden{display:none!important}

/* v60.3.388 — Google Calendar inspired readability pass */
.sp-shell.is-calendar-mode .sp-head{padding:14px 18px}.sp-shell.is-calendar-mode .sp-head h2{font-size:20px;line-height:1.2}.sp-shell.is-calendar-mode .sp-head .eyebrow{font-size:11px;letter-spacing:.08em}.sp-shell.is-calendar-mode .sp-panel{min-height:calc(100vh - 132px)}
.sp-shell.is-calendar-mode .sp-toolbar{min-height:52px;padding:8px 14px;background:#fff}.sp-tabs{gap:6px}.sp-tabs button{min-height:38px;padding:0 13px;border-radius:9px;font-size:13px;line-height:1;font-weight:650}.sp-tabs button i{font-size:14px}.sp-filter-menu summary{min-height:40px;padding:0 13px;border-radius:9px;font-size:13px}.sp-filter-popover{top:48px;width:min(360px,calc(100vw - 38px));padding:14px;gap:12px}.sp-filter-popover label{gap:7px;font-size:12px}.sp-filter-popover select{min-height:42px;font-size:13px}
.sp-calendar-workspace{min-height:720px;font-size:14px}.sp-calendar-toolbar{min-height:62px;padding:10px 16px;gap:18px}.sp-calendar-nav,.sp-calendar-view-switch{gap:8px}.sp-calendar-nav>button,.sp-calendar-view-switch button{min-height:40px;border-radius:9px;font-size:13px}.sp-calendar-nav>button{padding:0 14px}.sp-calendar-nav>button.sp-calendar-icon{width:40px;font-size:15px}.sp-calendar-title{min-width:280px;margin-left:6px;font-size:18px;line-height:1.25;font-weight:700;color:#24374b}.sp-calendar-view-switch{padding:4px;border-radius:10px}.sp-calendar-view-switch button{min-width:82px;padding:0 14px}.sp-calendar-view-switch button.active{color:#1967d2;box-shadow:0 1px 3px rgba(60,64,67,.16)}
.sp-calendar-body{background:#fff}.sp-cal-week{font-size:12px;color:#5f6368;background:#fff}.sp-cal-week span{padding:12px 6px;font-weight:600}.sp-cal-day{min-height:156px;padding:8px 9px;background:#fff;box-shadow:inset -1px -1px 0 #e8eaed}.sp-cal-day.is-empty{background:#fafafa}.sp-cal-day.is-today{background:#f8fbff}.sp-cal-date{width:34px;height:34px;margin-bottom:7px;font-size:14px;font-weight:600;color:#3c4043}.sp-cal-day.is-today .sp-cal-date{background:#1a73e8;color:#fff}.sp-cal-event{position:relative;min-height:31px;gap:7px;margin:4px 0;padding:6px 9px 6px 10px;border-radius:6px;background:#e8f0fe;color:#174ea6;font-size:12px;line-height:1.25;font-weight:500;box-shadow:inset 3px 0 0 #1a73e8;transition:background .15s,box-shadow .15s,transform .15s}.sp-cal-event:hover{background:#dbe8fd;box-shadow:inset 3px 0 0 #1558b0,0 1px 3px rgba(60,64,67,.18);transform:translateY(-1px)}.sp-cal-event.is-meeting{background:#e6f4ea;color:#137333;box-shadow:inset 3px 0 0 #34a853}.sp-cal-event.is-meeting:hover{background:#d7eedc;box-shadow:inset 3px 0 0 #188038,0 1px 3px rgba(60,64,67,.18)}.sp-cal-event.is-completed{opacity:.62;text-decoration:line-through}.sp-cal-event-time{font-size:11.5px;font-weight:700;letter-spacing:.01em}.sp-cal-event-title{font-size:12px;font-weight:600}.sp-cal-more{margin:6px 3px 0;color:#3c4043;font-size:11px;font-weight:600}
.sp-calendar-day-view{grid-template-columns:92px minmax(0,1fr);min-width:720px}.sp-day-date-head{position:sticky;top:0;z-index:5;min-height:58px;padding:12px 18px;border-bottom:1px solid #dadce0;background:rgba(255,255,255,.97);backdrop-filter:blur(5px)}.sp-day-date-head strong{font-size:18px;line-height:1.25;color:#202124}.sp-day-date-head span{padding:4px 8px;border-radius:999px;background:#f1f3f4;color:#5f6368;font-size:12px;font-weight:600}.sp-day-time,.sp-day-slot{min-height:76px;border-bottom:1px solid #eceff1}.sp-day-time{padding:10px 14px 0 0;color:#70757a;font-size:11px;font-weight:500;text-align:right;background:#fff}.sp-day-slot{padding:6px 16px 8px 10px;border-left:1px solid #dadce0;background:#fff}.sp-day-slot.is-now{position:relative;background:#fbfdff}.sp-day-slot.is-now:before{content:"";position:absolute;left:-1px;right:0;top:0;height:2px;background:#ea4335;z-index:1}.sp-day-slot .sp-cal-event{width:100%;max-width:none;min-height:36px;margin:3px 0;padding:8px 11px 8px 12px;font-size:13px;line-height:1.3}.sp-day-slot .sp-cal-event-time{min-width:42px;font-size:12px}.sp-day-slot .sp-cal-event-title{font-size:13px;font-weight:600}.sp-day-empty{padding:30px 18px;color:#70757a;font-size:13px}
.sp-calendar-week-view{grid-template-columns:repeat(7,minmax(170px,1fr));min-width:1120px;background:#dadce0;gap:1px}.sp-week-column{min-height:660px;background:#fff}.sp-week-column.is-today{background:#fbfdff}.sp-week-head{padding:12px 8px 11px;border-bottom:1px solid #dadce0;background:rgba(255,255,255,.97);backdrop-filter:blur(5px)}.sp-week-head span{font-size:11px;font-weight:600;color:#70757a;letter-spacing:.04em}.sp-week-head button{width:38px;height:38px;font-size:15px;color:#3c4043}.sp-week-column.is-today .sp-week-head button{background:#1a73e8;color:#fff}.sp-week-events{gap:6px;padding:8px}.sp-week-events .sp-cal-event{min-height:38px;padding:8px 9px 8px 11px;font-size:12px;line-height:1.3;align-items:flex-start}.sp-week-events .sp-cal-event-time{min-width:42px;font-size:11.5px}.sp-week-events .sp-cal-event-title{font-size:12px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.sp-week-empty{padding:18px 8px;color:#9aa0a6;font-size:11px;text-align:center}

@media(max-width:900px){.sp-head{align-items:stretch;flex-direction:column}.sp-head-actions{width:100%}.sp-head-actions button{flex:1}.sp-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.sp-toolbar{align-items:center;flex-direction:row}.sp-tabs{overflow-x:auto;flex-wrap:nowrap;max-width:calc(100vw - 120px)}.sp-tabs button{white-space:nowrap}.sp-filter-popover{position:fixed;top:auto;right:12px;left:12px;width:auto}.sp-form-grid{grid-template-columns:1fr}.sp-form .span-2{grid-column:auto}.sp-card{grid-template-columns:38px minmax(0,1fr)}.sp-actions{grid-column:2;justify-content:flex-end}.sp-shell.is-calendar-mode .sp-head{display:none}.sp-shell.is-calendar-mode .sp-panel{min-height:calc(100vh - 82px)}.sp-calendar-toolbar{align-items:flex-start;flex-direction:column;padding:12px}.sp-calendar-nav{width:100%;flex-wrap:wrap}.sp-calendar-title{order:3;width:100%;min-width:0;margin:6px 0 0;font-size:17px}.sp-calendar-view-switch{width:100%}.sp-calendar-view-switch button{flex:1;min-width:0}.sp-calendar{grid-template-columns:repeat(7,minmax(140px,1fr));min-width:980px}.sp-cal-week{grid-template-columns:repeat(7,minmax(140px,1fr));min-width:980px}.sp-calendar-body{overflow:auto}.sp-cal-day{min-height:145px}.sp-calendar-day-view{grid-template-columns:76px minmax(0,1fr);min-width:680px}.sp-day-time{font-size:11px}.sp-calendar-week-view{grid-template-columns:repeat(7,minmax(160px,1fr));min-width:1120px}}
