/* -------------------- HokuryoConnect.Questionnaire.Extern.css ----------------------*/

.dt-mobile .hc-qstnr-cmp-questionnaireanswerform .answer-panel .choice-image {
    height: 150px;
    width: min(100%, 150px);
}

.dt-mobile .hc-qstnr-cmp-questionnaireanswerform .answer-panel .other-text {
    height: 150px;
}

/* コンテキスト固有 */

.hc-qstnr .btn-float-outline-primary {
    background: #ffffff;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hc-qstnr .btn-float-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.hc-qstnr .saving-temporarily-indicator {
    bottom: 1rem;
    position: fixed;
    right: 2rem;
    z-index: 10;
}

.hc-qstnr .saving-temporarily-indicator .spinner-border {
    color: var(--primary-color);
}

/* :hoverが含まれるルールと併記するとタッチデバイスで動作させる際に一緒に削除されるため別々に定義している */
.hc-qstnr .btn-float-outline-primary:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.hc-qstnr label.btn.operation-btn {
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 2px;
}

.hc-qstnr .btn-icon {
    background: transparent;
    border: solid 1px transparent;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
}

.hc-qstnr .btn-icon:focus {
    border: solid 1px rgb(86, 209, 209);
    border-radius: 0.25rem;
    box-shadow: 0 0 0 0.2rem rgb(36 132 132 / 25%);
    color: #495057;
    outline: 0;
}

.hc-qstnr .text-break-all {
    word-break: break-all;
}

.hc-qstnr .floating-message {
    background-color: #333;
    border-radius: 4px;
    box-shadow: 8px 8px 8px -8px;
    color: white;
    opacity: 0;
    padding: 4px;
    position: absolute;
    transition: opacity 0.75s;
}

.hc-qstnr .floating-message.show {
    opacity: 1;
    transition: opacity 0.75s;
}

.hc-qstnr details summary {
    list-style: none;
}

.hc-qstnr details summary:focus-visible {
    border-color: #56d1d1;
    border-radius: 0.25rem;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgb(36 132 132 / 25%);
}

.hc-qstnr details summary.section-summary::before {
    color: var(--primary-color);
    content: "\f055";
    font-family: "Font Awesome 5 Free";
    font-weight: bold;
    margin-right: 0.4rem;
}

.hc-qstnr details[open] summary.section-summary::before {
    content: "\f056";
}

.hc-qstnr .table-filter-wrapper {
    background-color: #f3f3f3;
    border-top: 5px solid #248484;
    overflow-x: auto;
}

.hc-qstnr .table-filter {
    display: flex;
    padding: 0.5rem;
}

.hc-qstnr .table-filter .filter-item {
    margin-right: 0.5rem;
}

.hc-qstnr .table-filter .filter-item > span {
    font-size: 0.9rem;
}

.hc-qstnr .check-mark input[type="checkbox"] {
    display: none;
}

.hc-qstnr .check-mark input[type="checkbox"] + label {
    cursor: pointer;
    padding-left: 32px;
    position: relative;
}

.hc-qstnr .check-mark input[type="checkbox"] + label::before {
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    box-sizing: border-box;
    content: "";
    height: 24px;
    left: 0;
    position: absolute;
    top: -2%;
    width: 24px;
}

.hc-qstnr .check-mark input[type="checkbox"]:checked + label::before {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    box-sizing: border-box;
    content: "";
    display: block;
    height: 24px;
    left: 0;
    position: absolute;
    top: -2%;
    width: 24px;
}

.hc-qstnr .check-mark input[type="checkbox"]:checked + label::after {
    border-bottom-style: solid;
    border-bottom-width: 3px;
    border-color: white;
    border-left-style: solid;
    border-left-width: 3px;
    box-sizing: border-box;
    content: "";
    display: block;
    height: 10px;
    left: 5px;
    position: absolute;
    top: 5px;
    transform: rotate(-45deg);
    width: 14px;
}

/* 機能固有 */

.hc-qstnr-questionnaire .questions > ul {
    list-style: none;
    margin-bottom: 0;
}

