/**
 * Material UI Vanilla - Components
 * Estilos para componentes individuais
 */
 
 
/* Configura����es dos ��cones Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.material-symbols-filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Base CSS reset */
* {
    box-sizing: border-box;
    margin: 0;
    /*padding: 0;*/
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    /*line-height: 1.5; */
    overflow-x: hidden;
}

p, h1, h2, h3, h4, h5, h6, li, div {
  line-height: 1.5;
}
 

/* ========== App Layout ========== */
.mui-app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.mui-main-content {
    /*display: flex;
    flex: 1;*/
    padding-top: var(--appbar-height);
    transition: padding-left var(--transition-speed);
}

.mui-content-area {
    flex: 1;
    padding: 24px;
    transition: margin-left var(--transition-speed);
}


/* ========== App Bar (Top Bar) ========== */
.mui-app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--appbar-height);
    background-color: var(--primary-color);
    color: var(--on-primary);
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-shadow: var(--shadow-1);
    z-index: 100;
    transition: margin-left var(--transition-speed), background-color var(--transition-speed);
}

.mui-app-bar-content {
   display: flex;
  align-items: center;
  min-width: 0; /* Crucial para truncamento de texto */
  flex: 1; /* Mant��m para desktop */
  overflow: hidden; /* Impede overflow */
}

.mui-app-title {
    font-size: 20px;
    font-weight: 500;
      white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%; /* Permite usar todo espa��o dispon��vel */
  min-width: 0; /* Permite encolher quando necess��rio */
    
}

.mui-app-bar-actions {
  display: flex;
  align-items: center;
  margin-left: auto; /* Empurra para a direita */
  flex-shrink: 0; /* Impede que os ��cones encolham */
}

/* Ajuste espec��fico para smartphones */
@media (max-width: 960px) {
    .mui-app-title {
        font-size: 16px; /* Opcionalmente reduz o tamanho da fonte em telas menores */
    }
}

/* Ajuste espec��fico para smartphones */
@media (max-width: 480px) {
    .mui-app-title {
     max-width: 50%;
    }
}




.mui-app-bar-actions {
    display: flex;
    align-items: center;
}

.mui-menu-button {
    background: none;
    border: none;
    color: var(--on-primary);
    margin-right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background-color 0.2s;
}

.mui-menu-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ========== Drawer (Side Menu) ========== */
.mui-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--drawer-width);
    height: 100%;
    background-color: var(--surface-color);
    /*box-shadow: var(--shadow-2);*/
    transform: translateX(-100%);
    transition: transform var(--transition-speed);
    z-index: 200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.mui-drawer-header {
    height: var(--appbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*padding: 0 16px;*/
    /*border-bottom: 1px solid var(--border-color);*/
}

.change-system .mui-btn-text,
.change-system .mui-btn-secondary-text,
.change-system .material-symbols-outlined {
	color: var(--logo-color) !important;
}

.mui-drawer-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-color);
     display: flex;
    align-items: center;
}

.mui-drawer-title a {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-color);
     display: flex;
    align-items: center;
}

.mui-close-drawer {
    background: none;
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

.mui-close-drawer:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--text-color);
}

.mui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility 0s var(--transition-speed);
}

/* ========== Navigation Menu ========== */
.mui-nav-list {
    list-style: none;
    padding: 8px 0;
}

.mui-nav-item {
    padding: 0;
}

.mui-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: var(--border-radius);
    transition: background-color 0.2s;
}

.mui-nav-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.mui-nav-link.active {
    /* background-color: rgba(241, 11, 92, 0.12); */
    background-color: var(--selected-color);
    color: var(--text-color);
}


.mui-nav-item.active > .mui-nav-link {
    /* background-color: rgba(241, 11, 92, 0.12); */
    background-color: var(--selected-color);
}


.mui-nav-icon {
    margin-right: 10px;
    font-size: 14px;
}

/* ========== Submenu (Menu expans��vel) ========== */
.mui-nav-link-expand {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mui-expand-icon {
    transition: transform 0.3s;
}

.mui-nav-item.expanded .mui-expand-icon {
    transform: rotate(180deg);
}

.mui-sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 10px;
    list-style-type: none;
}

