/*
------ IMPORTANTE --------
O grupo de regras abaixo são personalizações da S1
pensadas para sobrescrever o CSS do MDB simplificando o entendimento
e manutenção.

Somente itens essenciais foram modificados direto no SASS:
_variables.scss:
  Linha 284 $primary: #6CB33F !default;
  Linha 285 $secondary: #003A2F !default;
  replace: #e3ebf7 for #DAEECE (cor botão secundário)
  replace: #285192 for #5D9B36 (cor botão secundário)


Alguns módulos SASS (desnecessários para esse projeto) também
foram comentados
*/

/* COLORS */

body{
    background-color: #FAFAFA;
}
a{
    color: var(--mdb-primary);
    text-decoration:underline;
}
a:hover{
    color: var(--mdb-secondary);
    text-decoration:underline;
}
.card-header {
    background-color: var(--mdb-gray-300);
}
.table th {
    color: var(--mdb-gray-600);
}




/* FONT */
@font-face {
    font-family: Branding;
    src: url(../fonts/Branding-Medium.woff2) format("woff2"), url(../fonts/Branding-Medium.woff) format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: Branding;
    src: url(../fonts/Branding-SemiBold.woff2) format("woff2"), url(../fonts/Branding-SemiBold.woff) format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: Branding;
    src: url(../fonts/Branding-SemiBold.woff2) format("woff2"), url(../fonts/Branding-SemiBold.woff) format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap
}

:root{
    --s1-font-title:branding,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    --s1-font-body:Inter,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    --mdb-body-font-family:var(--s1-font-body)
}
.popover{font-family:var(--s1-font-body);}
.tooltip{font-family:var(--s1-font-body);}
body{font-family:var(--s1-font-body);}
.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:var(--s1-font-title);}


/* GERAL */
.table th {
    font-weight: bold;
    text-align: center;
}
.table td {
    text-align: center;
}

footer{
    margin-top: auto
}
body {
    min-height: 10vh;
    display: flex;
    flex-direction: column;
}

.s1-choose-pay .accordion-item {
    border: none;
}

.s1-choose-pay button, .s1-choose-pay .accordion-collapse{
    border-bottom: 1px solid rgba(0, 0, 0, 0.125)
}
.s1-choose-pay .accordion-button{
    box-shadow: none;
}
.s1-choose-pay .accordion-button::after {
    display: none;
}

.was-validated .input-group .invalid-feedback, .was-validated .input-group .valid-feedback {
    margin-top: 2.1rem;
}


/*
------ IMPORTANTE --------
Daqui em diante são regras exclusivas da S1
para alcançar os objetivos específicos de formatação

From now on they are exclusive rules of S1
to achieve specific formatting goals
*/

.s1-p-54 {
    margin-top: 54px;
}
.s1-line-bottom {
    border-bottom: 2px solid var(--mdb-primary);
}


.s1-nobreak-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.s1-nobreak {
    white-space: nowrap;
}


.s1-dados-cliente span {
    width: 100%;
    display: block;
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .s1-dados-cliente span {
        width: auto;
        margin-right: 1rem;
        display: inline;
    } 
}


.s1-responsive-align {
    text-align: right;
    align-self: center;
}
@media screen and (max-width: 768px){
    .s1-responsive-align {
        text-align: left;
    } 
}



/* Responsive table to card*/

.s1-responsive-table thead {
    display: none;
}

.s1-responsive-table td {
    display: flex;
    justify-content: left;
    align-items: flex-start;
    /*border-top: 1px var(--mdb-gray-300);*/
}

.s1-responsive-table td:before {
        content: attr(data-label);
        font-size: .90em;
        text-align: left;
        font-weight: bold;
        text-transform: uppercase;
        width: 40%;
    }

.s1-responsive-table td {
        margin-top: .8em;
    }

.s1-responsive-table td:first-child {
        background-color: var(--mdb-gray-100);
    }