.hc-qstnr-questionnaire .questions .form-feed {
    border-top: dashed 3px #ced4da;
    color: #ced4da;
    margin-bottom: 0;
    margin-right: 1rem;
    margin-top: 1.5rem;
    padding-right: 0.3rem;
}

.hc-qstnr-questionnaire .question {
    background: #f3f3f3;
    border-radius: 4px;
    box-shadow: 8px 8px 8px -8px;
    margin-top: 0.8rem;
    max-width: 1000px;
    padding: 4px;
    position: relative;
}

.hc-qstnr-questionnaire .question .question-item-label {
    font-size: 0.9rem;
    color: #2a6e6b;
}

.hc-qstnr-questionnaire .question .checkbox-label {
    color: #2a6e6b;
    font-size: 0.9rem;
}

.hc-qstnr-questionnaire .question-item-header {
    color: #2a6e6b;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 0.95rem;
    text-align: center;
    width: 88px;
}

.hc-qstnr-questionnaire .question-item-body {
    width: calc(100% - 88px);
}

.hc-qstnr-questionnaire .questions .btn-caption,
.hc-qstnr-questionnaire .questions .dropdown-toggle {
    font-size: 0.9rem;
}

.hc-qstnr-questionnaire .question .main-item {
    background: #d9d9d9;
    border-radius: 4px;
    padding: 8px;
    margin: 6px;
}

.hc-qstnr-questionnaire .question .main-item + .main-item {
    margin-top: -0.75rem;
    padding-top: 0;
}

.hc-qstnr-questionnaire .question .sub-item {
    border-radius: 4px;
    padding: 8px;
    margin: 6px;
}

.hc-qstnr-questionnaire .question .choice-image {
    cursor: pointer;
    height: 32px;
    width: 32px;
}

.hc-qstnr-questionnaire .question.it-pulldown .options {
    white-space: pre;
}

.hc-qstnr-questionnaire .question.it-evaluation .symbol {
    font-family: "Font Awesome 5 Free";
}

.hc-qstnr-questionnaire .question.it-nps .lower-limit {
    display: inline-block;
    text-align: right;
    width: 30px;
}

.hc-qstnr-questionnaire .question.it-nps .upper-limit {
    display: inline-block;
    width: 70px;
}

.hc-qstnr-questionnaire .question.it-likert table thead th {
    font-weight: initial;
}

.hc-qstnr-questionnaire .question.it-likert .option-label {
    border: 2px solid #2eadad;
    border-radius: 50%;
    box-sizing: border-box;
    height: 18px;
    position: relative;
    top: 0.4rem;
    width: 18px;
}

.hc-qstnr-questionnaire .popup-overlay {
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.hc-qstnr-questionnaire .menu-area {
    display: flex;
}

.hc-qstnr-questionnaire .skip-condition .option,
.hc-qstnr-questionnaire .skip-condition .skip-to {
    min-width: 150px;
    max-width: 350px;
}

@media screen and (max-width: 575.98px) {
    .hc-qstnr-questionnaire .skip-condition .option-wrapper,
    .hc-qstnr-questionnaire .skip-condition .skip-to-wrapper {
        width: 100%;
    }

    .hc-qstnr-questionnaire .skip-condition .option,
    .hc-qstnr-questionnaire .skip-condition .skip-to {
        max-width: initial;
    }
}

.hc-qstnr-questionnaire details.skip-condition-details li {
    list-style: disc;
}

/* 画面固有 */

#hc-qstnr-questionnaire-questionnaires .btn-summary {
    width: 5rem;
}

#hc-qstnr-questionnaire-questionnaires .status-label {
    width: 70px;
}

#hc-qstnr-questionnaire-questionnaires .status-value {
    text-align: right;
    width: 30px;
}

#hc-qstnr-questionnaire-questionnaireregister .questionnaire-register-page .header-buttons,
#hc-qstnr-questionnaire-questionnaireedit .questionnaire-edit-page .header-buttons,
#hc-qstnr-questionnaire-questionnairelanguagesettingedit-qlseedit .btn-preview {
    position: fixed;
    right: 30px;
    top: 15px;
    z-index: 10;
}

