/* -------------------- Menu ----------------------*/
/* テーマを上書きで設定する */
#brand-logo {
    color: var(--primary);
}

#main-menu .menu-bar a.active {
    background-color: var(--primary);
    color: white;
}

#main-menu .menu-bar a,
#main-menu .menu-bar span {
    color: var(--primary);
}

#main-menu .menu-bar a,
#main-menu .menu-bar span {
    color: #555;
}

#main-menu #normal-menu .accordion-menu span[data-toggle="collapse"]::after {
    border-top: var(--primary) 1px solid;
    border-right: var(--primary) 1px solid;
}

#main-menu .service-name {
    color: var(--primary);
}

#main-menu .personal-info {
    background-color: var(--secondary);
    color: var(--primary);
}

#main-menu .personal-info .popup-content {
    position: absolute;
    text-align: left;
    width: 400px;
    box-sizing: border-box;
    background: var(--secondary);
    line-height: 1.4em;
    border-radius: 4px;
    border: 1px solid var(--primary);
}

#main-menu .personal-item {
    color: var(--primary);
    text-decoration: none;
}

#mobile-menu .menu-content {
    background-color: var(--secondary);
    border-top: solid 1px var(--primary);
}

#mobile-menu .menu-content ul li {
    border-bottom: solid 1px var(--primary);
    list-style: none;
}

label.item-label:before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 26px;
    background-color: var(--primary);
}

#group-tree li:not(.top-group)::before,
#group-tree li:not(.top-group)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 1px solid var(--primary);
    width: 50%;
    height: 20px;
}

#group-tree li:after {
    border-left: 1px solid var(--primary);
}

#group-tree li:first-child::before,
#group-tree li:not(.top-group):last-child::after {
    border: 0 none;
}

#group-tree li:last-child::before {
    border-right: 1px solid var(--primary);
}

#group-tree ul ul::before {
    border-left: 1px solid var(--primary);
}

#group-tree li span {
    border: 1px solid var(--primary);

    background-color: white;
    color: var(--primary);
}

#group-tree li span:hover {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.text-info {
    color: white !important;
}

.alert-info {
    background-color: var(--primary);
    color: white;
}

/* -------------------- ソリューション ----------------------*/
table.data-table {
    font-size: .8rem;
}

table.narrow-table {
    width: auto;
    max-width: 100%;
}

table.narrow-table th,
table.narrow-table td {
    width: 0;
    white-space: nowrap;
}

table.sticky-column tr th:first-child {
    position: sticky;
    left: 0;
    width: 0;
    z-index: 2;
    background-color: #e9ecef;
    border: none;
}

table.sticky-column thead tr:first-child th:first-child {
    border-top: 1px solid #dee2e6;
}

table.sticky-column thead tr:last-child th:first-child {
    border-bottom: 1px solid #dee2e6;
}

table.sticky-row thead tr th {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 2;
    background-color: #e9ecef;
    border: none;
}

table.form-table .validation-message {
    font-size: .8rem;
}

div.scrollable-table-y {
    overflow-y: auto;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

div.scrollable-table-y > table > thead tr th {
    position: sticky;
    top: 0;
    width: 0;
    z-index: 2;
    background-color: #e9ecef;
}

div.scrollable-table-y > table > tfoot tr th {
    position: sticky;
    bottom: 0;
    width: 0;
    z-index: 2;
    background-color: #e9ecef;
}

div.scrollable-table-y > table th,
div.scrollable-table-y > table td {
    white-space: nowrap;
}

.text-small {
    font-size: .8rem;
}

.text-hint {
    color: var(--primary);
    font-size: .8rem;
    padding-left: 1.125rem;
    position: relative;
}

.text-hint::before {
    position: absolute;
    top: 0px;
    left: 1px;
    font-family: 'Font Awesome 6 Free';
    content: '\f05a';
    font-weight: 900;
}

.text-annotation {
    color: var(--primary);
    font-size: .8rem;
    padding-left: calc(1px + 1rem);
    position: relative;
}

.text-annotation::before {
    position: absolute;
    top: 0;
    left: 1px;
    content: '※';
    font-weight: 900;
}

.text-notice {
    color: #cda618;
    font-size: .8rem;
    padding-left: calc(1px + 1rem);
    position: relative;
}

.text-notice::before {
    position: absolute;
    top: 0px;
    left: 1px;
    font-family: 'Font Awesome 5 Free';
    content: '\f071';
    font-weight: 900;
}

.btn-checkbox,
.btn-radio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    padding: .25rem;
    background-color: #fff;
}

