.calendar-container {
    margin: 0px auto;
    font-family: var(--font-family);
    background-color: var(--text-color-white);
    position: relative;
    width: 100%;
    padding-top: 10px;
}
.calendar-container .calendar-header a.btn {
    border: 0px solid transparent !important;
    background-color: transparent !important;
    padding: 0 0 0 0 !important;
    box-shadow: 0px 0px 0px 0 rgba(0, 0, 0, 0.0);
}
.calendar-container .popup-year a.btn {
    border: 0px solid transparent !important;
    padding: 2px 5px !important;
    box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.2);
}
.popup-year a.btn {
    border: 0px solid transparent !important;
    padding: 2px 5px !important;
    box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.2);
}
.calendar-container .popup-year a.btn.close {
    color: #000000;
}
.popup-year a.btn.close {
    color: #000000;
}

.calendar-container .year-name {
    color: var(--text-color-active);
    text-align: left;
    font-family: var(--font-family);
    font-size: var(--fsize-13);
    line-height: var(--fsize-16);
    font-weight: 400;
}
.calendar-container a.btn.btn-change-year {
    margin-left: 10px;
}
.calendar-container a.btn.btn-prev-month,
.calendar-container a.btn.btn-next-month {
    margin-right: 10px;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    width: 100%;
}
.nav-left,
.navbar-right {
    display: flex;
}
.nav-left {
    flex-grow: 1;
    align-items: center;
    gap: 0px;
    padding-left: 12px;
}
.navbar-right {
    gap: 0px;
    width: 70px;
    justify-content: space-between;
}
.nav-left .year-name {
    font-size: var(--fsize-16);
    white-space: nowrap;
}
.calendar-nav button > img {
    width: 32px;
}
.popup-year-footer button,
.calendar-nav button {
    border: 0px solid transparent !important;
    background-color: transparent !important;
    padding: 0 0 0 0 !important;
    border-image-width: 0px !important;
    padding-block-end: 0px !important;
    padding-block-start: 0px !important;
    padding-inline-end: 0px !important;
    padding-inline-start: 0px !important;
}
.calendar-nav button:hover {
    background-color: #ff3366;
}
.calendar-year-select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}
.calendar-body {
    display: block;
    position: relative;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
    padding-bottom: 5px;
    background-color: white;
}
.calendar-body:before {
    content: " ";
    display: block;
    width: 100%;
    border-top: 1px dashed var(--bg-color);
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
}
.calendar-body:after {
    content: " ";
    display: block;
    width: 100%;
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 6px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent);
    pointer-events: none;
}
.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th,
.calendar-table td {
    text-align: center;
    padding: 0px;
    border: 0px solid transparent;
}
.calendar-table th {
    background-color: transparent;
}
.calendar-table th > span {
    color: var(--text-color-label);
    font-size: var(--fsize-12);
    font-family: var(--font-family);
    font-weight: 600;
    line-height: var(--line-height-15);
    word-wrap: break-word;
}
.calendar-table td {
    cursor: pointer;
}
.calendar-table td.empty,
.calendar-table td.month-over {
    color: var(--btn-color);
    font-size: var(--fsize-16);
    font-family: var(--font-family);
    font-weight: 600;
    line-height: var(--line-height-16);
    word-wrap: break-word;
}
.calendar-table td.month-day {
    color: #424242;
    font-size: var(--fsize-16);
    font-family: var(--font-family);
    font-weight: 600;
    line-height: var(--line-height-22);
    word-wrap: break-word;
}
.calendar-table td.month-day.weekend {
    color: #424242;
}
.calendar-table .event-day {
    position: relative;
}
.day-item {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    min-height: 34px;
    max-width: 35px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
.day-item .day {
    position: relative;
    display: flex;
    z-index: 3;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: var(--fsize-14);
    line-height: var(--line-height-22);
    font-weight: 400;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
}
.day-item.active .day {
    background: #d98c70;
    border-radius: 50%;
    color: white !important;
    font-weight: 500;
    text-align: center;
}
/* Keep today's green circle when it is also the selected date */
.calendar-table td.month-day.calendar-day-today:not(.day-item-event-today) .day-item.active .day {
    background-color: #82b697 !important;
}
.calendar-table td.month-day.calendar-day-today:not(.day-item-event-today) .day-item .day {
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    background-color: #82b697 !important;
    border-radius: 50%;
    color: #fff !important;
    font-weight: 500;
    text-align: center;
}
.weekend .day-item .day {
    color: var(--text-color-red);
}
/* japanese public holidays = red; Saturdays = blue */
.calendar-table td.month-day.saturday .day-item .day {
    color: var(--btn-color-blue, #6393CB);
}
.calendar-table td.month-day.holiday .day-item .day {
    color: var(--text-color-red);
}
.day-item-event-today .day-item .day {
    background: transparent;
    color: #fff !important;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
}
.calendar-table td.month-day.calendar-day-today:not(.day-item-event-today) .day-item .day,
.calendar-table td.month-day.day-item-event-today .day-item .day,
.calendar-table td.month-day.weekend.calendar-day-today:not(.day-item-event-today) .day-item .day,
.calendar-table td.month-day.holiday.calendar-day-today:not(.day-item-event-today) .day-item .day,
.calendar-table td.month-day.saturday.calendar-day-today:not(.day-item-event-today) .day-item .day,
.calendar-table td.month-day.weekend.day-item-event-today .day-item .day,
.calendar-table td.month-day.holiday.day-item-event-today .day-item .day,
.calendar-table td.month-day.saturday.day-item-event-today .day-item .day {
    color: #fff !important;
}
.day-item .icon-event {
    background-color: var(--btn-active-bg-color);
    border-radius: 50%;
    width: 6px;
    height: 6px;
    position: absolute;
    left: 15px;
    top: 22px;
    z-index: 1;
}

.day-item-event-today .day-item .icon-event {
    display: none;
}
.day-item .icon-event-today {
    position: absolute;
    left: 0px;
    top: -3px;
    width: 35px;
    height: 26px;
    background-image: url("../svg/birthday-cake.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 0;
}
.calendar-table td.empty .day-item .day {
    color: #d9d9d9;
    font-weight: 200;
}
.calendar-table .event-day::after {
    content: "🎂";
    font-size: var(--fsize-14);
    position: absolute;
    top: 2px;
    right: 2px;
}
.popup-year {
    position: fixed;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 9999;
    top: 0;
}
.popup-year-background {
    background-color: rgba(0, 0, 0, 0.25);
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 9999;
    top: 0;
    z-index: 1;
}
.popup-year-content {
    position: relative;
    margin: 50px auto 0 auto;
    width: 150px;
    height: 100px;
    z-index: 2;
    background-color: var(--btn-bg-color);
    border-radius: 10px 10px 10px 10px;
}
.popup-year-header {
    position: relative;
    width: 100%;
    height: 25px;
    background-color: var(--border-color);
    z-index: 3;
    display: flex;
    justify-content: right;
    align-items: flex-end;
}
.popup-year-body {
    width: 100%;
    margin: 10px auto 10px auto;
    text-align: center;
}
.popup-year-footer {
    margin: 10px auto 10px auto;
    text-align: center;
}
.calendar-events {
    background-color: var(--bg-color);
    overflow: auto;
    max-height: 50vh;
}
.event-item {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    width: 100%;
    position: relative;
}

.event-item:last-child {
    margin-bottom: 5px;
}
.event-bound {
    padding-top: 15px;
    padding-bottom: 15px;
}
.event-body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    background-color: white;
    padding: 15px 12px;
}
.event-info {
    display: flex;
    position: relative;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.event-avatar {
    position: relative;
    top: 0px;
    flex: 0 0 auto;
}
.event-item-is-today .event-avatar {
    top: 5px;
}
.event-avatar .yellow-hat {
    position: absolute;
    right: -4px;
    top: -12px;
    z-index: 1;
}
.event-group-name {
    display: inline-block;
    border-radius: 4px;
    padding: 5px 10px;
}
.event-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.event-name-line-2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}
.event-name-line-1 {
    color: #444444;
    text-align: left;
    font-family: var(--font-family);
    font-size: var(--fsize-15);
    line-height: var(--line-height-16);
    font-weight: 600;
}
.event-group-name > span {
    color: var(--text-color-white);
    text-align: left;
    font-family: var(--font-family);
    font-size: var(--fsize-11);
    line-height: 12px;
    font-weight: 400;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.event-item {
    border-radius: 10px 10px 10px 10px;
    width: calc(100% - 15px);
    margin: 15px auto;
    background-color: var(--btn-bg-color);
    border-radius: 10px;
}
.event-item.event-item-is-today {
    background-color: var(--btn-bg-color);
    border-radius: 10px 10px 10px 10px;
    border-style: solid;
    border-color: var(--border-color);
    border-width: 1px;
}
.event-date {
    color: #9e9e9e;
    text-align: left;
    font-family: var(--font-family);
    font-size: var(--fsize-13);
    line-height: var(--line-height-16);
    font-weight: 400;
    width: 60px;
    flex: 0 0 60px;
}
.event-name-line-1 {
    color: var(--text-color);
    text-align: left;
    font-family: var(--font-family);
    font-size: var(--fsize-15);
    line-height: var(--line-height-22);
    font-weight: 600;
}
.event-family-name {
    display: inline-block;
    color: var(--text-color-label);
    font-size: var(--fsize-11);
    font-family: var(--font-family);
    font-weight: 600;
    line-height: 12px;
    word-wrap: break-word;
}
.event-item-is-today .event-title {
    color: white;
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--border-color);
    border-radius: 10px 10px 0px 0px;
}
.event-item-is-today .event-title img {
    margin-bottom: 5px;
}
.calendar-events .no-event {
    color: var(--text-color-green);
    text-align: center;
    font-family: var(--font-family);
    font-size: var(--fsize-15);
    line-height: var(--line-height-16);
    font-weight: 400;
    margin: 0px auto;
    padding-top: 135px;
    width: 100%;
}
body.content-layout-fixed > #wrapper,
body.content-layout-fixed .content-fixed {
    overflow: visible !important;
    height: auto !important;
}

#dialogCalendarSearch .list-group li {
  border-left: none;
  border-right: none;
  border-bottom: 1px dashed var(--border-color);
  padding-right: 0;
  margin-top: 15px;
}

#dialogCalendarSearch .list-group li:first-child {
  border-top: none;
}

#dialogCalendarSearch .list-group li:last-child {
  border-bottom: none;
}
.form-filter .box-form-submit .item-line .btn-reset > .btn-text{
    font-weight: normal;
}

.group-item-event{
    padding-left: 0px;
}
.modal-dialog-group .modal-content .modal-body .list-group-item:first-child,
.modal-dialog-family .modal-content .modal-body .list-group-item:first-child {
    padding: 5px 15px 10px 15px;
}
.list-group-item {
    border-width: 0 0 0 0 !important;
    border-bottom: 1px dashed var(--border-color) !important;
}
.list-group-item:last-child{
    border-bottom: none!important
}


