:root {
    color: 0x000000;
}

.icom-bg {
  background-color: #fcfcfd;
}

.navbar-brand-icom {
  display: inline-block;
  margin-left: 0.625rem;  /* 10px */
  margin-top: 0.0625rem;   /* 1px  (topマージン:3pxのうち、残り2pxは「.navbar {padding-top:    0.125rem;}」で設定) */
  font-size: 1.25rem;
  line-height: inherit;
  white-space: nowrap;
}

.logo-navbar-xl {
  opacity: 1;
  visibility: visible;
}

.icom-cwrapper-padding {
    padding-left: 3.75rem;
    padding-right: 3.75rem;
    padding-top: 1.5rem;
}

@media (max-width: 992px) {
    .icom-cwrapper-padding {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-top: 1.5rem;
    }
}

.icom-button-wide {
    --expand-y: 4px;
    font-size: 14px;
    color: #ffffff;
    height: 36px;
    min-width: 128px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    margin-top: calc(var(--expand-y));
    margin-bottom: calc(var(--expand-y));
    position: relative;
    border-radius: 4px;
    border: solid 1px;
    border-color: #e0e0e0;

    &::after {
        content: "";

        /* Debug the area, to make it easier to see tappable area */
        /* outline: 2px solid #f008; */

        /* expand available area */
        width: calc(100%);
        height: calc(100% + (2 * var(--expand-y)));

        /* Trick to center around the containing element */
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

.icom-button-wide.icom-button-l {
    height: 44px;
    margin-top: 0px;
    margin-bottom: 0px;
    /* XXX: .icom-button-wide::afterをリセットする目的で定義、もっと良い方法探したい */
    &::after {
        outline: 0;
        width: 0;
        height: 0;
    }
}

/* hover overlay color */
.icom-button-wide::before{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
}

.icom-button-wide:hover::before {
    opacity: 0.04;
}

.icom-button-wide:active::before {
    opacity: 0.12;
}

.icom-button-primary {
    background-color: #0066ff;

    [class^="icom-icon-"], [class*=" icom-icon-"] {
        &::before {
            margin-right: 4px;
            font-size: 16px;
            color: #ffffff;
        }
    }
}

.icom-button-secondary {
    background-color: #fafafa;
    color: #000000;
}

.icom-button-secondary-gray {
    background-color: #6c757d;
    color: #ffffff;
}

.icom-button-danger {
    background-color: #db173b;
    color: #ffffff;
}

.icom-button-wide:disabled,
.icom-button-l:disabled,
.icom-button-primary:disabled,
.icom-button-secondary:disabled,
.icom-button-wide.icom-button-l:disabled {
    opacity: 0.4;
}

/* table */
.icom-table-header {
    background-color: #f8f8f9 !important;
    position: sticky;
    top: 0;
    z-index: 1;
    outline: 1px solid #f8f8f9;
}

.icom-table-odd-row {
    background-color: #ffffff !important;
}

.icom-table-even-row {
    background-color: #f4f4f5 !important;
}

.table th.icom-table-th {
    border-top-style: none !important;
    border-bottom-style: none !important;
    padding-bottom: 0.5rem;
    white-space: nowrap;
}

.table.icom-table {
    margin-right: 1px;
    margin-left: 1px;
    width: calc(100% - 2px);
}

.icom-table-small,
.table.icom-table-small {
    margin-right: 1px;
    margin-left: 1px;
    @media screen and (max-width:640px) {
        width:99%;
    }

    @media screen and (min-width:641px) {
        width:60%;
    }
}

.table tbody+tbody.icom-table-tbody{
    border-top: none;
}

.table tbody.icom-table-tbody {
    outline: 1px solid #e0e0e0;
    border-radius: 8px;
}

.table tr.icom-table-tr {
    height: 48px;
}


.table tr.icom-table-tr-clickable:hover {
    background: rgba( 0, 0, 0, 0.04 ) !important;
    cursor: pointer;
}

.table tr.icom-table-tr-clickable:active {
    background: rgba( 0, 0, 0, 0.08 ) !important;
}

.table td.icom-table-td {
    border: none;
    height: 48px;
    vertical-align: middle;
}

.table td.icom-table-td-device {
    position: relative;
    &::before {
        position: absolute;
        left: 5px;
        top: -10px;
        width: 40px; height: 20px;
        line-height: 10px;
        /* box-shadow: 0 0 5px #333; */
        border-radius: 10%;
        /* background: #333; */
        background: white;
        border: 2px solid #333;
        color: black; font-size: 0.8rem;
        text-align: center;
        align-content: center;
        content: 'Device';
        z-index: 999;
        font-family: inherit;
    }
}

.table td.icom-table-td-sim1 {
    position: relative;
    &::before {
        position: absolute;
        left: 5px;
        top: -5px;
        width: 40px; height: 20px;
        line-height: 10px;
        /* box-shadow: 0 0 5px #333; */
        border-radius: 10%;
        /* background: #333; */
        background: white;
        border: 2px solid #333;
        color: black; font-size: 0.8rem;
        text-align: center;
        align-content: center;
        content: 'SIM1';
        z-index: 999;
        font-family: inherit;
    }
}

.table td.icom-table-td-sim2 {
    position: relative;
    &::before {
        position: absolute;
        left: 5px;
        top: -5px;
        width: 40px; height: 20px;
        line-height: 10px;
        /* box-shadow: 0 0 5px #333; */
        border-radius: 10%;
        /* background: #333; */
        background: white;
        border: 2px solid #333;
        color: black; font-size: 0.8rem;
        text-align: center;
        align-content: center;
        content: 'SIM2';
        z-index: 999;
        font-family: inherit;
    }
}

.table td.icom-table-td-error {
    position:relative;
    text-decoration: red dotted underline;
}

.table th.icom-table-th,
.table td.icom-table-td {
    padding-left: 1rem;
    padding-right: 0;
}

.table td.icom-table-td-activate {
    text-align: center;
}
.table th.icom-table-th-action,
.table td.icom-table-td-action {
    text-align: center;
    min-width: 120px;
}

.table td.icom-table-td.icom-table-td-checkbox,
.table th.icom-table-th.icom-table-th-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    padding: 0.5rem 0 0.5rem 1rem;
    /* チェックボックスの左右に1remの余白を設ける。(checkboxの右隣タッチに範囲を設ける) */
    padding: 0.5rem 1rem 0.5rem 1rem;
}

.table th.icom-table-th.icom-table-th-checkbox+th.icom-table-th,
.table td.icom-table-td.icom-table-td-checkbox+td.icom-table-td {
    /* ↑ チェックボックスの右隣のセルの場合 */
    /*   左の余白(1rem)は削除する (チェックボックス側のセルで1rem分の余白を設けているので) */
    padding-left: 0rem;
}

.table td.icom-table-td.icom-table-td-checkbox {
    height: 48px;
    padding: 0.875rem 0 0.875rem 1rem;
}

.table td.icom-table-td.icom-table-td-checkbox .checkbox,
.table th.icom-table-th.icom-table-th-checkbox .checkbox {
    padding-right: 0;
    width: 1.25rem;
    height: 1.25rem;
}

/* ↓の[type="checkbox"]::after の開始位置を、th, tdセルの右上端になるように。*/
.table th.icom-table-th.icom-table-th-checkbox,
.table td.icom-table-td.icom-table-td-checkbox {
    position:relative;
}
/* checkboxのタッチ範囲をセルいっぱいに広げる */
.table td.icom-table-td.icom-table-td-checkbox .checkbox [type="checkbox"]::after,
.table th.icom-table-th.icom-table-th-checkbox .checkbox [type="checkbox"]::after{
    content : "";
    position: absolute;
    left    : 0;
    top     : 0;
    width   : 100%;
    height  : 100%;
}

.table td.icom-table-td.icom-table-td-checkbox .checkbox-style,
.table th.icom-table-th.icom-table-th-checkbox .checkbox-style,
.icom-columnselect-menu .checkbox-style {
    appearance: none;
    height: 1.25rem;
    width: 1.25rem;
    border: 1px solid #757575;
    border-radius: 0.25rem;
    cursor: pointer;
}

.table td.icom-table-td.icom-table-td-checkbox .checkbox-style:checked,
.table th.icom-table-th.icom-table-th-checkbox .checkbox-style:checked,
.icom-columnselect-menu .checkbox-style:checked{
    border: 1px solid #005ce5;
    background-color: #0066ff;
}

.table td.icom-table-td.icom-table-td-checkbox .checkbox-style:checked::before,
.table th.icom-table-th.icom-table-th-checkbox .checkbox-style:checked::before,
.icom-columnselect-menu .checkbox-style:checked::before {
    display: grid;
    place-content: center;
    color: white;
    height: 100%;
    font-family: "icom-material-icons";
    font-size: 1.25rem;
    content: "\e908";
}

/*
.table th.icom-table-th-action,
.table td.icom-table-td-action {
}
*/

/* 一覧テーブルの actionカラム の a:focus のサイズを アイコン:hoverと等しくする。ここから */
.icom-table-td:has(.icom-icon-action){
  padding: 0;
}
.icom-table-action-edit,
.icom-table-action-delete,
a:has(.icom-icon-visibility){
  padding: 6px 0px;
  margin : 0px 4px; /* アイコン間のマージン 8px */
}
.icom-table-action-edit:focus,
.icom-table-action-delete:focus,
a:has(.icom-icon-visibility):focus{
    border-radius: 4px;
}
/* ここまで */

[class^="icom-icon-"].icom-icon-action,
[class*=" icom-icon-"].icom-icon-action {
    color: #616161;
    font-size: 24px;
    height: 24px;
    width: 24px;
    padding: 6px;
    border: none 4px;
    position: relative;
    vertical-align: middle;
}

[class^="icom-icon-"].icom-icon-action:hover,
[class*=" icom-icon-"].icom-icon-action:hover {
    background: rgba( 0, 0, 0, 0.04 );
    border-radius: 4px;
}


/* toggle switch */
div.custom-control-right {
    padding-right: 40px;
    padding-left: 0;
    margin-left: 0;
    margin-right: 0;
}

div.custom-control-right .custom-control-label {
    display: flex;
}

div.custom-control-right .custom-control-input {
    display: flex;
    margin-left: auto;
}

div.custom-control-right .custom-control-label::after{
    right: -1.5rem;
    left: auto;
}
div.custom-control-right .custom-control-label::before {
    right: -2.35rem;
    left: auto;
}

.toggle-switch_label {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.toggle-switch_sub input[type='checkbox'] {
    position: absolute;
    width: 0;
    height: 0;
}

.toggle-switch_base {
    width: var(--toggle-width);
    height: 20px;
    border-radius: 10px;
    background-color: #ffffff;
    border: 1px solid #757575
}

.toggle-switch_circle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: var(--toggle-margin-left);
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background-color: #757575;
    transition: 0.5s;
}

.toggle-switch_sub {
    flex-direction: row;
    position: relative;
    --toggle-width: 40px;
    --toggle-margin-left: 4px;
    --toggle-margin-right: 3px;
}

.toggle-switch {
    margin-left: auto;
}

input:checked ~ .toggle-switch_base {
    border-radius: 10px;
    background-color: #0066ff;
    border: 1px solid #005ce5;
    transition: 0.5s;
}

input:checked ~ .toggle-switch_circle {
    width: 14px;
    height: 14px;
    border-radius: 7px;
    background-color: white;
    translate: calc(var(--toggle-width) - var(--toggle-margin-left) - var(--toggle-margin-right) - 100%);
}

.icom-table-td-activate-invalid {
    color: #9A9A9A;
}

.icom-icon-check_circle_settings {
    color: #008b00;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* usermenu */
.navbar-nav > .user-menu > .icom-usermenu-dropdown {
    background-color: #ffffff;
    width: auto;
    min-width: 12.5rem;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem 0 rgba(0,0,0,0.16);
}

.navbar-nav > .user-menu > .icom-usermenu-dropdown > .icom-usermenu-footer {
    background-color: #ffffff;
    padding: 0.25rem;
    display: flex;
    flex-flow: column;
}

.navbar-nav > .user-menu > .icom-usermenu-dropdown > .icom-usermenu-footer > .icom-usermenu-flex {
    font-size: 0.875rem;
    color: #000;
    align-content: center;
    width: 100%;
    min-width: 12.5rem;
    height: 2.75rem;
    text-align: left;
    padding: 0 3rem 0 0.5rem;
    border-width: 0px;
    text-wrap: nowrap;
    display: flex;
    align-items: center;

    [class^="icom-icon-"], [class*=" icom-icon-"] {
        &::before {
            margin-right: 0.5rem;
            font-size: 1.25rem;
            color: #000;
        }
    }

    &:hover {
        border-radius: 4px;
        background: rgba( 0, 0, 0, 0.04);
    }

    &:focus {
        border-radius: 4px;
    }
}

/* alert */
.icom-alert {
    font-size: 0.875rem;
    color: #000000;
    padding: 0.75rem 1rem;
    border: solid 1px #eeeeef;
    border-radius: 6px;
}

.icom-alert .icom-alert-sub {
    display: flex;
    align-items: center;
}

.icom-alert .icom-alert-message-wrapper {
    font-size: 1.25rem;
}

.icom-alert-success {
    background-color: #dff6dd;
    .icom-icon-check_circle_fill {
        &::before {
            padding-right: 0.5rem;
            color: #008b00;
        }
    }
}

.icom-alert-danger {
    background-color: #fde7e9;
    .icom-icon-error_fill {
        &::before {
            padding-right: 0.5rem;
            color: #db173b;
        }
    }
}

.icom-alert-warning {
    background-color: #fff4ce;
    .icom-icon-warning_fill {
        &::before {
            padding-right: 0.5rem;
            color: #eb9604;
        }
    }
}

.icom-alert-info {
    background-color: #fafafa;
    .icom-icon-info_fill {
        &::before {
            padding-right: 0.5rem;
            color: #005ea7;
        }
    }
}

.nav-sidebar .nav-link [class^="icom-icon-"],
.nav-sidebar .nav-link [class*=" icom-icon-"] {
  font-size:    1.5rem;
  color:        #424242;
  margin-left:  0.75rem;
  margin-right: 0.5rem;
}

.nav-sidebar .nav-link.active [class^="icom-icon-"],
.nav-sidebar .nav-link.active [class*=" icom-icon-"] {
  color: #e90505;
}

.nav-sidebar .nav-link > p > .right.icom-icon-expand_more {
  transform: rotate(-90deg);
  margin-left:  0rem;	/* サイドバーのメニューアイコン向けマージンは不要 */
  margin-right: 0rem;
}

.nav-sidebar :is(.menu-open, .menu-is-opening) .nav-link > p > .right.icom-icon-expand_more {
  transform: rotate(0deg);
}

/* filter-button */
.icom-filter-btn {
    display: flex;
    align-items: center;
    &:is(.btn, .btn-light) > .icom-icon-expand_more {
        display: inline-block;
        font-size: 1.25rem;
        &.menu-open {
            transform: rotate(180deg);
        }
    }
}

/* dropdwon */
.icom-dropdown-wrapper {
    position: relative;
    height: 2.25rem;
    flex: auto;
    &:not(.icom-dropdown-dummy)::after {
        font-family: 'icom-material-icons';
        content: "\e903";
        position: absolute;
        font-size: 1rem;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        pointer-events: none;
    }
    &:has(.icom-dropdown-l) {
        height: 2.75rem;
    }
}

.icom-dropdown, .icom-dropdown-l {
    font-size: 0.875rem;
    color: #000000;
    height: 2.25rem;
    background-color: #ffffff;
    border: solid 1px;
    border-radius: 6px;
    border-color: #e0e0e0;
    align-content: center;
    padding-left: 0.875rem;
    padding-right: 0;
    appearance: none;

    &.form-control.is-invalid {
        border-color: #fe3334;
        background-color: #ff9f9f;
        background-image: unset;
        background-repeat: unset;
        background-position: unset;
        background-size: unset;
    }

    .icom-dropdown-default {
        color: #d1d1d1;
    }
}

.icom-dropdown-l {
    height: 2.75rem;
}

/* virtual dropdown */
.icom-v-dropdown {
    position: relative;
    min-height: 2.25rem;
    border-radius : 0.375rem;
    > .icom-v-dropdown-list {
        position: absolute;
        display: flex;
        flex-flow: column;
        width: 100%;
        top: 100%;
        background-color: #FFFFFF;
        outline: 1px solid black;
        max-height: 9rem;
        overflow-y: scroll;
        z-index: 1010;
    }
}

.icom-v-dropdown-element {
    min-height: 2.25rem;
    align-content: center;
    padding-left: 0.875rem;
    &:hover {
        background: rgba( 0, 0, 0, 0.04 );
        cursor: pointer;
    }
    &.selected {
        background: rgba( 0, 0, 0, 0.08 );
    }
}

.icom-filter-overlay .icom-filter-body span.select2-selection.select2-selection--multiple {
    min-height: 2.75rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    align-items: center;
    display: flex;
}
.icom-filter-overlay .icom-filter-body span.select2.select2-container.select2-container--default.select2-container--focus.select2-container--below {
    outline: 2px solid #000000;
    border-radius: 6px;
}

.icom-dropdown-wrapper:has(.select2-container) {
    font-size: 0.875rem;
    height: fit-content;
}

.icom-filter-overlay .icom-filter-body .select2-container {
    display: flow;
}

.icom-filter-overlay .icom-filter-body .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #0066ff;
    color: #ffffff;
    border: 1px solid #e0e0e0;
    margin: 1px 0;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered li,
.select2-container--default .select2-selection--multiple .select2-selection__rendered .select2-search.select2-search--inline .select2-search__field {
    margin: 1px 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered .select2-search.select2-search--inline .select2-search__field::placeholder {
    color: #000000;
    opacity: 1;
}

/* modal */
.icom-modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.icom-fade {
    transition: opacity 0.15s linear;
}

.icom-fade:not(.show) {
    opacity: 0;
}

.icom-modal-dialog {
    position: relative;
    width: auto;
    /* margin: 0.5rem; */
    margin: 1.25rem;
    pointer-events: none;
}

.icom-modal.show .icom-modal-dialog {
    -webkit-transform: none;
    transform: none;
}

.icom-modal-dialog-scrollable {
    display: flex;
    max-height: calc(100% - 1rem);
}

.icom-modal-dialog-scrollable .icom-modal-content {
    max-height: calc(100vh - 1rem);
    overflow: hidden;
}

.icom-modal-dialog-scrollable .icom-modal-header,
.icom-modal-dialog-scrollable .icom-modal-footer {
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.icom-modal-dialog-scrollable .icom-modal-body {
    overflow-y: auto;
}

.icom-modal-dialog-centered {
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.icom-modal-dialog-centered::before {
    /* display: block; */
    height: calc(100vh - 1rem);
    height: -webkit-min-content;
    height: -moz-min-content;
    height: min-content;
    content: "";
}

.icom-modal-dialog-centered.icom-modal-dialog-scrollable {
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100%;
}

.icom-modal-dialog-centered.icom-modal-dialog-scrollable .icom-modal-content {
    max-height: none;
}

.icom-modal-dialog-centered.icom-modal-dialog-scrollable::before {
    content: none;
}

.icom-modal-content {
    position: relative;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.5);
    outline: 0;
}

.icom-modal-header {
    display: flex;
    -ms-flex-align: start;
    /* align-items: flex-start; */
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 16px;
    /* border-bottom: 1px solid #e9ecef;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px); */
}

.icom-modal-header .close, .icom-modal-header .mailbox-attachment-close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
}

.icom-modal-title {
    font-size: 1.5rem;
    font-family: inherit;
    font-weight: 600;   /* semibold */
    color: #000000;
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.icom-modal-body {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 20px;
}

.icom-modal-footer {
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 20px;
    /* border-top: 1px solid #e9ecef;
    border-bottom-right-radius: calc(0.3rem - 1px);
    border-bottom-left-radius: calc(0.3rem - 1px); */
}

.icom-modal-footer > * {
    margin: 0.25rem;
}


.icom-modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}

@media (min-width: 576px) {
    .icom-modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
    .icom-modal-dialog-scrollable {
        max-height: calc(100% - 3.5rem);
    }
    .icom-modal-dialog-scrollable .icom-modal-content {
        max-height: calc(100vh - 3.5rem);
    }
    .icom-modal-dialog-centered {
        min-height: calc(100% - 3.5rem);
    }
    .icom-modal-dialog-centered::before {
        height: calc(100vh - 3.5rem);
        height: -webkit-min-content;
        height: -moz-min-content;
        height: min-content;
    }
    .icom-modal-content {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
    }
    .icom-modal-sm {
        max-width: 300px;
    }
}

@media (min-width: 992px) {
    .icom-modal-lg,
    .icom-modal-xl {
        max-width: 800px;
    }
}

@media (min-width: 1200px) {
    .icom-modal-xl {
        max-width: 1140px;
    }
}

.icom-modal-button-wrapper {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    gap: 0.5rem;
    width: fit-content;
}

.icom-modal-body label.form-label {
    font-size: 1rem;
    font-weight: 600;   /* semibold */
    margin-bottom: 0.25rem;
}

.icom-modal-close {
    display: flex;
    float: right;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    size: 36px;
    font-size: 24px;
    /* font-weight: 700; */
    line-height: 1;
    color: #616161;
    background-color: #ffffff;
    /* padding : 4px; */
    /* text-shadow: 0 1px 0 #fff; */
    /* opacity: .5; */
    border-style:none;
    /* border: 4px hidden; */
    border-radius: 0.25rem;
}

.icom-modal-close::before {
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
    top: -4px;
    bottom: -4px;
    left: -4px;
    right: -4px;
}

.icom-modal-close:hover {
    background-color: #f8f8f8;
}

.icom-modal-body .invalid-feedback {
    width: 100%;
    font-size: 14px;
    font-weight:normal;
    margin-top: 4px;
    color: #db173b;
}

.icom-modal-body strong {
    font-weight:normal;
}

/* tab */
.icom-modal-body .tab-body {
    padding-left: 0px;
    padding-right: 0px;
    margin-bottom: 40px;
}

.icom-modal-body .tab-footer {
    display: flex;
    justify-content: flex-end;
    padding-left: 0px;
    padding-right: 0px;
}

.icom-modal-body .tab-footer > * {
    margin: 0.25rem;
}

/* bulk-actions */
.icom-bulk-actions {
    display: flex;
}

.icom-bulk-actions-label {
    font-size: 0.875rem;
    font-weight: 600; /* semibold */
    color: #0066ff;
    margin: auto 0 auto 1rem;
    min-width: fit-content;
}

.icom-bulk-actions-btn {
    font-size: 0.75rem;
    color: #0066ff;
    height: 1.75rem;
    padding: 0 1rem;
    margin: auto 0 auto 1rem;
    border: 1px solid #0066ff;
    border-radius: 0.875rem;
    min-width: fit-content;
}

.icom-bulk-actions-sellect {
    margin: auto 0 auto 1rem;
}

.icom-bulk-actions-dropdown-btn {
    font-size: 0.75rem;
    color: #ffffff;
    border-radius: 0.875rem;
    background-color: #0066ff;
    height: 1.75rem;
    padding: 0 0 0 1rem;
    position: relative;
    min-width: fit-content;
    border: none;

    & > div{
        display    : flex;
        align-items: center;

        &::after {
            font-family: 'icom-material-icons';
            content: "\e903";
            font-size: 1rem;
            z-index: 10;
            pointer-events: none;
            margin: auto 0.375rem;
        }
    }
}

.icom-bulk-actions-dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0.375rem;
    padding: 0.25rem;
    flex-flow: column;
    color: #000000;
    min-width: 12.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.16);

    i {
        margin-right: 0.5rem;
    }
}

.icom-bulk-actions-dropdown-item {
    font-size: 0.875rem;
    color: #000000;
    align-content: center;
    background: rgba(0, 0, 0, 0);
    width: 100%;
    height: 2.75rem;
    text-align: left;
    text-wrap: nowrap;
    display: flex;
    align-items: center;
    padding: 0 3rem 0 0.5rem;
    border-radius: 0.375rem;

    [class^="icom-icon-"],
    [class*=" icom-icon-"] {
        &::before {
            margin-right: 0.5px;
            font-size: 1.25rem;
            color: #000000;
        }
    }
}

/* textbox */
.input-group.icom-textbox .form-control,
.input-group.icom-textbox .custom-file-label {
  font-size    : 0.875rem;
  color        : #000000;
  padding-left : 0.5rem;
  padding-right: 0rem;
  border-color : #e0e0e0;

  &.icom-textbox-readonly:read-only {
      background-color: #ffffff;

      &.is-invalid {
          background-color : #ff9f9f;
      }
  }
}
.input-group.icom-textbox .form-control::placeholder,
.input-group.icom-textbox .custom-file-label.is-placeholder {
  color   : #d1d1d1;
}
.input-group.icom-textbox .custom-file-label,
.input-group.icom-textbox .custom-file-label::after {
  display     : flex;
  align-items : center;
}
.input-group.icom-textbox .input-group-append > .input-group-text {
  color           : #616161;
  padding-left    : 0.375rem;
  padding-right   : 0.375rem;
  border-color    : #e0e0e0;
  background-color: #ffffff;
}
.input-group.icom-textbox .input-group-append > .input-group-text {
  border-left-color: transparent;
}
.input-group.icom-textbox:has(:not(.input-group-append)) .form-control.is-invalid,
.input-group.icom-textbox:has(:not(.input-group-append)) .custom-file-input.is-invalid ~ .custom-file-label
{
  border-color: #fe3334;
}
.input-group.icom-textbox:has(:not(.input-group-append)) .custom-file-input.is-invalid ~ .custom-file-label::after
{
  border-left-color: transparent;
}
.input-group.icom-textbox:has(.form-control.is-invalid) .input-group-append > .input-group-text {
  background-color : #ff9f9f;
  border-left-color: transparent;
}
.input-group.icom-textbox:has(.input-group-append) .form-control,
.input-group.icom-textbox:not(.has-validation):has(.input-group-append):has(.input-group-append) .form-control.is-invalid{
  border-right-color : transparent;
}
.input-group.icom-textbox.icom-textbox-size-m .form-control,
.input-group.icom-textbox.icom-textbox-size-m .custom-file-label {
  border-radius : 0.25rem;
  height        : 2.25rem;
}
.input-group.icom-textbox.icom-textbox-size-l .form-control,
.input-group.icom-textbox.icom-textbox-size-l .custom-file-label {
  border-radius : 0.375rem;
  height        : 2.75rem;
}
.input-group.icom-textbox.icom-textbox-size-m .input-group-append > .input-group-text {
  border-top-right-radius    : 0.25rem;
  border-bottom-right-radius : 0.25rem;
}
.input-group.icom-textbox.icom-textbox-size-l .input-group-append > .input-group-text {
  border-top-right-radius    : 0.375rem;
  border-bottom-right-radius : 0.375rem;
}
.input-group.icom-textbox.icom-textbox-size-m .custom-file,
.input-group.icom-textbox.icom-textbox-size-m .custom-file-input,
.input-group.icom-textbox.icom-textbox-size-m .custom-file-label::after {
  height        : 2.25rem;
}
.input-group.icom-textbox.icom-textbox-size-l .custom-file,
.input-group.icom-textbox.icom-textbox-size-l .custom-file-input,
.input-group.icom-textbox.icom-textbox-size-l .custom-file-label::after {
  height        : 2.75rem;
}

.input-group.icom-textbox.icom-textbox-size-l:has(.form-control:focus)
{
  border-radius : 0.375rem;
}
.input-group.icom-textbox.icom-textbox-size-m:has(.form-control:focus)
{
  border-radius : 0.25rem;
}
.input-group.icom-textbox:has(.is-invalid) ~ .invalid-feedback{
  display: block;
}

/* :focus(icomコンポーネント(button/dropdown/textbox/toggle switch) ) */
.input-group.icom-textbox:has(.form-control:focus),  /* テキスト入力 */
.input-group.icom-textbox .custom-file .custom-file-input:focus ~ .custom-file-label,/* ファイル入力 */
.toggle-switch_sub > input:focus ~ .toggle-switch_base,                              /* toggle switch */
.icom-button-wide:focus:not(:focus-visible),                                         /* ボタン */
.icom-button-wide:focus-visible,                                                     /* ボタン (tabキー選択) */
.icom-dropdown-wrapper .form-control:focus                                           /* ドロップダウンリスト */
{
  outline       : 2px solid #000000;  /* 外側の線になる2pxの一本線の枠線をひく */
  outline-offset: 1px;                /* 境界と外側線の間の白線 */
}
.icom-dropdown-wrapper:not(:has(.is-invalid)) .form-control:focus {
  border-color: #e0e0e0;
}

/* :focus(上記以外 ) */
a:focus,             /* リンク */
[id^="datatable-"] .form-control:focus, /* laravel-livewire-tablesコンポーネント  */
button:not(.icom-button-wide):focus,
[id^="datatable-"] input[type="checkbox" i]:focus /* 一覧テーブルのカラム選択メニュー */
{
  border : 0;
  outline: 2px solid #000000;
}

button.icom-button-wide:has([class^="icom-icon-"]) {
    display: flex;
    align-items: center;
}

.main-sidebar a:focus,
    /* サイドバーのメニュー                                                                        */
    /*   「Admin Menu」を閉じた際に、フォーカス枠の下部が隠れるので、outlineを内側にする。         */
    /*    (フォーカス枠が「Admin Menu」だけ小さいといびつなので、サイドバーメニューすべてで揃える) */
.modal-dialog .modal-header .close:focus,
[id^="datatable-"] .row .page-link:focus,
.icom-modal-body .nav-tabs a.nav-link:focus
{
  outline-offset: -2px;
}
.navbar-expand .navbar-nav a.nav-link:focus,
.navbar-nav .nav-item a:has(.navbar-img):focus{
  border-radius: 4px;
}
[id^="datatable-"] input[type="checkbox" i]:focus-visible,
[id^="datatable-"] input[type="checkbox" i]:focus
        /* 一覧テーブルのカラム選択メニュー       */
        /*   focusとfocus-visibleを同じ形状にする */
{
  outline-offset: -1px; /* チェックボックスとフォーカス枠との間に余白線が入らないように調整 */
}


/* カード表示 */
.icom-card-footer{
    display         : flex;
    justify-content : flex-end;
    padding         : 0 1.25rem 1.25rem 1.25rem;
}
.card-body:has(+.icom-card-footer){
    padding-bottom:0;
}

/* フィルター */
.icom-filter:has(.icom-filter-overlay){
  display  : flex;
  z-index  : 4;                    /* 一覧テーブル下部のページネーションおよび結果がフィルターより下になるように */
  bottom   : 100%;
}
.icom-filter:has(.icom-filter-overlay):has(.dropdown-menu-right){
  flex-direction: row-reverse;
}
.icom-filter.icom-filter-sticky{
  position : sticky;               /* スクロール時に画面上部に固定                        */
  top      : calc(3.0rem + 2px);   /* 固定される位置  3.0rem=トップバー高さ、2px=focus幅  */
}
.icom-filter-button{
  --expand-y   : 0.25rem;
  font-size    : 0.875rem;
  font-weight  : 400; /* reguler */
  color        : #000000;
  height       : 2.25rem;
  border-color : #e0e0e0;
  border-radius: 1.125rem;
  display      : flex;
  align-items  : center;
  padding-left : 1rem;
  padding-right: 1rem;
  background   : #ffffff;
  margin-top   : calc(var(--expand-y));
  margin-bottom: calc(var(--expand-y));

  span{
    font-size : 1.25rem;
  }

  p{
    margin : 0 0 0 0.5rem;

    @media screen and (max-width:640px){
      display:none;
    }
  }
}
.icom-filter-overlay {
    @media screen and (max-width:640px) {
        position: static;
    }
}
.icom-filter-overlay .dropdown-toggle::after,
.icom-filter-overlay .dropup .dropdown-toggle::after{
  display:none
}
.icom-filter-button.filter-enable{
  color       : #ffffff;
  background  : #000000;
}
.icom-filter-overlay .icom-filter-body{
  padding         : 0 1rem 0.5rem 1rem;
  background-color: #fff;
  border-color    :#e0e0e0;
  border-radius   : 8px;
  box-shadow      : 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.16);
  min-width       : 35vw;
  @media screen and (max-width:640px){
    min-width       : calc(90vw - 0.5rem *2 - 7.5px*2 - 1.25rem*2); /* 減算は 「.content-wrapper > .content」 「.container-fluid」+「.icom-cwrapper-padding」の左右padding値 */
    top: auto;
    /* テーブル周辺の余白分 */
    margin: 0 calc(0.5rem + 7.5px + 1.25rem); /* 「.content-wrapper>.content」+「.container-fluid」+「.icom-cwrapper-padding」 */

    &.dropdown-menu-left {
        left: 0;
    }
    &.dropdown-menu-right {
        right: 0;
    }
  }
  margin-top      : -0.25rem;
  max-height      : calc(100vh - 3.0rem - 2px - 2.25rem - 1rem);
                      /* 画面高さ - トップバー高さ - フィルタボタンフォーカス幅 - フィルタボタン高さ - フィルタボタン～フィルタウィンド間マージン */
}
.icom-filter-body-title{
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  height         : 3rem;

  label:not(.form-check-label):not(.custom-file-label){
    font-size   : 1rem;
    font-weight  : 600; /* semibold */
    margin-bottom: 0;
  }
  a{
    font-size   : 1rem;
    font-weight : 600; /* semibold */
    color       : #0066ff;
  }
}
.icom-filter-body label:not(.form-check-label):not(.custom-file-label):has( + .icom-textbox),
.icom-filter-body label:not(.form-check-label):not(.custom-file-label):has( + .icom-dropdown-group),
.icom-filter-body label:not(.form-check-label):not(.custom-file-label):has(.toggle-switch){
  font-size   : 0.875rem;
  font-weight : 400; /* reguler */
}
.icom-filter-embed .card-body{
  padding: 0 1rem;
}
button.filter-enable:not(.icom-button-wide):focus
{
  outline       : 2px solid #000000;  /* 外側の線になる2pxの一本線の枠線をひく */
  outline-offset: 1px;                /* 境界と外側線の間の白線 */
}

