/* SWMVC — Geral: comum a todas as páginas (site + admin) */

.app-footer-brand {
    font-weight: 700;
    color: var(--sw-pri);
}

.app-footer-meta {
    font-size: 1.1rem;
}

.site-header {
    padding: 2rem 4rem;
}

.site-brand {
    font-weight: 700;
    font-size: 2rem;
}

.site-footer {
    padding: 2rem 4rem;
    color: var(--sw-txt-mut);
}

.site-nav-link {
    color: var(--sw-txt-sec);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
}
.site-nav-link:hover {
    color: var(--sw-pri);
}
.site-menu-toggle,.site-menu-close,.site-menu-overlay{display:none}.site-cart-link{display:flex;align-items:center;gap:.6rem;color:var(--sw-txt-sec);text-decoration:none;font-size:1.4rem;font-weight:700}.site-cart-link strong{display:flex;align-items:center;justify-content:center;min-width:2.2rem;height:2.2rem;padding:0 .5rem;background:#0957af;color:#fff;font-size:1.1rem;border-radius:999px}
@media(max-width:991px){.site-header{padding:1.4rem 1.6rem}.site-menu-toggle{display:flex;align-items:center;justify-content:center;margin-left:auto;width:4.4rem;height:4.4rem;border:1px solid var(--sw-bor);background:var(--sw-sur);color:var(--sw-txt);font-size:2rem}.site-nav{position:fixed;z-index:1100;inset:0 auto 0 0;width:min(84%,34rem);padding:7rem 2rem 2rem;background:var(--sw-sur);flex-direction:column;align-items:stretch!important;transform:translateX(-105%);transition:transform .3s cubic-bezier(.4,0,.2,1)}.site-nav.is-open{transform:none}.site-nav-link,.site-cart-link{min-height:4.8rem;padding:1.2rem;border-bottom:1px solid var(--sw-bor);font-size:1.7rem}.site-menu-close{display:flex;position:absolute;right:1.4rem;top:1.4rem;align-items:center;justify-content:center;width:4.4rem;height:4.4rem;border:0;background:transparent;color:var(--sw-txt);font-size:2rem}.site-menu-overlay{position:fixed;z-index:1090;inset:0;width:100%;height:100%;border:0;background:rgba(0,0,0,.52)}.site-menu-overlay.is-open{display:block}}

.top-scroll-generic {
    overflow-x: auto;
    height: 12px;
    margin-bottom: 4px;
    border-radius: var(--sw-r-s);
    opacity: 0.8;
}

/* Ordenação global das tabelas */
.sw-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table thead th.sw-sortable {
    position: relative;
    padding-right: 3.6rem;
    cursor: pointer;
    user-select: none;
    transition: color .2s ease, background-color .2s ease;
}

table thead th.sw-sortable::after {
    content: '↕';
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sw-txt-mut);
    font-size: 1.4rem;
    line-height: 1;
    opacity: .5;
    transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

table thead th.sw-sortable:hover,
table thead th.sw-sortable:focus-visible {
    color: var(--sb-bg, var(--sw-pri));
    background: color-mix(in srgb, var(--sb-bg, var(--sw-pri)) 7%, transparent);
}

table thead th.sw-sortable:hover::after,
table thead th.sw-sortable:focus-visible::after,
table thead th.sw-sortable.is-sort-asc::after,
table thead th.sw-sortable.is-sort-desc::after {
    color: var(--sb-bg, var(--sw-pri));
    opacity: 1;
}

table thead th.sw-sortable.is-sort-asc::after { content: '↑'; }
table thead th.sw-sortable.is-sort-desc::after { content: '↓'; }

.sw-table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 2rem;
    border-top: 1px solid var(--sw-bor);
    background: var(--sw-bg-sec);
}

.sw-table-pagination[hidden] { display: none; }
.sw-table-pagination-info { color: var(--sw-txt-mut); font-size: 1.2rem; }

.sw-table-pagination-size {
    min-height: 4.4rem;
    padding: .7rem 1rem;
    border: 1px solid var(--sw-bor);
    border-radius: var(--sw-r-m);
    background: var(--sw-sur);
    color: var(--sw-txt);
    font: inherit;
    font-size: 1.2rem;
}

.sw-table-pagination-controls { display: flex; align-items: center; gap: .5rem; }
.sw-table-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.4rem;
    min-height: 4.4rem;
    padding: .6rem;
    border: 1px solid var(--sw-bor);
    border-radius: var(--sw-r-m);
    background: var(--sw-sur);
    color: var(--sw-txt);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, color .2s ease, background-color .2s ease, border-color .2s ease;
}
.sw-table-page-btn:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--sw-pri); color: var(--sw-pri); }
.sw-table-page-btn.is-active { background: var(--sb-bg, var(--sw-pri)); border-color: var(--sb-bg, var(--sw-pri)); color: #fff; }
.sw-table-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.sw-table-page-ellipsis { min-width: 2rem; text-align: center; color: var(--sw-txt-mut); }
.paginacao-pagina { display: inline-flex; align-items: center; gap: .5rem; padding: 0; }

@media (max-width: 479px) {
    table thead th.sw-sortable { padding-right: 3rem; }
    table thead th.sw-sortable::after { right: 1rem; }
    .sw-table-pagination { align-items: stretch; padding: 1.2rem; }
    .sw-table-pagination-info { width: 100%; }
    .sw-table-pagination-size { flex: 1; min-width: 0; font-size: 1.6rem; }
    .sw-table-pagination-controls { width: 100%; justify-content: space-between; }
    .sw-table-page-btn { min-width: 4.4rem; }
}

@media (min-width: 768px) {
    .sw-table-pagination-size {
        min-height: 3.4rem;
        padding: .4rem .8rem;
    }
    .sw-table-page-btn {
        min-width: 3.4rem;
        min-height: 3.4rem;
        padding: .4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    table thead th.sw-sortable,
    table thead th.sw-sortable::after,
    .sw-table-page-btn { transition: none; }
}
