
.lm-calendar {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    position: relative;
}

.lm-calendar[data-disabled] .lm-calendar-container[data-view="days"] .lm-calendar-content,
.lm-calendar[data-disabled] .lm-calendar-footer {
    opacity: 0.5;
    pointer-events: none;
}

.lm-calendar button {
    cursor: pointer;
}

.lm-calendar .lm-modal {
    min-width: initial;
    min-height: initial;
}

.lm-calendar-options {
    display: none;
}

.lm-modal > div > .lm-calendar-options {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--lm-border-color, #ccc);
}

.lm-modal > div > .lm-calendar-options button {
    border: 0;
    background-color: transparent;
    text-transform: uppercase;
    cursor: pointer;
    padding: 15px;
    font-weight: bold;
}

.lm-calendar-header {
    display: flex;
    flex-direction: column;
}

.lm-calendar-header > div:first-child {
    display: flex;
    align-items: center;
    padding: 10px;
    flex: 1;
    user-select: none;
}

.lm-calendar-header .lm-calendar-labels {
    display: flex;
    flex: 1;
    cursor: pointer;
    padding: 5px;
    margin: 10px 0;
}

.lm-calendar-header .lm-calendar-labels > button {
    font-size: 1.2em;
    border: 0;
    padding: 4px;
    background-color: transparent;
    font-weight: bold;
    color: var(--lm-font-color);
}

.lm-calendar-navigation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
}

.lm-calendar-weekdays {
    display: none;
    grid-template-columns: repeat(7, 1fr);
    padding: 0 8px 0 8px;
    font-size: 0.8em;
    align-items: center;
    justify-content: center;
}

.lm-calendar-container[data-view="days"] .lm-calendar-weekdays {
    display: grid;
    flex: 1;
}

.lm-calendar-weekdays > div {
    display: inline-block;
    padding: 6px;
    box-sizing: border-box;
    text-align: center;
    font-weight: bold;
    line-height: 2em;
    justify-content: center;
}

.lm-calendar-content {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 8px;
    font-size: 0.8em;
    outline: none;
}

.lm-calendar-content > div {
    box-sizing: border-box;
    text-align: center;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6px;
    cursor: pointer;
    border-radius: 100px;
    background-origin: padding-box;
    min-width: 38px;
}

.lm-calendar-content > div[data-disabled="true"] {
    pointer-events: none;
    opacity: 0.3;
}

.lm-calendar-container[data-view="months"] .lm-calendar-content {
    grid-template-columns: repeat(4, 1fr);
}

.lm-calendar-container[data-view="years"] .lm-calendar-content {
    grid-template-columns: repeat(4, 1fr);
}

.lm-calendar-content > div[data-grey="true"] {
    color: #ccc;
}

.lm-calendar-content > div[data-bold="true"] {
    font-weight: bold;
}

.lm-calendar-content > div[data-event="true"]::before {
    content: '';
    position: absolute;
    margin-top: 22px;
    width: 3px;
    height: 3px;
    border-radius: 3px;
    background-color: red;
}

.lm-calendar-content > div[data-selected="true"] {
    font-weight: bold;
    background-color: #eee;
    color: #000;
}

.lm-calendar-content:focus > div[data-selected="true"] {
    outline: 2px solid black;
    outline-offset: -2px;
}

.lm-calendar-content > div:hover {
    background-color: #eee;
    color: #000;
}

.lm-calendar-content > div[data-range="true"] {
    position: relative;
}

