.i-calendar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    flex-grow: 1;
    min-height: 0;
}

.i-calendar-event {
    position: absolute;
    outline: 1px solid #5d8cc9;
    overflow: hidden;
    color: black;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 0px;
    z-index: 2;
    background-image: linear-gradient(white, #c1d4eaff);
}

.i-calendar-event-striped:after{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, #4f46e4 0, #4f46e4 10%, transparent 0, transparent 50%);
    background-size: 1em 1em;
    opacity: 0.1;
}
 
.i-calendar-event-fixed {
    
}

.i-calendar-event-icon {
    position: absolute;
    top: 2px;
    right: 4px;
    opacity: 0.5;
    display: flex;
    gap: 4px;
}

.i-calendar-event-body {
    flex-grow: 1;
    flex-basis: 0;
    min-height: 0;
    margin-top: -4px;
    margin-bottom: -4px;
    text-align: left;
    white-space: pre-wrap;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.i-calendar-event-background {
    z-index: 1;
    background-color: #1b9e3e22;
    border-left: 4px solid #1b9e3e88;
    background-image: none;
    border-radius: 0;
    outline: 0;
}

.i-calendar-event-selected {
    outline: 2px solid var(--blue);
    z-index: 3;
}

.i-calendar-event-selected .i-calendar-event-body-time-start, .i-calendar-event-selected .i-calendar-event-body-time-end {
    display: flex;
}

.i-calendar-event-selected .i-calendar-event-body-render {
    text-indent: 36px;
}

.i-calendar-event-body-render {
    padding: 6px;
    flex-grow: 1;
    overflow: hidden;
}

.i-calendar-event-body-textarea {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    resize: none;
    border: 2px solid var(--blue);
    color: #222222;
}

.i-calendar-event-drag-top, .i-calendar-event-drag-bottom {
    min-height: 4px;
    max-height: 4px;
    cursor: row-resize;
    z-index: 1;
    position: absolute;
    left: 0;
    right: 0;
}

.i-calendar-event-drag-top {
    top: 0;
}

.i-calendar-event-drag-bottom {
    bottom: 0;
}


.i-calendar-body {
    border: 1px solid var(--border);
    display: flex;
    position: relative;
    flex-direction: column;
    overflow: auto;
    border-radius: 4px;
}

.i-calendar-body-load {
    background-color: white;
    display: none;
    justify-content: center;
    position: absolute;
    padding-top: 64px;
    box-sizing: border-box;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0.5;
    z-index: 5;
}

.i-calendar-body-load-active {
    display: flex;
    animation: i-calendar-grid-load-active 2s ease-in;
}

.i-calendar-cell {
    box-sizing: border-box;
    display: flex;
    border-right: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    display: flex;
    flex-direction: column;
    user-select: none;
    background-color: #fafafa;
}

.i-calendar-col-cell-header {
    cursor: pointer;
}

.i-calendar-grid-col {
    display: flex;
    flex-direction: column;
    flex-basis: 0;
    flex-grow: 1;
    box-sizing: border-box;
}

.i-calendar-grid-col-time {
    max-width: 48px;
    z-index: 3;
    position: relative;
}

@keyframes i-calendar-grid-load-active {
    0% { opacity: 0; }
    100% { opacity: 0.5; }
}

.i-calendar-body-headers {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 4;
}

.i-calendar-body-headers .i-calendar-cell {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    flex-basis: 0;
    border-right: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(#FFFFFF,#ECECEC);
    color: #222222;
}

.i-calendar-body-headers .i-calendar-cell-time {
    
}

.i-calendar-event-body-time-start, .i-calendar-event-body-time-end {
    /*display: flex;*/
    background-color: white;
    border: 1px solid black;
    padding-right: 2px;
    padding-left: 2px;
    font-weight: bold;
    position: absolute;
    color: #222222;
    display: none;
}

.i-calendar-event-body-time-start {
    border-radius: 0 0 4px 0;
    top: 0;
    left: 0;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: -1px;
    margin-left: -1px;
}

.i-calendar-event-body-time-end {
    border-radius: 4px 0 0 0;
    bottom: 0;
    right: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    margin-right: -1px;
    margin-bottom: -1px;
}

.i-calendar-grid {
    position: relative;
    display: flex;
    min-height: 200px;
    border-radius: 4px;
    color: #000000;
}

.i-calendar-cell-time {
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #FFFFFF,#ECECEC);
    min-width: 48px !important;
    max-width: 48px !important;
    color: #222222;
    font-weight: bold;
    flex-direction: row;
}

.i-calendar-cell-time-big {
    display: flex;
    flex-direction: column;
    flex-basis: 0;
    flex-grow: 1;
    height: 100%;
    font-size: 15px;
    text-align: left;
    padding-left: 5px;
}

.i-calendar-cell-time-small-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-basis: 0;
    height: 100%;
}

.i-calendar-cell-time-small {
    flex-basis: 0;
    flex-grow: 1;
    min-height: 0;
    overflow: hidden;
    padding-top: 2px;
    font-weight: normal;
    text-align: right;
    padding-right: 3px;
    color: #5f5f5f;
}

.i-calendar-cell-time-small:not(:last-child)
{
    border-bottom: 1px solid #cecece;
}

.i-calendar-cell-separator {
    flex-grow: 1;
    flex-basis: 0;
    box-sizing: border-box;
    border-bottom: 1px dotted var(--border);
    pointer-events: none;
    opacity: 0.5;
    font-size: 0.6em;
    padding: 4px;
    display: flex;
    user-select: none;
    align-items: center;
    min-height: 0;
}

.i-calendar-cell-separator:last-child {
    border-bottom: 0;
}

.i-calendar-column-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding-left: 2px;
    padding-right: 2px;
}

.i-calendar-header-highlight {
    background-color: #3399ff !important;
    color: white !important;
}

.i-calendar-selection-rectangle {
    background-color: #3399ff22;
    border: 2px solid #3399ff88;
    position: absolute;
    z-index: 6;
    pointer-events: none;
    display: none;
}

.i-calendar-event-hide {
    opacity: 0.3;
    filter: grayscale(1);
}

.i-calendar-current-time-line { 
    position: absolute;
    z-index: 1;
    pointer-events: none;
    display: flex;
    border-top: 1px solid #ff000088;
}