﻿body {
    font-size: .85em;
    font-family: "Segoe UI", Verdana, Helvetica, Sans-Serif;
    margin: 0;
    height: 100%;
    /*user-select: none;*/
    overflow: hidden;
}

/* 全般 */
input, textarea, select {
    /* textareaのフォントが変わってしまうので明示的に指定 */
    font-family: "Segoe UI", Verdana, Helvetica, Sans-Serif;
}

/* button */
button {
    height: 30px;
    min-width: 80px;
    padding: 0 12px 0 12px;
    background-color: #fbe3d6;
    border: 0px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}
/*button:hover:not([disabled]) {
    background-color: #e2e2e2;
}*/
button:active {
    outline: 3px solid lightblue;
}
button.small {
    min-width: 30px;
    border-radius: 0;
}
button.main {
    background-color: #a6caec;
}
/*button.main:hover {
    background-color: #5f85cd;
}*/

/* text input */
textarea, input[type=text], input[type=date], input[type=month], input[type=password] {
    box-sizing: border-box;
    border: 1px solid lightgray;
    width: 100%;
}
textarea {
    resize: vertical;
    min-height: 85px;
}
input[type=text], input[type=date], input[type=month], input[type=password] {
    height: 25px;
}
input[type=date], input[type=month] {
    width: 110px;
}
input[type=text].numeric-input {
    text-align: right;
}
textarea:focus:not([readonly]), input[type=text]:focus, input[type=date]:focus, input[type=month]:focus, input[type=password]:focus {
    background-color: #ffffcc;
    outline: 2px solid lightblue;
    border: 1px solid lightblue;
    border-radius: 0;
}
textarea:focus:read-only {
    outline: 2px solid lightblue;
    border: 1px solid lightblue;
    border-radius: 0;
}
textarea:disabled, input[type=text]:disabled, input[type=date]:disabled, input[type=month]:disabled, input[type=password]:disabled {
    /* グレイアウトしないように */
    color: #000;
    background-color: #d9d9d9;
}
input[type=file] {
    display: none;
}
input.project-select-word {
    margin-top: 3px;
}
/* select */
select {
    height: 25px;
    width: 100%;
    border: 1px solid lightblue;
    border-radius: 0;
}
select:focus {
    background-color: #ffffcc;
    outline: 2px solid lightblue;
    border: 1px solid lightblue;
    border-radius: 0;
}




/* table */
table {
    /* セルの線を重ねる */
    /*border-collapse: collapse;*/
    border-spacing: 2px;
    margin: -2px;
    width: calc(100% + 4px);
    border: 0;
    table-layout: fixed;
    word-wrap: break-word;
}
tr {
    background-color: #fff;
}
th, td {
    /*border: 2px solid #d9d9d9;*/
    border: 0;
    padding: 5px;
}
th {
    background-color: #215F9A;
    font-weight: normal;
    color: #fff;
}
th div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}
/*
td:first-child:before {
    display: block;
    float: left;
    height: 25px;
    content: "";
}
*/
td.align-center {
    text-align: center;
}
td.align-right {
    text-align: right;
}
td.align-left {
    text-align: left;
}

table.detail th,
table.condition th {
    text-align: left;
    width: 150px;
}
table.list th {
    text-align: center;
}
table.list tbody > tr:nth-of-type(2n) {
    background-color: #f2f2f2;
}
table.list tr.selected-row {
    background-color: #D9F2D0 !important;
    outline: 3px solid lightblue;
}
table.list tr:hover,
table.list tbody > tr:nth-of-type(2n):hover {
    background-color: #FFFFCC;
}

table.detail td > *:not([type="hidden"]):first-of-type,
table.condition td > *:not([type="hidden"]):first-of-type {
    margin-left: 0;
}
table.detail td > input[type=radio]:first-child,
table.condition td > input[type=radio]:first-child {
    margin-left: 4px;
}

/* 縦スクロール時にヘッダを固定する */
table.sticky-header thead th {
    position: sticky;
    top: -11px;
    z-index: 1; /* tbody内のセルより手前に表示する */
}


/* checkbox */
/*
input[type=radio],
input[type=checkbox] {
    accent-color: red;
    transform: scale(1.5);
    margin-left: 6px;
    margin-right: 3px;
    border:10px solid blue;
}*/
input[type=radio],
input[type=checkbox] {
    margin-left: 10px;
    margin-right: 8px;
}
/*
th input[type=checkbox]:only-child,
td input[type=checkbox]:only-child {
*/
th input[type=checkbox],
td.align-center input[type=checkbox] {
    margin-left: -2px;
    margin-right: 2px;
}