.s1-responsive-table td:last-child {
    border-bottom: none;
}


    @media screen and (min-width: 768px) {

        .s1-responsive-table thead {
            display: table-header-group;
        }

        .s1-responsive-table tr {
            display: table-row;
            /*border: 0;*/
        }
    
        .s1-responsive-table th, .s1-responsive-table td {
            text-align: center;
        }
    
        /*    th {
        //        font-size: .85em;
                text-transform: uppercase;
            }*/
    
        .s1-responsive-table td {
            display: table-cell;
        }
        .s1-responsive-table td:before {
                display: none;
            }

        .s1-responsive-table td:first-child {
            background-color: transparent;
        }

        .s1-responsive-table td:last-child {
                border-bottom: 1px solid #E0E0E0;
            }
    }
    
/* Lista ordenada personalizada*/
.s1-pix ol {
    list-style: none;
    counter-reset: num;
}

.s1-pix ol li {
    counter-increment: num;
    padding-left: 3rem;
    padding-right: 1rem;
}
.s1-pix ol li div{
    padding-right: 3rem;
}

.s1-pix ol li::before {
    content: counter(num);
    background-color: var(--mdb-primary);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    position: absolute;
    width: 2rem;
    height: 2rem;
    margin-left: -3rem;
    margin-right: 2rem;
    padding-top: 0.3rem;
    padding-left: 0.7rem;
}


/* Input para bandeira de cartões */
.s1-input-bandeira input { 
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.s1-input-bandeira input + img {
    cursor: pointer;
}
  
.s1-input-bandeira input:checked + img {
    outline: 2px solid var(--mdb-primary);
}
.s1-input-bandeira label {
    margin-left: -2.5rem;
    opacity: 0;
    cursor: pointer;
}

/* update 30/01/23 */
.row .s1-footer-line:not(:last-child) {
    border-right: 4px solid #08392e;
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .row .s1-footer-line:not(:last-child) {
        border: none;
    }
}

@media screen and (max-width: 768px) {
    .row .s1-footer-line:not(:last-child) {
        border-right: none;
        border-bottom: 4px solid #08392e;
    }
}

.font20 {
    font-size: 20px;
    color: #08392e !important;
}
.nowrap {
    white-space: nowrap;
}

.Generated {
    background-color: #3e3e3f;
    color: white;
}
.InProgress {
    background-color: #fbf0da;
    color: #73510d;
}
.Paid {
    background-color: #d6f0e0;
    color: #0d6832;
}
.Canceled {
    background-color: #ee1616;
    color: white;
}
.Defaulter {
    background-color: #f9e1e5;
    color: #af233a;
}
.Accredit {
    background-color: #eef10b;
    color: white;
}
.ChargebackRequested {
    background-color: #eb6239;
    color: white;
}
.PaidByOtherWay {
    background-color: #d6f0e0;
    color: #0d6832;
}
.RefundRequestOpened {
    background-color: #ee1616;
    color: white;
}
.RefundInProgress {
    background-color: #0643fa;
    color: white;
}
.Refunded {
    background-color: #0643fa;
    color: white;
}
.CancelRequested {
    background-color: #eb6239;
    color: white;
}
.UpdateRequested {
    background-color: #eb6239;
    color: white;
}
.RefundedPartial {
    background-color: #0643fa;
    color: white;
}

.font30 {
    font-size: 25px;
    font-weight: bold;
    color: #08392e !important;
}

.font20 {
    font-size: 20px;
    color: #08392e !important;
}

.font20Bold {
    font-size: 20px;
    font-weight: bold !important;
    color: #08392e !important;
}

.font10 {
    font-size: 10px;
    font-weight: bold !important;
    color: #08392e !important;
}

.font5 {
    font-size: 5px;
    font-weight: bold !important;
    color: #08392e !important;
}

.nowrap {
    white-space: nowrap;
}