/* ------------------------------------------------------------------------------------------------------------------ */
/* 一覧ページ */

.cci-for-store-page,
.cci-for-therapist-page {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    background: #fff;
}

.cci-for-store-page, 
.cci-for-store-page * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.cci-for-therapist-page, 
.cci-for-therapist-page * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.cci-title {
    font-size: 24px;
    font-weight: 500;
    color: #E9528E;
    text-align: center;
    margin-top: 40px;
}

#cci-search-box {
    font-size: 14px;
    padding: 13px;
    border: none;
    border-radius: 25px;
    background-color: #F5F5F5;
    width: 100%;
    color: #535353;
    margin-top: 40px;
}

.cci-sort-radio-group-section {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.cci-sort-radio-group-section-for-therapist {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #AAAAAC;
}

#cci-sort-select {
    width: 160px;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 25px;
    border: 1px solid #AAAAAC;
    background: #F5F5F5;
    color: #535353;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23535353' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
}


#cci-customer-info-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow: auto;
    flex-direction: column;
    align-items: center;
}

.cci-ng-filter {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #535353;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #AAAAAC;    
}

.cci-ng-filter-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.cci-ng-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cci-ng-toggle-switch {
    position: relative;
    width: 32px;
    height: 18px;
    background: #ccc;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.cci-ng-toggle-switch::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

.cci-ng-toggle-input:checked + .cci-ng-toggle-switch {
    background: #7D40A0;
}

.cci-ng-toggle-input:checked + .cci-ng-toggle-switch::before {
    transform: translateX(14px);
}

.cci-ng-toggle-text {
    color: #535353;
    font-size: 12px;
}

.cci-merge-content {
    display: flex;
    font-size: 12px;
    color: #535353;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    align-items: center;
}

.cci-merge-about-btn {
    color: #AAAAAC;
    display: flex;
    flex-direction: row;
    font-size: 12px;
    align-items: center;
    gap: 3px;
    width: 100%;
    justify-content: flex-end;
}

.cci-merge-about-btn .question-icon {
    width: 18px;
    height: auto;
}

.cci-merge-button {
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid #7D40A0;
    background: #fff;
    color: #7D40A0;
    font-size: 12px;
    cursor: pointer;
    width: 90px;
}

.cci-merge-button.cci-merge-button-active {
    background: #7D40A0;
    color: #fff;
    border-color: #7D40A0;
}

.cci-merge-cancel-button,
.cci-merge-execute-button {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    width: 90px;
}

.cci-merge-cancel-button {
    border: 1px solid #AAAAAC;
    background: #fff;
    color: #AAAAAC;
}

.cci-merge-execute-button {
    border: 1px solid #7D40A0;
    background: #7D40A0;
    color: #fff;
}

.cci-merge-switch-wrapper {
    display: none;
    margin-top: 10px;
    display: none;
    justify-content: flex-end;
}

.cci-for-store-page.merge-mode .cci-merge-switch-wrapper {
    display: flex;
}

.cci-merge-switch-label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #535353;
}

.cci-merge-switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cci-merge-switch {
    position: relative;
    width: 32px;
    height: 18px;
    background: #ccc;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.cci-merge-switch::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
}

.cci-merge-switch-input:checked + .cci-merge-switch {
    background: #7D40A0;
}

.cci-merge-switch-input:checked + .cci-merge-switch::before {
    transform: translateX(14px);
}

.cci-merge-switch-text {
    font-size: 12px;
    color: #535353;
}

.cci-card-selected {
    background: #F3E7FD !important;
}

.cci-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    width: 100%;
    border-bottom: 2px solid #AAAAAC;
    flex-direction: column;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.cci-card-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    flex-direction: row;
}

.cci-badge {
    font-size: 12px;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 60px;
    height: 25px;
    text-align: center;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-therame {
    background-color: #fff;
    color: #E9528E;
    border: solid 1px #E9528E;
}

.badge-external {
    background-color: #fff;
    color: #AAAAAC;
    border: solid 1px #AAAAAC;
}

.cci-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.cci-name-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cci-name {
    font-size: 16px;
    font-weight: bold;
    color: #535353;
}

.cci-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cci-ng-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    background-color: #E57373;
    color: #fff;
}

