html,
body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
}

/* =============================== */
.w1200px {
    width: 1200px !important;
}

.w1100px {
    width: 1100px !important;
}

.w1000px {
    width: 1000px !important;
}

.w900px {
    width: 900px !important;
}

.w800px {
    width: 800px !important;
}

.w700px {
    width: 800px !important;
}

.w600px {
    width: 600px !important;
}

.w500px {
    width: 500px !important;
}

.w450px {
    width: 450px !important;
}

.w400px {
    width: 400px !important;
}

.w350px {
    width: 350px !important;
}

.w300px {
    width: 300px !important;
}

.w250px {
    width: 250px !important;
}

.w240px {
    width: 240px !important;
}

.w230px {
    width: 230px !important;
}

.w220px {
    width: 220px !important;
}

.w210px {
    width: 210px !important;
}

.w200px {
    width: 200px !important;
}

.w190px {
    width: 190px !important;
}

.w180px {
    width: 180px !important;
}

.w170px {
    width: 170px !important;
}

.w160px {
    width: 160px !important;
}

.w150px {
    width: 150px !important;
}

.w140px {
    width: 140px !important;
}

.w130px {
    width: 130px !important;
}

.w120px {
    width: 120px !important;
}

.w110px {
    width: 110px !important;
}

.w100px {
    width: 100px !important;
}

.w90px {
    width: 90px !important;
}

.w80px {
    width: 80px !important;
}

.w70px {
    width: 70px !important;
}

.w65px {
    width: 65px !important;
}

.w60px {
    width: 60px !important;
}

.w50px {
    width: 50px !important;
}

.w40px {
    width: 40px !important;
}

.w30px {
    width: 30px !important;
}

.w25px {
    width: 25px !important;
}

.w20px {
    width: 20px !important;
}

.w10px {
    width: 10px !important;
}

/* =============================== */
.h750px {
    height: 750px !important;
}

.h700px {
    height: 700px !important;
}

.h600px {
    height: 600px !important;
}

.h550px {
    height: 550px !important;
}

.h500px {
    height: 500px !important;
}

.h450px {
    height: 450px !important;
}

.h400px {
    height: 400px !important;
}

.h350px {
    height: 350px !important;
}

.h300px {
    height: 300px !important;
}

.h250px {
    height: 250px !important;
}

.h200px {
    height: 200px !important;
}

.h150px {
    height: 150px !important;
}

.h100px {
    height: 100px !important;
}

.h90px {
    height: 90px !important;
}

.h80px {
    height: 80px !important;
}

.h70px {
    height: 70px !important;
}

.h60px {
    height: 60px !important;
}

.h50px {
    height: 50px !important;
}

.h40px {
    height: 40px !important;
}

.h30px {
    height: 30px !important;
}

.h20px {
    height: 20px !important;
}

.h10px {
    height: 10px !important;
}

.min-h-150px {
    min-height: calc(100vh - 150px);
}

/* 高さ制御 + スクロール */
.main-sidebar {
    height: 100vh !important;
    overflow: hidden !important;
    /* 全体では隠す */
    position: fixed !important;
    /* 常に固定 */
}

/* メニューのスクロール部分 */
.sidebar-menu-content {
    height: calc(100vh - 60px) !important;
    /* ロゴやヘッダーの高さ分差し引く（例: 60px） */
    overflow-y: auto !important;
    padding: 10px !important;
}

/* override */
.brand-link {
    padding: 0.66rem 0.5rem !important;
}

/* border-radius */
.rounded5px {
    border-radius: 5px 5px 5px 5px;
}

.rounded7px {
    border-radius: 7px 7px 7px 7px;
}

