* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: #ffffff;
    color: #000000;
    min-height: 100vh;
}

/* TOPO */

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #000000;
    border-bottom: 1px solid #000000;
    color: #ffffff;
}

.brand h1 {
    font-size: 22px;
    letter-spacing: 2px;
}

.brand span {
    font-size: 12px;
    color: #d4d4d4;
}

.muted {
    color: #555555;
    font-size: 13px;
}

/* LAYOUT */

.container {
    display: flex;
    min-height: calc(100vh - 56px);
}

/* SIDEBAR / MENUS EM PRETO */

.sidebar {
    width: 230px;
    background: #000000;
    padding: 16px;
    border-right: 1px solid #000000;
    color: #ffffff;
}

.sidebar h2 {
    margin-bottom: 12px;
    font-size: 16px;
}

.menu-btn {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: #ffffff;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    font-size: 14px;
}

.menu-btn.active,
.menu-btn:hover {
    background: #222222;
}

.submenu {
    padding-left: 10px;
    margin-bottom: 10px;
    display: none;
}

.submenu.open {
    display: block;
}

.sub-btn {
    font-size: 13px;
}

.arrow {
    float: right;
}

/* CONTEÚDO PRINCIPAL */

.main-content {
    flex: 1;
    padding: 16px;
    background: #ffffff;
    color: #000000;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* PAINÉIS / SEÇÕES EM PRETO */

.panel {
    background: #000000;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #000000;
    margin-bottom: 16px;
    color: #ffffff;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.card {
    background: #000000;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #000000;
    color: #ffffff;
}

.value {
    font-size: 18px;
    margin-top: 4px;
}

/* BOTÕES EM PRETO E BRANCO */

.btn {
    border: none;
    background: #000000;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
}

.btn.secondary {
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
}

.btn:hover {
    opacity: 0.85;
}

/* INFO USUÁRIO */

.user-info {
    display: flex;
    gap: 8px;
    align-items: center;
}

.badge {
    background: #000000;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
}

/* LOJA / PRODUTOS */

.grid-loja {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.card-produto {
    background: #000000;
    border-radius: 12px;
    border: 1px solid #000000;
    padding: 10px;
    cursor: pointer;
    color: #ffffff;
}

.card-produto img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 6px;
}

.card-produto h3 {
    font-size: 14px;
    margin-bottom: 2px;
}

.card-produto .preco {
    font-weight: bold;
    margin-bottom: 2px;
}

.card-produto .estoque-info {
    font-size: 12px;
    color: #d4d4d4;
}

.card-produto .acoes {
    margin-top: 6px;
}

/* TABELAS */

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #ffffff;
    color: #000000;
}

th, td {
    padding: 6px 4px;
    border-bottom: 1px solid #000000;
}

th {
    text-align: left;
    color: #555555;
    font-weight: 500;
}

td.right,
th.right {
    text-align: right;
}

/* SCROLL */

.scroll-y {
    max-height: 280px;
    overflow-y: auto;
}

/* LAYOUT DOIS COLUNAS */

.layout-two {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 12px;
}

.total-value {
    font-size: 18px;
}

/* MENSAGENS (SEM CORES FORTES) */

.alert {
    color: #000000;
    font-size: 13px;
    margin-top: 6px;
}

.success {
    color: #333333;
    font-size: 13px;
    margin-top: 6px;
}

/* CUPOM */

.cupom-row {
    display: flex;
    gap: 6px;
    margin: 4px 0 10px;
}

.cupom-row input {
    flex: 1;
}

/* MODAL LOGIN */

.login-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-box {
    background: #000000;
    border-radius: 16px;
    border: 1px solid #000000;
    padding: 18px;
    width: 320px;
    max-width: 90%;
    position: relative;
    color: #ffffff;
}

.login-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: transparent;
    color: #d4d4d4;
    font-size: 18px;
    cursor: pointer;
}

.login-tabs {
    display: flex;
    gap: 4px;
    margin: 8px 0;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 4px;
}

.login-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: #d4d4d4;
    padding: 6px 0;
    cursor: pointer;
}

.login-tab.active {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

.login-area {
    display: none;
    margin-top: 4px;
}

.login-area.active {
    display: block;
}

.login-group {
    margin-bottom: 6px;
}

.login-group input {
    width: 100%;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #000000;
    background: #ffffff;
    color: #000000;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0 10px;
    color: #ffffff;
}

.checkbox-line input {
    accent-color: #000000;
}

.login-actions {
    text-align: right;
}

#loginMensagem {
    margin-top: 6px;
    font-size: 13px;
    color: #ffffff;
}

/* RESPONSIVO */

@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    .menu-btn {
        flex: 1 0 45%;
    }
    .layout-two {
        grid-template-columns: 1fr;
    }
}
