/* コンテキスト固有 */
.cm-repory .form-table .validation-message {
    text-wrap: wrap;
}

.cm-repory .radio-circle-button {
    clip-path: inset(100%);
    pointer-events: none;
    position: absolute;
}

.cm-repory .radio-label {
    cursor: pointer;
    padding-left: 30px;
    position: relative;
    margin-bottom: 0;
}

.cm-repory .radio-label::before,
.cm-repory .radio-label::after {
    border: 2px solid var(--primary);
    border-radius: 50%;
    background-color: #ffffff;
    box-sizing: border-box;
    content: "";
    height: 24px;
    left: 0;
    position: absolute;
    top: -1px;
    width: 24px;
}

.cm-repory .radio-label::after {
    opacity: 0;
    height: 14px;
    width: 14px;
    left: 5px;
}

.cm-repory .radio-circle-button:focus + label::before {
    box-shadow: 0 0 0 0.2rem rgba(0, 64, 152, .25);
}

.cm-repory .radio-circle-button:checked + .radio-label::after {
    background-color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-sizing: border-box;
    content: "";
    display: block;
    height: 16px;
    left: 4px;
    position: absolute;
    top: 3px;
    width: 16px;
    opacity: 1;
}

.cm-repory td .radio-circle-button:checked + .radio-label::after {
    top: -4px;
}

.cm-repory details.summary {
    border: solid 2px #dee2e6;
    border-radius: 1rem;
}

.cm-repory details.summary summary {
    padding: .5rem;
    border-radius: 1rem;
    list-style: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: box-shadow .15s ease-in-out;
}

.cm-repory details.summary summary::before {
    font-family: 'Font Awesome 6 Free';
    content: '\f055';
    margin-right: .5rem;
    color: var(--primary);
    font-weight: bold;
}

.cm-repory details.summary[open] summary::before {
    content: '\f056';
}

.cm-repory details.summary .body {
    padding: .5rem 1rem 1rem 1rem;
}

.cm-repory .dropdown-menu-overlay {
    justify-content: center;
    overflow: auto;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1099;
    width: 100%;
    height: 100%;
}

.cm-repory .dropdown-menu-overlay .popup-trigger {
    position: absolute;
    width: 100%;
    height: 100%;
}

.cm-repory table th.row-header {
    position: sticky;
    left: 0;
    z-index: 2;
}

.cm-repory table th.row-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-right: 2px solid #dee2e6;
}

.cm-repory .table tfoot th {
    vertical-align: bottom;
    border-top: 2px solid #dee2e6;
}

.cm-repory-cmp-selectworker .filter-box {
    background-color: rgba(0, 0, 0, .05);
    padding: .25rem;
}

.cm-repory-cmp-selectworker .filter-box .filter-item-label {
    font-size: .8rem;
    padding-left: 1.05rem;
    position: relative;
}

.cm-repory-cmp-selectworker .filter-box .filter-item-label::before {
    font-family: 'Font Awesome 6 Free';
    content: '\f0b0';
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
}

.cm-repory-cmp-selectworker .filter-box button.btn-filter-clear {
    font-size: .8rem;
}

.cm-repory-cmp-selectworker .filter-box .notice-text {
    font-size: .75rem;
    padding-left: 1rem;
    position: relative;
    color: var(--danger);
    animation: fadeout-notice 3s ease-in 0s 1 normal forwards;
}

.cm-repory-cmp-selectworker .filter-box .notice-text::before {
    font-family: 'Font Awesome 6 Free';
    content: '\f05a';
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
}

.cm-repory-cmp-selectworker button.btn-outline-primary:not(:disabled):not(.disabled):not(:hover):not(.active) {
    background-color: #fff;
}

/* 画面固有 */
#cm-repory-workcalendar-workcalendar .aa-cmp-calendar {
    min-width: 525px;
}

#cm-repory-workcalendar-workcalendar .aa-cmp-calendar .calendar-day {
    min-width: 75px;
}

#cm-repory-workcalendar-workcalendar .aa-cmp-calendar .calendar-week .calendar-day.today:not(.out-of-month) {
    border: none;
    outline: solid 2px #000;
    outline-offset: -2px;
}

#cm-repory-workcalendar-workcalendar .aa-cmp-calendar .calendar-week .calendar-day:not(.out-of-month)>div {
    transition: background-color .15s ease-in-out,
                box-shadow .15s ease-in-out;
}

#cm-repory-workcalendar-workcalendar .aa-cmp-calendar .calendar-week .calendar-day:not(.out-of-month)>div:hover {
    background-color: rgba(0, 0, 0, 25%);
}

#cm-repory-workcalendar-workcalendar .aa-cmp-calendar .calendar-week .calendar-day:not(.out-of-month)>div:focus,
#cm-repory-workcalendar-workcalendar .aa-cmp-calendar .calendar-week .calendar-day:not(.out-of-month)>div:focus-visible {
    box-shadow:  0 0 0 .2rem rgba(38, 93, 167, 0.5) inset;
    outline: none;
}

#cm-repory-workcalendar-workcalendar .aa-cmp-calendar .calendar-week .calendar-day>div.warning {
    background: #ffa500;
}

#cm-repory-workreport-workreport .aa-cmp-autocomplete {
    min-width: 250px;
    max-width: auto;
}

#cm-repory-workersummary-workersummary .dropdown-menu,
#cm-repory-groupsummary-groupsummary .dropdown-menu,
#cm-repory-projectsummary-projectsummary .dropdown-menu {
    left: -95px;
    z-index: 1100;
}

/* アニメーション */
@keyframes fadeout-notice {
    0% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}