.cci-phone {
    font-size: 14px;
    color: #AAAAAC;
}

.cci-card-body {
    margin-top: 20px;
}

.cci-card-body-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cci-card-body-info {
    position: relative;
    width: 100%;
    height: 70px;
    border: 1px solid #AAAAAC;
    border-radius: 8px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    background-color: #fff;
    padding-top: 10px;
    color: #535353;
}

.cci-card-body-info::before {
    content: attr(data-label);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 5px 0px;
    font-size: 12px;
    color: #7D40A0;
    border: 1px solid #AAAAAC;
    border-radius: 12px;
    width: 70px;
}


.cci-detail-button {
    background-color: #fff;
    color: #7D40A0;
    border: solid 1px #7D40A0;
    font-size: 14px;
    margin-top: 10px;
    float: right;
    width: 100px;
    height: 30px;
    border-radius: 30px;
    position: relative;
}

.cci-detail-button::before {
    position: absolute;
    display: block;
    content: "";
    top: 50%;
    right: 10px;
    width: 7px;
    height: 7px;
    border-bottom: 1px solid #7D40A0;
    border-left: 1px solid #7D40A0;
    -webkit-transform: translatey(-50%) rotate(-135deg);
    transform: translatey(-50%) rotate(-135deg);
}

.cci-no-customer-message,
.cci-error-message {
    text-align: center;
    font-size: 16px;
    color: #AAAAAC;
    margin: 20px 0;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* 個別ページ */

.cci-individual-for-store-page,
.cci-individual-for-therapist-page {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    background: #fff;
}

.cci-individual-for-store-page, 
.cci-individual-for-store-page * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.cci-individual-for-therapist-page, 
.cci-individual-for-therapist-page * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.cci-individual-card {
    margin-bottom: 40px;
}

.cci-individual-header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 40px;
    position: relative;
    width: 100%;
}

.cci-individual-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.cci-individual-header-info {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.cci-individual-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cci-individual-name {
    font-size: 18px;
    font-weight: bold;
    color: #535353;
}

.cci-individual-phone {
    font-size: 16px;
    color: #AAAAAC;
}

.cci-individual-badge {
    font-size: 12px;
    position: absolute;
    right: 10px;
    top: 0px;
    width: 60px;
    height: 25px;
    text-align: center;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cci-individual-age-and-area-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 35px;
}

.cci-individual-age,
.cci-individual-area {
    position: relative;
    width: 100%;
    height: 60px;
    border: 1px solid #AAAAAC;
    border-radius: 8px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    background-color: #fff;
    padding-top: 10px;
    color: #535353;
}

.cci-individual-age::before,
.cci-individual-area::before {
    content: attr(data-label);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 5px 0px;
    font-size: 12px;
    color: #7D40A0;
    border: 1px solid #AAAAAC;
    border-radius: 12px;
    width: 70px;
}

.cci-individual-memo-content {
    margin-top: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: solid 1px #AAAAAC;
}

.cci-individual-memo-content-title {
    color: #535353;
    font-size: 14px;
}

.cci-individual-memo {
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    font-size: 14px;
    color: #535353;
    background-color: #F5F5F5;
    resize: vertical;
    border: none;
    margin-top: 5px;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: hidden;
    height: 150px;
}

#cci-individual-memo-char-count {
    position: absolute;
    bottom: 70px;
    right: 10px;
    font-size: 14px;
    color: #535353;
    margin-top: 5px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.cci-individual-memo-button {
    background-color: #E9528E;
    color: #fff;
    font-size: 14px;
    margin-top: 10px;
    width: 100px;
    height: 30px;
    border-radius: 30px;
    margin-left: auto;
}

.cci-individual-toggle-switch-section {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    justify-content: flex-end;
}

.cci-individual-toggle-switch-explanation {
    font-size: 12px;
    color: #535353;
}

.cci-individual-toggle-switch-explanation-note {
    color: #E9528E;
}

.cci-toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.csim-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cci-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #AAAAAC;
    transition: 0.4s;
    border-radius: 24px;
}

.cci-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.4s;
    border-radius: 50%;
}

