.qr-card {
    position: relative;
    overflow: hidden;
    margin: 0 0 24px;
    padding: 24px;
    border: 1px solid rgba(89, 153, 34, .18);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0, rgba(147, 197, 75, .22), transparent 42%),
        linear-gradient(145deg, #fff 0%, #f7fbf2 100%);
    box-shadow: 0 14px 35px rgba(44, 75, 20, .11);
}

.station-card {
    padding: 0 15px 22px;
    border: 1px solid #e2eadc;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(36, 61, 20, .08);
}

.station-card .station-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 47px;
    margin-bottom: 21px;
    padding: 8px 15px;
    border-radius: 15px 15px 0 0;
    color: #fff;
    background: linear-gradient(135deg, #98cf49, #6dae31) !important;
}

.station-card .station-header h4 {
    margin: 0;
    font-weight: 600;
}

.station-card .station-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(63, 117, 24, .28);
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.station-card .station-help:hover,
.station-card .station-help:focus {
    color: #fff;
    background: rgba(48, 95, 16, .45);
    outline: none;
    transform: scale(1.06);
}

.station-card label {
    color: #38452f;
    font-weight: 600;
}

.station-card .form-control {
    min-height: 42px;
    border-color: #d5dfce;
    border-radius: 9px;
}

.station-card .form-control:focus {
    border-color: #84bc4d;
    box-shadow: 0 0 0 .2rem rgba(132, 188, 77, .16);
}

.station-submit {
    min-height: 42px;
    border: 1px solid #5b9f25;
    border-radius: 10px;
    font-weight: 700;
    background-color: #6dae31;
    background-image: linear-gradient(135deg, #8bc83b, #5b9f25);
    box-shadow: 0 6px 14px rgba(91, 159, 37, .24);
}

/* Tema compartido para las pantallas cargadas dentro del flujo de facturacion. */
body {
    background: #fff;
    color: #2d3827;
}

#panel-heading .jumbotron,
#contenido {
    background-color: transparent !important;
}

#contenido > .form-group:not(.station-card) {
    margin-bottom: 24px;
    padding: 0 22px 22px;
    border: 1px solid #e2eadc;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(36, 61, 20, .08);
}

#contenido > .form-group:not(.station-card) > .row:first-child {
    overflow: hidden;
    margin-right: -22px;
    margin-bottom: 21px;
    margin-left: -22px;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(135deg, #98cf49, #6dae31) !important;
}

#contenido > .form-group:not(.station-card) > .row:first-child > [class*="col-"] {
    display: flex;
    align-items: center;
    min-height: 47px;
    color: #fff !important;
    background: transparent !important;
}

#contenido > .form-group:not(.station-card) > .row:first-child > [class*="col-"]:last-child {
    justify-content: flex-end;
}

#contenido > .form-group:not(.station-card) > .row:first-child h4 {
    margin: 0;
    font-weight: 600;
}

#contenido label {
    color: #38452f;
    font-weight: 600;
}

#contenido .form-control {
    min-height: 42px;
    border-color: #d5dfce;
    border-radius: 9px;
    background-color: #fff;
}

#contenido .form-control:focus {
    border-color: #84bc4d;
    box-shadow: 0 0 0 .2rem rgba(132, 188, 77, .16);
}

#contenido .form-control:disabled,
#contenido .form-control[readonly] {
    background-color: #f1f5ee;
}

#contenido .btn {
    min-height: 40px;
    border-radius: 10px;
    font-weight: 600;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

#contenido .btn-success {
    border-color: #5b9f25;
    background-color: #6dae31;
    background-image: linear-gradient(135deg, #8bc83b, #5b9f25);
    box-shadow: 0 6px 14px rgba(91, 159, 37, .22);
}

#contenido .btn-danger {
    border-color: #c45252;
    background-color: #d85d5d;
    background-image: linear-gradient(135deg, #e57373, #bd4848);
    box-shadow: 0 6px 14px rgba(189, 72, 72, .18);
}

#contenido .btn:hover,
#contenido .btn:focus {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

#contenido .table-responsive {
    margin-right: 0;
    margin-left: 0;
    padding: 0;
    border: 1px solid #e0e8db;
    border-radius: 12px;
}

#contenido .table {
    margin-bottom: 0;
    color: #34402e;
}

#contenido .table thead th {
    border: 0;
    color: #fff;
    background: #638f3e;
}

#contenido .table td {
    border-color: #e7ede3;
    vertical-align: middle;
}

#contenido h4 + hr {
    border-color: #dce7d5;
}

.qr-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 19px;
}

.qr-card-icon {
    display: inline-flex;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(145deg, #a7d85e, #579b25);
    box-shadow: 0 8px 18px rgba(87, 155, 37, .3);
}

.qr-card-title {
    margin: 0 0 3px;
    color: #223019;
    font-size: 1.18rem;
    font-weight: 700;
}

.qr-card-description {
    margin: 0;
    color: #6c7665;
    font-size: .9rem;
    line-height: 1.4;
}

.qr-primary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: .15px;
    background: linear-gradient(135deg, #8dc63f, #4f9222);
    box-shadow: 0 8px 20px rgba(79, 146, 34, .3);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.qr-primary-button:hover,
.qr-primary-button:focus {
    color: #fff;
    filter: brightness(1.04);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(79, 146, 34, .36);
}

.qr-primary-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 12px rgba(79, 146, 34, .25);
}

.qr-secondary-button {
    min-height: 44px;
    margin-top: 10px;
    border: 1px solid #b9d79e;
    border-radius: 12px;
    color: #477c25;
    font-weight: 600;
    background: rgba(255, 255, 255, .78);
}

.qr-secondary-button:hover,
.qr-secondary-button:focus {
    color: #356719;
    border-color: #78ae4c;
    background: #f4faee;
}

.qr-reader-panel {
    margin-top: 16px;
    padding: 10px;
    border-radius: 16px;
    background: #14200e;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.qr-reader-video {
    display: block;
    width: 100%;
    max-height: 360px;
    border-radius: 11px;
    background: #080d06;
    object-fit: cover;
}

.qr-test-area {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(89, 153, 34, .15);
}

.qr-test-area summary {
    color: #718066;
    font-size: .82rem;
    cursor: pointer;
    user-select: none;
}

.qr-test-area .input-group {
    margin-top: 10px;
}

.qr-test-area .form-control {
    border-color: #d5e4c9;
    border-radius: 10px 0 0 10px;
}

.qr-test-area .btn {
    border-radius: 0 10px 10px 0;
}

@media (max-width: 575.98px) {
    #contenido > .form-group:not(.station-card) {
        padding-right: 16px;
        padding-left: 16px;
        border-radius: 14px;
    }

    #contenido > .form-group:not(.station-card) > .row:first-child {
        margin-right: -16px;
        margin-left: -16px;
        border-radius: 13px 13px 0 0;
    }

    .qr-card {
        padding: 18px;
        border-radius: 16px;
    }

    .qr-card-icon {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }
}
		
