/* PC版 */
.custom-width {
    width: 45%;
    margin: 0 0 0 auto;
    align-items: center;
}

.flex-column-box {
    justify-content: center;
}

.responsive-mobile-table {
    display: none;
}

.responsive-undo-button {
    margin-right: 0px !important;
}

/* iPad */
@media screen and (max-width: 1024px) {
    .custom-search-box {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: .5rem;
    }

    input[type="date"] {
        width: 49%;
    }

    .flex-column-box {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
    }

    .flex-date-box {
        display: flex;
    }

    .custom-width {
        width: 100%;
    }

    .text-center-button {
        display: flex;
    }

    /* .w-25 {
        min-width: 100%!important;
    } */
    .w-25 select {
        width: 70%;
    }

    .img-width {
        max-width: 100% !important;
    }

    .confirm-button {
        width: 50% !important;
        margin-left: 25% !important;
    }

    .update-button,
    .sign-up-button,
    .submit-button {
        width: 50% !important;
    }

    .submit-button {
        margin-top: 8px;
    }

    .col-md-4 {
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .dataTables_length {
        float: left !important;
    }

    /* .form-control {
        padding: 0 0!important;
    } */
    /* 保管料金設定などのテーブルのセルのパディングを調整できるが他にも影響する */
    /* .table td, .table th {
        padding: 0.2rem 0.2rem!important;
    } */
    /* 統計一覧でグラフが潰れない為に */
    .p-5 {
        padding: 0 0 !important;
    }

    .px-5 {
        padding: 0 0 !important;
    }

    .responsive-mobile-table {
        display: inline-table;
    }

    .responsive-pc-table {
        display: none;
    }

    .responsive-text-center {
        margin-top: 32px !important;
        padding-bottom: 32px !important;
    }

    .responsive-confirm-,
    .responsive-update-button,
    .responsive-submit-button {
        margin-left: 16px !important;
    }
}

@media screen and (max-width: 640px) {
    .dataTables_wrapper .dataTables_filter {
        margin-top: 0px;
    }
}

/* 基本営業/基本サービス提供時間登録画面用のスタイル */
/* 時間入力グループ */
.time-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.time-input {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    text-align: center;
}

.time-separator {
    font-size: 1.2rem;
    color: #707070;
}

/* 一括設定セクション */
.bulk-settings-section {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 24px;
    padding: 0;
    border-radius: 0;
    align-items: flex-start;
}

.bulk-setting-label-header {
    margin-bottom: 8px;
}

.bulk-setting-label-text {
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.5em;
    color: #000000;
}

.bulk-setting-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background-color: #e0e0e0;
    border-radius: 8px;
    flex: 1;
}

.bulk-setting-box-business {
    flex: 0 0 auto;
    width: auto;
    min-width: fit-content;
}

.bulk-setting-box-service {
    flex: 0 0 auto;
    width: auto;
    min-width: fit-content;
}

.bulk-setting-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.bulk-setting-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    white-space: nowrap;
}

.bulk-time-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bulk-time-input {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fff;
    text-align: center;
}

.bulk-time-separator {
    font-size: 1.0rem;
    color: #333;
    font-weight: 400;
}

.bulk-service-time-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.bulk-apply-btn {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.bulk-apply-btn:hover {
    background-color: #45a049;
}

/* テーブル */
.date-setting-label-header {
    margin-bottom: 8px;
    margin-top: 16px;
}

.date-setting-label-text {
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.5em;
    color: #000000;
}

.date-setting-note-text {
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: 14px;
    color: #707070;
    margin-left: 16px;
}

.business-hours-table-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    width: 100%;
}

.business-hours-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.table-header-cell {
    padding: 12px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.table-cell {
    padding: 12px;
    border: 1px solid #e0e0e0;
    text-align: center;
    font-size: 0.9rem;
    color: #333;
}

.date-cell {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.date-header,
.date-cell {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
}

.day-of-week-cell {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.day-of-week-header,
.day-of-week-cell {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
}

/* 基本サービス提供時間編集テーブルの曜日列（2番目の列）の幅を狭くする */
.service-hours-table th:nth-child(2).day-of-week-header,
.service-hours-table td:nth-child(2).day-of-week-cell {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
}

/* 基本営業時間編集テーブルの曜日列（2番目の列）の幅を明示的に指定 */
.business-hours-table th:nth-child(2).day-of-week-header,
.business-hours-table td:nth-child(2).day-of-week-cell {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
}

.service-total-header {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    text-align: center;
    font-size: 1rem;
}

.service-total {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    text-align: left;
    font-size: 1rem;
    word-wrap: break-word;
    word-break: break-all;
}

.business-hours-header {
    width: 400px;
    min-width: 400px;
    max-width: 400px;
    text-align: center;
    font-size: 1rem;
}

.business-hours-cell {
    width: 400px;
    min-width: 400px;
    max-width: 400px;
    padding: 12px;
    text-align: center;
}

/* 基本営業時間編集テーブルの営業時間列（3番目の列）の幅を明示的に指定（4列あるテーブルの3番目の列） */
.business-hours-table:not(.service-hours-table) th:nth-child(3).business-hours-header,
.business-hours-table:not(.service-hours-table) td:nth-child(3).business-hours-cell {
    width: 400px !important;
    min-width: 400px !important;
    max-width: 400px !important;
}

.service-hours-header,
.service-hours-cell {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
}

.service-hours-cell {
    padding: 12px;
}

.service-time-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding: 8px;
}

.service-time-set {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    margin-left: 32px;
}

.time-input-frame {
    display: inline-block;
    position: relative;
}

.time-input-frame input {
    width: 100px;
    padding: 8px;
    border: 1px solid #CDDBFF;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
    text-align: center;
}

.service-set-number {
    font-size: 10px;
    color: #000000;
    font-weight: 300;
    min-width: 16px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #CDDBFF;
    border: 1px solid #CDDBFF;
    text-align: center;
    flex-shrink: 0;
    position: absolute;
    top: -5px;
    left: -7px;
    z-index: 1;
    line-height: 1;
    position: absolute;
    top: -5px;
    left: -7px;
    z-index: 1;
    line-height: 1;
    padding: 0;
}

.btn-add-service-time {
    width: 24px;
    height: 24px;
    padding: 0;
    background-color: #CDDBFF;
    color: #000000;
    border: 1px solid #CDDBFF;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-add-service-time:hover {
    background-color: #B8CCFF;
    border-color: #B8CCFF;
}

.btn-delete-service-time {
    padding: 4px 8px;
    background-color: transparent;
    color: #707070;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-service-time:hover {
    color: #f44336;
}

.btn-delete-service-time i {
    font-size: 0.9rem;
}

.business-total-header {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    text-align: center;
    font-size: 1rem;
}

.business-total {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    text-align: left;
    font-size: 1rem;
}

/* チェックボックス列の幅を狭くする */
.checkbox-cell {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    padding: 8px 4px;
    text-align: center;
}

.table-header-cell.checkbox-cell {
    padding: 12px 4px;
}

/* ピット数列の幅を狭くする（基本サービス提供時間編集テーブルのみ - 5列あるテーブルの3番目の列） */
.service-hours-table th:nth-child(3),
.service-hours-table td:nth-child(3) {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
    padding: 8px 4px;
}

.service-hours-table .table-header-cell:nth-child(3) {
    padding: 12px 4px;
}