:root {
    font-family: Nunito, sans-serif
}

* {
    font-family: Nunito, sans-serif !important
}

body {
    font-family: Nunito, sans-serif
}

.bg {
    background-color: #444;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0
}

.card {
    background-color: #e3e3e3;
    box-shadow: 0 2px 8px #0000001a;
    border-radius: 1.5rem
}

p {
    color: #979797;
    font-style: oblique;
    font-size: smaller
}

.custom-swal-popup {
  border-radius: 1rem !important;
  font-family: inherit;
}

.custom-swal-confirm-btn {
  border-radius: 0.5rem !important;
  padding: 7px 13px;
}

.header {
    background-color: #014262;
    color: #fff;
    padding: .5rem 1rem;
    text-align: center
}

.btn-return {
    border-radius: 3.6rem;
    border-color: none;
    display: flex;
    align-items: center;
    padding: .2rem
}

.container {
    padding: 20px;
    width: 100%
}

.card {
    padding: 2.5rem;
    border-radius: 2rem !important
}

.size div {
    display: flex;
    gap: 1rem;
    padding-top: 1rem
}

.textfield {
    width: 33%;
    padding-top: 0 !important
}

.date {
    width: 33%;
    height: 35px;
    padding-bottom: 0
}

.select-sexo {
    width: 33%;
    height: 35px;
    padding-bottom: 0 !important;
    padding-top: 0 !important
}

.textfield-rfc {
    width: 87%;
    height: 40px;
    padding-top: 0 !important
}

label+[class*=MuiSelect-root] {
    margin-top: 0 !important
}

label[data-shrink=false] + .MuiInputBase-formControl .MuiInputBase-input {
    padding-top: 0 !important
}

.MuiNativeSelect-root, 
.MuiSelect-select, 
.MuiInputBase-input, 
.MuiInput-input {
    padding-top: 0 !important
}

label + .MuiInputBase-root,
label + .MuiInput-root {
    margin-top: 0 !important
}

.label {
    color: #0009;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.4375em;
    letter-spacing: .00938em;
    padding: 0
}

.textfield-padres {
    width: 31%
}

.textfield-hijos {
    width: 10%
}

.select {
    width: 50%;
    height: 35px;
    padding-top: 0
}

.select.MuiFormControl-root {
    padding-top: 0 !important;
}

.display {
    display: contents !important
}

.btn-save {
    display: flex;
    justify-content: flex-end;
    padding-top: 2rem;
    padding-bottom: .5rem
}

.Mui-disabled {
    color: #333 !important
}

.MuiInput-underline.Mui-disabled:before {
    border-bottom-style: dashed !important;
    border-bottom-color: #999 !important
}

.textfield.Mui-disabled {
    background-color: #f9f9f9
}

.textfield-radiobutton {
    display: flex;
    align-items: center
}

p.MuiTypography-root {
    color: #fff;
    font-style: normal;
    font-weight: 700;
}
p.MuiTypography-body1{
    color: #fff;
    font-weight: 700 !important;
    font-size: small !important; 
}

.div-firma {
    display: flex !important;
    justify-content: center !important
}

@media (max-width: 768px) {
    .container {
        padding: 10px !important
    }

    .card {
        padding: 1.5rem;
        border-radius: 1rem !important
    }

    .size div {
        flex-direction: column;
        gap: .5rem
    }

    .textfield,
    .select-sexo,
    .textfield-rfc,
    .textfield-padres,
    .textfield-hijos,
    .select {
        width: 100% !important
    }

    .div-adeudos {
        flex-direction: column
    }

    .btn-save {
        justify-content: center
    }

    .btn-save Button {
        width: 100% !important
    }

    .MuiFormControl-root,
    .MuiInputBase-root {
        width: 100%
    }

    .div-firma {
        display: flex !important;
        justify-content: center !important
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.5rem
    }

    h4 {
        font-size: 1.2rem
    }

    .container {
        padding: 5px !important
    }

    .card {
        padding: 1rem;
        border-radius: .5rem !important
    }
    .padding{
        padding-left: 1.5rem !important;
    }

    .textfield,
    .select-sexo,
    .textfield-rfc,
    .textfield-padres,
    .textfield-hijos,
    .select {
        margin-bottom: .5rem
    }

    .MuiCard-root.card.size {
    background-color: transparent !important;
    box-shadow: none !important;
}

    .textfield-radiobutton {
        display: flex;
        align-items: start
    }

    .div-firma {
        display: flex !important;
        justify-content: center !important;
        flex-direction: row !important
    }
}

.container-scanner {
    padding: 15px;
    max-width: 60%;
    margin: 0 auto;
    box-sizing: border-box
}

.scanner-placeholder {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 2px dashed #0d6a96;
    border-radius: 1rem;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative
}

#reader {
    width: 100%;
    min-height: 280px
}

