/* IMPORTS == */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url("comentarios.css?1.0.2");
@import url("maquinas_dados.css");
@import url("modals.css?1.0.2");
@import url("calendarios.css?1.0.5");
@import url("camera.css?1.0.1");
@import url("larguras.css?1.0.1");
@import url("loading.css?1.0.1");

body {
    background-color: #f4f4f4;
    margin: 0;
    font-family: "Google Sans Flex", sans-serif;
    font-size: 14px;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="tel"],
button,
select,
textarea {
    font-family: "Google Sans Flex", sans-serif;
    box-sizing: border-box;
    padding: 8px;
    width: 100%;
    font-size: 16px;
}

/* INFO ERRO == */
.info_erro_ep{
    color: #ed4324;
}

.mouse_cursor{
    cursor: pointer;
}

/* DIV BUSCA == */
.div_busca_ep{
    display: flex;
    margin: 20px 0;
    gap: 10px;
}

.div_busca_ep div{

}

.div_busca_ep div input[type="date"] {
    width: 250px;
}

/* HEADER == */
.header {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .bnt_open_menu_principal_ep{
    display: none;
}

.header .logo {
    font-weight: bold;
}

.header .logo-mobile {
    font-weight: bold;
    display: none;
}

.header .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header .user-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.header .menu-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    font-size: 28px;
}

.header .submenu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-width: 150px;
}

.header .submenu ul {
    list-style: none;
    margin: 0;
    padding: 10px;
}

.header .submenu ul li {
    cursor: pointer;
}

.header .submenu ul li:hover {
    background: #f0f0f0;
}

.header .submenu ul li a{
    display: block;
    padding: 8px;
}

/* DIV CORPO == */
.div_corpo{
    display: flex;
}

/* MENU LATERAL ESTILO DOMM */
.menu_lateral {
    width: 240px;
    background-color: #ed4324;
    color: #fff;
    min-height: 100vh;   /* ocupa pelo menos a altura da tela */
    position: absolute;  /* ou relative, dependendo da estrutura */
    left: 0;
    display: flex;
    flex-direction: column;
}

.menu_lateral .logo {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #ff7f00;
    margin-bottom: 30px;
}

.menu_lateral .logo img{
    width: 100%;
}

.menu_lateral .nome_empresa_ep{
    background-color: #e6725d;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    padding-top: 10px;
}

.menu_lateral .nome_empresa_ep p{
    font-size: 12px;
    padding-top: 0;
    margin-top: 0;
}

.menu_lateral ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu_lateral ul li {
    border-bottom: 1px solid #2f3e4f;
    transition: background 0.3s;
}

.menu_lateral ul li:hover {
    background-color: #2f3e4f;
}

