body {
    background-color: #fafafa;
}

.text-link {
    text-decoration: none;
    color: inherit;
}

.cards {
    display: flex;
    flex-wrap: wrap;
}

.card {
    margin: 10px;
    cursor: pointer;
    border-radius: 6px;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    width: calc(33.33% - 20px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.full-name {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.destination {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.orders-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1em;
}

.status {
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: bold;
    color: white;
}

.status.procesando {
    background-color: #f39c12;
}

.status.pendiente {
    background-color: #adadad;
}

.status.completado {
    background-color: #2ecc71;
}

.status.cancelado {
    background-color: #cc2e2e;
}

.total {
    font-size: 1.2em;
    color: #333;
    font-weight: bold;
}


.filters {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.filters form {
    gap: 10px;
}

.filters input,
.filters select {
    padding: 10px;
    font-size: 1em;
    border: none;
    border-radius: 6px;
    color: #333;
    width: 250px;
    max-width: 100%;
    background-color: #f0f0f0;
}

.filters label {
    font-size: 1em;
    color: #333;
}

.filters button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #f1c40f;
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filters button:hover {
    background-color: #d4ac0d;
}

.order-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.order-details {
    padding: 20px;
    border-right: 1px solid #ddd;
}

.order-details h2 {
    margin-bottom: 20px;
    color: #000;
}

.order-details p {
    margin-bottom: 10px;
}

.order-details img {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

.order-items {
    padding: 20px;
}

.order-items h2 {
    margin-bottom: 20px;
    color: #000;
}

.scroll-container {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.item:last-child {
    border-bottom: none;
}

.order-actions {
    grid-column: 1 / span 2;
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
}

.order-actions .cancel-btn,
.order-actions .complete-btn,
.order-actions .process-btn {
    width: 200px;
    padding: 15px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cancel-btn a {
    color: white;
    text-decoration: none;
}

.process-btn a {
    color: white;
    text-decoration: none;
}

.complete-btn a {
    color: white;
    text-decoration: none;
}

.order-actions .cancel-btn {
    background-color: #ff6666;
    color: white;
}

.order-actions .cancel-btn:hover {
    background-color: #ff4d4d;
}

.order-actions .process-btn {
    background-color: #f39c12;
    color: white;
}

.order-actions .process-btn:hover {
    background-color: #e38c12;
}

.order-actions .complete-btn {
    background-color: #4caf50;
    color: white;
}

.order-actions .complete-btn:hover {
    background-color: #45a049;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float a img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.whatsapp-float a img:hover {
    transform: scale(1.1);
}

/*
* COLUMNS
*/

.columns {
	margin: 10px auto;
	display: flex !important;
	justify-content: space-between;
	gap: 1rem;
}

.column {
	width: 100%;
}

@media (max-width: 768px) {
	.columns {
		flex-direction: column;
		justify-content: center;
	}
}

@media (max-width: 768px) {
	.control .flex div {
		margin-right: 0;
	}
}


/*
* COUPONS
*/

.coupons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.coupon {
    color: #000;
    text-decoration: none;
    max-width: 50%;
    min-width: calc(25% - 0.5rem);
    flex: 1;
    border-radius: 1rem;
    padding: 1rem;
    background-color: rgb(240, 240, 240);
}

.coupon .header,
.coupon .body,
.coupon .footer {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.checkout-coupon {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.checkout-coupon .control {
    width: 100%;
}

/*
* BUTTONS
*/

.btn {
	color: var(--color-white);
	padding: 0.8rem;
	margin: 0.5rem auto;
	border: none;
	cursor: pointer;
	border-radius: 0.3rem;
	min-width: 5rem;
}

.btn a {
	color: var(--color-white);
	text-decoration: none;
}

.btn.loader>* {
	visibility: hidden;
}

.btn.loader {
	position: relative;
	color: transparent;
	pointer-events: none;
}

.btn.loader::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1rem;
	height: 1rem;
	margin: -8px 0 0 -8px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}

button.link {
	border: none;
	background: transparent;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 768px) {
    .card {
        width: calc(50% - 20px);
    }

    .filters {
        flex-direction: column;
        align-items: center;
    }

    .filters input[type="text"],
    .filters select,
    .filters button {
        width: 100%;
        margin-bottom: 10px;
        box-sizing: border-box;
    }

    .filters form {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .order-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .order-details {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .order-actions {
        flex-direction: column;
        align-items: center;
    }

    .order-actions .cancel-btn,
    .order-actions .complete-btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .scroll-container {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .card {
        width: 100%;
    }
}


.flex {
    display: flex;
}

.align-center {
    align-self: center;
    align-items: center;
}

.gap-05 {
    gap: 0.5rem;
}

.control {
    display: flex;
    flex-direction: column;
}

.full-width {
    width: 100%;
}

.container {
    margin: 0 auto;
    padding: 0 1rem;
}

.color-white {
    color: white !important;
}

.bg-red {
    background-color: #ff0000b8 !important;
}

#debt_amount {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: all 0.4s ease;
	pointer-events: none;
}

#debt_amount.visible {
	max-height: 100px;
	opacity: 1;
	pointer-events: auto;
}