/* Estilo adicional para o sistema */
:root {
    --app-shell-x: 1.5rem;
    --app-shell-y: 1.5rem;
    --app-main-padding: 1.25rem;
    --app-radius: 1.5rem;
}
* {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
}
body {
    background: #f8fafc;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-width: 320px;
}
button, input, select, textarea {
    font-family: inherit;
}
img, svg, video, canvas {
    max-width: 100%;
}
.app-topbar-inner {
    max-width: 1600px;
}
.app-brand,
.app-brand-copy,
.app-header-actions,
.app-main {
    min-width: 0;
}
.app-shell {
    padding-left: var(--app-shell-x) !important;
    padding-right: var(--app-shell-x) !important;
    padding-top: var(--app-shell-y) !important;
}
.app-main {
    border-radius: var(--app-radius) !important;
    overflow: hidden;
    padding: var(--app-main-padding) !important;
}
.responsive-table-wrap {
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}
.responsive-table {
    min-width: 720px;
}
.responsive-table th,
.responsive-table td {
    white-space: nowrap;
}
.responsive-table td {
    vertical-align: top;
}
@supports selector(:has(*)) {
    .app-main .overflow-hidden:has(> table) {
        overflow-x: auto !important;
        overflow-y: hidden;
    }
    .app-main .overflow-hidden:has(> table) > table {
        min-width: 720px;
    }
}
@media (max-width: 767px) {
    :root {
        --app-shell-x: 0.75rem;
        --app-shell-y: 0.75rem;
        --app-main-padding: 1rem;
        --app-radius: 1rem;
    }
    body {
        font-size: 15px;
    }
    .app-topbar-inner {
        gap: 0.75rem;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .app-brand {
        gap: 0.75rem;
    }
    .app-logo {
        max-height: 2rem;
        max-width: 6.5rem;
    }
    .app-brand-copy p:last-child {
        display: none;
    }
    .app-header-actions {
        gap: 0.5rem;
    }
    .app-logout {
        padding: 0.55rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
    .app-menu-panel {
        width: min(20rem, calc(100vw - 1rem)) !important;
    }
    .app-main .rounded-3xl {
        border-radius: 1rem !important;
    }
    .app-main .p-8,
    .app-main .p-6,
    .app-main .p-5 {
        padding: 1rem !important;
    }
    .app-main h1 {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    .app-main h2 {
        font-size: 1.125rem;
        line-height: 1.6rem;
    }
    .app-main input,
    .app-main select,
    .app-main textarea,
    .app-main button,
    .app-main a {
        max-width: 100%;
    }
    .app-main .h-72 {
        height: 16rem !important;
    }
    .app-main .h-64 {
        height: 14rem !important;
    }
    .app-main .h-56 {
        height: 12rem !important;
    }
    .responsive-table {
        min-width: 640px;
        font-size: 0.8125rem;
    }
    .responsive-table th,
    .responsive-table td {
        padding: 0.75rem;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    :root {
        --app-shell-x: 1rem;
        --app-shell-y: 1rem;
        --app-main-padding: 1.125rem;
        --app-radius: 1.25rem;
    }
    .app-logo {
        max-width: 8rem;
    }
    .responsive-table {
        min-width: 760px;
    }
}
@media (min-width: 1024px) and (max-width: 1439px) {
    :root {
        --app-shell-x: 1.25rem;
        --app-shell-y: 1.25rem;
        --app-main-padding: 1.25rem;
        --app-radius: 1.5rem;
    }
}
@media (min-width: 1440px) {
    :root {
        --app-shell-x: 2rem;
        --app-shell-y: 1.5rem;
        --app-main-padding: 1.5rem;
        --app-radius: 1.5rem;
    }
}
.products-table {
    table-layout: fixed;
    min-width: 0 !important;
}
.products-table .product-col-id {
    width: 4rem;
}
.products-table .product-col-sku {
    width: 9rem;
}
.products-table .product-col-name {
    width: 16%;
}
.products-table .product-col-az {
    width: 11%;
}
.products-table .product-col-description {
    width: auto;
}
.products-table .product-col-price {
    width: 9rem;
}
.products-table .product-col-actions {
    width: 15rem;
}
.products-table th,
.products-table td {
    white-space: normal;
}
.products-table .product-description-cell {
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.products-table .product-actions-cell a {
    display: inline-flex;
    margin: 0.125rem 0.25rem 0.125rem 0;
}
@media (max-width: 767px) {
    .products-table-wrap {
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .products-table,
    .products-table tbody,
    .products-table tr,
    .products-table td {
        display: block;
        width: 100%;
    }
    .products-table colgroup,
    .products-table thead {
        display: none;
    }
    .products-table tbody {
        display: grid;
        gap: 0.75rem;
    }
    .products-table tr {
        border: 1px solid #e2e8f0;
        border-radius: 1rem;
        background: #ffffff;
        padding: 0.75rem;
    }
    .products-table td {
        display: grid;
        grid-template-columns: minmax(6.5rem, 38%) 1fr;
        gap: 0.75rem;
        border: 0;
        padding: 0.45rem 0 !important;
    }
    .products-table td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
    }
    .products-table .product-description-cell {
        white-space: normal;
    }
    .products-table .product-actions-cell {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .products-table .product-actions-cell::before {
        flex: 0 0 100%;
    }
    .products-table .product-actions-cell a {
        margin: 0;
    }
}
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
