.mexico-workbook { margin: 0; color: #20252b; background: #fff; font: 13px/1.35 Arial, sans-serif; }
.mexico-workbook * { box-sizing: border-box; }
.mexico-workbook a { color: #9e181c; }
.catalog-masthead { background: #bf1518; color: #fff; }
.catalog-utility-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 32px; padding: 0 28px; background: #9a1c1f; font-size: 13px; letter-spacing: 1px; }
.catalog-contact-links, .catalog-account-links { display: flex; align-items: center; gap: 28px; }
.mexico-workbook .catalog-utility-bar a { color: #fff; text-decoration: none; }
.catalog-utility-bar a:hover { text-decoration: underline; }
.catalog-account-menu { position: relative; }
.catalog-account-menu summary { cursor: pointer; list-style: none; }
.catalog-account-menu summary::-webkit-details-marker { display: none; }
.catalog-account-menu summary::after { content: ''; display: inline-block; margin-left: 4px; vertical-align: middle; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.catalog-account-options { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; padding: 5px 0; background: #fff; border: 1px solid #c9c9c9; box-shadow: 0 3px 8px #0003; z-index: 20; }
.mexico-workbook .catalog-account-options a { display: block; padding: 8px 14px; color: #20252b; }
.catalog-account-options a:hover { background: #f6ede7; }
.catalog-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 66px; margin: 0 auto; width: calc(100% - 80px); }
.catalog-brand { display: block; flex-shrink: 0; }
.catalog-brand img { display: block; width: 270px; height: auto; }
.catalog-main-nav { display: flex; align-items: center; gap: 34px; }
.mexico-workbook .catalog-main-nav a { color: #fff; font-size: 13px; letter-spacing: 1px; text-decoration: none; white-space: nowrap; }
.catalog-main-nav a:hover { text-decoration: underline; }
.mexico-workbook .catalog-masthead a:focus-visible { outline-color: #fff; }
.mexico-workbook main { padding: 10px 18px; }
.catalog-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.catalog-results { position: relative; min-width: 0; }
.catalog-result-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 9px; }
.catalog-result-heading .worksheet-title { margin-bottom: 0; }
.catalog-result-summary { margin: 0; color: #0000ff; font-size: 13px; }
.catalog-loading { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 100px; background: rgba(255, 255, 255, .78); color: #333; font-size: 15px; }
.catalog-spinner { width: 26px; height: 26px; border: 3px solid #ddd; border-top-color: #bf1518; border-radius: 50%; animation: catalog-spin .8s linear infinite; }
@keyframes catalog-spin { to { transform: rotate(360deg); } }
.catalog-request-error { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 10px; margin-bottom: 9px; border: 1px solid #d9a3a3; background: #fff3f3; color: #8b171b; }
.catalog-retry { padding: 3px 8px; border: 1px solid #b8bdc2; background: #fff; color: inherit; font: inherit; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .catalog-spinner { animation: none; } }
.catalog-help { min-width: 0; min-height: 360px; margin: 0; padding: 10px 14px 18px; border: 1px solid #bfc3c7; }
.catalog-help legend { padding: 0 6px; }
.catalog-help-toggle { padding: 0; border: 0; color: #bf1518; background: transparent; font: 14px Arial, sans-serif; cursor: pointer; }
.catalog-help-toggle::after { content: '\25BE'; margin-left: 7px; font-size: 11px; }
.catalog-help-toggle[aria-expanded="false"]::after { content: '\25B8'; }
.catalog-help[data-collapsed="true"] { min-height: 0; padding-bottom: 6px; }
.catalog-help ul { margin: 12px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.catalog-help li { margin-bottom: 12px; padding-left: 2px; }
.catalog-help li:last-child { margin-bottom: 0; }
.worksheet-title { margin: 0 0 9px; font-weight: bold; font-size: 14px; white-space: pre-wrap; }
.catalog-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; min-height: 32px; }
.catalog-toolbar select, .catalog-toolbar input, .catalog-toolbar button, .close-inline-images { font: inherit; min-height: 30px; border: 1px solid #b8bdc2; border-radius: 3px; background: #fff; padding: 5px 8px; }
.catalog-toolbar input { width: 220px; }
.catalog-toolbar button { color: #fff; background: #a51c22; border-color: #a51c22; cursor: pointer; }
.catalog-legend { display: flex; gap: 6px; align-items: center; margin-left: auto; font-size: 12px; white-space: nowrap; }
.catalog-legend img { width: 23px; height: 23px; }
.catalog-legend img:nth-of-type(2) { margin-left: 12px; }
.catalog-sheet { overflow: auto; height: calc(100vh - 230px); height: calc(100dvh - 230px); max-height: 532px; min-height: 230px; border: 1px solid #b5bdc5; isolation: isolate; }
.worksheet-table { table-layout: fixed; width: 100%; border-spacing: 0; border-collapse: separate; }
.worksheet-table col.excel-column-B { width: 19%; }
.worksheet-table col.excel-column-C { width: 10%; }
.worksheet-table col.excel-column-D { width: 6%; }
.worksheet-table col.excel-column-E { width: 27%; }
.worksheet-table col.excel-column-F, .worksheet-table col.excel-column-G { width: 10%; }
.worksheet-table col.excel-column-H { width: 7%; }
.worksheet-table col.excel-column-I { width: 11%; }
.worksheet-table th, .worksheet-table td { border-right: 1px solid #d5dbe0; border-bottom: 1px solid #d5dbe0; padding: 2px 6px; height: 24px; overflow: hidden; }
.worksheet-table thead th { position: sticky; top: 0; z-index: 5; height: 32px; background: #e6ecf1; color: #1e2933; text-align: left; font-weight: 600; white-space: normal; overflow-wrap: anywhere; box-shadow: 0 1px #aeb8c1; }
.worksheet-table .worksheet-record td { background: #fff; }
.worksheet-table .worksheet-record.record-alternate td { background: #f8fafb; }
.worksheet-record:hover td { background: #fff5df !important; }
.worksheet-record td > span { display: block; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.worksheet-record td { vertical-align: top; }
.worksheet-record td.excel-column-E { height: auto; }
.worksheet-record td.excel-column-E > span { white-space: pre-wrap; overflow-wrap: anywhere; overflow: visible; text-overflow: clip; }
.catalog-stamp-link { display: block; overflow: hidden; white-space: pre; text-overflow: ellipsis; text-decoration: none; }
.catalog-stamp-link:hover { text-decoration: underline; }
.worksheet-table .record-image { text-align: center; }
.worksheet-section th { background: #e9e4d4; color: #312e25; text-align: left; font-weight: 700; height: 25px; }
.worksheet-section span { position: sticky; left: 8px; white-space: pre; }
.worksheet-variety th { background: #edf2f6; color: #253b4b; text-align: left; font-weight: 700; padding-left: 14px; overflow-wrap: anywhere; }
.worksheet-table td.image-cell { text-align: center; }
.stamp-image-button { cursor: pointer; border: 0; background: transparent; padding: 0; vertical-align: middle; height: 18px; line-height: 1; }
.stamp-image-button img, .stamp-image-missing { width: 22px; height: 18px; display: inline-block; vertical-align: middle; }
.image-unavailable { filter: grayscale(1); opacity: .5; }
.stamp-image-button:focus-visible, .mexico-workbook a:focus-visible, .catalog-sheet:focus-visible { outline: 2px solid #a51c22; outline-offset: 2px; }
.catalog-pagination { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; min-height: 47px; }
.catalog-page-jump { display: flex; flex-shrink: 0; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 25px; margin: 0; color: #000; font-weight: 600; }
.catalog-page-jump label { margin: 0; }
.catalog-page-jump input[type="number"] { width: 60px; height: 25px; padding: 2px 4px; border: 1px solid #888; border-radius: 0; font: inherit; font-weight: normal; }
.catalog-page-jump button { height: 25px; padding: 2px 7px; border: 1px solid #888; border-radius: 2px; background: #f3f3f3; color: #000; font: inherit; font-weight: normal; cursor: pointer; }
.catalog-page-jump button:disabled { cursor: default; opacity: .5; }
.catalog-pagination nav { display: flex; flex-shrink: 0; justify-content: flex-end; margin-left: auto; }
.catalog-page-list { display: flex; list-style: none; margin: 0; padding: 0; }
.catalog-page-list li + li { margin-left: -1px; }
.catalog-pagination .catalog-page-link { position: relative; display: block; min-width: 32px; height: 31px; padding: 6px 12px; border: 1px solid #ddd; background: #fff; color: #337ab7; font-size: 12px; line-height: 17px; text-align: center; text-decoration: none; }
.catalog-page-list li:first-child .catalog-page-link { border-radius: 3px 0 0 3px; }
.catalog-page-list li:last-child .catalog-page-link { border-radius: 0 3px 3px 0; }
.catalog-page-list a:hover { background: #eee; }
.catalog-page-list .active .catalog-page-link { z-index: 1; background: #337ab7; border-color: #337ab7; color: #fff; }
.catalog-page-list .disabled .catalog-page-link { color: #c7c7c7; cursor: default; }
.catalog-page-list a:focus-visible { z-index: 2; outline: 2px solid #337ab7; outline-offset: -2px; }
.catalog-empty, .catalog-error { padding: 20px !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.worksheet-table .catalog-image-detail > td { height: auto; padding: 10px; background: #f2f5f7; overflow: visible; }
.catalog-inline-preview { position: sticky; left: 10px; width: var(--catalog-preview-width, min(calc(100vw - 76px), 1000px)); max-width: 1000px; }
.catalog-inline-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.close-inline-images { cursor: pointer; }
.catalog-inline-images { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; }
.catalog-inline-images img { max-width: 100%; max-height: 220px; width: auto; height: auto; object-fit: contain; background: #fff; border: 1px solid #d5dbe0; padding: 3px; }
.catalog-inline-error { margin: 8px 0; }
[hidden] { display: none !important; }
@media (max-width: 1100px) {
    .catalog-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 12px; }
    .catalog-toolbar { flex-wrap: wrap; }
    .catalog-legend { margin-left: 0; }
}
@media (max-width: 900px) {
    .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .catalog-help { min-height: 0; }
    .catalog-sheet { height: calc(100dvh - 319px); }
}
@media (max-width: 750px) {
    .catalog-utility-bar { flex-wrap: wrap; gap: 8px; padding: 7px 12px; font-size: 11px; letter-spacing: .3px; }
    .catalog-contact-links { flex-wrap: wrap; gap: 16px; }
    .catalog-account-links { margin-left: auto; gap: 20px; }
    .catalog-header-inner { flex-wrap: wrap; gap: 12px; padding: 8px 12px; width: 100%; }
    .catalog-brand img { max-width: 100%; }
    .catalog-main-nav { flex-wrap: wrap; gap: 12px; padding-bottom: 4px; }
    .mexico-workbook .catalog-main-nav a { font-size: 11.5px; letter-spacing: .3px; }
    .mexico-workbook main { padding: 8px; }
    .catalog-toolbar { flex-wrap: wrap; }
    .catalog-toolbar select { max-width: 65vw; }
    .catalog-toolbar input { flex: 1; width: 150px; }
    .catalog-legend { width: 100%; margin-left: 0; }
    .catalog-sheet { height: calc(100dvh - 389px); }
    .worksheet-table { font-size: 10px; line-height: 1.25; }
    .worksheet-table col.excel-column-D { width: 8%; }
    .worksheet-table col.excel-column-E { width: 25%; }
    .worksheet-table th, .worksheet-table td { padding: 2px; }
    .worksheet-record td > span, .catalog-stamp-link { white-space: normal; overflow-wrap: anywhere; }
    .stamp-image-button img, .stamp-image-missing { width: 16px; height: 16px; }
    .catalog-pagination { gap: 6px; }
    .catalog-pagination .catalog-page-link { min-width: 26px; padding-left: 5px; padding-right: 5px; }
}
@media print {
    .catalog-masthead, .catalog-toolbar, .catalog-pagination, .catalog-help-sidebar { display: none; }
    .catalog-layout { display: block; }
    .catalog-sheet { height: auto; overflow: visible; border: 0; }
    .worksheet-table thead { display: table-header-group; }
    .worksheet-table th, .worksheet-table td { position: static !important; }
    .worksheet-record { break-inside: avoid; }
}