input[type=checkbox] {
    box-sizing: border-box;
    /*cursor: pointer;*/
    display: inline-block;
    padding: 5px 30px;
    position: relative;
    width: auto;
}
input[type=checkbox]::before {
    background: #fff;
    border: 1px solid lightgray;
    border-radius: 0px;
    content: '';
    display: block;
    height: 16px;
    left: 0; /*5px;*/
    margin-top: -8px;
    position: absolute;
    top: 50%;
    width: 16px;
}
input[type=checkbox]::after {
    border-right: 3px solid red;
    border-bottom: 2px solid red;
    content: '';
    display: block;
    height: 14px;
    left: 0;
    margin-top: -11px;
    margin-left: 2px;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: rotate(45deg);
    width: 7px;
}
input[type=checkbox]:checked::before {
    border-color: lightgray;
}
input[type=checkbox]:checked::after {
    opacity: 1;
}
input[type=checkbox]:disabled::before {
    background: #d9d9d9;
}

/* radio */
input[type=radio] {
    /*display: none;*/
    transform: scale(1.4);
    accent-color: rgb(68, 114, 196); /*#5f85cd;*/
}
input[type=radio]:hover {
    accent-color: rgb(68, 114, 196);
}
    /*
input[type=radio] {
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    padding: 5px 30px;
    position: relative;
    width: auto;
}
input[type=radio]::before {
    background: #fff;
    border: 1px solid lightgray;
    border-radius: 50%;
    content: '';
    display: block;
    height: 20px;
    left: 0px;
    margin-top: -8px;
    position: absolute;
    top: 50%;
    width: 20px;
}
input[type=radio]::after {
    background: red;
    border-radius: 50%;
    content: '';
    display: block;
    height: 3px;
    left: 10px;
    margin-top: -3px;
    opacity: 0;
    position: absolute;
    top: 50%;
    width: 8px;
}
input[type=radio]:checked::before {
    border-color: lightgray;
}
input[type=radio]:checked::after {
    opacity: 1;
}
input[type=radio]:disabled::before {
    background: #d9d9d9;
}
*/

/* anchor */
a {
    text-decoration-line: none;
}
a:hover {
    text-decoration-line: underline;
}

/*--------------------------------------------------
  エラーメッセージ
--------------------------------------------------*/
/* 画面のエラーメッセージ */
#error-alert {
    display: table;
    box-sizing: border-box;
    width: 100%;
    height: 30px;
    color: #fff;
    margin-bottom: 5px;
}
#error-alert div {
    display: table-cell;
    vertical-align: middle;
    background-color: red;
    padding: 0 5px 0 5px;
}
/* 各項目のエラーメッセージ */
.error-message {
    color: red;
    font-weight: bold;
}

/*--------------------------------------------------
  一覧の状態
--------------------------------------------------*/
#list-status {
    display: table;
    box-sizing: border-box;
    width: 100%;
    height: 30px;
    color: #fff;
    font-weight:bold;
    margin-bottom: 5px;
    margin-top: -5px;
}

#list-status div {
    display: table-cell;
    vertical-align: middle;
    padding: 0 5px 0 5px;
}

#list-status .not-found {
    background-color: #4EA72E;
}
#list-status .befor-search {
    background-color: #46B1E1;
}
#list-status .limit-over {
    background-color: #FF9933;
}
#list-status .not-found-search {
    background-color: #FF5050;
}

/*--------------------------------------------------
  メインレイアウトのグリッド構成
--------------------------------------------------*/
#main-grid-container {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: auto 1fr;
    min-height: 100vh;
}
#main-grid-container > header {
    background-color: #215F9A;
    font-weight:bold;
    grid-column: 1 / span 2;
    height: 40px;
    padding: 0 10px 0 5px;
    display: flex;
}
#main-grid-container.vendor > header {

}
#main-grid-container > aside {
    background-color: #215F9A;
    font-weight:bold;
    /* width: 170px; JQueryの定数に設定 */
    color: #fff;
    /*font-size: .55em;*/
    align-items: center;
}
#main-grid-container > main {
    background-color: #d9d9d9;
    display: block;
}

/*------------------------------
  ヘッダ　コンテナ
------------------------------*/
#main-grid-container > header > div {
    color: #fff;
    box-sizing: border-box;
    width: 50%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 5px;
}
#main-grid-container > header > div:last-child {
    justify-content: flex-end;
}

/*------------------------------
 ヘッダタイトル
------------------------------*/
#main-grid-container .header-title {
    font-weight : bold;
    font-size: 1.6em;
}
/* 言語切替用リンク */
a.header-lang {
    color: #fff;
    text-decoration: none;
}
.header-support {
    cursor : pointer;
}
/*------------------------------
 テスト環境用
------------------------------*/
#main-grid-container > header.test-env {
    background-color: rebeccapurple;
}
#main-grid-container > header .test-env-text {
    color: yellow;
    font-weight: bold;
}