.lm-calendar-content > div[data-start="true"],
.lm-calendar-content > div[data-end="true"] {
    background-color: var(--lm-main-color, #2196f3);
    color: initial;
}

.lm-calendar-content > div[data-range="true"]::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(25%);
    height: 50%;
    background-color: var(--lm-main-color-alpha, #2196f388);
}

.lm-calendar-content > div[data-start="true"]::before {
    left: 5px;
    border-top-left-radius: 20%;
    border-bottom-left-radius: 20%;
}

.lm-calendar-content > div[data-end="true"]::before,
.lm-calendar-content > div[data-last="true"]::before {
    right: 5px;
    border-top-right-radius: 20%;
    border-bottom-right-radius: 20%;
}

.lm-calendar-footer > div {
    flex: 1;
}

.lm-calendar-footer {
    display: flex;
    margin: 0 10px 0 10px;
    padding: 8px 0 8px 0;
    line-height: 34px;
    border-top: 1px solid var(--lm-border-color-light, #e9e9e9);
}

.lm-calendar-footer[data-visible="false"] {
    display: none;
}

.lm-calendar-footer .lm-calendar-control {
    border: 0;
    background-color: transparent;
    padding: 6px;
    -moz-appearance: none;
    -webkit-appearance: none;
    margin: 2px;
    border-radius: 32px;
    font-size: 1.1em;
    width: initial;
}

.lm-calendar-footer select:focus {
    background-color: #eee;
}

.lm-calendar-footer input {
    width: 100%;
    cursor: pointer;
    background-color: var(--lm-border-color-light, #e9e9e9);
}

.lm-calendar-input {
    padding-right: 24px !important;
    box-sizing: border-box;
    background: url("data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 -960 960 960\" width=\"24\"><path d=\"M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Zm280 240q-17 0-28.5-11.5T440-440q0-17 11.5-28.5T480-480q17 0 28.5 11.5T520-440q0 17-11.5 28.5T480-400Zm-160 0q-17 0-28.5-11.5T280-440q0-17 11.5-28.5T320-480q17 0 28.5 11.5T360-440q0 17-11.5 28.5T320-400Zm320 0q-17 0-28.5-11.5T600-440q0-17 11.5-28.5T640-480q17 0 28.5 11.5T680-440q0 17-11.5 28.5T640-400ZM480-240q-17 0-28.5-11.5T440-280q0-17 11.5-28.5T480-320q17 0 28.5 11.5T520-280q0 17-11.5 28.5T480-240Zm-160 0q-17 0-28.5-11.5T280-280q0-17 11.5-28.5T320-320q17 0 28.5 11.5T360-280q0 17-11.5 28.5T320-240Zm320 0q-17 0-28.5-11.5T600-280q0-17 11.5-28.5T640-320q17 0 28.5 11.5T680-280q0 17-11.5 28.5T640-240Z\" fill=\"gray\" /></svg>") top 50% right 1px no-repeat;
}

.lm-calendar-time[data-visible="false"] {
    display: none;
}

.lm-calendar .lm-calendar-icon {
    font-family: "Material Symbols Outlined", "Material Icons", "FontAwesome";
    font-size: 24px;
    width: 40px;
    height: 40px;
    line-height: 24px;
    box-sizing: border-box;
    border-radius: 20px;
    border: 0;
    padding: 0;
    margin: 0;
}

.lm-calendar[data-type="picker"] .lm-modal {
    position: fixed;
    left: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 40px;
}

.lm-calendar[data-type="picker"] .lm-calendar-content > div {
    aspect-ratio: initial;
    min-height: 60px;
    border-radius: 4px;
}

.lm-calendar[data-type="picker"]  .lm-calendar-weekdays > div {
    min-height: 60px;
    line-height: 60px;
}


/** Calendar with grid lines */

.lm-calendar[data-grid="true"] .lm-calendar-weekdays {
    padding: 0;
}

.lm-calendar[data-grid="true"] .lm-calendar-content {
    border-top: 1px solid transparent;
    border-left: 1px solid transparent;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 0;
}

.lm-calendar[data-grid="true"] .lm-calendar-content > div {
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    justify-content: start;
    align-items: end;
}

/** Other */

.lm-ripple {
    background-position: center;
    transition: background 0.8s;
}

.lm-ripple:hover {
    background: var(--lm-background-color-highlight, #ebebeb) radial-gradient(circle, transparent 1%, var(--lm-background-color-highlight, #ebebeb) 1%) center/15000%;
}

.lm-ripple:active {
    background-color: var(--lm-background-color-active, #e8e8e8);
    background-size: 100%;
    transition: background 0s;
}

/** Dark mode */

.lm-dark-mode .lm-calendar-weekdays {
    color: #aaa;
}

.lm-dark-mode .lm-calendar-labels > button {
    background-color: initial;
}

.lm-dark-mode .lm-calendar-content:focus > div[data-selected="true"] {
    outline-color: white;
}

.lm-dark-mode .lm-calendar-content > div[data-grey="true"] {
    color: var(--lm-font-grayout, #777);
}

.lm-dark-mode .lm-calendar-footer select:focus {
    background-color: #3a3a45;
}

.lm-timeline {
    display: flex;
    flex-direction: column;
    height: 100%;
    line-height: 1.5;
}

.lm-timeline-data {
    position: relative;
    flex: 1;
}

.lm-timeline-header {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    z-index: 1;
    box-sizing: border-box;
}

.lm-timeline-header[data-type="monthly"] {
    display: flex;
}

.lm-timeline-year {
    font-size: 2em;
    display: inline-block;
}

.lm-timeline-month {
    font-size:0.8em;
    position:relative;
    top:6px;
}

.lm-timeline-navigation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
}

.lm-timeline .lm-timeline-icon {
    font-family: "Material Symbols Outlined", "Material Icons", "FontAwesome";
    font-size: 24px;
    width: 40px;
    height: 40px;
    line-height: 24px;
    box-sizing: border-box;
    border-radius: 20px;
    border: 0;
    padding: 0;
    margin: 0;
}
.lm-timeline-edit {
    float: right;
    margin-top: -8px;
}

.lm-timeline-edit .lm-timeline-icon {
    color: gray;
}

.lm-timeline-data:empty:before {
    content: attr(data-message);
    font-size: 1.2em;
    text-align: center;
    position: absolute;
    left: 0;
    width: 100%;
}

.lm-timeline-item {
    padding: 20px;
    position: relative;
    border-width: 0;
    border-style: var(--lm-border-style, solid);
    border-color: var(--lm-border-color, #ccc);
}

.lm-timeline-item[data-bullet]::before {
    content: attr(data-bullet);
    width: 100px;
    height: 30px;
    position: absolute;
}

.lm-timeline-item[data-bullet] .lm-timeline-title::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 16px;
    border-width: 3px;
    border-style: solid;
    border-color: var(--lm-main-color-deep, #1f64e1);
    display: inline-block;
    box-sizing: border-box;
    background-color: #fff;
    margin: 1px;
    position: absolute;
}

.lm-timeline-subtitle {
    color: #aaa;
    font-size: 0.8em;
}

.lm-timeline-data::-webkit-scrollbar {
    height: 12px;
}

.lm-timeline-data::-webkit-scrollbar {
    width: 12px;
}

.lm-timeline-data::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.lm-timeline-data::-webkit-scrollbar-thumb {
    background: #c1c1c1;
}

/** Align to the left */

.lm-timeline-data[data-align="left"] {
    padding: 15px 0 15px 125px;
    overflow-y: auto;
}

.lm-timeline-data[data-align="left"] .lm-timeline-item {
    border-left-width: 2px;
}

.lm-timeline-data[data-align="left"] .lm-timeline-item[data-bullet]::before {
    left: -20px;
    margin: 0 0 0 -105px;
    text-align: right;
}

.lm-timeline-data[data-align="left"] .lm-timeline-item[data-bullet] .lm-timeline-title::before {
    left: -10px;
}

/** Align to the right */

.lm-timeline-data[data-align="right"] {
    text-align: right;
    padding: 15px 125px 15px 0;
    overflow-y: auto;
}

.lm-timeline-data[data-align="right"] .lm-timeline-item {
    border-right-width: 2px;
}

.lm-timeline-data[data-align="right"] .lm-timeline-item[data-bullet]::before {
    right: 0;
    margin: 0 -105px 0 0;
}

.lm-timeline-data[data-align="right"] .lm-timeline-item[data-bullet] .lm-timeline-title::before {
    right: -10px;
}

/** Top **/
.lm-timeline-data[data-align="top"] {
    display: flex;
    padding: 50px 0 0 0;
    overflow-x: auto;
}

.lm-timeline-data[data-align="top"] .lm-timeline-item {
    border-top-width: 2px;
    min-width: 200px;
}

.lm-timeline-data[data-align="top"] .lm-timeline-item[data-bullet]::before {
    left: 0;
    top: 0;
    margin: -30px 0 0 20px;
}

.lm-timeline-data[data-align="top"] .lm-timeline-item[data-bullet] .lm-timeline-title::before {
    top: -10px;
}

/** Bottom **/

.lm-timeline-data[data-align="bottom"] {
    display: flex;
    padding: 0 0 50px 0;
    overflow-x: auto;
}

.lm-timeline-data[data-align="bottom"] .lm-timeline-item {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    border-bottom-width: 2px;
    min-width: 200px;
}

.lm-timeline-data[data-align="bottom"] .lm-timeline-item[data-bullet]::before {
    left: 0;
    bottom: -40px;
    margin: 0 0 0 20px;
}

.lm-timeline-data[data-align="bottom"] .lm-timeline-item[data-bullet] .lm-timeline-title::before {
    bottom: -10px;
}
.lm-schedule {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--lm-border-color-highlight, #aaa) var(--lm-border-color-light, #e9e9e9);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-content: stretch;
    max-height: calc(100vh - 100px);
    position: relative;
    border-bottom: 1px solid var(--lm-border-color-light, #e9e9e9);
    outline: none;
    box-sizing: border-box;
}

.lm-schedule table {
    table-layout: fixed;
    font-size: 0.8em;
    border-collapse: collapse;
    white-space: nowrap;
    empty-cells: show;
    width: 100%;
}

.lm-schedule thead td {
    background-color: var(--lm-background-color, #fff);
}

.lm-schedule thead td:first-child {
    width: 50px;
}

.lm-schedule[type="day"] thead td {
    text-align: center;
}

.lm-schedule .lm-schedule-hour > td {
    width: auto;
    border-top: 1px solid var(--lm-border-color-light, #e9e9e9);
}

.lm-schedule .lm-schedule-index {
    position: absolute;
    font-size: 0.9em;
    margin-top: 5px;
    z-index: 1;
    width: 100%;
    text-align: center;
}

.lm-schedule td {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    position: relative;
}

.lm-schedule tbody td {
    border-top: 1px solid transparent;
    padding: 0;
}

.lm-schedule thead td {
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 2.2em;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 4;
}

.lm-schedule .lm-schedule-hour > td:first-child {
    width: 50px;
}

.lm-schedule thead td[data-selected='true'] {
    background-color: var(--lm-background-color-hover, #ececec);
}

.lm-schedule thead td:before {
    content: attr(data-weekday);
    font-size: 0.5em;
    text-transform: uppercase;
    padding: 6px;
    display: block;
}

.lm-schedule thead td:after {
    content: '';
    border-bottom: 1px solid var(--lm-border-color, #ddd);
    width: 100%;
    bottom: 0;
    left: 0;
    position: absolute;
}

.lm-schedule thead td[data-selected='true']:after {
    border-bottom: 1px solid var(--lm-border-outline, #000);
}

.lm-schedule table tbody td:first-child {
    border-right: 1px solid var(--lm-border-color, #ddd);
}

.lm-schedule-item {
    position: absolute;
    height: 10px;
    top: 0;
    color: var(--lm-schedule-color, white);
    background-color: var(--lm-schedule-background, #66b244);
    z-index: 1;
    border: 1px solid white;
    box-sizing: border-box;
    border-radius: 4px;
    padding: 6px;
    display: flex;
    justify-content: space-between;
    align-content: flex-start;
    flex-wrap: wrap;
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

.lm-schedule-item[data-readonly="true"] {
    opacity: 0.8;
    background-size: 10px 10px;
    background-image: repeating-linear-gradient(45deg, #ffffff11 0, #ffffff11 1px, #ffffff33 0, #ffffff33 50%);
}

.lm-schedule-item[data-warning="true"] {
    outline: 2px solid red;
    outline-offset: -3px;
}

.lm-schedule-item[data-visible="false"] {
    display: none;
}

.lm-schedule-item[data-height="1"],
.lm-schedule-item[data-height="2"],
.lm-schedule-item[data-height="3"] {
    font-size: 0.7em;
    padding: 1px 4px 0 4px;
    flex-wrap: nowrap;
}

.lm-schedule-large .lm-schedule-item[data-height="1"] {
    font-size: 0.7em;
    padding: 1px 4px 0 4px;
    flex-wrap: nowrap;
}

.lm-schedule-large .lm-schedule-item[data-height="2"] {
    font-size: 0.9em;
    padding: 4px;
    flex-wrap: nowrap;
}

.lm-schedule-large .lm-schedule-item[data-height="3"] {
    font-size: 1em;
    padding: 6px;
    flex-wrap: nowrap;
}

.lm-schedule-item:before {
    content: attr(data-title);
    font-size: 0.9em;
    margin-left: 2px;
    margin-bottom: 4px;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
    height: 16px;
}

.lm-schedule-item:after {
    content: attr(data-start) ' - ' attr(data-end);
    font-size: 0.7em;
    margin-left: 2px;
    display: block;
    margin-top: 1px;
    margin-right: 2px;
}

.lm-schedule-pointer {
    position: absolute;
    background-color: var(--lm-main-color-deep, #66b244);
    height: 2px;
    width: 100px;
    display: none;
    pointer-events: none;
    z-index: 1;
}

.lm-schedule-pointer:before {
    content: '';
    position: absolute;
    background-color:var(--lm-main-color-deep, #66b244);
    border-radius: 6px;
    border: 1px solid #fff;
    width: 10px;
    height: 10px;
    margin: -5px;
}

.lm-schedule-disabled {
    background: repeating-linear-gradient(
        90deg,
        #fff,
        #fff 5px,
        #f4f4f4 5px,
        #f4f4f4 10px
    );
}

.lm-schedule-disabled.lm-schedule-hour {
    color: #aaa;
}

.lm-schedule-selected {
    opacity: 0.9;
    z-index: 2;
}

.lm-schedule::-webkit-scrollbar {
    width: 8px;
}

.lm-schedule::-webkit-scrollbar-track {
    background: #eee;
}

.lm-schedule::-webkit-scrollbar-thumb {
    background: #888;
}