.mui-nav-item.expanded .mui-sub-menu {
    max-height: 500px;
}

.mui-sub-menu .mui-nav-item {
    margin: 2px 0;
}

.mui-sub-menu .mui-nav-link {
    font-size: 14px;
    padding: 8px 20px;
}

.mui-sub-menu .mui-nav-icon {
    font-size: 16px;
    margin-right: 12px;
}

/* ========== Theme Toggle ========== */
.mui-theme-toggle {
    background: none;
    border: none;
    color: var(--on-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.2s;
    margin-left: 16px;
}

.mui-theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ========== User Menu ========== */
.mui-user-menu {
    position: relative;
    margin-left: 16px;
}

.mui-user-button {
    background: none;
    border: none;
    color: var(--on-primary);
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0 8px;
    height: 40px;
    border-radius: 20px;
    transition: background-color 0.2s;
}

.mui-user-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mui-user-avatar {
	max-width: 28px;
    width: 28px;
}

.mui-user-name {
    margin-right: 8px;
    font-weight: 500;
}

.mui-user-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    width: 200px;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-2);
    overflow: hidden;
    z-index: 150;
    transform-origin: top right;
    transform: scale(0.8);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s, opacity 0.2s, visibility 0s 0.2s;
}

.mui-user-dropdown.active {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    transition: transform 0.2s, opacity 0.2s;
}

.mui-user-dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.mui-user-email {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.mui-user-dropdown-items {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.mui-user-dropdown-item {
    padding: 0 8px;
}

.mui-user-dropdown-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: var(--border-radius);
    transition: background-color 0.2s;
}

.mui-user-dropdown-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.mui-user-dropdown-icon {
    margin-right: 16px;
    color: var(--text-secondary);
}

[data-theme="dark"] .mui-user-dropdown-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ========== Card ========== */
.mui-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    /*box-shadow: var(--shadow-1);*/ 
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow-x: hidden;
    overflow-y: auto ;
    -webkit-overflow-scrolling: touch;
     /* Isolar a ��rea de toque */
    touch-action: pan-y;
}

.mui-card.outline {
	border: 1px solid var(--border-color);
	box-shadow: none; 
}

.mui-card-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.mui-card-header.condensed {
	padding: 8px;
}

.mui-card-title {
    font-size: 18px;
    margin: 0;
    color: var(--text-color);
}

.mui-card-content {
    padding: 16px;
}
.mui-card-content.condensed {
	padding: 8px;
}


.mui-card-content .condensed {
    padding: 8px;
}

/* ========== Accordion ========== */
.mui-accordion {
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--surface-color);
    /*box-shadow: var(--shadow-1);*/
}

.mui-accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.mui-accordion-item:last-child {
    border-bottom: none;
}

.mui-accordion-header {
    padding: 0;
    margin: 0;
}

.mui-accordion-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mui-accordion-button:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.mui-accordion-icon {
    transition: transform 0.3s;
}

.mui-accordion-item.expanded .mui-accordion-icon {
    transform: rotate(180deg);
}

.mui-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mui-accordion-item.expanded .mui-accordion-content {
    max-height: 1000px;
}

.mui-accordion-body {
    padding: 0 16px 16px;
}

/* Separador de Menu */
.mui-menu-separator {
    height: 1px;
    margin: 8px 16px;
    background-color: var(--border-color);
    opacity: 0.6;
}

/* Separador com texto */
.mui-menu-separator-text {
    display: flex;
    align-items: center;
    margin: 16px 16px 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mui-menu-separator-text::before,
.mui-menu-separator-text::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
    opacity: 0.6;
}

.mui-menu-separator-text::before {
    margin-right: 8px;
}

.mui-menu-separator-text::after {
    margin-left: 8px;
}

/* Vers��o para submenu */
.mui-sub-menu .mui-menu-separator {
    margin-left: 12px;
    margin-right: 12px;
}

.mui-sub-menu .mui-menu-separator-text {
    margin-left: 12px;
    margin-right: 12px;
    font-size: 11px;
}

