h3 {
    font-size: 18px !important;
}

.mud-drawer-header {
    background: #d3dcf8;
    color: var(--primary);
}

.mud-drawer-header h6 {
    font-weight: 600 !important;
    font-size: 1.2rem;
}

body, button, input, select, textarea {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #1D3557;
}

.w-1 { width: 1% }
.w-2 { width: 2% }
.w-3 { width: 4% }
.w-4 { width: 4% }
.w-5 { width: 5% }
.w-10 { width: 10% }
.w-15 { width: 15% }
.w-20 { width: 20% }
.w-25 { width: 25% }
.w-30 { width: 30% }
.w-33 { width: 33.3333% }
.w-40 { width: 40% }
.w-50 { width: 50% }
.w-60 { width: 60% }
.w-66 { width: 66.6667% }
.w-70 { width: 70% }
.w-75 { width: 75% }
.w-80 { width: 80% }
.w-90 { width: 90% }
.w-100 { width: 100% }

/* TOP Menu */
.sales-top-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 64px;
    padding: 0 1rem;
    background-color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    z-index: 100;
}

.hover-menu {
    position: relative;
    cursor: pointer;
    align-items: center;
    gap: 0.75rem;
    color: #1D3557;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 5px 20px;
    border-right: 1px solid #5DAEB4;
}

.sales-top-menu .hover-menu:last-child {
    border-right: none;
}

.hover-menu,
.hover-submenu {
    font-weight: 600;
}

.hover-menu .mud-icon-root,
.hover-submenu .mud-icon-root {
    color: #5DAEB4 !important;
    font-size: 16px;
}

.hover-menu:hover {
    background-color: #e9efff;
    color: #1D3557;
}

.hover-submenu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; /* aparece logo abaixo do item */
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    border-radius: 6px;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
    z-index: 1000;
}

.hover-menu:hover .hover-submenu {
    display: flex;
}

.hover-submenu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #1D3557;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.hover-submenu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.hover-disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* Fim Top Menu */

/* Cards de módulo (Configurações/Admin) */
.module-card-link {
    display: block;
}

.module-card {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 10px;
    transition: box-shadow .15s ease, transform .15s ease;
}

.module-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.module-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(93, 174, 180, .15);
    color: #5DAEB4;
    font-size: 18px;
    margin-right: 10px;
}

.module-card-title {
    color: #1D3557;
    font-weight: 600;
}

.module-card-description {
    color: #6c757d;
    font-size: .8rem;
}

.module-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1D3557;
    margin-bottom: 18px;
}

.module-section-title::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 22px;
    border-radius: 3px;
    background-color: #5DAEB4;
}

/* Page */

.page-box {
    width: 100%;
    max-width: 100%;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    display: flex;
    flex-direction: column;
    margin: 0 auto 40px auto;
    gap: 24px;
    min-height: calc(100vh - 220px);
    padding: 25px;
    padding-top: 10px;
}

/* Variante compacta do page-box — usada em telas onde o conteúdo é curto por
   natureza (ex.: box de filtro de relatório, seguido de outro box separado
   por baixo) e o min-height de tela cheia do .page-box padrão (pensado pra
   telas de lista/formulário) deixaria uma folga vazia enorme. */
.page-box.page-box-compact {
    min-height: auto;
}

/* Variante "sem caixa" do page-box — usada em telas tipo hub de módulos
   (Configurações/Admin), onde os cards (ModuleCard) já ficam soltos direto
   no fundo da página, sem o card branco com sombra por trás. */
.page-content-flat {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 auto 40px auto;
    gap: 24px;
}

.page-box .mud-table {
    margin-top: 0px !important;
}

.mud-table.simple-table .mud-table-cell {
    font-size: 0.7rem;
}

.page-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1D3557;
    margin-bottom: 16px;
}

.page-content {
    display: flex;
    flex-direction: column;
}

/* Breadcrumb customizado */
.breadcrumb-page {
    margin-bottom: 16px;
    color: #5DAEB4;
}

/* T�tulo da p�gina */
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1D3557;
    margin-bottom: 20px;
}

/* Espa�amento padr�o abaixo da barra de atalhos */
.page-box .mb-5 {
    margin-bottom: 20px;
}

/* Bot�es no footer */
.page-box .mud-button {
    min-width: 110px;
}

.form-tabs {
    min-height: 60vh;
}

.grid-form {
    min-height: 60vh;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.mud-breadcrumbs {
    padding: 10px 0px !important;
}

.breadcrumb-page {
    font-size: 12px !important;
}

.breadcrumb-page .mud-icon-root {
    font-size: 12px !important;
}

/* Fim Page */

/** Pagina��o */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Agora os elementos s�o distribu�dos */
    width: 100%;
}