/*------------------------------
  メニュー
------------------------------*/
aside .menu-item {
    color: #fff;
    display: flex;
    align-items: center;
    border:0;
    /*border-bottom: 1px solid #d9d9d9;*/
    height: 40px;
    padding-left: 5px;
    gap: 7px;
    min-width: 250px;
}
aside .menu-item:hover {
    background-color: #5f85cd !important;
    color: #fff !important;
}
aside .menu-item.menu-select {
    color: #000;
    background-color: #d9d9d9;
}

/*------------------------------
 メイン
------------------------------*/
/* header */
main header {
    background-color: #fff;
    color: #000;
    height: 40px;
    padding: 0 10px 0 10px;
    display: flex;
}
main header > div {
    box-sizing: border-box;
    width: 50%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 5px;
}
main header > div:first-child {
    font-weight: bold;
    justify-content: flex-start !important;
}
main header > div:last-child {
    justify-content: flex-end;
}

/* section */
main section {
    background-color: #215F9A;
    color: #fff;
    height: 40px;
    padding: 0 10px 0 10px;
    display: flex;
    margin: 10px 0 10px 0;
    white-space: nowrap;
}

main section > div {
    box-sizing: border-box;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 5px;
}
main section > div:first-child {
    justify-content: flex-start !important;
}
main section > div:last-child {
    justify-content: flex-end;
    box-sizing: border-box;
    width:100%;
}

main main {
    height: calc(100vh - 80px - 20px);
    padding: 10px;
    overflow: auto;
}
div#main-grid-single main main {
    height: calc(100vh - 60px);
}

/* 最初の要素がsectionの場合marginが邪魔になるので */
/* main main form > *:not([type="hidden"]):first-of-type, main main > *:not([type="hidden"]):first-of-type { */
main main > *:not([type="hidden"]):not(form):first-child {

    margin-top: 0;
}

/*------------------------------
 単独画面
------------------------------*/
#main-grid-single {
    background-color: #d9d9d9;
    padding: 0;
}


/*------------------------------
 ダイアログ
------------------------------*/
iframe.iziModal-iframe {
    background-color: #d9d9d9;
}
/* メッセージダイアログヘッダ */
.iziModal .iziModal-header {
    background-color: #215F9A !important;
}
.iziModal .iziModal-header-title {
    font-weight: bold !important;
}
#main-grid-dialog {
    background-color: #d9d9d9;
    padding: 10px;
}
#main-grid-dialog > main form > *:not([type="hidden"]):first-of-type,
#main-grid-dialog > main > *:not([type="hidden"]):first-of-type {
    margin-top: 0;
}
#main-grid-dialog .list:not(.not-select-dialog) {
    margin: -4px;
}
#main-grid-dialog .list:not(.not-select-dialog) thead {
    display: block;
    width: calc(100% + 4px);
}

#main-grid-dialog .list:not(.not-select-dialog) tbody {
    display: block;
    overflow-x: hidden;
    overflow-y: scroll;
    width: calc(100% + 2px);
}
#main-grid-dialog > main footer {
    padding-top: 3px;
}
#main-grid-dialog > main footer > div:last-child {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

/*------------------------------
  お待ちください エリア
------------------------------*/
#loader-area {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    background-color: #000;
    opacity: 0.5;
    z-index: 9998;
}
#loader-message {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 210px;
    height: 50px;
    margin-top: -100px;
    margin-left: -100px;
    text-align: center;
    color: #fff;
    font-weight: bold;
    z-index: 9999;
}

/*------------------------------
 状況
------------------------------*/
/* 状況名（行の高さの最小を調整） */
.status-name {
    min-height: 36px;
    width:150px;
}
/* 状況名のサブ説明 */
.status-supplement {
    font-size: .6em;
}
/* システム監査状況 */
.system-audit-status-unregistered {
    color: #000;
    font-weight:bold;
    background-color: yellow;
}
.system-audit-status-canceled {
    color: #fff;
    font-weight: bold;
    background-color: red;
}
.system-audit-status-requesting {
    color: #fff;
    font-weight: bold;
    background-color: darkgreen;
}
.system-audit-status-finish {
    color: #fff;
    font-weight: bold;
    background-color: blue;
}
/* 基本情報状況 */
.basic-status-unregistered {
    color: #000;
    font-weight: bold;
    background-color: yellow;
}
.basic-status-temporary {
    color: #fff;
    font-weight: bold;
    background-color: darkgreen;
}
.basic-status-fixed {
    color: #fff;
    font-weight: bold;
    background-color: darkblue;
}
/* サービスカテゴリーステータス */
.service-category-status-available {
    color: #fff;
    font-weight: bold;
    background-color: blue;
}
.service-category-status-not-available {
    color: #fff;
    font-weight: bold;
    background-color:darkgray;
}