.cci-toggle-switch input:checked + .cci-toggle-slider {
    background-color: #E9528E;
}

.cci-toggle-switch input:checked + .cci-toggle-slider:before {
    transform: translateX(22px);
}

.cci-individual-date-info-content {
    display: flex;
    width: 100%;
    margin-top: 35px;
    flex-direction: column;
    gap: 35px;
}

.cci-individual-date-info {
    position: relative;
    width: 100%;
    height: 60px;
    border: 1px solid #AAAAAC;
    border-radius: 8px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    background-color: #fff;
    padding-top: 10px;
    color: #535353;
}

.cci-individual-date-info::before {
    content: attr(data-label);
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 5px 0px;
    font-size: 12px;
    color: #7D40A0;
    border: 1px solid #AAAAAC;
    border-radius: 12px;
    width: 160px;
}

.cci-no-interval,
.cci-no-days-data {
    color: #AAAAAC;
    font-size: 12px;
}


.cci-individual-section {
    margin-top: 20px;
}

.cci-individual-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #535353;
    margin-bottom: 10px;
}

.cci-individual-info-row span {
    text-align: right;
}

.cci-cancel-breakdown {
    margin-left: 20px;
    padding-left: 10px;
    position: relative;
}
  
.cci-cancel-branch {
    position: relative;
    padding-left: 16px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #535353;
    margin-bottom: 10px;
}

.cci-cancel-branch::before {
    content: '';
    position: absolute;
    top: 0.75em;
    left: -10px;
    width: 20px;
    height: 1px;
    background: #AAAAAC;
}

.cci-cancel-breakdown::before {
    content: '';
    position: absolute;
    top: -10px;
    bottom: 0;
    left: 0;
    width: 1px;
    background: #AAAAAC;
}
  









.cci-individual-chart-canvas {
    height: 300px;
    max-height: 300px;
    width: 100%;
    box-sizing: border-box;
}

.cci-individual-button-section {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: solid 1px #AAAAAC;
}

.cci-individual-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    color: #7D40A0;
    width: 85px;
}

.cci-individual-button img {    
    height: 30px;
    width: auto;
}



.cci-individual-reservation-list-section {
    margin-top: 20px;
}
  
.cci-individual-subheading {
    font-size: 14px;
    color: #535353;
    margin-bottom: 10px;
}
  
.cci-reservation-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
  
.cci-reservation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    padding: 10px 10px;
    border: 1px solid #AAAAAC;
    width: 100%;
}
  
.cci-reservation-id {
    color: #535353;
    font-size: 14px;
}
  
.cci-reservation-status {
    font-size: 12px;
    border-radius: 9999px;
    color: #fff;
    width: 120px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
  
.cci-reservation-status.cancelled {
    background-color: #AAAAAC;
}

.cci-reservation-status.pending {
    background-color: #FFA000;
}

.cci-reservation-status.confirmed {
    background-color: #1976D2;
}

.cci-reservation-status.store_confirmed {
    background-color: #4CAF50;
}
  
.cci-reservation-date {
    font-size: 12px;
    color: #535353;
}

.cci-reservation-item-for-store {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    border-radius: 10px;
    padding: 10px 10px;
    border: 1px solid #AAAAAC;
    width: 100%;
}

.cci-reservation-therapist {
    font-size: 12px;
    color: #535353;
}

.cci-individual-phone-display {
    font-size: 14px;
    color: #AAAAAC;
    word-break: break-all;
}

.cci-individual-phone-edit {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    width: 100%;
}

.cci-individual-phone-input {
    flex: 1;
    min-width: 0;
    padding: 5px 8px;
    border-radius: 18px;
    border: none;
    font-size: 12px;
    color: #535353;
    background-color: #F5F5F5;
    box-sizing: border-box;
    outline: none;
}

.cci-individual-phone-save-button {
    flex-shrink: 0;
    background-color: #E9528E;
    color: #fff;
    font-size: 12px;
    width: 70px;
    height: 28px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.cci-individual-phone-save-button:disabled {
    opacity: 0.7;
    cursor: default;
}


.cci-individual-header-toggle {
    margin-top: 5px;
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}