/* 成衣残次归因录入（收货 / 全检）：大类 → 细项联动 */

.gda-hint {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 12px;
}

.gda-blocks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gda-block {
    background: #fafafa;
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #f3f4f6;
}

.gda-block--sub-mismatch {
    border-color: #fecaca;
    background: #fef2f2;
}

.gda-block-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.gda-block-toggle {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.gda-block-toggle::before {
    content: '▸ ';
    display: inline-block;
    transition: transform 0.15s ease;
}

.gda-block-toggle[aria-expanded='true']::before {
    transform: rotate(90deg);
}

.gda-major-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    margin: 0;
}

.gda-major-inp {
    width: 100px;
    text-align: right;
}

.gda-sub-sum-wrap {
    font-size: 12px;
    color: #6b7280;
    margin-left: auto;
}

.gda-sub-sum {
    font-variant-numeric: tabular-nums;
}

.gda-sub-mismatch {
    color: #dc2626;
    margin-left: 6px;
    font-size: 12px;
}

.gda-sub-mismatch[hidden] {
    display: none !important;
}

.gda-block-body {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.gda-block-body[hidden] {
    display: none !important;
}

.gda-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 16px;
}

.gda-sub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.gda-sub-label {
    font-size: 13px;
    color: #374151;
    margin: 0;
    flex: 1;
}

.gda-sub-inp {
    width: 88px;
    text-align: right;
}

.gda-empty-hint {
    font-size: 12px;
    margin: 0;
}

.gda-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    font-size: 14px;
}

.gda-footer-label {
    color: #6b7280;
}

.gda-cat-sum {
    font-variant-numeric: tabular-nums;
    color: #111827;
}

.gda-total-mismatch {
    color: #dc2626;
    font-size: 12px;
}

.gda-total-mismatch[hidden] {
    display: none !important;
}

.gda--total-mismatch .gda-footer {
    color: #991b1b;
}

.gdr-intro {
    font-size: 13px;
    margin: 0 0 16px;
}

@media (min-width: 768px) {
    .gda-block-head {
        flex-wrap: nowrap;
    }
}