.btn-checkbox {
    border-radius: 5px;
}

.btn-radio {
    border-radius: 50%;
}

.btn-checkbox.active::before,
.btn-radio.active::before {
    text-align: center;
    width: .75rem;
    font-family: 'Font Awesome 6 Free';
    font-size: .75rem;
    font-weight: 900;
    line-height: 1;
    content: '\f00c';
}

.operation-box {
    border: 2px solid var(--secondary);
    background-color: var(--secondary);
    width: 100%;
}

.operation-box .validation-message {
    font-size: .9rem;
}

.operation-box > details {
    display: flex;
    flex-direction: column;
    border-radius: .25rem;
}

.operation-box > details:focus-visible {
    outline: none;
}

.operation-box > details > summary {
    list-style: none;
    user-select: none;
    cursor: pointer;
    color: #495057;
    border-radius: .25rem;
    padding: .5rem .5rem .5rem 1rem;
}

.operation-box > details > summary::before {
    font-family: 'Font Awesome 6 Free';
    content: '\f055';
    font-weight: bold;
    margin-right: .4rem;
}

.operation-box > details > summary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 .2rem rgba(38, 93, 167, 0.5);
}

.operation-box > details[open] > summary::before {
    content: '\f056';
}

.custom-control-label {
    user-select: none;
    cursor: pointer;
}

.aa-cmp-tabcontrol .nav-pills .nav-link {
    border-top: 1px solid var(--primary);
    border-right: 1px solid var(--primary);
    border-radius: .25rem .25rem 0 0;
}

.aa-cmp-tabcontrol .nav-pills .nav-item:first-child .nav-link {
    border-left: 1px solid var(--primary);
}

.helper-text {
    color: var(--primary);
}

.aa-athacs-cmp-groupselection .form-control.focus {
    border-color: #197aff;
    box-shadow: 0 0 0 .2rem rgba(0,64,152,0.25);
}

.aa-athacs-cmp-groupselection .group li > .group-item > .group-opener::before {
    color: var(--primary);
}

.aa-athacs-cmp-userselection1 .search-button,
.aa-athacs-cmp-userselection2 .search-button {
    color: var(--primary);
}

.aa-athacs-cmp-userselection1 .selection-users input[type="checkbox"] + div::before,
.aa-athacs-cmp-userselection2 .selection-users input[type="checkbox"] + div::before,
.aa-athacs-cmp-userselection2 .selected-users input[type="checkbox"] + div::before {
    border: 1px solid var(--primary);
}

.aa-athacs-cmp-userselection1 .selection-users input[type="checkbox"]:checked + div::before,
.aa-athacs-cmp-userselection2 .selection-users input[type="checkbox"]:checked + div::before,
.aa-athacs-cmp-userselection2 .selected-users input[type="checkbox"]:checked + div::before {
    background-color: var(--primary);
    border: 1px solid var(--primary);
}

/* .search-boxがAirAppとCoMindで別々に定義されている。
 * CoMind側に限定したスタイルとして定義する */
[id^="cm-"] .search-box {
    border: 2px solid var(--secondary);
    border-top: 5px solid var(--primary);
    background-color: var(--secondary);
    width: 100%;
    padding: .5rem .5rem .5rem 1rem;
}

[id^="cm-"] .search-box .search-item-label,
[id^="cm-"] .search-box .validation-message {
    font-size: .9rem;
}
