/* 采购单耗管理：双 Sheet（历史排料库 / 算料引擎参数） */

.pcma-page .pcma-sheet-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pcma-page .pcma-sheet-tab {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 14px;
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.pcma-page .pcma-sheet-tab:hover {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.pcma-page .pcma-sheet-tab.is-active {
    border-color: #2563eb;
    color: #1d4ed8;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.pcma-page .pcma-sheet-tab:active {
    transform: scale(0.96);
}

.pcma-page .pcma-hint {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 1rem;
}

.pcma-page .pcma-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.pcma-page .pcma-toolbar label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.pcma-page .pcma-style-lib-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.35rem;
}

.pcma-page .pcma-style-lib-row .standard-input {
    flex: 1;
    min-width: 140px;
}

.pcma-page .pcma-msg {
    font-size: 14px;
    margin-bottom: 0.75rem;
}

.pcma-page .pcma-msg--err {
    color: #b91c1c;
}

.pcma-page .pcma-msg--ok {
    color: #047857;
}

.pcma-page .standard-table td.pcma-mono,
.pcma-page .standard-table th.pcma-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}

.pcma-page .standard-table .pcma-num {
    text-align: right;
}

.pcma-page .pcma-ratio-grid-hint {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
    line-height: 1.45;
}

.pcma-page .pcma-ratio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.pcma-page .pcma-ratio-grid-cell label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.pcma-page .pcma-ratio-grid-cell .pcma-ratio-cell {
    width: 100%;
    max-width: 180px;
}

.pcma-page .pcma-ratio-grid-empty {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.pcma-page .pcma-ratio-grid-empty--err {
    color: #b91c1c;
}

.pcma-page .pcma-ratio-advanced {
    margin-top: 0.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 0.5rem 0.75rem;
}

.pcma-page .pcma-ratio-advanced-summary {
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.pcma-page .pcma-ratio-advanced-body {
    margin-top: 0.75rem;
    margin-bottom: 0;
}
