﻿/* 共通スタイル */
.report-scroll-wrapper {
    display: flex;
    justify-content: center;
    overflow: auto;
    -webkit-overflow-scrolling: touch; /* iOSスムーズスクロール */
}

.report-scale-layer {
    transform-origin: top left;
}

.report-container {
    width: 210mm;
    min-width: 210mm;
    margin: 0 auto;
    font-size: 14pt;
    background-color: white;
    color: black;
    border: 1px solid #ccc;
}

.report-base-font {
    font-size: 14pt;
}

.report-body-inner {
    margin: 1.8cm 1.9cm;
}

.report-title-row {
    text-align: center;
}

.report-title {
    font-size: 24pt;
    font-weight: bold;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    padding-bottom: 4px;
}

.header-name,
.header-date {
    border-bottom: 1px solid black;
    padding-bottom: 2px;
}

.header-name {
    flex: 4;
    text-align: left;
}

.header-date {
    flex: 2;
    text-align: center;
}

.header-space {
    flex: 1;
}

.label-bold {
    font-weight: bold;
}

.label-bold-14pt {
    font-size: 14pt;
    font-weight: bold;
    line-height: 1;
}

.label-14px {
    font-size: 14px;
    line-height: 1;
}

.font-12pt {
    font-size: 12pt;
}

.font-10pt {
    font-size: 10pt;
}

.font-16pt {
    font-size: 16pt;
}

.pre {
    white-space: pre;
}

.pre-wrap {
    white-space: pre-wrap;
}

.pt-10 {
    padding-top: 10px;
}

.pt-20 {
    padding-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.padding-10 {
    padding: 10px;
}

.report-info-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    font-size: 11pt;
}

.report-info-left {
    flex: 4;
}

.report-info-space {
    flex: 1;
}

.report-info-right {
    flex: 2;
}

.info-message {
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.info-name-box {
    border: 1px solid black;
    padding: 10px;
}

.info-total-box {
    display: flex;
    align-items: center;
    border: 1px solid black;
    border-top: none;
    padding: 10px;
}

.info-total-label {
    flex-grow: 1;
}

.info-total-value {
    text-align: right;
}

.info-company {
    display: inline-block;
    padding-top: 30px;
    padding-bottom: 10px;
    text-align: left;
}

.report-table {
    width: 100%;
    font-size: 11pt;
    margin-top: 40px;
    border-collapse: collapse;
    border: 1px solid black;
}

    .report-table th,
    .report-table td {
        border: 1px solid black;
        padding: 5px;
    }

.w-8 {
    width: 8%;
}

.w-15 {
    width: 15%;
}

.w-54 {
    width: 54%;
}

.td-left {
    text-align: left;
    padding-left: 5px;
    vertical-align: middle;
}

.td-center {
    text-align: center;
    vertical-align: middle;
}

.text-right {
    text-align: right;
}

.report-comment {
    border: 1px solid black;
    padding: 5px;
    font-size: 10pt;
    text-align: left;
    height: 25px;
}

.report-total-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    margin: 10px 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.report-total-block {
    width: 100%;
    font-size: 11pt;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    flex-wrap: wrap;
}

.total-label {
    text-align: right;
    flex: 1;
    min-width: 150px;
}

.total-value {
    text-align: right;
    flex: 0 0 auto;
    min-width: 100px;
}

.total-line {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    flex-wrap: wrap;
}

.bottom-line {
    width: 50%;
    margin-left: auto;
    border-bottom: 1px solid black;
    margin-top: -5px;
}

.note-block {
    border: 1px solid black;
}

.common-main-button:disabled {
    background-color: var(--dk-gray2);
}

.estimate-detail-link {
    cursor: pointer;
}

.common-table td.rowspan-center {
    text-align: center;
    vertical-align: middle;
}


@media (max-width: 991px) {
    .report-scroll-wrapper {
        overflow: hidden;
    }

    .tap-to-preview {
        position: relative;
    }

        .tap-to-preview .tap-hint {
            position: absolute;
            right: 12px;
            bottom: 12px;
            z-index: 10;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            border-radius: 999px;
            background: rgba(0, 0, 0, 0.55);
            color: #fff;
            font-size: 12px;
            pointer-events: none;
        }

        .tap-to-preview:active {
            transform: scale(0.99);
        }

    .common-table td::before {
        color: var(--dk-theme-color);
        font-weight: 500;
        font-size: 0.9em;
        flex: 0 0 30%;
    }

    .common-table td:first-child::before {
        content: attr(data-label);
    }

    .common-table tr:last-child td:last-child {
        border-bottom: 1px solid var(--dk-theme-color);
    }

    .common-table .sp-stack-body td:first-child {
        background: transparent;
        color: inherit;
        text-align: right;
    }

    .common-table .sp-stack-body td.sp-request-date {
        background: var(--dk-theme-color);
        color: var(--dk-white);
    }

        .common-table .sp-stack-body td.sp-request-date::before {
            content: none;
        }

    .common-table .sp-stack-body td.sp-pattern-name {
        background: var(--dk-base-color);
    }

    .common-table .sp-stack-body td.sp-detail-cell::before {
        content: none;
    }

    .common-table .sp-stack-body td.sp-detail-cell {
        justify-content: center;
    }
}

@media (hover: hover) and (pointer: fine) {
    #reportWrapper {
        cursor: default; /* ← 矢印カーソル */
    }
}