.pg-spreadsheet-guide { --pg-green: #316451; }
.pg-workbook-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 12px 0 24px; padding: 0; list-style: none; }
.pg-workbook-steps li { display: flex; align-items: start; gap: 12px; font-size: .84rem; }
.pg-workbook-steps span { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border: 1px solid #bed0c5; border-radius: 50%; color: #315e4e; }
.pg-workbook { border: 1px solid #b8ccca; border-radius: 8px; background: white; position: relative; }
.pg-workbook-top { position: sticky; top: 0; z-index: 8; background: white; border-radius: 8px 8px 0 0; }
.pg-workbook-chrome { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px 8px 0 0; background: #eaf2ef; color: #274b3d; border-bottom: 1px solid #c4d7ce; }
.pg-workbook-chrome strong { font-size: .84rem; }
.pg-workbook-chrome > span:last-child { margin-left: auto; font-size: .66rem; }
.pg-workbook-file { display: grid; place-items: center; width: 24px; height: 27px; color: white; background: var(--pg-green); border-radius: 3px; font: 1rem Georgia, serif; }
.pg-formula-bar { display: flex; align-items: center; min-height: 40px; border-bottom: 1px solid #c4d7ce; }
.pg-formula-bar > span:first-child { flex: 0 0 44px; text-align: center; color: #254d3d; font: .78rem var(--mono); }
.pg-formula-symbol { padding: 10px; color: #6a7d73; font: italic 1rem Georgia, serif; border-left: 1px solid #dbe5e1; }
.pg-formula-bar code { padding: 8px 10px 8px 0; font-size: .76rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; background: none; }
.pg-cell-note { position: relative; padding: 14px 55px 8px 14px; min-height: 64px; background: #f4f8f5; border-bottom: 1px solid #c4d7ce; color: #365541; }
.pg-cell-note p { font-size: .76rem; line-height: 24px; margin: 0; }
.pg-note-close { position: absolute; top: 4px; right: 5px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: #e2ece5; color: #2d513b; border-radius: 50%; cursor: pointer; }
.pg-sheet-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .78rem; }
.pg-row-number { width: 30px; }
.pg-vendor-name { width: 28%; }
.pg-vendor-code { width: 19%; }
.pg-vendor-sector { width: auto; }
.pg-key-prefix { width: 12%; }
.pg-key-code { width: 20%; }
.pg-sheet-table th, .pg-sheet-table td { border-right: 1px solid #e0e6e3; border-bottom: 1px solid #e0e6e3; padding: 0; }
.pg-sheet-table td:last-child, .pg-sheet-table th:last-child { border-right: 0; }
.pg-sheet-table th { text-align: center; background: #f0f4f2; color: #56695f; font-weight: 400; font-size: .66rem; }
.pg-sheet-table thead th { height: 23px; }
.pg-column-labels td { padding: 6px 8px; background: #f5f8f6; color: #2a4c3b; font-weight: 600; }
.pg-column-labels small { display: block; color: #56695f; font-size: .61rem; font-weight: 400; }
.pg-cell { display: block; width: 100%; border: 0; padding: 6px 8px; min-height: 30px; font-size: .76rem !important; text-align: left; color: #2d4037; background: none; cursor: cell; white-space: pre-wrap; overflow-wrap: anywhere; }
.pg-cell:hover { background: #edf5ef; box-shadow: inset 0 0 0 1px #96b4a3; }
.pg-cell.pg-active { background: #edf7f0; box-shadow: inset 0 0 0 2px #316451; }
.pg-cell[data-numeric=true] { text-align: right; }
.pg-cell-code { font-family: var(--mono) !important; }
.pg-cell-problem { position: relative; }
.pg-cell-problem::after { content: ''; position: absolute; top: 1px; right: 1px; border-top: 7px solid #9b742c; border-left: 7px solid transparent; pointer-events: none; }
.pg-cell-review { background: #fff3d8; }
.pg-inline-edit { width: 100%; min-width: 0; max-width: 100%; border: 2px solid #316451; border-radius: 0; font-size: 16px; padding: 4px; height: 32px; }
.pg-workbook-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px; padding: 0 10px; background: #edf4ef; border-radius: 0 0 8px 8px; }
.pg-sheet-tabs { display: flex; }
.pg-sheet-tabs button { padding: 10px 14px; border: 0; border-bottom: 3px solid transparent; color: #3f6150; background: none; font-size: .76rem; cursor: pointer; }
.pg-sheet-tabs button:hover { background: #dfece4; }
.pg-sheet-tabs button[aria-selected=true] { background: white; border-bottom-color: #316451; font-weight: 600; }
.pg-workbook-bottom > span { font-size: .65rem; color: #426151; }
.pg-reference-no-js { padding: 20px; margin: 0; }
.pg-formula-recipes { padding: 0; list-style: none; counter-reset: formula; }
.pg-formula-recipes li { counter-increment: formula; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pg-formula-recipes h3::before { content: '0' counter(formula); margin-right: 14px; color: #316451; font: .75rem var(--mono); }
@media (max-width: 767px) {
    .pg-workbook-steps { grid-template-columns: 1fr; gap: 12px; }
    .pg-row-number { width: 22px; }
    .pg-vendor-name { width: 26%; }
    .pg-vendor-code { width: 24%; }
    .pg-cell { padding: 6px 4px; font-size: .71rem !important; line-height: 1.4; }
    .pg-column-labels td { padding: 6px 4px; font-size: .7rem; }
    .pg-column-labels small { font-size: .56rem; }
    .pg-workbook-chrome { padding: 8px; }
    .pg-workbook-chrome > span:last-child { font-size: .58rem; }
    .pg-formula-bar code { font-size: .66rem; }
    .pg-formula-bar > span:first-child { flex-basis: 32px; }
    .pg-formula-symbol { padding: 8px 5px; }

    .pg-cell-note { padding-left: 8px; }
    .pg-cell-note p { font-size: .69rem; }
    .pg-sheet-tabs button { padding: 10px; }
    .pg-workbook-bottom > span { padding: 4px 0 6px; }
    .pg-inline-edit { padding: 3px 1px; font-size: 16px; }
}

.pg-note-close .site-icon { display: block; width: 20px; height: 20px; margin: 0; }
.pg-note-close[hidden] { display: none; }