/* Disqualification状況 */
.disqualification-under-judgement {
    color: #fff;
    font-weight: bold;
    background-color: green;
}

.disqualification-disqualified {
    color: #fff;
    font-weight: bold;
    background-color: red;
}

.disqualification-not-disqualified {
    color: #fff;
    font-weight: bold;
    background-color: yellow;
}

/* Qualification状況 */
.qualification-status-enforcement {
    color: green;
    font-weight: bold;
}
.qualification-status-qualified {
    color: blue;
    font-weight: bold;
}
.qualification-status-unqualified {
    color: red;
    font-weight: bold;
}

/* Qualification結果 */
.qualification-result-notapproved {
    color: green;
    font-weight: bold;
}
.qualification-result-qualified {
    color: blue;
    font-weight: bold;
}
.qualification-result-notqualified {
    color: red;
    font-weight: bold;
}

/* 信用調査評価 */
.rating-good {
    color: blue;
    font-weight: bold;
}
.rating-bad {
    color: red;
    font-weight: bold;
}

/* VQF回答確認 */
.vqf-answer-status-noanswer {
    color: #000;
    font-weight: bold;
    background-color: yellow;
}
.vqf-answer-status-edit {
    color: #000;
    font-weight: bold;
    background-color: orange;
}
.vqf-answer-status-submitted {
    color: #fff;
    font-weight: bold;
    background-color: darkgreen;
}
.vqf-answer-status-remand, .vqf-answer-status-confirmor-remand, .vqf-answer-status-approver-remand {
    color: #fff;
    font-weight: bold;
    background-color: red;
}
.vqf-answer-status-confirmor-request {
    color: #fff;
    font-weight: bold;
    background-color: skyblue;
}
.vqf-answer-status-approval-request {
    color: #fff;
    font-weight: bold;
    background-color: steelblue;
}
.vqf-answer-status-approved {
    color: #fff;
    font-weight: bold;
    background-color: blue;
}

/*------------------------------
 ツールチップ
------------------------------*/
.tooltip-center, .tooltip-left, .tooltip-right {
    background-color: #000;
    border-radius: 5px;
    color: #fff;
    padding: 10px;
    position: absolute;
    text-align: left;
    z-index: 2;
    top: 0;
    left: 0;
    display: none;
}
.tooltip-center:not(.down):before, .tooltip-left:not(.down):before, .tooltip-right:not(.down):before {
    content: " ";
    position: absolute;
    top: 100%;
    width: 0;
    height: 0;
    border-style: solid;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    border-top: 8px solid #000;
    border-bottom: 0;
}
.tooltip-center.down:before, .tooltip-left.down:before, .tooltip-right.down:before {
    content: " ";
    position: absolute;
    top: -7px;
    width: 0;
    height: 0;
    border-style: solid;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    border-bottom: 8px solid #000;
    border-top: 0;
}
.tooltip-center:before {
    left: calc(50% - 4px);
}
.tooltip-left:before {
    left: 8px;
}
.tooltip-right:before {
    left: calc(100% - 20px);
}
div:has(>.content-icon-help) {
    display: flex;
}
table.list th div:has(.content-icon-help) {
    justify-content: center;
}
/*------------------------------
 その他
------------------------------*/
/* 注意書き 入力欄に設定する場合 */
.supplement-message {
    font-size: .80em;
    color: blue;
    font-weight: bold;
    padding-left: 10px;
}
/* 注意書き 項目タイトルの場合 */
.supplement-message-title {
    font-size: .80em;
    color: yellow;
    font-weight: bold;
    margin-top: 5px;
}
/* 注意書き セクション内の場合 */
.supplement-message-section {
    font-size: .80em;
    color: yellow;
    font-weight: bold;
}

/* ダイアログに直接メッセージを表示する場合 */
.dialog-message {
    color: blue;
    font-weight: normal;
}

/* ファイルエラー時の背景色 */
.file-error {
    background-color: red;
}

/* サービス提供地区のレイアウト */
div.service-area-area {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
div.service-area-area .service-area-list {
    grid-row: span 2;
    min-width: max-content;
}
div.service-area-area .service-area-list:first-of-type > .service-area-content {
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    grid-auto-flow: column;
}
div.service-area-area .service-area-list:nth-child(4) {
    grid-column: 4;
    grid-row: span 1;
}
div.service-area-area .service-area-list:nth-child(5) {
    grid-column: 4;
}
div.service-area-area .service-area-list-div {
    background-color: #215F9A;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    margin-bottom: 3px;
}
::-ms-reveal {
    display: none;
}