.snapshot-command-bar {
    margin: -4px 0 14px;
}

.snapshot-command-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    box-shadow: var(--shadow-sm);
}

.snapshot-command-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.snapshot-command-copy > span {
    color: var(--primary-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.snapshot-command-copy small {
    color: var(--muted);
    font-size: 0.82rem;
}

.snapshot-command-actions {
    flex: 0 0 auto;
    justify-content: flex-start;
}

.price-metric-strip {
    grid-template-columns: 1.15fr repeat(5, minmax(0, 1fr));
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.price-metric-item {
    min-width: 0;
    padding: 11px 13px;
    border-right: 1px solid var(--line-soft);
    background: transparent;
}

.price-metric-item:last-child {
    border-right: 0;
}

.price-metric-item span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.price-metric-item strong {
    margin-top: 2px;
    color: var(--text);
    font-size: 1.24rem;
    line-height: 1.1;
}

.price-metric-item.highlight {
    background: linear-gradient(90deg, rgba(238, 247, 245, .86), rgba(255, 255, 255, .92));
}

.price-metric-item.attention {
    background: #fffaf0;
}

.price-metric-item.attention strong {
    color: var(--warning);
}

.price-metric-item.secondary strong {
    color: var(--text-soft);
}

.price-page-tab-shell {
    position: sticky;
    top: 66px;
    z-index: 6;
    margin: 0 0 22px;
    padding: 0;
    border: 1px solid #b9ccd5;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(16, 24, 40, .10);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.price-page-tab-shell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid #d8e5ea;
    background: #f6fafb;
}

.price-page-tab-shell-head span {
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.price-page-tab-shell-head small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.price-page-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(206px, 1fr));
    gap: 6px;
    padding: 6px;
    background: #eaf2f5;
    overflow: visible;
}

.price-page-tab {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 74px;
    padding: 12px 13px;
    border: 1px solid #c8d8df;
    border-radius: 6px;
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    min-width: 0;
    box-shadow: 0 1px 1px rgba(16, 24, 40, .04);
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease, transform .15s ease;
}

.price-page-tab::before {
    content: "";
    position: absolute;
    inset: 9px auto 9px 0;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: transparent;
    transition: background-color .15s ease;
}

.price-page-tab:hover,
.price-page-tab:focus-visible {
    border-color: #7aa9b4;
    background: #f5fbfd;
    color: var(--primary-strong);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(16, 24, 40, .11);
}

.price-page-tab:hover::before,
.price-page-tab:focus-visible::before {
    background: #7aa9b4;
}

.price-page-tab:focus-visible {
    outline: 3px solid rgba(21, 94, 117, .16);
    outline-offset: 2px;
}

.price-page-tab-index {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #d5e8ed;
    border-radius: 6px;
    background: #edf7f8;
    color: var(--primary-strong);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.price-page-tab-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.price-page-tab strong {
    color: inherit;
    font-size: 0.94rem;
    line-height: 1.15;
    white-space: normal;
}

.price-page-tab-count {
    justify-self: start;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    text-align: left;
}

.price-page-tab-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #9fc5cc;
    border-radius: 6px;
    background: #f1f8f8;
    color: var(--primary-strong);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.price-page-tab-action::before {
    content: "Apri";
}

.price-page-tab-action::after {
    content: ">";
    margin-left: 7px;
    font-size: 0.82rem;
    line-height: 1;
}

.price-page-tab[aria-selected="true"] {
    border-color: #12495c;
    background: #12495c;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 9px 18px rgba(21, 94, 117, .22);
}

.price-page-tab[aria-selected="true"]::before {
    background: #ffffff;
}

.price-page-tab[aria-selected="true"] .price-page-tab-index,
.price-page-tab[aria-selected="true"] .price-page-tab-action {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .16);
    color: #ffffff;
}

.price-page-tab[aria-selected="true"] .price-page-tab-count {
    color: rgba(255, 255, 255, .78);
}

.price-page-tab[aria-selected="true"] .price-page-tab-action::before {
    content: "In uso";
}

.price-page-tab[aria-selected="true"] .price-page-tab-action::after {
    content: "";
    margin-left: 0;
}

.price-page-tab[data-price-tab-tone="warning"][aria-selected="true"] {
    border-color: #c47a17;
    background: #8f5207;
    color: #ffffff;
}

.price-page-tab[data-price-tab-tone="warning"]:not([aria-selected="true"]) {
    border-color: #e5c38f;
    background: #fffdf8;
}

.price-page-tab[data-price-tab-tone="warning"]:not([aria-selected="true"]) .price-page-tab-index {
    background: var(--warning-bg);
    color: var(--warning);
}

.price-page-tab[data-price-tab-tone="warning"]:not([aria-selected="true"]) .price-page-tab-action {
    border-color: #dfb875;
    background: #fff8eb;
    color: #8a4c05;
}

.price-page-section {
    scroll-margin-top: 140px;
}

.price-page-section[hidden] {
    display: none !important;
}

.price-data-table {
    table-layout: fixed;
}

.price-data-table td strong,
.price-data-table td small {
    display: block;
}

.price-data-table td small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.35;
}

.supplier-current-table {
    min-width: 1080px;
    --col-supplier: 17%;
    --col-main: 34%;
    --col-smile: 18%;
    --col-price: 17%;
    --col-status: 14%;
}

.price-history-event-table {
    width: calc(100% - 2px);
    min-width: 1160px;
    --col-date: 10%;
    --col-supplier: 15%;
    --col-main: 31%;
    --col-event: 18%;
    --col-review: 14%;
    --col-price: 12%;
}

.snapshot-import-log-table {
    min-width: 1120px;
    --col-main: 31%;
    --col-supplier: 16%;
    --col-status: 18%;
    --col-coverage: 15%;
    --col-import: 14%;
    --col-actions: 6%;
}

.price-data-table .col-date { width: var(--col-date); }
.price-data-table .col-supplier { width: var(--col-supplier); }
.price-data-table .col-main { width: var(--col-main); }
.price-data-table .col-smile { width: var(--col-smile); }
.price-data-table .col-price { width: var(--col-price); }
.price-data-table .col-status { width: var(--col-status); }
.price-data-table .col-event { width: var(--col-event); }
.price-data-table .col-review { width: var(--col-review); }
.price-data-table .col-coverage { width: var(--col-coverage); }
.price-data-table .col-import { width: var(--col-import); }
.price-data-table .col-actions { width: var(--col-actions); }

.snapshot-title-cell {
    min-width: 260px;
}

.snapshot-title-cell strong {
    display: block;
    max-width: 420px;
    overflow-wrap: anywhere;
}

.snapshot-origin {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef4f6;
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 700;
}

.snapshot-coverage-cell {
    min-width: 190px;
}

.snapshot-coverage-cell strong {
    display: block;
    margin-top: 6px;
}

.snapshot-coverage-bar {
    width: 168px;
    max-width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7ebf0;
}

.snapshot-coverage-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--success);
}