/* larabel-livewire-table      */
/* columnsドロップダウンボタン */
button.icom-columnselect-button{
  --expand-y      : 0.25rem;
  font-size       : 0.875rem;
  font-weight     : 400;
  color           : #000000;
  height          : 2.25rem;
  border-color    : #e0e0e0;
  border-radius   : 1.125rem;
  background-color: #fff;
  padding-left    : 1rem;
  padding-right   : 0.375rem;
  margin-top      : calc(var(--expand-y));
  margin-bottom   : calc(var(--expand-y));

  & > div{
    display     : flex;
    align-items : center;

    span{
      font-size : 1.25rem;

      &.dropdown-item-text{
        font-size : 1rem;
        color     : #616161;
        padding   : 0 0 0 0.375rem;
      }
    }

    p{
      margin : 0 0 0 0.5rem;

      @media screen and (max-width:640px){
        display : none;
      }
    }
  }
}
/* columnsドロップダウンメニュー */
.icom-columnselect-menu{
  font-size     : 0.875rem;
  color         : #000000;
  box-shadow    : 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.16);
  padding       : 0.25rem;
  border        : 1px #e0e0e0;
  border-radius : 0.375rem;
  margin-top    : 0.625rem;

  .icom-columnselect-menu-item{
    height      : 2.75rem;
    display     : flex;
    align-items : center;

    label{
      display     : flex;
      align-items : center;
      height      : 100%;
      width       : 100%;

      &:hover {
        border-radius : 4px;
        background    : rgba(0, 0, 0, 0.04);
      }

    }
  }
}
/* pagenation セレクトボックス */
.icom-per-page-field{
  --expand-y      : 0.25rem;
  font-size       : 0.875rem;
  height          : 2.25rem;
  margin-top      : calc(var(--expand-y));
  margin-bottom   : calc(var(--expand-y));
}

