/* Veridian ICS Calendar (iframe renderer) */
html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  color: #222;
  background: #fff;
}

.vic-calendar {
  padding: 10px 12px 14px;
  box-sizing: border-box;
}

.vic-cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 10px;
}

.vic-cal-title {
  font-size: 18px;
  font-weight: 600;
}

.vic-cal-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vic-cal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #cfd5db;
  border-radius: 3px;
  text-decoration: none;
  color: #222;
  background: #f7f8fa;
  font-size: 18px;
  line-height: 1;
}

.vic-cal-btn:hover {
  background: #eef1f4;
}

.vic-cal-btn.vic-cal-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.vic-cal-monthform {
  margin: 0;
}

.vic-cal-monthselect {
  height: 28px;
  border: 1px solid #cfd5db;
  border-radius: 3px;
  background: #fff;
  padding: 2px 6px;
  font-size: 13px;
}

.vic-cal-go {
  height: 28px;
  border: 1px solid #cfd5db;
  border-radius: 3px;
  background: #f7f8fa;
  padding: 0 10px;
  font-size: 13px;
  line-height: 26px;
  cursor: pointer;
}

.vic-cal-go:hover {
  background: #eef1f4;
}


.vic-cal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid #d6dbe0;
}

.vic-cal-table th {
  text-align: center;
  padding: 6px 4px;
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: #eef1f4;
  border-bottom: 1px solid #d6dbe0;
  color: #333;
}

.vic-cal-table td {
  vertical-align: top;
  border-right: 1px solid #e2e7ec;
  border-bottom: 1px solid #e2e7ec;
  padding: 6px 6px 8px;
  height: 92px;
  overflow: hidden;
}

.vic-cal-table tr td:last-child,
.vic-cal-table tr th:last-child {
  border-right: none;
}

.vic-empty {
  background: #fafbfc;
}

.vic-daycell {
  background: #fff;
}

.vic-daynum {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #2b2f33;
}

.vic-events {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vic-event {
  font-size: 11px;
  line-height: 1.25;
  color: #1f2328;
  white-space: normal;
  word-break: break-word;
}

.vic-event-time {
  font-weight: 600;
  margin-right: 6px;
}

.vic-event-summary {
  font-weight: 400;
}

.vic-error {
  padding: 12px;
  color: #8a1f11;
  background: #fff2f0;
  border: 1px solid #f4b8b0;
  border-radius: 4px;
  margin: 12px;
}

.vic-empty-msg {
  padding: 10px 0;
  color: #555;
}

.vic-list {
  margin-top: 10px;
}

.vic-list-date {
  margin: 16px 0 8px;
  font-size: 15px;
}

.vic-list-items {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.vic-list-item {
  border: 1px solid #e2e7ec;
  border-radius: 4px;
  padding: 8px 10px;
  margin: 6px 0;
  background: #fff;
}

@media (max-width: 820px) {
  .vic-cal-table th {
    font-size: 10px;
  }
  .vic-cal-table td {
    height: 84px;
    padding: 5px 5px 6px;
  }
  .vic-event {
    font-size: 10px;
  }
  .vic-cal-title {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .vic-cal-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .vic-cal-controls {
    width: 100%;
    justify-content: flex-start;
  }
}