.snapshot-table td {
    vertical-align: top;
}

.snapshot-table td strong {
    display: block;
}

.snapshot-table td small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.35;
}

.supplier-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 12px;
}

.supplier-overview-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.supplier-overview-head,
.supplier-overview-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.supplier-overview-head div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.supplier-overview-head span:not(.status),
.supplier-overview-body > section > span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.supplier-overview-head h3 {
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.supplier-overview-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.supplier-overview-body > section {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    background: var(--surface-muted);
}

.supplier-overview-body strong,
.supplier-overview-body a {
    overflow-wrap: anywhere;
    color: var(--text);
    font-weight: 800;
}

.supplier-overview-body small {
    color: var(--muted);
    line-height: 1.35;
}

.supplier-overview-foot {
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
}

.supplier-overview-foot span {
    color: var(--muted);
    font-size: 0.84rem;
}

.supplier-overview-foot strong {
    color: var(--text);
}

.supplier-overview-empty {
    grid-column: 1 / -1;
}

.snapshot-detail-grid small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.snapshot-import-detail {
    display: grid;
    gap: 16px;
}

.snapshot-import-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.snapshot-import-kpis article {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfc;
}

.snapshot-import-kpis span,
.snapshot-import-groups dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.snapshot-import-kpis strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 22px;
    line-height: 1.1;
}

.snapshot-import-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.snapshot-import-groups article {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.snapshot-import-groups h3 {
    margin: 0 0 10px;
    color: var(--primary-strong);
    font-size: 14px;
}

.snapshot-import-groups dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.snapshot-import-groups dl div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-soft);
}

.snapshot-import-groups dl div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.snapshot-import-groups dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.snapshot-raw-note {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfc;
}

.snapshot-raw-note summary {
    min-height: 34px;
    display: flex;
    align-items: center;
    color: var(--text-soft);
    font-weight: 700;
    cursor: pointer;
}

.snapshot-raw-note p,
.snapshot-note-section p {
    margin: 10px 0 0;
    color: var(--text-soft);
    line-height: 1.55;
}

.snapshot-row-table table {
    min-width: 1080px;
}

.snapshot-row-table td:first-child {
    min-width: 230px;
}