.mui-nav-item.expanded .mui-sub-menu {
    max-height: none !important; /* Substitui o valor fixo para mostrar todos os itens */
    height: auto !important;     /* Garante que a altura seja ajustada ao conte��do */
    overflow: visible !important; /* Permite que o conte��do seja vis��vel mesmo fora dos limites */
}
/* Para manter a anima����o de expans��o, mas ainda permitir conte��do ilimitado,
   podemos usar uma abordagem diferente quando o submenu est�� fechado */
.mui-sub-menu {
    max-height: 0;      /* Permanece 0 quando fechado */
    overflow: hidden;   /* Oculta o conte��do quando fechado */
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;         /* Adicionamos opacidade para melhorar a anima����o */
}

.mui-nav-item.expanded .mui-sub-menu {
    opacity: 1;         /* Torna vis��vel quando expandido */
    transition: max-height 0.3s ease, opacity 0.3s ease 0.1s; /* Atrasa a opacidade para dar um efeito melhor */
}
/* Estilo para WebKit (Chrome, Safari, Edge moderno) */
.mui-drawer::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.mui-drawer::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.mui-drawer::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color-hover, rgba(241, 11, 92, 0.3));
    border-radius: 4px;
}

.mui-drawer::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color, #f10b5c);
}

/* Estilo para Firefox */
.mui-drawer {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color-hover, rgba(241, 11, 92, 0.3)) rgba(0, 0, 0, 0.05);
}

/* Estilos espec��ficos para submenus */
.mui-sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.mui-nav-item.expanded .mui-sub-menu {
    max-height: none !important;
    height: auto !important;
    overflow-y: auto !important; /* Auto para mostrar barra de rolagem apenas quando necess��rio */
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.3s ease 0.1s;
    padding-right: 4px; /* Espa��o para a barra de rolagem */
}

@media (max-width: 991px) {
	.mui-content-area {
	    padding: 10px;
	}
	.mui-card-content{
		 padding: 8px;
	}
}



/**
 * Material UI Vanilla - Rounded Icon Buttons
 * Estilos para bot��es circulares apenas com ��cones
 */

/* Bot��o circular b��sico */
.mui-btn-rounded {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    padding: 0;
    overflow: hidden;
    font-size: 0; /* Oculta qualquer texto */
    text-align: center;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: background-color var(--transition-speed, 0.3s), box-shadow var(--transition-speed, 0.3s);
    -webkit-tap-highlight-color: transparent;
}

/* Estilos para os ��cones dentro do bot��o */
.mui-btn-rounded .material-symbols-outlined,
.mui-btn-rounded .material-symbols-filled {
    font-size: 24px;
    margin: 0;
    color: inherit;
}

