
.sgc-shell{
 --sgc-border:#dfe5ec;
 --sgc-text:#101828;
 --sgc-muted:#667085;
 --sgc-red:#b4232d;
 --sgc-soft:#f4f7fb;
 --sgc-weekend:#fbfcfe;
 position:relative;
 width:800px!important;
 max-width:100%!important;
 margin:0 0 28px 0!important;
 padding:0!important;
 box-sizing:border-box;
 clear:both;
 font-family:inherit;
 color:var(--sgc-text);
 overflow:hidden;
}
.sgc-shell *{box-sizing:border-box}

.sgc-toolbar{
 display:flex;
 align-items:center;
 gap:12px;
 min-height:58px;
 padding:9px 12px;
 margin:0;
 background:#eef3f9;
 border:1px solid var(--sgc-border);
 border-bottom:0;
 border-radius:12px 12px 0 0;
 overflow:hidden;
}
.sgc-today{
 flex:0 0 auto;
 appearance:none;
 border:1px solid #9ba8b7;
 background:#fff;
 color:var(--sgc-text);
 border-radius:24px;
 cursor:pointer;
 padding:8px 20px;
 font-weight:600;
 font-size:14px;
 margin:0;
}
.sgc-arrows{
 display:flex;
 gap:2px;
 flex:0 0 auto;
}
.sgc-nav{
 appearance:none;
 border:0;
 background:transparent;
 color:#344054;
 cursor:pointer;
 width:34px;
 height:34px;
 border-radius:7px;
 font-size:26px;
 line-height:1;
 padding:0;
}
.sgc-nav:hover{background:#e4eaf1}
.sgc-month-title{
 margin:0!important;
 padding:0!important;
 font-size:20px!important;
 line-height:1.2!important;
 font-weight:500!important;
 color:#101828!important;
 white-space:nowrap;
 overflow:hidden;
 text-overflow:ellipsis;
}

.sgc-desktop{
 width:100%;
 overflow:hidden;
 border:1px solid var(--sgc-border);
 border-radius:0 0 12px 12px;
 background:#fff;
}
.sgc-weekdays,.sgc-grid{
 display:grid!important;
 grid-template-columns:repeat(7,minmax(0,1fr))!important;
 width:100%!important;
 min-width:0!important;
 margin:0!important;
}
.sgc-weekdays{
 background:#f7f9fc;
 border-bottom:1px solid var(--sgc-border);
}
.sgc-weekdays div{
 min-width:0;
 text-align:center;
 padding:7px 2px;
 font-weight:700;
 font-size:11px;
 color:#344054;
 white-space:nowrap;
 overflow:hidden;
}
.sgc-weekdays div:nth-child(6),.sgc-weekdays div:nth-child(7){background:#f2f5f9}

.sgc-grid{border:0!important}
.sgc-day{
 position:relative;
 min-width:0!important;
 min-height:78px;
 padding:5px 6px;
 border-right:1px solid var(--sgc-border);
 border-bottom:1px solid var(--sgc-border);
 background:#fff;
 overflow:hidden;
}
.sgc-day:nth-child(7n){border-right:0}
.sgc-day:nth-last-child(-n+7){border-bottom:0}
.sgc-day:nth-child(7n),.sgc-day:nth-child(7n-1){background:var(--sgc-weekend)}
.sgc-day-number{
 font-weight:600;
 font-size:13px;
 line-height:24px;
 margin-bottom:2px;
}
.sgc-is-today .sgc-day-number{
 display:inline-grid;
 place-items:center;
 width:24px;
 height:24px;
 line-height:24px;
 border-radius:50%;
 background:#1d66d8;
 color:#fff;
}
.sgc-empty{background:#fafbfd!important}

.sgc-event-pill{
 display:block;
 width:100%;
 min-width:0;
 border:0;
 border-left:3px solid #7386cf;
 border-radius:6px;
 padding:3px 5px;
 margin:2px 0;
 text-align:left;
 font:inherit;
 font-size:10.5px;
 line-height:1.15;
 background:#e9edfb;
 color:#25336a;
 cursor:pointer;
 white-space:nowrap;
 overflow:hidden;
 text-overflow:ellipsis;
}
.sgc-event-pill:hover{background:#dfe5fb}

.sgc-status{
 text-align:center;
 padding:8px;
 color:var(--sgc-muted);
 font-size:12px;
}
.sgc-mobile{display:none}

.sgc-modal[hidden]{display:none}
.sgc-modal{position:fixed;z-index:9999999;inset:0;display:grid;place-items:center;padding:18px}
.sgc-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55)}
.sgc-modal-card{position:relative;z-index:1;background:#fff;border-radius:15px;padding:26px;width:min(540px,100%);max-height:80vh;overflow:auto;box-shadow:0 24px 70px rgba(0,0,0,.28)}
.sgc-modal-close{position:absolute;right:12px;top:8px;border:0;background:none;font-size:30px;cursor:pointer}
.sgc-modal-date{font-size:13px;color:var(--sgc-muted);padding-right:30px;text-transform:capitalize}
.sgc-modal-card h3{font-size:22px!important;line-height:1.25!important;margin:8px 0 12px!important;color:var(--sgc-text)!important}
.sgc-modal-location{font-weight:600;margin-bottom:12px}
body.sgc-modal-open{overflow:hidden}

@media(max-width:980px){
 .sgc-shell{width:800px;max-width:100%}
 .sgc-day{min-height:72px;padding:4px}
 .sgc-event-pill{font-size:9.8px;padding:3px 4px}
}

@media(max-width:767px){
 .sgc-shell{max-width:100%;margin-bottom:24px!important}
 .sgc-desktop{display:none}
 .sgc-mobile{display:block}
 .sgc-toolbar{
   flex-wrap:wrap;
   gap:8px;
   border-radius:10px;
   border-bottom:1px solid var(--sgc-border);
 }
 .sgc-today{padding:7px 15px;font-size:13px}
 .sgc-month-title{font-size:19px!important;flex:1 1 100%;order:3}
 .sgc-arrows{margin-left:auto}
 .sgc-agenda{display:grid;gap:9px;margin-top:10px}
 .sgc-agenda-card{
   display:grid;
   gap:4px;
   width:100%;
   padding:12px 13px;
   border:1px solid var(--sgc-border);
   border-left:4px solid #7386cf;
   border-radius:9px;
   background:#fff;
   text-align:left;
   color:inherit;
   font:inherit;
   cursor:pointer
 }
 .sgc-agenda-card strong{font-size:16px}
 .sgc-agenda-date{font-size:12px;color:var(--sgc-muted);text-transform:capitalize}
 .sgc-no-events{text-align:center;padding:22px 12px;border:1px solid var(--sgc-border);border-radius:9px;color:var(--sgc-muted)}
}


/* v0.3.3 — wymuszenie szerokości przeciw regułom motywu/WPBakery */
.sgc-shell{
    width:800px!important;
    max-width:100%!important;
    min-width:0!important;
}
.sgc-shell .sgc-desktop,
.sgc-shell .sgc-toolbar,
.sgc-shell .sgc-weekdays,
.sgc-shell .sgc-grid{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
}


/* v0.4.0 — dodatkowe sterowanie */
.sgc-toolbar{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
  padding:9px 12px!important;
  margin:0!important;
}
.sgc-arrows{display:flex;gap:2px;flex:0 0 auto}
.sgc-toolbar-spacer{flex:1 1 auto}
.sgc-heading{display:none!important}
.sgc-today{margin:0!important;flex:0 0 auto}
.sgc-icon-button{
  appearance:none;border:0;background:transparent;color:#344054;cursor:pointer;
  width:38px;height:36px;border-radius:8px;font-size:18px;line-height:1;padding:0
}
.sgc-icon-button:hover{background:#e4eaf1}
.sgc-view-label{display:block;flex:0 0 auto;margin:0}
.sgc-view-select{
  appearance:none;min-width:112px;height:38px;border:1px solid #9ba8b7;border-radius:20px;background:#fff;
  padding:0 32px 0 14px;font:inherit;font-size:13px;font-weight:600;color:#101828;cursor:pointer;
  background-image:linear-gradient(45deg,transparent 50%,#475467 50%),linear-gradient(135deg,#475467 50%,transparent 50%);
  background-position:calc(100% - 15px) 16px,calc(100% - 10px) 16px;background-size:5px 5px,5px 5px;background-repeat:no-repeat
}
.sgc-pdf-button{
  flex:0 0 auto;appearance:none;border:0;border-radius:6px;background:#ff7067;color:#fff;height:40px;
  padding:0 16px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap
}
.sgc-pdf-button:hover{background:#f35f56}
.sgc-list-view{width:100%;border:1px solid var(--sgc-border);border-radius:0 0 12px 12px;background:#fff}
.sgc-list-content{display:grid}
.sgc-list-row{
  display:grid;grid-template-columns:165px 85px minmax(0,1fr);gap:10px;align-items:center;width:100%;
  padding:10px 11px;border:0;border-bottom:1px solid var(--sgc-border);background:#fff;color:inherit;text-align:left;font:inherit;cursor:pointer
}
.sgc-list-row:last-child{border-bottom:0}.sgc-list-row:hover{background:#f8fafc}
.sgc-list-date{font-size:11px;color:var(--sgc-muted);text-transform:capitalize}
.sgc-list-time{font-size:11px;font-weight:700}.sgc-list-title{font-size:13px}
.sgc-list-location{grid-column:3;font-size:10px;color:var(--sgc-muted)}

@media(max-width:980px){
 .sgc-toolbar{flex-wrap:wrap!important}
 .sgc-toolbar-spacer{display:none}
 .sgc-pdf-button{margin-left:auto}
}
@media(max-width:767px){
 .sgc-icon-button,.sgc-view-label,.sgc-pdf-button{display:none!important}
 .sgc-toolbar{flex-wrap:wrap!important}
}
@media print{
 body *{visibility:hidden!important}
 .sgc-shell,.sgc-shell *{visibility:visible!important}
 .sgc-shell{position:absolute!important;left:0!important;top:0!important;width:100%!important;max-width:none!important}
 .sgc-toolbar,.sgc-status,.sgc-modal,.sgc-mobile,.sgc-list-view{display:none!important}
 .sgc-desktop{display:block!important}
}
