:root{
  --accent:#308FA4;
  --accent-dark:#207E93;
  --border:#e6eef2;
  font-family: Inter, system-ui, sans-serif;
}

.pmcal-calendar{
  max-width:1200px;
  margin:auto;
  overflow:hidden;
}

.pmcal-label{
  padding: 26px 0;
  background: linear-gradient(90deg, #164853 0%, #372751 100%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 2px;

  text-align: center;

  box-shadow: 0 4px 16px rgba(22,72,83,0.16);
  font-family: 'Segoe UI', 'Arial', sans-serif;
}

.pmcal-calendar-content{
  background: #F8F9FD;
  overflow:hidden;
  padding: 0px 64px;
}

.pmcal-header{
  color:#fff;
  padding:18px;
  display:flex;
  justify-content:space-between;
}

.pmcal-header #pmcalTitle {
  color: #222;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: 'Segoe UI', 'Arial', sans-serif;
}

.pmcal-controls{
  display:flex;
  border-radius: 6px;
}

.pmcal-controls button{
  background: #2F3D4C;
  border: none;
  color: #fff;
  padding: 6px 14px;
  cursor: pointer;
  margin-top: 0px;
  transition: background 0.15s;
}

.pmcal-controls button:hover {
  background: #425468;
}

.pmcal-controls #pmcalToday{
  background: #7C7F88;
  margin-right: 8px;
}

.pmcal-controls #pmcalToday:hover {
  background: #5a6268;
}

.pmcal-controls #pmcalPrev{
  border-radius: 6px 0 0 6px;
}

.pmcal-controls #pmcalNext{
  border-radius: 0 6px 6px 0;
}

.pmcal-weekdays{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  text-align:center;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  padding: 2px 0;
  background: #fff;
  border-left:1px solid var(--border);
  border-top:1px solid var(--border);
  background: #F8F9FD;
}

.pmcal-weekdays > div {
  padding: 0 8px;
  border-right:1px solid var(--border);
}

.pmcal-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  background: #fff; 
  border-left:1px solid var(--border);
  border-top:1px solid var(--border);
  border-right:1px solid var(--border);
}

.pmcal-day{
  border-right:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:8px 0;
  min-height: 130px;
  height: 130px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
}

.pmcal-day:nth-child(7n){ border-right:none; }

.pmcal-date-num{
  font-size:13px;
  font-weight:600;
  color: var(--accent);
  position: absolute;
  top: 2px;
  right: 2px;
  margin: 0;
  padding: 0 2px;
}

.pmcal-day-has-events .pmcal-date-num {
  color: var(--accent-dark);
}

.pmcal-events-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  margin-top: 20px;
}

.pmcal-event{
  /* width:100%; */
  background:var(--accent);
  color:#fff;
  font-weight:600;
  font-size:14px;
  padding:6px 8px;
  border-radius:0;
  cursor:pointer;
  /* word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word; */
  line-height: 1.4;
  flex-shrink: 0;
}

.pmcal-modal-bg{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:999;
}

.pmcal-modal{
  background:#fff;
  max-width:420px;
  width:100%;
  border-radius:12px;
  padding:20px;
  position:relative;
}

.pmcal-modal-close{
  position:absolute;
  top:10px;
  right:10px;
  background:#eee;
  border:none;
  width:32px;
  height:32px;
  border-radius:50%;
  font-size:18px;
  cursor:pointer;
}

.pmcal-modal img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.pmcal-modal h2 {
  margin: 0 0 10px 0;
}

.pmcal-modal p {
  margin: 0 0 15px 0;
}

.pmcal-modal a{
  display:block;
  background:var(--accent);
  color:#fff;
  text-align:center;
  padding:12px;
  border-radius:8px;
  font-weight:700;
  text-decoration:none;
}

@media (max-width: 768px) {
  .pmcal-calendar-content {
    padding: 0px 0px;
  }
}