/* Varia����es de cor */
.mui-btn-rounded.mui-btn-primary {
    background-color: var(--primary-color, #f10b5c);
    color: var(--on-primary, #ffffff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mui-btn-rounded.mui-btn-primary:hover {
    background-color: var(--primary-color-hover, #d00950);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.mui-btn-rounded.mui-btn-secondary {
    background-color: var(--secondary-color, #747f86);
    color: var(--on-secondary, #ffffff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mui-btn-rounded.mui-btn-secondary:hover {
    background-color: var(--secondary-color-hover, #5e6770);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Bot��o de texto (sem fundo s��lido) */
.mui-btn-rounded.mui-btn-text {
    background-color: transparent;
    color: var(--text-color, rgba(64, 64, 64, 0.87));
    box-shadow: none;
}

.mui-btn-rounded.mui-btn-text:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* No modo escuro, ajuste o hover do bot��o de texto */
[data-theme="dark"] .mui-btn-rounded.mui-btn-text:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Bot��o outlined */
.mui-btn-rounded.mui-btn-outline {
    background-color: transparent;
    color: var(--primary-color, #f10b5c);
    border: 1px solid var(--primary-color, #f10b5c);
    box-shadow: none;
}

.mui-btn-rounded.mui-btn-outline:hover {
    background-color: rgba(241, 11, 92, 0.04);
}

/* Varia����es de tamanho */
.mui-btn-rounded.mui-btn-sm {
    width: 32px;
    height: 32px;
    min-width: 32px;
}

.mui-btn-rounded.mui-btn-sm .material-symbols-outlined,
.mui-btn-rounded.mui-btn-sm .material-symbols-filled {
    font-size: 18px;
}

.mui-btn-rounded.mui-btn-lg {
    width: 56px;
    height: 56px;
    min-width: 56px;
}

.mui-btn-rounded.mui-btn-lg .material-symbols-outlined,
.mui-btn-rounded.mui-btn-lg .material-symbols-filled {
    font-size: 28px;
}

/* Bot��o flutuante de a����o (FAB) */
.mui-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

/* Posicionamento alternativo para FAB */
.mui-fab.mui-fab-left {
    right: auto;
    left: 24px;
}

.mui-fab.mui-fab-top {
    bottom: auto;
    top: 24px;
}

/* Estados do bot��o */
.mui-btn-rounded:disabled {
    background-color: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.38);
    box-shadow: none;
    cursor: default;
}

[data-theme="dark"] .mui-btn-rounded:disabled {
    background-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.38);
}

/* Preservar compatibilidade com o efeito ripple */
.mui-btn-rounded .mui-ripple {
    position: absolute;
    background-color: var(--ripple-color, rgba(241, 11, 92, 0.2));
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Bot��o fixado ao fundo (sticked) */
.mui-btn-rounded.mui-btn-stick-bottom {
    position: sticky;
    bottom: 16px;
    margin-left: auto;
    margin-top: 16px;
    margin-bottom: 16px;
}

/* Agrupar bot��es redondos (opcional) */
.mui-btn-rounded-group {
    display: flex;
    gap: 8px;
}

/* Tooltip para bot��es apenas com ��cone (opcional) */
.mui-btn-rounded[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    color: #fff;
    background-color: rgba(97, 97, 97, 0.9);
    pointer-events: none;
    z-index: 10;
}

.mui-btn-rounded[data-tooltip]:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: rgba(97, 97, 97, 0.9) transparent transparent;
    margin-bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.logo-sischef-chance-system {
	max-width: 40px;
	width: 40px; 
	margin-right: 20px;
	
}

/* Bot��o de texto (sem fundo s��lido) */
.mui-btn-rounded.mui-btn-text-inverse {
    background-color: transparent;
    color: var(--on-primary);
    box-shadow: none;
}

.mui-btn-rounded.mui-btn-text-inverse:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* No modo escuro, ajuste o hover do bot��o de texto */
[data-theme="dark"] .mui-btn-rounded.mui-btn-text-inverse:hover {
    background-color: rgba(0, 0, 0, 0.04);
}


.mui-sidepanel {
  position: fixed;
  top: 0; bottom: 0;
  width: 280px;
  background-color: var(--surface-color);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .25s ease;
  z-index: 1200;
  display: flex;
  flex-direction: column;
}
.mui-sidepanel[data-position="left"] { left:0; transform: translateX(-100%); }
.mui-sidepanel[data-position="right"] { right:0; transform: translateX(100%); }
.mui-sidepanel.mui-sidepanel--open { transform: translateX(0); }

.mui-sidepanel-overlay {
  position: fixed;
  inset:0;
  background: rgba(0,0,0,.45);
  opacity:0;
  pointer-events:none;
  transition: opacity .25s ease;
  z-index: 1190;
}
.mui-sidepanel-overlay--open {
  opacity:1;
  pointer-events:auto;
}

/**
 * Material UI Vanilla - Badges
 * Estilos para badges (etiquetas)
 */
.mui-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 12px; /* Pill shape */
    
    /* Cores padr��o */
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.08);
}
/* Varia����es de cor */
.mui-badge.mui-badge-primary {
    color: var(--on-primary);
    background-color: var(--primary-color);
}
.mui-badge.mui-badge-secondary {
    color: var(--on-secondary);
    background-color: var(--secondary-color);
}
.mui-badge.mui-badge-success {
    color: #fff;
    background-color: #4CAF50;
}
.mui-badge.mui-badge-error {
    color: #fff;
    background-color: #F44336;
}
.mui-badge.mui-badge-warning {
    color: #000;
    background-color: #FFC107;
}