@media screen and (max-width: 575.98px) {
    #hc-qstnr-questionnaire-questionnaireregister .questionnaire-register-page .header-buttons,
    #hc-qstnr-questionnaire-questionnaireedit .questionnaire-edit-page .header-buttons,
    #hc-qstnr-questionnaire-questionnairelanguagesettingedit-qlseedit .btn-preview {
        top: calc(var(--mobile-header-height) + 15px);
    }
}

#hc-qstnr-questionnaire-questionnaireregister .questionnaire-register-preview-page,
#hc-qstnr-questionnaire-questionnaireedit .questionnaire-edit-preview-page,
#hc-qstnr-questionnaire-questionnairelanguagesettingedit-qlsepreview {
    margin-bottom: 60px;
}

#hc-qstnr-questionnaire-questionnaireregister .questionnaire-register-preview-page .dt-pc,
#hc-qstnr-questionnaire-questionnaireedit .questionnaire-edit-preview-page .dt-pc,
#hc-qstnr-questionnaire-questionnairelanguagesettingedit-qlsepreview .dt-pc {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
}

#hc-qstnr-questionnaire-questionnaireregister .questionnaire-register-preview-page .dt-mobile,
#hc-qstnr-questionnaire-questionnaireedit .questionnaire-edit-preview-page .dt-mobile,
#hc-qstnr-questionnaire-questionnairelanguagesettingedit-qlsepreview .dt-mobile {
    border: solid #000000;
    border-radius: 16px;
    border-width: 30px 20px 50px 20px;
    height: 667px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    width: 375px;
}

#hc-qstnr-questionnaire-questionnaireregister .questionnaire-register-preview-page .float-button-area,
#hc-qstnr-questionnaire-questionnaireedit .questionnaire-edit-preview-page .float-button-area,
#hc-qstnr-questionnaire-questionnairelanguagesettingedit-qlsepreview .float-button-area {
    display: flex;
    flex-wrap: wrap;
    position: sticky;
    top: 16px;
    z-index: 10;
}

#hc-qstnr-questionnaire-questionnairesummary .summary-panels {
    height: calc(100vh - 100px);
    height: calc(var(--vh, 1vh) * 100 - 100px);
    max-width: 1000px;
    padding: 0.5rem;
}

@media screen and (max-width: 575.98px) {
    #hc-qstnr-questionnaire-questionnairesummary .summary-panels {
        height: calc(100vh - 100px - var(--mobile-header-height));
        height: calc(var(--vh, 1vh) * 100 - 100px - var(--mobile-header-height));
    }
}

#hc-qstnr-questionnaire-questionnairesummary .summary-panel {
    background-color: #f3f3f3;
    border-radius: 4px;
    box-shadow: 8px 8px 8px -8px;
    display: flex;
    flex-direction: column;
    margin-left: 0.4rem;
    min-height: 200px;
    position: relative;
}

#hc-qstnr-questionnaire-questionnairesummary .summary-panel-body .chart-buttons,
#hc-qstnr-questionnaire-questionnairesummary .summary-panel-body .text-operation-buttons {
    padding: 0 1.5rem 1rem 1.5rem;
}

#hc-qstnr-questionnaire-questionnairesummary .summary-panel-body .summary-data {
    min-height: 200px;
    padding: 0 1.5rem 1rem 1.5rem;
}

#hc-qstnr-questionnaire-questionnairesummary .summary-panel-body .texts-table-wrapper {
    margin-top: 0.5rem;
}

#hc-qstnr-questionnaire-questionnairesummary .error-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 130px;
    text-align: center;
}

#hc-qstnr-questionnaire-questionnairesummary .summary-panel-body .question-summary-multi-text .texts-table-wrapper {
    max-height: 500px;
    overflow-y: auto;
}

#hc-qstnr-questionnaire-questionnairesummary .summary-panel-body .question-summary-multi-text .texts-table-wrapper pre {
    font-family: inherit;
    font-size: 1rem;
}

#hc-qstnr-questionnaire-questionnairesummary .summary-panel-body .summary-score {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}