.infobox {
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 1px;
    padding-right: 1px;

    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

/* ----- background color ----- */

.bg-yamadabase {
    /* background-color: #FFFFFF !important; */
    background-color: #eef6ff !important;
}

.bg-base {
    background-color: #f4f6f9 !important;
}

.bg-blue {
    background-color: blue !important;
    color: white !important;
    opacity: 0.2 !important;

}

.bg-pink {
    background-color: pink !important;
    color: blueviolet !important;
    opacity: 0.2 !important;
}

.bg-indigo {
    background-color: #012970 !important;
    color: white !important;
    /* opacity: 0.2 !important; */
}

/* dark */
.bg-dimgray {
    background-color: #696969 !important;
    color: white !important;
}

.bg-gray {
    background-color: #808080 !important;
    color: white !important;
}

.bg-darkgray {
    background-color: #a9a9a9 !important;
    color: white !important;
}

.bg-litegray {
    background-color: #e2e2e2 !important;
    color: white !important;
}

/* primary */
.bg-primary-1 {
    background-color: #59A9FF !important;
    color: white !important;
}

/* danger */
.bg-danger-1 {
    background-color: #E7717C !important;
    color: white !important;
}

/* info */
.bg-info-1 {
    background-color: #4CBACC !important;
    color: white !important;
}

/* warning */
.bg-warning-1 {
    background-color: #FFC999 !important;
    color: white !important;
}

/* warning */
.bg-warning-2 {
    background-color: #FFEDB8 !important;
    color: gray !important;
}

/* success */
.bg-success-1 {
    background-color: #7ACF8D !important;
    color: white !important;
}

/* white */
.bg-white-1 {
    background-color: #F0F0F3 !important;
}

/**/
.bg-csvexp {
    background-color: #7ACF8D !important;
    color: white !important;
}

.bg-readonly {
    /* 例: 背景色をグレーに設定 */
    background-color: #f0f0f0 !important;
}

.bg-teal-1 {
    background-color: #169B74 !important;
    color: #fff !important;
}

/* ----- text-color ----- */
.text-white {
    color: white !important;
}

.text-indigo {
    color: #012970 !important;
}

/* primary */
.text-primary-1 {
    color: #59A9FF !important;
}

/* danger */
.text-danger-1 {
    color: #E7717C !important;
}

/* info */
.text-info-1 {
    color: #4CBACC !important;
}

/* warning */
.text-warning-1 {
    color: #FFC999 !important;
}

/* title-fb */
.text-title-fb {
    color: #666666 !important;
    font-weight: bold;
}



.min-h-150px {
    min-height: calc(100vh - 150px);
}

.error_msg {
    font-size: 13px;
    color: red;
}

/* メインコンテンツ */
.content-wrapper {
    margin-left: 250px !important;
    /* サイドバーの幅に合わせる */
    /* min-height: 100vh !important; */
    overflow-x: hidden !important;
}

body.sidebar-collapse .content-wrapper {
    margin-left: 0 !important;
}

.modal-header-sm {
    padding-top: 0.5rem;
    padding-bottom: 0.0rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.required-label::after {
    content: " *" !important;
    color: red !important;
    /* vertical-align: middle !important; */
}

.helpmsg {
    font-size: 13px;
    color: #696969;
}

.input_label {
    font-size: 13px !important;
    color: #555555 !important;
    margin-bottom: 0 !important;
    font-weight: 600 !important;
}

input[type="file"] {
    height: auto;
    min-height: 34px;
    padding: 4px 6px;
    font-size: 0.9rem;
}

/* custom */
.pagetitle {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.section {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* ag-grid */
.ag-header,
.ag-body,
.ag-cell-value,
.ag-paging-panel {
    font-family: "Noto Sans JP", "Meiryo UI", "Osaka-Mono" !important;
}

.ag-checkbox-cell {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
}


@media (max-width: 768px) {

    .ag-paging-page-summary-panel {
        font-size: 12px;
        margin: 0 5px;
        white-space: nowrap;
        /* 改行禁止 */
    }

    .ag-paging-row-summary-panel {
        font-size: 12px;
        margin-right: 6px;
        white-space: nowrap;
    }

    .ag-paging-button {
        padding: 0 0px;
        transform: scale(0.8);
        /* ボタンを少し縮小 */
    }

    .ag-paging-page-size .ag-picker-field-wrapper {
        padding: 2px 5px;
        font-size: 12px;
    }

    .ag-wrapper,
    .ag-label {
        display: none;
    }

    .card-body {
        padding: 0.5rem !important;
    }
}


.td-overflow {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 0;
}

.div-overflow {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/*  */
.card-title-nonfloat {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

/**/
.infobox-note {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.5em * 2);
    /* 行高×2行 */
    line-clamp: 2;
    line-height: 1.5em;
}

/* Qalendar */
/*
.calendar-header__mode-picker {
    display: none !important;
}

.event-box {
    background: #f0f8ff;
    border-radius: 4px;
    padding: 2px 4px;
    margin-top: 2px;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.calendar-month__day-date {
    cursor: pointer !important;
}

.calendar-month__weekday.is-today .calendar-month__day-date {
    width: 23px;
    height: 23px;
    line-height: 23px;
    border-radius: 50%;
    background-color: #3f51b5;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-month_events {
    height: 70px !important;
    min-height: 70px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calendar-month__weekday:nth-child(1) {
    background-color: #ffe0e0 !important;
    color: #cc0000 !important;
}

.calendar-month__weekday:nth-child(7) {
    background-color: #e0f0ff !important;
    color: #0044cc !important;
}
*/

.saturday-cell {
    background-color: #e0f0ff !important;
    color: #0044cc !important;
}

.sunday-cell {
    background-color: #ffe0e0 !important;
    color: #cc0000 !important;
}

/* agenda */
button.saturday-button,
button.saturday-button * {
    background-color: #D6E5FA !important;
}

button.sunday-button,
button.sunday-button * {
    background-color: #FAD6D6 !important;
}

.min-w200 {
    min-width: 200px;
}

.ag-grid-container {
    position: relative;
}

.ag-top-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    height: 16px;
    /* スクロールバーの高さ */
}

.ag-top-scroll-content {
    height: 1px;
}

.input-cell {
    background-color: #c1f3cc !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.input-note {
    background-color: #c1f3cc !important;
    display: flex !important;
    align-items: center !important;
}

.link_icon {
    cursor: pointer;
}

.nav-tabs-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.nav-tabs {
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
}

.nav-tabs .nav-item {
    flex: 0 0 auto !important;
    /* 折返し防止 */
}

.nav-tabs .nav-link {
    min-width: 80px !important;
    /* スマホで押しやすく */
}

input[type="time"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

.h5 {
    margin-bottom: 0 !important;
}