.menu_lateral ul li .total_al_nao_lidos_al{
    position: absolute;
    background-color: #FFF;
    font-weight: bolder;
    color: #2f3e4f;
    padding: 8px;
    border-radius: 30%;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.menu_lateral ul li a {
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.menu_lateral ul .li_selecionado{
    background-color: #2f3e4f;
}

/* CONTEÚDO PRINCIPAL */
.main-content {
    margin-left: 240px;
    padding: 20px;
    background-color: #f4f4f4;
    width: 100%;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 280px;
    overflow: hidden;
    transition: transform 0.2s;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.card-content p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.label {
    font-weight: bold;
    color: #222;
}

/* BOTÕES == */
.bnt_ep{
    appearance: none;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
}

.primary { 
    background: #2563eb; 
    color: #fff; 
}

.primary:hover { 
    filter: brightness(1.05); 
}

.secondary { 
    background: #eef2ff; 
    color: #1f2937; 
}

.secondary:hover { 
    filter: brightness(0.98); 
}

/* ALINHAR TEXTOS == */
.text_align_left{
    text-align: left;
}

.text_align_center {
    text-align: center;
}

.text_align_right {
    text-align: right;
}

/* TABELAS == */
.table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
}

.table th, .table td {
    padding: 12px 15px;
}

.table .cab {
    background: #3498db;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table .col_acoes{
    text-align: center;
}

.table .col_acoes span {
    cursor: pointer;
}

.table .ln{
    cursor: pointer;
}

.table .ln:nth-child(even) {
    background: #f9f9f9;
}

.table .ln:hover {
    background: #eaf2f8;
    transition: 0.3s;
}

.table .btn {
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    margin: 2px;
}

.table .print-btn {
    background: #2ecc71;
}

.table .print-btn:hover {
    background: #27ae60;
}

.table .download-btn {
    background: #e67e22;
}

.table .download-btn:hover {
    background: #d35400;
}

.table .total {
    text-align: right;
    font-weight: bold;
    margin-top: 20px;
    font-size: 1.2em;
    color: #2c3e50;
}

/* MULTIPLA ESCOLHA == */
.div_input_multipla_escolha_ep{
    display: flex;
    flex-direction: column;
    border: 1px solid #CCC;
    margin-top: 7px;
}

.div_input_multipla_escolha_ep .lns{
    cursor: pointer;
    border-bottom: 1px solid #CCC;
    font-weight: bold;
    padding: 5px 10px 8px;
}

.div_input_multipla_escolha_ep .lns input[type="checkbox"]{
    width: inherit;
    margin-right: 10px;
}

/* DIV INFO MÁQUINA VEICULO == */
.div_info_vi{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.div_info_vi .div{
    padding: 10px;
    border-radius: 5px;
    background-color: #f5f5f5;
}

/* CARDS == */
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: #EEE;
    border: 1px solid #DDD;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.card-value {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

/* LISTA DE MAQUINAS EM BOX == */
.ul_maquinas_vi{
    list-style: none;
    padding: 0;
    margin: 0;
}

.ul_maquinas_vi li{
    padding: 5px 0; 
    border-bottom: 1px solid #CCC;
    cursor: pointer;
}

.ul_maquinas_vi li:hover{
    background: #CCC;
}

.ul_maquinas_vi li p{
    padding: 6px 0;
    margin: 0;
}

.ul_maquinas_vi li:last-child{
    border-bottom: 0;
}

/* CONTAINER == */
.container_cards_ferramentas_ep{
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 20px 0 0;
}

.container_cards_ferramentas_ep .cards{
    text-align: center;
    color: #333;
    border-right: 1px solid #DDD;
    border-bottom: 1px solid #DDD;
}

.container_cards_ferramentas_ep .cards a{
    text-decoration: none;
    color: #333;
    display: block;
    padding: 10px 0;
}

.container_cards_ferramentas_ep .cards span{
    padding: 10px;
}

.container_cards_ferramentas_ep .cards div{
    font-weight: bold;
    padding: 0 0 10px;
}

/* UL CONTEUDOS MOBILE == */
.div_alpha_submenu_mobile{
  display: none;
  position: fixed;
  width: 100%; 
  height: 100%;
  top: 0;
  left: 0;
  background: transparent;
  z-index: 50;
}

.ul_conteudos_mobile{
    padding: 0;
    margin: 0;
    list-style: none;
    display: none;
}

.ul_conteudos_mobile .li{
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
}

.ul_conteudos_mobile .li .div_bnt_menu_ep{
    top: 0;
    right: 0;
    position: absolute;
    z-index: 51;
}

.ul_conteudos_mobile .li .div_bnt_menu_ep span{
    cursor: pointer;
    background-color: #ff7f00;
    color: #FFF;
    padding: 5px;
}

.ul_conteudos_mobile .li .submenu_ep{
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 52;
}

.ul_conteudos_mobile .li .submenu_ep ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ul_conteudos_mobile .li .submenu_ep ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
}

.ul_conteudos_mobile .li .submenu_ep ul li:hover {
    background: #f0f0f0;
}

.ul_conteudos_mobile .li .cards-in-grupo{
    display: flex;
    gap: 10px;
}

.ul_conteudos_mobile .li .cards-in-grupo .cards-in{
    flex: 1;
    border-right: 1px solid #CCC;
}

.ul_conteudos_mobile .li .cards-in-grupo .cards-in:last-child{
    border-right: 0;
}

.ul_conteudos_mobile .li .cards-in-grupo .cards-in span{
    text-align: right;
}

.ul_conteudos_mobile .li .cards-in{
    padding: 5px 0;
}

.ul_conteudos_mobile .li .cards-in label{
    font-weight: bold;
    display: block;
}

/* TOTAIS == */
.info_total_deps_ep{
    background: #333;
    display: flex;
    flex-direction: row;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #FFF;
    font-weight: bold;
}

.info_total_deps_ep div{
    flex: 1;
    padding: 13px;
}

/* DIV BOTÕES == */
.div_bnts_ep{
    display: flex;
    flex-direction: row;
}

.div_bnts_ep div{
    margin-right: 10px;
}

/* LOOK BUSCA == */
.div_look_busca_ep{
    position: relative;
    background: #ffebe8;
    display: none;
    flex-direction: row;
    border: 1px solid #dd3c10;
    border-radius: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #000;
}

.div_look_busca_ep .bnt_close_ep{
    position: absolute;
    background: #ed4324;
    color: #FFF;
    border-radius: 5px;
    top: 8px;
    right: 10px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.div_look_busca_ep .look_ep{
    flex: 1;
    padding: 13px;
}

/* MOBILE == */
/* MEDIA QUERY PARA MOBILE */
@media screen and (max-width: 600px) {

    .header{
        background: #ff7f00;
        position: relative;
    }

    .header .bnt_open_menu_principal_ep{
        display: block;
    }

    .header .logo{
        display: none;
    }

    .header .logo-mobile{
        display: block;
    }

    .header .user-info{
        
    }

    .header .user-info img,
    .header .user-info .nome_usu_ep{
        display: none;
    }

    .menu_lateral{
        display: none;
        z-index: 1;
    }

    .main-content{
        margin: 0;
        padding: 15px;
    }

    /* TABELAS == */
    .table{
        display: none;
    }

    /* UL CONTEUDOS MOBILE == */
    .ul_conteudos_mobile{
        display: block;
    }

    /* DIV INFO MÁQUINA VEICULO == */
    .div_info_vi{
        background-color: #f5f5f5;
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 colunas iguais */
        gap: 0;
        border-radius: 5px;
    }

    .div_info_vi .div{
        border-right: 1px solid #CCC;
        border-bottom: 1px solid #CCC;
        padding: 5px 10px;
    }

    .div_info_vi .div strong{
        display: block;
    }

    /* CARDS == */
    .cards-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 0px;
        border: 1px solid #CCC;
    }

    .cards-container .card{
        width: 100%;
        border-radius: 0;
        border: 0;
        border-bottom: 1px solid #CCC;
        text-align: left;
        padding: 0;
    }

    .cards-container .card:hover {
        transform: none;
    }

    .cards-container .card div.card-title{
        padding: 5px 0 0 5px;
        margin-bottom: 0;
    }

    .cards-container .card div.card-value{
        padding: 5px 5px 5px 5px;
    }

    /* DIV BUSCA == */
    .div_busca_ep{

    }

    .div_busca_ep div{
        flex: 1;
    }

    .div_busca_ep div input[type="date"] {
        width: 100px;
    }

    /* CARDS FERRAMENTAS == */
    .container_cards_ferramentas_ep{
        display: grid;    
    }

}