#reader video,
#reader div {
    border-radius: 8px
}

.scanner-message {
    position: absolute;
    text-align: center;
    color: #6c757d;
    padding: 0 15px
}

.scanner-icon {
    font-size: 2.5rem;
    margin-bottom: 10px
}

.mobile-tip {
    font-size: .8rem;
    margin-top: 10px;
    font-style: italic
}

.scanner-controls {
    text-align: center;
    margin-bottom: 15px
}

.reiniciar-button {
    padding: 5px 9px;
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: .5rem;
    cursor: pointer;
    font-size: 1rem;
    min-height: 44px
}

.loading-state {
    text-align: center;
    padding: 30px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6
}

.loading-icon {
    font-size: 2.5rem;
    margin-bottom: 15px
}

.loading-state-div {
    width: 100%;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    margin: 20px 0;
    overflow: hidden
}

.loading {
    width: 75%;
    height: 100%;
    background-color: #007bff;
    border-radius: 2px;
    animation: loading 1.5s infinite
}

.error {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb
}

.btn-error {
    padding: 12px 20px;
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 1rem;
    min-height: 44px
}

.info {
    background-color: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px
}

.info h4 {
    margin: 0 0 10px;
    color: #1565c0;
    font-size: 1.1rem
}

.info ul {
    margin: 0;
    padding-left: 20px
}

.info li {
    margin-bottom: 8px;
    font-size: .9rem;
    line-height: 1.4
}

@media (max-width: 768px) {
    .container-scanner {
        padding: 10px;
        max-width: 80%
    }

    .scanner-placeholder,
    #reader {
        min-height: 250px
    }

    .scanner-icon {
        font-size: 2rem
    }

    .reiniciar-button,
    .btn-error {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container-scanner {
        padding: 8px;
        max-width: 100%
    }

    .scanner-placeholder,
    #reader {
        min-height: 220px;
    }

    .info h4 {
        font-size: 1rem;
    }

    .info li {
        font-size: .85rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {

    .scanner-placeholder,
    #reader {
        min-height: 200px
    }

    .container-scanner {
        padding: 8px
    }
}

@keyframes loading {
    0% {
        transform: translate(-100%)
    }

    to {
        transform: translate(300%)
    }
}

.container-home {
    height: 100vh;
}

.font h2 {
    padding-bottom: 2rem
}

.font p {
    color: #979797;
    font-style: oblique;
    font-size: smaller;
    padding-bottom: 1rem
}

@media (max-width: 768px) {
    .container-home {
        height: 10rem
    }
}

@media (max-width: 480px) {
    .container-home {
        height: 10rem
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

.main-content {
    flex: 1;
    padding: 1rem;
    background-color: #f4f4f4
}

.section {
    max-width: 1200px;
    margin: 0 auto
}

.section h3 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
    color: #2c3e50;
    font-weight: 400;
    padding-top: 2rem
}

.section p {
    margin-bottom: 1rem;
    color: #7c7c7c
}

.title {
    color: #1a1a1a !important
}

.table-container {
    overflow-x: auto
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem
}

.table th,
.table td {
    border: 1px solid #ddd;
    padding: .5rem;
    text-align: left
}

.table th {
    background-color: #f2f2f2;
    font-weight: 700;
    color: #34495e
}

.table tr:nth-child(2n) {
    background-color: #f9f9f9
}

.table tr:hover {
    background-color: #f1f1f1
}

@media (max-width: 768px) {
    .table {
        font-size: .9rem
    }

    .table th,
    .table td {
        padding: .3rem
    }
}

@keyframes logo-spin {
    0% {
        transform: rotate(0)
    }

    to {
        transform: rotate(360deg)
    }
}

@media (prefers-reduced-motion: no-preference) {
    a:nth-of-type(2) .logo {
        animation: logo-spin infinite 20s linear
    }
}

.card {
    padding: 2em
}

.read-the-docs {
    color: #888
}

@media (max-width: 480px) {
    .card {
        padding: 0
    }
}

.container-footer {
    display: flex;
}

.div-container-left {
    width: 25%;
    padding-top: 4px;
}

.div-container-rigth {
    width: 75%;
}

.img-alze {
    height: 35px;
    margin-right: .5rem;
}

.address {
    font-size: .9rem;
    padding-top: .5rem;
}

.derechos {
    font-size: .875rem;
    padding-top: .5rem;
}

.derechos-movil {
    display: none;
}

@media (max-width: 768px) {
    .padding {
        padding: 0 !important;
    }

    .container-footer {
        display: block;
        padding: 0 !important;
    }

    .div-container-left,
    .div-container-rigth {
        width: 100%;
    }

    .img-alze,
    .address,
    .derechos {
        display: none;
    }

    .derechos-movil {
        padding-top: .5rem;
        display: block;
        text-align: center;
    }
}