.cm-mapping .message-body {
    font-family: inherit;
    font-size: 1rem;
    white-space: pre-wrap;
    background-color: rgb(233, 236, 239);
    border-radius: .25rem;
    border: 1px solid #ced4da;
    word-break: break-all;
    width: 100%;
    padding: .5rem .75rem;
}

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

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

.cm-mapping .radio-label::before,
.cm-mapping .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-mapping td .radio-label::before,
.cm-mapping td .radio-label::after {
    top: -8px;
}

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

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

.cm-mapping .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-mapping td .radio-circle-button:checked + .radio-label::after {
    top: -4px;
}

.cm-mapping .cm-mapping-cmp-inputupdateinterval {
    width: fit-content;
}

.cm-mapping .cm-mapping-cmp-inputupdateinterval:focus-visible {
    outline: none;
}

.cm-mapping .cm-mapping-cmp-inputupdateinterval > button {
    background-color: #fff;
}

.cm-mapping .cm-mapping-cmp-inputupdateinterval > button.active {
    background-color: var(--primary);
}

/* 画面固有 */
#cm-mapping-arealog-arealog .dropdown-menu,
#cm-mapping-coordinatelog-coordinatelog .dropdown-menu {
    left: -107px;
    z-index: 1100;
}

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

#cm-mapping-arealog-arealog .dropdown-menu-overlay .popup-trigger,
#cm-mapping-coordinatelog-coordinatelog .dropdown-menu-overlay .popup-trigger {
    position: absolute;
    width: 100%;
    height: 100%;
}

#cm-mapping-arealog-arealog button.btn-copy,
#cm-mapping-coordinatelog-coordinatelog button.btn-copy {
    border: none;
    padding: .125rem .25rem;
}

#cm-mapping-device-areasetting .auto-complete {
    position: absolute;
    transform: translate(0, .2rem);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    min-width: 50%;
    margin: 0;
    padding: 0;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, .25);
    background-color: #fff;
    z-index: 1100;
    outline: none;
}

#cm-mapping-device-areasetting .auto-complete > li {
    list-style: none;
}

#cm-mapping-device-areasetting .auto-complete > li.header {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    font-size: .75rem;
    padding: .25rem .5rem;
}

#cm-mapping-device-areasetting .auto-complete > li.header::after {
    content: '';
    flex-grow: 1;
    height: 0;
    border: 1px solid #ced4da;
    margin-left: .5rem;
}

#cm-mapping-device-areasetting .auto-complete > li.item {
    padding: .25rem .5rem;
    border-radius: .25rem;
    cursor: pointer;
    transition:
        background-color .15s ease-in-out,
        color .15s ease-in-out;
}

#cm-mapping-device-areasetting .auto-complete > li.item.focus {
    background-color: #555;
    color: #fff;
}

#cm-mapping-device-devices tr.warning {
    background-color: var(--warning);
}

#cm-mapping-device-devices tr.warning .ping-status::before {
    margin-right: .5rem;
    font-family: 'Font Awesome 5 Free';
    content: '\f071';
    font-weight: 900;
    color: #cda618;
}

#cm-mapping-plot-plot .pin {
    cursor: grab;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    position: relative;
    top: -.5rem;
    width: auto;
    padding: .25rem .5rem;
    font-size: 1em;
    font-weight: bold;
    color: var(--font-color);
    border: .125rem solid var(--border-color);
    border-radius: .5rem;
    background-color: var(--bg-color);
    opacity: .5;
    transition: font-size .15s ease-in-out;
}

#cm-mapping-plot-plot .pin::before {
    cursor: grab;
    content: '';
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    width: .5rem;
    height: .5rem;
    background-color: var(--border-color);
    opacity: .5;
    translate: -0.25rem 0;
    clip-path: polygon(0 0, 45% 100%, 55% 100%, 100% 0);
    transition: height .15s ease-in-out;
}

#cm-mapping-plot-plot .pin.active,
#cm-mapping-plot-plot .pin.active::before {
    cursor: pointer;
    opacity: 1;
}

#cm-mapping-plot-plot .pin .index {
    display: block;
}

#cm-mapping-plot-plot .pin .body {
    display: none;
}

#cm-mapping-plot-plot .pin.open {
    font-size: 1.25em;
}

#cm-mapping-plot-plot .pin.open .index {
    display: none;
}