/* accordion アコーディオン */
.accordion_menu {
    margin: 1px;
    padding: 0;
    list-style: none;
}
button.accordion_menu_btn,
button.accordion_menu_btn:focus {
    background-color: #f8f8f9;
    font-size: 1.5rem;
    /* クリックできるカーソル */
    cursor: pointer;
    /* フォーカスのアウトラインを削除 */
    outline: none;
    /* 左寄せ */
    text-align: left;
    /* 幅を100%に */
    width: 100%;
    /* ボーダーを削除 */
    border: none;
}
.scrolling-nav {
    background-color: #f8f8f9;
    /* スティッキーに設定 */
    position: sticky;
    overflow-x: auto;
    white-space: nowrap;
    /* 画面上部に固定 */
    top: 48px;
    /* 他の要素の上に表示するためのz-index */
    z-index: 1000;
}
.scrolling-nav > .nav {
    display: block;
    /* flexを解除 */
    width: max-content;
    /* 子要素の幅に合わせる */
}
.scrolling-nav > .nav > li.nav-item {
    display: inline-block;
}
.scrolling-nav > .nav > li.nav-item > a {
    border: none;
    outline: none;
}
button[aria-expanded="false"].accordion_menu_btn>i.icom-icon-expand_more {
    /* 回転を適用するために必要 */
    display: inline-block;
    /* 90度回転 */
    transform: rotate(-90deg);
    /* 回転のアニメーション */
    transition: transform 0.3s;
}
button[aria-expanded="true"].accordion_menu_btn>i.icom-icon-expand_more {
    /* 回転を適用するために必要 */
    display: inline-block;
    transform: rotate(0);
    /* 回転のアニメーション */
    transition: transform 0.3s;
}