.ed-cal-shell {
  background: #ffffff;
  border: 1px solid #d9e3ea;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
  color-scheme: light;
  color: #1d2939;
  font-family: Arial, Helvetica, sans-serif;
  margin: 16px 0 22px;
  overflow: visible;
  padding: 16px;
}

.ed-cal-shell * {
  box-sizing: border-box;
}

.ed-cal-header {
  align-items: flex-start;
  border-bottom: 1px solid #e4e7ec;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 14px;
}

.ed-cal-title {
  min-width: 220px;
}

.ed-cal-eyebrow {
  color: #b42318;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.ed-cal-title h2 {
  color: #002868;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 4px;
}

.ed-cal-period {
  color: #475467;
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.ed-cal-tools {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.ed-cal-switch,
.ed-cal-nav {
  align-items: center;
  display: inline-flex;
}

.ed-cal-switch {
  background: #f2f7fa;
  border: 1px solid #c9d7e1;
  border-radius: 8px;
  padding: 3px;
}

.ed-cal-switch a,
.ed-cal-today,
.ed-cal-icon-button {
  min-height: 34px;
}

.ed-cal-switch a {
  border-radius: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  text-decoration: none;
}

.ed-cal-switch a:hover,
.ed-cal-switch a:focus,
.ed-cal-switch a.is-active {
  background: #00558c;
  color: #ffffff;
  text-decoration: none;
}

.ed-cal-nav {
  gap: 6px;
}

.ed-cal-icon-button,
.ed-cal-today {
  align-items: center;
  background: #ffffff;
  border: 1px solid #c9d7e1;
  border-radius: 7px;
  color: #344054;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  text-decoration: none;
}

.ed-cal-icon-button {
  width: 36px;
}

.ed-cal-today {
  padding: 7px 12px;
}

.ed-cal-icon-button:hover,
.ed-cal-icon-button:focus,
.ed-cal-today:hover,
.ed-cal-today:focus {
  border-color: #00558c;
  color: #00558c;
  text-decoration: none;
}

.ed-cal-summary {
  color: #667085;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  padding: 12px 0;
}

.ed-cal-summary span {
  background: #f8fbfd;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  padding: 5px 10px;
}

.ed-cal-week-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.ed-cal-week-day,
.ed-cal-day-panel,
.ed-cal-month-cell {
  background: #ffffff;
  border: 1px solid #d9e3ea;
  border-radius: 8px;
  min-width: 0;
}

.ed-cal-week-day {
  min-height: 230px;
  padding: 10px;
}

.ed-cal-day-panel {
  padding: 12px;
}

.ed-cal-week-day.is-today,
.ed-cal-day-panel.is-today,
.ed-cal-month-cell.is-today {
  border-color: #00a6c8;
  box-shadow: inset 0 0 0 2px rgba(0, 166, 200, 0.14);
}

.ed-cal-day-head {
  align-items: flex-start;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-bottom: 10px;
}

.ed-cal-day-number {
  align-items: center;
  background: #eef8fb;
  border: 1px solid #c5edf5;
  border-radius: 8px;
  color: #00558c;
  display: inline-flex;
  font-size: 22px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  width: 44px;
}

a.ed-cal-day-number:hover,
a.ed-cal-day-number:focus {
  background: #00558c;
  color: #ffffff;
  text-decoration: none;
}

.ed-cal-day-meta {
  color: #1d2939;
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  min-width: 0;
}

.ed-cal-day-meta small {
  color: #667085;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.ed-cal-count {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  grid-column: 1 / -1;
}

.ed-cal-event-list,
.ed-cal-month-events {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ed-cal-event {
  align-items: flex-start;
  --ed-cal-type-color: #98a2b3;
  background: #f9fbfc;
  border: 1px solid #e4e7ec;
  border-left: 4px solid #98a2b3;
  border-radius: 8px;
  color: #1d2939;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 8px;
  min-height: 52px;
  overflow: visible;
  padding: 7px;
  position: relative;
  text-align: left;
  width: 100%;
}

.ed-cal-event:hover,
.ed-cal-event:focus {
  background: #ffffff;
  border-color: #b7c8d6;
  border-left-color: var(--ed-cal-type-color, #98a2b3);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.12);
  outline: none;
}

.ed-cal-event-mark {
  border-radius: 999px;
  display: none;
  height: 8px;
  margin-top: 7px;
  width: 8px;
}

.ed-cal-event-has-image {
  gap: 10px;
}

.ed-cal-thumb {
  background: #eef2f6;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  display: block;
  flex: 0 0 56px;
  height: 56px;
  overflow: visible;
  position: relative;
  width: 56px;
  z-index: 3;
}

.ed-cal-thumb > img {
  border-radius: 6px;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.ed-cal-preview {
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.22);
  display: none;
  left: 0;
  padding: 6px;
  position: absolute;
  top: 48px;
  width: 230px;
  z-index: 60;
}

.ed-cal-preview img {
  border-radius: 6px;
  display: block;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  width: 100%;
}

.ed-cal-thumb:hover .ed-cal-preview {
  display: block;
}

.ed-cal-week-day:nth-child(n+5) .ed-cal-preview,
.ed-cal-month-cell:nth-child(7n) .ed-cal-preview,
.ed-cal-month-cell:nth-child(7n-1) .ed-cal-preview {
  left: auto;
  right: 0;
}

.ed-cal-event-body {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.ed-cal-event-time,
.ed-cal-event-title,
.ed-cal-event-place,
.ed-cal-event-type {
  display: block;
}

.ed-cal-event-time {
  color: #b42318;
  color: var(--ed-cal-type-color, #b42318);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
}

.ed-cal-event-title {
  color: #1d2939;
  color: var(--ed-cal-type-color, #1d2939);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
}

.ed-cal-week-grid .ed-cal-event-title,
.ed-cal-month-events .ed-cal-event-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.ed-cal-event-place,
.ed-cal-event-type {
  color: #667085;
  color: var(--ed-cal-type-color, #667085);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 3px;
}

.ed-cal-event-place i {
  color: #00558c;
  color: var(--ed-cal-type-color, #00558c);
}

.ed-cal-event-compact {
  gap: 6px;
  min-height: 42px;
  padding: 6px;
}

.ed-cal-event-compact .ed-cal-thumb {
  flex-basis: 38px;
  height: 38px;
  width: 38px;
}

.ed-cal-event-compact .ed-cal-event-title {
  font-size: 12px;
}

.ed-cal-event-compact .ed-cal-event-time {
  font-size: 10px;
}

.ed-cal-type-genel { --ed-cal-type-color: #1e90ff; border-left-color: #1e90ff; }
.ed-cal-type-soylesi { --ed-cal-type-color: #7b68ee; border-left-color: #7b68ee; }
.ed-cal-type-konferans { --ed-cal-type-color: #ff0000; border-left-color: #ff0000; }
.ed-cal-type-spor { --ed-cal-type-color: #8b008b; border-left-color: #8b008b; }
.ed-cal-type-yazokulu { --ed-cal-type-color: #dc143c; border-left-color: #dc143c; }
.ed-cal-type-toplanti { --ed-cal-type-color: #483d8b; border-left-color: #483d8b; }
.ed-cal-type-kurs { --ed-cal-type-color: #ffa500; border-left-color: #ffa500; }
.ed-cal-type-staj { --ed-cal-type-color: #660033; border-left-color: #660033; }
.ed-cal-type-panel { --ed-cal-type-color: #ee82ee; border-left-color: #ee82ee; }
.ed-cal-type-sergi { --ed-cal-type-color: #daa520; border-left-color: #daa520; }
.ed-cal-type-tiyatro { --ed-cal-type-color: #00ced1; border-left-color: #00ced1; }
.ed-cal-type-toren { --ed-cal-type-color: #00fa9a; border-left-color: #00fa9a; }
.ed-cal-type-egitim { --ed-cal-type-color: #3cb371; border-left-color: #3cb371; }
.ed-cal-type-sosyal { --ed-cal-type-color: #8ca3a3; border-left-color: #8ca3a3; }
.ed-cal-type-banka { --ed-cal-type-color: #ffd700; border-left-color: #ffd700; }
.ed-cal-type-acil { --ed-cal-type-color: #ff6347; border-left-color: #ff6347; }
.ed-cal-type-diger { --ed-cal-type-color: #601198; border-left-color: #601198; }

.ed-cal-empty {
  background: #f8fbfd;
  border: 1px dashed #c9d7e1;
  border-radius: 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  padding: 12px;
  text-align: center;
}

.ed-cal-day-view .ed-cal-event-list {
  gap: 9px;
}

.ed-cal-month-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ed-cal-month-head {
  color: #00558c;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 6px;
  text-align: center;
}

.ed-cal-month-empty {
  min-height: 128px;
}

.ed-cal-month-cell {
  min-height: 128px;
  padding: 8px;
}

.ed-cal-month-cell-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}

.ed-cal-month-date {
  align-items: center;
  background: #f2f7fa;
  border-radius: 7px;
  color: #00558c;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  text-decoration: none;
  width: 28px;
}

.ed-cal-month-date:hover,
.ed-cal-month-date:focus {
  background: #00558c;
  color: #ffffff;
  text-decoration: none;
}

.ed-cal-month-cell-head span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

body.ed-modal-open {
  overflow: hidden !important;
}

body.ed-modal-open .ed-cal-preview {
  display: none !important;
}

.ed-event-modal {
  background: rgba(16, 24, 40, 0.72);
  overflow: auto;
  padding: 24px 12px;
  z-index: 5000;
}

.ed-event-modal .modal-content {
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-height: calc(100vh - 48px);
  max-width: 920px;
  min-width: 0;
  overflow: hidden;
  width: 92%;
}

.ed-event-modal .modal-header,
.ed-event-modal .modal-footer {
  flex: 0 0 auto;
}

.ed-event-modal .modal-header {
  background: #00558c;
  color: #ffffff;
}

.ed-event-modal .modal-footer {
  background: #f8fbfd;
  color: #1d2939;
  text-align: right;
}

.ed-event-modal .modal-header p,
.ed-event-modal .modal-footer p {
  margin: 0;
}

.ed-event-modal .modal-body {
  overflow: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}

.ed-event-modal .modal-body,
#duyururesult {
  color: #1d2939;
  font-size: 15px;
  line-height: 1.55;
}

.ed-event-modal .modal-body img,
#duyururesult img {
  height: auto !important;
  max-height: 68vh;
  max-width: 100% !important;
  object-fit: contain;
  width: auto !important;
}

.ed-event-modal table,
#duyururesult table {
  max-width: 100%;
}

.ed-event-modal .close {
  color: #ffffff;
  opacity: 1;
}

@media (max-width: 760px) {
  .ed-cal-shell {
    border-radius: 0;
    margin-left: -5px;
    margin-right: -5px;
    padding: 12px;
  }

  .ed-cal-header {
    display: block;
  }

  .ed-cal-title {
    margin-bottom: 12px;
  }

  .ed-cal-title h2 {
    font-size: 21px;
  }

  .ed-cal-tools,
  .ed-cal-switch,
  .ed-cal-nav {
    width: 100%;
  }

  .ed-cal-switch a,
  .ed-cal-today {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
  }

  .ed-cal-nav {
    margin-top: 8px;
  }

  .ed-cal-week-grid,
  .ed-cal-month-grid {
    display: block;
  }

  .ed-cal-week-day,
  .ed-cal-month-cell,
  .ed-cal-day-panel {
    margin-bottom: 10px;
    min-height: 0;
  }

  .ed-cal-month-head,
  .ed-cal-month-empty {
    display: none;
  }

  .ed-cal-preview {
    max-width: calc(100vw - 54px);
    width: 220px;
  }

  .ed-cal-week-day:nth-child(n) .ed-cal-preview,
  .ed-cal-month-cell:nth-child(n) .ed-cal-preview {
    left: 0;
    right: auto;
  }
}

@media (max-width: 460px) {
  .ed-cal-event {
    gap: 7px;
  }

  .ed-cal-thumb {
    flex-basis: 38px;
    height: 38px;
    width: 38px;
  }

  .ed-cal-event-title {
    font-size: 12px;
  }
}
