:root {
    --header-height: 64px;
    --header-bg-color: #4D638C;
    --footer-height: 32px;
    --footer-bg-color: #4D638C;
    --menu-width: 240px;
    --menu-bg-color: #4D638C;
    --menu-header-height: 32px
}

/* 全体 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.all-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
    font-family: 'Yu Gothic', sans-serif;
    font-size: 18px;
}

/* 共通メニューエリア */
.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    background-color: var(--menu-bg-color);
    color: white;
    padding: 0 8px;
    position: relative;
}

/* 共通メニュー ロゴ */
.menu .logo {
    height: 40px;
    margin-right: 16px;
}

/* 共通メニュー アイコン */
.icon {
    display: inline-block;
    height: 36px;
    width: 36px;
	cursor: pointer;
}

/* 共通メニュー システム名 */
.menu .system-name-long {
    white-space: nowrap;
    margin-right: auto;
}
.system-name {
    font-size: 32px;
    white-space: nowrap;
    margin-right: 8px;
}

/* 共通メニュー ユーザー情報エリア */
.right-elements {
    display: flex;
    align-items: center;
}
.right-elements > div, .right-elements > button {
    white-space: nowrap;
    margin-right: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.right-elements #menu-company {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
    width: 240px;
}
.right-elements #menu-department {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
    width: 160px;
}
.right-elements #menu-username {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
    width: 160px;
}
.right-elements #menu-userid {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
    width: 240px;
}
.right-elements .spacer {
    width: 16px;
}
.right-elements .half-spacer {
    width: 8px;
}

/* 業務画面関連 */
.main {
    display: flex;
    background-color: #E8F0FC;
    flex: 1;
    overflow: auto;
}
.main-content {
    width: 100%;
    height: calc(100vh - var(--header-height) - var(--footer-height));
    padding: 8px 16px;
    overflow: auto;
}

/* フッター部 */
.footer {
    height: var(--footer-height);
    background-color: var(--footer-bg-color);
    color: white;
    text-align: center;
    line-height: 32px;
    z-index: 101;
}

/* 会社名を非表示 */
@media screen and (max-width: 1420px) {
    .right-elements #menu-company {
        display: none;
    }
}

/* 会社名を非表示 */
@media screen and (max-width: 1260px) {
    .right-elements #menu-department {
        display: none;
    }
}

/* 氏名を非表示 */
@media screen and (max-width: 1052px) {
    .right-elements #menu-username {
        display: none;
    }
}

/* ユーザIDを非表示 */
@media screen and (max-width: 844px) {
    .right-elements #menu-userid {
        display: none;
    }
}

/* モーダル(共通) */
.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100000;
  overflow: hidden;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
  font-family: 'Yu Gothic', sans-serif;
  font-size: 18px;
}

/* モーダル内容部分(共通) */
.modal-content {
    margin: 15% auto;
}

 /* メディアクエリでレスポンシブデザインを実現 */
 @media only screen and (max-width: 1200px) {
	.info-pop {
		width: 95vw !important;
		height: auto;

	}
}
@media only screen and (min-width: 1201px) {
	.info-pop {
		width: 1200px;
		height: 770px;
	}

}
@media only screen and (min-width: 1920px) {
	.info-pop {
		width: 1800px !important;
		height: auto;
	}
}

.modal-header {
    height: 64px;
    padding: 16px;
    border-radius: 0px;
}

/* 上下左右中央揃え */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 上下中央揃え */
.flex-center-vertical {
    display: flex;
    align-items: center;
    text-align: left;
}

/* 画面タイトル */
.title {
    height: 32px;
    font-size: 24px;
    margin: 8px 0px;
    font-weight: bold;
}

/* 一覧表タイトル */
.table-title {
    background-color: #4D638C;
    color: white;
    text-align: center;
    padding: 4px;
    height: 28px;
    font-size: 12px;
    font-weight: bold;
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

/* ダイアログアイコン関連 */
.confirm-icon, .warning-icon, .error-icon {
    width: 40px;
    height: 30px;
    display: inline-block;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    position: relative;
    margin-right: 16px;
    margin-bottom: 8px;
}
.confirm-icon::before, .warning-icon::before, .error-icon::before {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    line-height: 1;
}
.confirm-icon {
    background: #00FF00;
}
.confirm-icon::before {
    color: #000000;
    content: 'i';
}
.warning-icon {
    background-color: #FFFF00;
}
.warning-icon::before {
    color: #000000;
    content: '!';
}
.error-icon {
    background-color: #FF0000;
}
.error-icon::before {
    color: #FFFFFF;
    content: '!';
}

/* ダイアログ関連 */
#confirm-dialog .modal-content, #warning-dialog .modal-content,#warningOk-dialog .modal-content, #error-dialog .modal-content {
    width: 640px;
    height: 280px;
    padding: 0px;
    border-radius: 0px;
    font-family: 'Yu Gothic', sans-serif;
    font-size: 24px;
}
#confirm-dialog .modal-header, #warning-dialog .modal-header,#warningOk-dialog .modal-header, #error-dialog .modal-header {
    background-color: #DFE0F9;
    color: #000000;
    height: 64px;
    padding-left: 16px;
    border-radius: 0px;
}
#confirm-dialog .modal-body, #warning-dialog .modal-body, #warningOk-dialog .modal-body, #error-dialog .modal-body {
    padding: 16px;
}
#confirm-dialog .message-textarea, #warning-dialog .message-textarea, #warningOk-dialog .message-textarea,#error-dialog .message-textarea {
    width: 608px;
    height: 132px;
    border: none;
    resize: none;
    outline: 0;
    box-shadow: none;
    line-height: 32px;
}

