/* ============================================================
   Tema moderno do Portal Mobile Shoes
   Aplica o design system (preto #1a1a1a + vermelho #e10000)
   sobre as telas legadas sem alterar comportamento.
   ============================================================ */

/* ---------- Toolbars de tela: substitui o cinza legado ---------- */
/* Os seletores por atributo vencem o style inline antigo (#696969) */

[style*="background: #696969"],
[style*="background:#696969"],
[style*="background-color: #696969"],
[style*="background-color:#696969"] {
    background: #1a1a1a !important;
}

md-toolbar .md-toolbar-tools[style*="#696969"] {
    border-bottom: 3px solid #e10000;
    font-weight: 600;
    letter-spacing: .02em;
}

/* Linhas de tabela com fundo cinza claro legado -> branco limpo */
tr[style*="background: #F0F0F0"],
tr[style*="background:#F0F0F0"] {
    background: #ffffff !important;
}

/* ---------- Cards ---------- */

md-card {
    border-radius: 12px !important;
    border: 1px solid #e8eaee;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05) !important;
}

/* ---------- Tabelas (md-data-table) ---------- */

table.md-table thead.md-head > tr.md-row {
    height: 44px;
}

table.md-table thead.md-head > tr.md-row th {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .06em;
}

table.md-table tbody.md-body > tr.md-row {
    transition: background-color .12s ease;
}

table.md-table tbody.md-body > tr.md-row:hover {
    background-color: #f8f9fb !important;
}

table.md-table td.md-cell {
    font-size: 13px;
    color: #344054;
    border-bottom: 1px solid #eef0f3;
}

/* ---------- Tabs ---------- */

md-tabs .md-tab {
    text-transform: none;
    font-weight: 600;
    color: #667085;
}

md-tabs .md-tab.md-active {
    color: #e10000 !important;
}

md-tabs md-ink-bar {
    color: #e10000 !important;
    background: #e10000 !important;
    height: 3px;
}

/* ---------- Botão FAB de salvar (configurações) ---------- */

.md-button.md-fab {
    background-color: #e10000 !important;
    box-shadow: 0 4px 12px rgba(225, 0, 0, .4) !important;
}

.md-button.md-fab:hover {
    background-color: #c00000 !important;
}

/* ---------- Imagens/miniaturas legadas (100px) ---------- */

td.md-cell img[style*="100px"],
td.md-cell div[style*="width: 100px"] {
    border-radius: 10px;
    border: 1px solid #e8eaee;
}

/* ---------- Botão "Pesquisar" da tela de usuários ---------- */

button.search {
    background: #1a1a1a !important;
    border-radius: 8px !important;
    padding: 0 18px;
    height: 36px;
}

/* ---------- Inputs do "Valor Mínimo" (configurações/entrega) ---------- */

md-input-container[style*="background:#696969"] label,
md-input-container[style*="background: #696969"] label {
    color: rgba(255, 255, 255, .75) !important;
}

/* ============================================================
   Utilitários do design system (classes ps-*)
   ============================================================ */

.ps-page {
    background-color: #f5f6f8 !important;
}

.ps-toolbar {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.ps-card {
    border-radius: 0 0 12px 12px !important;
    margin-top: 0 !important;
    border-top: none !important;
}

.ps-row {
    transition: background-color .12s ease;
    border-radius: 8px;
}

.ps-row:hover {
    background-color: #f8f9fb;
}

.ps-row-title {
    font-weight: 600;
    color: #101828;
}

.ps-muted {
    color: #667085;
    font-size: 12px;
}

.ps-thumb {
    width: 64px !important;
    height: 64px !important;
    border-radius: 10px !important;
    border: 1px solid #e8eaee;
    background-size: cover;
    background-position: center center;
    flex-shrink: 0;
}

.ps-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 1px solid #e8eaee;
    background-size: cover;
    background-position: center center;
    margin: 0 auto;
}

/* Pills de status (tintadas, com ponto colorido) */

.ps-stat {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    margin: 5px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 18px;
    border: 1px solid transparent;
}

.ps-stat b { font-size: 16px; }

.ps-stat--new        { background: #f2f4f7; color: #344054; border-color: #e4e7ec; }
.ps-stat--visualized { background: #e6f6fe; color: #026aa2; border-color: #b9e6fe; }
.ps-stat--accepted   { background: #e7f6ec; color: #067647; border-color: #abefc6; }
.ps-stat--production { background: #eef4ff; color: #3538cd; border-color: #c7d7fe; }
.ps-stat--completed  { background: #101828; color: #ffffff; border-color: #101828; }
.ps-stat--rejected   { background: #fee4e2; color: #b42318; border-color: #fecdca; }
.ps-stat--total      { background: #1a1a1a; color: #ffffff; border-color: #1a1a1a; }

.ps-offer-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: #fee4e2;
    color: #b42318;
    border: 1px solid #fecdca;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* Estado vazio das telas CRUD */

.ps-empty-title {
    font-size: 18px;
    color: #101828;
    font-weight: 700;
    margin-top: 12px;
    text-align: center;
}

.ps-empty-sub {
    font-size: 13px;
    color: #667085;
    text-align: center;
}
