:root {
    --verde-principal: #2E8B57;
    --verde-secundario: #3CB371;
    --verde-claro: #F5FFFA;
    --verde-oscuro: #006400;
    --verde-palido: #98FB98;
}

body {
    background-color: var(--verde-claro);
    color: var(--verde-oscuro);
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 100, 0, 0.1);
}

.btn-success {
    background-color: var(--verde-principal);
    border-color: var(--verde-principal);
}

.btn-success:hover {
    background-color: var(--verde-oscuro);
    border-color: var(--verde-oscuro);
}

.table-success {
    background-color: var(--verde-principal);
    color: white;
}

.bg-success {
    background-color: var(--verde-principal) !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

.badge.bg-primary {
    background-color: #0d6efd !important;
}

.badge.bg-cancel {
    background-color: #d81010 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
}

.badge.bg-success {
    background-color: var(--verde-principal) !important;
}

.badge.bg-purple {
    background-color: #6f42c1;
    color: white;
}

.nav-link {
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--verde-palido) !important;
    transform: translateY(-2px);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--verde-principal);
    box-shadow: 0 0 0 0.25rem rgba(46, 139, 87, 0.25);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-success .fa-check-circle {
    color: #28a745;
}

.alert {
    border-left: 4px solid;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

.alert.position-fixed {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cursor-pointer {
    cursor: pointer;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

#confirmModal .modal-header {
    background-color: #2E8B57;
}

#confirmModal .modal-body {
    padding: 1.5rem;
    font-size: 1.1rem;
}

#confirmModal .modal-footer {
    border-top: none;
    padding-top: 0;
}

#confirmModal .btn-success {
    background-color: #2E8B57;
    border-color: #2E8B57;
}

#confirmModal .btn-success:hover {
    background-color: #3CB371;
    border-color: #3CB371;
}

#imagenModal .modal-content {
    background-color: #f8f9fa;
}

#imagenModal .modal-header {
    background-color: #2E8B57;
    color: white;
}

#imagenModal .modal-footer {
    border-top: 1px solid #dee2e6;
}

#imagenModal .modal-body img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cursor-pointer {
    cursor: pointer;
    transition: transform 0.2s;
}

.cursor-pointer:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(46, 139, 87, 0.3);
}

.tracking-link:hover {
    text-decoration: underline;
}

.comment-list {
    list-style-type: none;
    padding-left: 0;
}

.comment-list li {
    position: relative;
    padding-left: 1.5rem;
}

.comment-list li:before {
    content: "•";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.admin-comments-box {
    border-left: 3px solid #28a745;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
}

@keyframes highlightChange {
    0% {
        transform: scale(1);
        color: inherit;
    }

    50% {
        transform: scale(1.1);
        color: #28a745;
    }

    100% {
        transform: scale(1);
        color: inherit;
    }
}

.total-changed {
    animation: highlightChange 0.8s ease-in-out;
    font-weight: bold;
}

.spin-icon {
    animation: spin 0.6s linear;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.user-info-bar {
    background-color: rgba(40, 167, 69, 0.1);
    border-bottom: 1px solid rgba(40, 167, 69, 0.2);
}

.badge.bg-light {
    background-color: #f8f9fa !important;
    color: #28a745 !important;
}

.status-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.max-w-400 {
    max-width: 400px;
}

.bg-success-soft {
    background-color: rgba(40, 167, 69, 0.1);
}
.bg-info-soft {
    background-color: rgba(23, 162, 184, 0.1);
}
.bg-secondary-soft {
    background-color: rgba(108, 117, 125, 0.1);
}
.bg-warning-soft {
    background-color: rgba(255, 193, 7, 0.1);
}
.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.1);
}
.bg-purple-soft {
    background-color: rgba(111, 66, 193, 0.1);
}
.bg-danger-soft {
    background-color: rgba(220, 53, 69, 0.1);
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
    margin: 0 0 0 1rem;
    border-left: 2px solid #dee2e6;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item-marker {
    position: absolute;
    left: -1.5rem;
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
}

.timeline-item-marker-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #2eb85c;
}

.timeline-item-content {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.alert-datos-guardados {
    border-left: 4px solid #28a745;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.alert-datos-guardados .bi {
    font-size: 1.5rem;
    color: #28a745;
    margin-right: 10px;
}

.btn-success.disabled {
    opacity: 0.65;
    pointer-events: none;
}

.nombre-producto, .cantidad-producto, .precio-unitario {
    min-width: 100px;
    max-width: 150px;
    display: inline-block;
}

.table input.form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}