/* ボタンサイズ（小） */
.custom-small-btn, .transition-small-btn {
    width: 80px;
}
/* ボタンサイズ（中） */
.custom-btn, .transition-btn {
    width: 120px;
}
/* ボタンサイズ（大） */
.custom-large-btn, .transition-large-btn {
    width: 180px;
}

/* ボタン関連 */
.custom-small-btn, .custom-btn, .custom-large-btn {
    font-family: 'Yu Gothic', sans-serif;
    background-color: #EEEEEE;
    color: #000000;
    border: 1px solid #CCCCCC;
    --mdb-btn-padding-top: 0.5rem;
    --mdb-btn-padding-bottom: 0.5rem;
    --mdb-btn-padding-x: 0.5rem;
    max-height:36px;
}
.custom-small-btn:hover, .custom-btn:hover, .custom-large-btn:hover {
    background-color: #DFE0F9;
    color: #000000;
    border: 1px solid #CCCCCC;
    --mdb-btn-padding-top: 0.5rem;
    --mdb-btn-padding-bottom: 0.5rem;
    --mdb-btn-padding-x: 0.5rem;
    max-height:36px;
}
.custom-small-btn:disabled, .custom-btn:disabled, .custom-large-btn:disabled {
    background-color: #CCCCCC;
    cursor: not-allowed;
    color: #FFFFFF;
    font-weight: bold;
    --mdb-btn-padding-top: 0.5rem;
    --mdb-btn-padding-bottom: 0.5rem;
    --mdb-btn-padding-x: 0.5rem;
    max-height:36px;
}
.custom-small-btn:active, .custom-btn:active, .custom-large-btn:active {
    background-color: #DFE0F9 !important;
    color: #000000 !important;
    font-weight: bold;
    border: 1px solid #CCCCCC !important;
    --mdb-btn-padding-top: 0.5rem;
    --mdb-btn-padding-bottom: 0.5rem;
    --mdb-btn-padding-x: 0.5rem;
    max-height:36px;
    transform: scale(0.98) !important;
}

/* 画面遷移ボタン関連 */
.transition-small-btn, .transition-btn, .transition-large-btn {
    font-family: 'Yu Gothic', sans-serif;
    background-color: #B6C1FF;
    color: #000000;
    border: 1px solid #8888FF;
    font-weight: bold;
    --mdb-btn-padding-top: 0.5rem;
    --mdb-btn-padding-bottom: 0.5rem;
    --mdb-btn-padding-x: 0.5rem;
    max-height: 48px;
    height: 48px;
    font-size: 16px;
}
.transition-small-btn:hover, .transition-btn:hover, .transition-large-btn:hover {
    background-color: #9AA6FF;
    border-color: #7777FF;
}
.transition-small-btn:disabled, .transition-btn:disabled, .transition-large-btn:disabled {
    background-color: #CCCCCC;
    cursor: not-allowed;
    color: #FFFFFF;
}
.transition-small-btn:active, .transition-btn:active, .transition-large-btn:active {
    background-color: #8A9DFF !important;
    border-color: #6666FF !important;
    transform: scale(0.98) !important;
}
.transition-small-btn:focus-visible, .transition-btn:focus-visible, .transition-large-btn:focus-visible {
    background-color: #B6C1FF !important;
    border: 1px solid #8888FF !important;
}

/* チェックボックス、ラジオボタン */
.custom-box {
    border: 1px solid #9FA6B2;
}
.custom-box:disabled {
    border: 1px solid #D3D3D3;
}

/* テキストボックス、テキストエリア */
.custom-input-text {
    width: 288px;
    border: 1px solid #000000;
}
.custom-input-textarea {
    border: 1px solid #000000;
}

/* ドロップダウンリスト */
.custom-select {
    width: 288px;
    border: 1px solid #000000;
}

/* インフォメーション画面関連 */
#modal-information .modal-content {
    width: 1200px;
    padding: 16px;
    overflow: auto;
    margin: 5% auto;
}
#modal-information h2 {
    font-weight: bold;
}

/* プライバシーポリシーモーダル関連 */
#modal-privacyPolicy .modal-content {
    width: 1200px;
    padding: 16px;
    overflow: auto;
    margin: 5% auto;
}
#modal-privacyPolicy h2 {
    font-weight: bold;
}

.information-area {
    width: 100%;
	height: 55vh;
    border: none;
    outline: 0;
    box-shadow: none;
    line-height: 32px;
    font-size: 18px;
}

/* Wijmo 一覧スクロールバー表示*/
.wj-flexgrid div[wj-part="root"] {
  overflow: auto !important;
}