.mdec-widget-container {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    max-width: 100%;
    box-sizing: border-box;
}
.mdec-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.mdec-selectors {
    display: flex;
    gap: 5px;
    flex: 1;
    justify-content: center;
}
.mdec-selectors select {
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    background: #f9f9f9;
}
.mdec-nav-btn {
    background: #1d3557;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 9px;
    cursor: pointer;
    font-weight: bold;
}
.mdec-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.mdec-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}
.mdec-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-top: 6px;
}
.mdec-day-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
    transition: 0.15s;
}
.mdec-day-cell:hover:not(.mdec-empty):not(.mdec-out-of-bounds) {
    background: #eef4fb;
    border-color: #a8c7fa;
}
.mdec-day-cell.mdec-today {
    border-color: #1d3557;
    font-weight: 700;
}
.mdec-day-cell.mdec-selected {
    background: #1d3557 !important;
    color: #fff !important;
}
.mdec-day-cell.mdec-out-of-bounds {
    color: #ccc;
    cursor: not-allowed;
}
.mdec-event-dot {
    width: 6px;
    height: 6px;
    background: #e63946;
    border-radius: 50%;
    margin-top: 2px;
}
.mdec-day-cell.mdec-selected .mdec-event-dot {
    background: #ffd166;
}

/* Inline Event Details Drawer inside Widget */
.mdec-events-display-panel {
    margin-top: 12px;
    border-top: 2px solid #1d3557;
    padding-top: 10px;
}
.mdec-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #1d3557;
}
.mdec-event-count-badge {
    background: #e63946;
    color: #fff;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 11px;
}
.mdec-events-list {
    max-height: 460px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mdec-event-card {
    background: #f8f9fa;
    border-left: 4px solid #1d3557;
    border-radius: 4px;
    padding: 10px;
    font-size: 13px;
}
.mdec-ev-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    gap: 6px;
}
.mdec-ev-dept {
    background: #1d3557;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
}
.mdec-ev-time {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
}
.mdec-ev-duration {
    font-size: 11px;
    color: #0b5ed7;
    font-weight: 600;
    margin-bottom: 4px;
}
.mdec-ev-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}
.mdec-ev-desc {
    margin: 0 0 8px 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #333;
}
.mdec-ev-media img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
}
.mdec-ev-media video {
    width: 100%;
    max-height: 220px;
    border-radius: 4px;
}
.mdec-pdf-btn {
    display: inline-block;
    background: #d62828;
    color: #fff !important;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.mdec-empty-msg {
    font-size: 12.5px;
    color: #666;
    margin: 4px 0;
}