#cm-mapping-plot-plot .pin.open .body {
    display: block;
}

#cm-mapping-plot-plot table.table-timeline {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--secondary);
}

#cm-mapping-plot-plot table.table-timeline tr {
    white-space: nowrap;
}

#cm-mapping-plot-plot table.table-timeline .header {
    position: sticky;
    left: 0;
    padding: .25rem .5rem .25rem .25rem;
    background-color: var(--secondary);
    z-index: 100;
}

#cm-mapping-plot-plot table.table-timeline .anchor {
    width: 2rem;
    min-width: 2rem;
    max-width: 2rem;
}

#cm-mapping-plot-plot table.table-timeline tr.device-row .header {
    cursor: pointer;
    font-size: .75rem;
}

#cm-mapping-plot-plot table.table-timeline tr.device-row .header:focus,
#cm-mapping-plot-plot table.table-timeline tr.device-row .header:focus-visible {
    outline: none;
}

#cm-mapping-plot-plot table.table-timeline tr.device-row.disabled .header {
    text-decoration-line: line-through;
}

#cm-mapping-plot-plot table.table-timeline tr.device-row .data {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .25rem 0;
    width: .5rem;
    min-width: .5rem;
    max-width: .5rem;
}

#cm-mapping-plot-plot table.table-timeline tr.device-row .data .dot {
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    padding: .25rem .5rem;
    font-size: 1em;
    font-weight: bold;
    color: var(--font-color);
    background-color: var(--bg-color);
    border: .125rem solid var(--border-color);
    border-radius: .5rem;
    font-size: .625rem;
    font-weight: bold;
    user-select: none;
    transition:
        background-color .15s ease-in-out,
        border-color .15s ease-in-out,
        color .15s ease-in-out;
}

#cm-mapping-plot-plot table.table-timeline tr.device-row.disabled .data .dot {
    cursor: default;
    background-color: rgb(233, 236, 239);
    border-color: rgb(188, 188, 188);
    color: rgb(168, 168, 168);
}

#cm-mapping-plot-plot table.table-timeline tr.device-row .data .dot.translucent {
    opacity: .5;
    cursor: inherit;
}

#cm-mapping-plot-plot table.table-timeline tr.scale-row .scale {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: end;
    padding: .25rem 0;
    width: .5rem;
    min-width: .5rem;
    max-width: .5rem;
    font-size: .75rem;
}

#cm-mapping-plot-plot table.table-timeline tr.scale-row .scale::before {
    content: '';
    white-space: nowrap;
    position: absolute;
    top: 0;
    left: 50%;
    height: 5px;
    width: .5rem;
    border-left: 1px solid #000;
    border-bottom: 1px solid #000;
}

#cm-mapping-plot-plot table.table-timeline tr.scale-row .scale:nth-last-child(2)::before {
    border-bottom: none;
}

#cm-mapping-plot-plot .summary {
    display: inline-flex;
    flex-direction: column;
    height: 100%;
}

#cm-mapping-plot-plot .summary .header .btn-close {
    padding: .125rem;
}

#cm-mapping-plot-plot .summary .header .btn-close:focus,
#cm-mapping-plot-plot .summary .header .btn-close.focus {
    box-shadow: inset 0 0 0 .2rem rgba(0, 64, 152, .25);
}

#cm-mapping-plot-plot .summary .body {
    display: inline-flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
    height: 100%;
    padding: .5rem .5rem .5rem 0;
    margin: 0 .2rem .5rem 0;
}

#cm-mapping-plot-plot .summary .body ul {
    padding: 0;
    margin-bottom: 0;
}

#cm-mapping-plot-plot .summary .body ul li {
    list-style: none;
}

#cm-mapping-plot-plot .summary .body ul li .time {
    font-size: 1rem;
}

#cm-mapping-plot-plot .summary .body ul li .dot {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    padding: .25rem .5rem;
    color: var(--font-color);
    background-color: var(--bg-color);
    border: .125rem solid var(--border-color);
    border-radius: .5rem;
    font-size: 1rem;
    font-weight: bold;
}

#cm-mapping-plot-plot .summary .body ul li .coordinate {
    font-size: 1rem;
    padding-top: .125rem;
    margin-bottom: .125rem;
}

#cm-mapping-plot-plot .summary .body ul li .line {
    width: 0;
    height: 100%;
    border: solid 1px var(--border-color);
}
