/* Tabela geral */
.tabela-horaria, .tabela-espinha {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-family: "Rajdhani", sans-serif;
    font-size: 12px;
}

/* Cabeçalho da tabela */
.tabela-horaria thead th, .tabela-espinha thead th {
    color: #000000;
    text-align: center;
    padding: 7px 5px;
    font-weight: bold;
    word-wrap: break-word;
    background: none; /* sem fundo cinzento */
}

/* Corpo da tabela */
.tabela-espinha tbody td, .tabela-espinha tbody th {
    background: white; /* fundo branco */
    color: black;
    padding: 5px;
    text-align: center;
}

/* Nome da paragem */
.tabela-espinha th.nomeparagem, .tabela-espinha td.nomeparagem {
    text-align: left;
    padding-left: 5px;
    font-weight: normal;
    color: black;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Efeito hover na linha inteira */
.tabela-espinha tbody tr.linhaparagem:hover td,
.tabela-espinha tbody tr.linhaparagem:hover th {
    background-color: #167bb4; /* fundo azul em toda a linha */
    color: white;
    font-weight: bold;
}

/* Sublinhado apenas no nome da paragem */
.tabela-espinha tbody tr.linhaparagem:hover th.nomeparagem {
    text-decoration: underline;
}



/* Coluna do dash */
.tabela-espinha td.seta_1_20 {
    background-color: #E41E25;  
    color: white;           
    width: 30px; 
    font-weight: bold;
    font-size: 14px;
}

/* Span da seta para rotacionar */
.tabela-espinha td.seta_1_20 span {
    display: inline-block;       /* necessário para rotacionar só o texto */
    transition: transform 0.3s;  /* animação suave */
}


/* Rotacionar a seta 90º no hover da linha */
.tabela-espinha tbody tr.linhaparagem:hover td.seta_1_20 span {
    transform: rotate(-90deg);
}



/* Coluna do dash */
.tabela-espinha td.seta_21_37 {
    background-color: #57A595;  
    color: white;           
    width: 30px; 
    font-weight: bold;
    font-size: 14px;
}

/* Span da seta para rotacionar */
.tabela-espinha td.seta_21_37 span {
    display: inline-block;       /* necessário para rotacionar só o texto */
    transition: transform 0.3s;  /* animação suave */
}


/* Rotacionar a seta 90º no hover da linha */
.tabela-espinha tbody tr.linhaparagem:hover td.seta_21_37 span {
    transform: rotate(-90deg);
}

/* Coluna do dash */
.tabela-espinha td.seta_M_Agueda {
    background-color: #FDC900;  
    color: white;           
    width: 30px; 
    font-weight: bold;
    font-size: 14px;
}

/* Span da seta para rotacionar */
.tabela-espinha td.seta_M_Agueda span {
    display: inline-block;       /* necessário para rotacionar só o texto */
    transition: transform 0.3s;  /* animação suave */
}


/* Rotacionar a seta 90º no hover da linha */
.tabela-espinha tbody tr.linhaparagem:hover td.seta_M_Agueda span {
    transform: rotate(-90deg);
}

/* Coluna do dash */
.tabela-espinha td.seta_M_Albergaria {
    background-color: #F27E00;  
    color: white;           
    width: 30px; 
    font-weight: bold;
    font-size: 14px;
}

/* Span da seta para rotacionar */
.tabela-espinha td.seta_M_Albergaria span {
    display: inline-block;       /* necessário para rotacionar só o texto */
    transition: transform 0.3s;  /* animação suave */
}


/* Rotacionar a seta 90º no hover da linha */
.tabela-espinha tbody tr.linhaparagem:hover td.seta_M_Albergaria span {
    transform: rotate(-90deg);
}

/* Coluna do dash */
.tabela-espinha td.seta_M_Anadia {
    background-color: #0093CB;  
    color: white;           
    width: 30px; 
    font-weight: bold;
    font-size: 14px;
}

/* Span da seta para rotacionar */
.tabela-espinha td.seta_M_Anadia span {
    display: inline-block;       /* necessário para rotacionar só o texto */
    transition: transform 0.3s;  /* animação suave */
}


/* Rotacionar a seta 90º no hover da linha */
.tabela-espinha tbody tr.linhaparagem:hover td.seta_M_Anadia span {
    transform: rotate(-90deg);
}


/* Coluna do dash */
.tabela-espinha td.seta_M_Estarreja {
    background-color: #CF9461;  
    color: white;           
    width: 30px; 
    font-weight: bold;
    font-size: 14px;
}

/* Span da seta para rotacionar */
.tabela-espinha td.seta_M_Estarreja span {
    display: inline-block;       /* necessário para rotacionar só o texto */
    transition: transform 0.3s;  /* animação suave */
}


/* Rotacionar a seta 90º no hover da linha */
.tabela-espinha tbody tr.linhaparagem:hover td.seta_M_Estarreja span {
    transform: rotate(-90deg);
}


/* Coluna do dash */
.tabela-espinha td.seta_M_Ilhavo {
    background-color: #82D8DF;  
    color: white;           
    width: 30px; 
    font-weight: bold;
    font-size: 14px;
}

/* Span da seta para rotacionar */
.tabela-espinha td.seta_M_Ilhavo span {
    display: inline-block;       /* necessário para rotacionar só o texto */
    transition: transform 0.3s;  /* animação suave */
}


/* Rotacionar a seta 90º no hover da linha */
.tabela-espinha tbody tr.linhaparagem:hover td.seta_M_Ilhavo span {
    transform: rotate(-90deg);
}


/* Coluna do dash */
.tabela-espinha td.seta_M_Murtosa {
    background-color: #9040BA;  
    color: white;           
    width: 30px; 
    font-weight: bold;
    font-size: 14px;
}

/* Span da seta para rotacionar */
.tabela-espinha td.seta_M_Murtosa span {
    display: inline-block;       /* necessário para rotacionar só o texto */
    transition: transform 0.3s;  /* animação suave */
}


/* Rotacionar a seta 90º no hover da linha */
.tabela-espinha tbody tr.linhaparagem:hover td.seta_M_Murtosa span {
    transform: rotate(-90deg);
}

/* Coluna do dash */
.tabela-espinha td.seta_M_Oliv_Bairro {
    background-color: #1F4098;  
    color: white;           
    width: 30px; 
    font-weight: bold;
    font-size: 14px;
}

/* Span da seta para rotacionar */
.tabela-espinha td.seta_M_Oliv_Bairro span {
    display: inline-block;       /* necessário para rotacionar só o texto */
    transition: transform 0.3s;  /* animação suave */
}


/* Rotacionar a seta 90º no hover da linha */
.tabela-espinha tbody tr.linhaparagem:hover td.seta_M_Oliv_Bairro span {
    transform: rotate(-90deg);
}

/* Coluna do dash */
.tabela-espinha td.seta_M_Ovar {
    background-color: #E8549F;  
    color: white;           
    width: 30px; 
    font-weight: bold;
    font-size: 14px;
}

/* Span da seta para rotacionar */
.tabela-espinha td.seta_M_Ovar span {
    display: inline-block;       /* necessário para rotacionar só o texto */
    transition: transform 0.3s;  /* animação suave */
}


/* Rotacionar a seta 90º no hover da linha */
.tabela-espinha tbody tr.linhaparagem:hover td.seta_M_Ovar span {
    transform: rotate(-90deg);
}

/* Coluna do dash */
.tabela-espinha td.seta_M_Sever_Vouga {
    background-color: #BCD800;  
    color: white;           
    width: 30px; 
    font-weight: bold;
    font-size: 14px;
}

/* Span da seta para rotacionar */
.tabela-espinha td.seta_M_Sever_Vouga span {
    display: inline-block;       /* necessário para rotacionar só o texto */
    transition: transform 0.3s;  /* animação suave */
}


/* Rotacionar a seta 90º no hover da linha */
.tabela-espinha tbody tr.linhaparagem:hover td.seta_M_Sever_Vouga span {
    transform: rotate(-90deg);
}

/* Coluna do dash */
.tabela-espinha td.seta_M_Vagos {
    background-color: #00A657;  
    color: white;           
    width: 30px; 
    font-weight: bold;
    font-size: 14px;
}

/* Span da seta para rotacionar */
.tabela-espinha td.seta_M_Vagos span {
    display: inline-block;       /* necessário para rotacionar só o texto */
    transition: transform 0.3s;  /* animação suave */
}


/* Rotacionar a seta 90º no hover da linha */
.tabela-espinha tbody tr.linhaparagem:hover td.seta_M_Vagos span {
    transform: rotate(-90deg);
}