.pagination-size {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-size label {
    font-size: 14px;
    color: #1D3557;
}

.pagination-size .mud-select {
    width: 150px;
}

.pagination-controls {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-grow: 1; /* Garante que o paginador ocupe espa�o no centro */
}

.pagination-button {
    padding: 6px 12px;
    border: 1px solid #1D3557;
    background-color: #F8F9FA;
    color: #1D3557;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.pagination-button:hover {
    background-color: #A8DADC;
}

.pagination-button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

.pagination-button.active {
    background-color: #1D3557;
    color: #F8F9FA;
    font-weight: bold;
}

/** Fim Pagina��o */

/* Tabela e setas */

.selected {
    background-color: #d3dcf8 !important;
    color: #000 !important;
}

.selected > td {
    color: #000 !important;
}

.selected > td .mud-input {
    color: #000 !important;
}

.selected-row {
    background-color: #d2e5ff !important;
}

.highlight-parent-row {
    background-color: #fff1c4 !important;
}

.vertical-divider {
    width: 2px;
    height: 100%;
    background-color: #e0e0e0;
}
/* Fim Tabela e setas */

/* Dialog */

.mud-dialog-title {
    font-weight: 600;
    font-size: 22px;
    color: #1D3557;
}

/* Fim Dialog */

/* Modal */
.leme-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leme-modal-card {
    /*padding: 24px;*/
    width: 90%;
    max-width: 600px;
    /*background-color: #8FA4D3 !important;*/
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.leme-modal-content {
    padding: 15px;
    background-color: #F8F9FA;
}

.leme-modal-header {
    padding: 15px;
    background-color: var(--page-background);
    color: var(--text-color-default);
}

.leme-modal-footer {
    padding: 15px;
    background-color: var(--page-background);
    color: var(--text-color-default);
}

/* Fim Modal */

.global-alert {
    z-index: 11000 !important;
    position: fixed !important;
    top: 20px;
    right: 20px;
    width: 350px;
    opacity: 1 !important; /* for�a visibilidade total */
    pointer-events: auto;
}

.mud-tab {
    font-size: 14px;
    min-width: 100px !important;
    font-weight: 400;
    color: var(--primary);
    opacity: 0.6;
}

.mud-tab.mud-tab-active {
    font-size: 14px;
    min-width: 100px !important;
    font-weight: 700;
    color: var(--primary) !important;
    opacity: 1;
}

.mud-tab .mud-icon-root {
    font-size: 14px;
    color: var(--primary);
}

.nav-links-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.mud-tabs-panels .mud-link {
    color: var(--primary) !important;
    padding: 5px 0px;
    cursor: pointer;
    text-decoration: none !important;
}

.nav-link-panel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link-panel:hover {
    color: #457B9D;
    text-decoration: underline;
}

.code-width {
    width: 15px;
}

.mud-divider {
    border-color: var(--primary) !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

.mud-table {
    margin-top: 20px;
}

.mud-table-container {
    margin-top: 20px;
}

.mud-table th {
    font-weight: 700 !important;
}

.right-form {
    padding: 0;
    margin: 0;
}

.right-form .mud-grid-item {
    padding: 0px !important;
    margin: 4px 0px 4px 25px !important;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1D3557;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.leme-modal-drawer-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

.leme-modal-drawer {
    margin-left: auto;
    width: 350px;
    height: 100%;
    background-color: #fff;
    box-shadow: -4px 0 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ddd;
}

.leme-modal-drawer.large {
    width: 35%;
}

.drawer-header {
    padding: 1rem;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
}

.drawer-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.vertical-divider {
    border-left: 1px solid #ccc;
    height: 100%;
    margin: 0 8px;
}

.simple-table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.simple-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/** Boxes */

.page-header-boxes {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.info-box {
    flex: 1;
    min-width: 200px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.info-title {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1D3557; /* seu azul escuro padr�o */
}

.flex-1 {
    flex: 1;
}

/* Perfil do usuário no cabeçalho (MainLayout) — o tema (assets/css/style.css)
   define essa pílula com largura FIXA (92px), pensada pra um avatar
   comprimido sem nome visível. Como mostramos o nome completo do usuário
   ali, o texto estourava essa largura fixa e quebrava o layout do
   cabeçalho (nome cortado/sobrepondo outros itens). */
.pc-header .header-user-profile .pc-head-link {
    width: auto !important;
    padding: 0 14px !important;
    white-space: nowrap;
}

.pc-header .header-user-profile .pc-head-link > span {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}