.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    min-height: 56px;
}

.page-header h5 {
    margin: 0;
    font-weight: 600;
}

.card-module {
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    margin-bottom: 12px;
}

.card-module .card-body {
    padding: 16px;
}

.card-module h6 {
    color: #fff;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    min-height: 48px;
}

.list-item:last-child {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-pendiente { background: rgba(255,193,7,0.2); color: #ffc107; }
.status-en_progreso { background: rgba(255,255,255,0.15); color: #ffffff; }
.status-completada { background: rgba(25,135,84,0.2); color: #198754; }
.status-completado { background: rgba(25,135,84,0.2); color: #198754; }
.status-activo { background: rgba(255,255,255,0.15); color: #ffffff; }
.status-pausado { background: rgba(255,193,7,0.2); color: #ffc107; }
.status-cancelado { background: rgba(220,53,69,0.2); color: #dc3545; }

.prio-urgente { background: rgba(220,53,69,0.2); color: #dc3545; }
.prio-alta { background: rgba(255,152,0,0.2); color: #ff9800; }
.prio-media { background: rgba(255,255,255,0.12); color: #ffffff; }
.prio-baja { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }

.form-control, .form-select {
    background: #000000;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    min-height: 48px;
}

.form-control:focus, .form-select:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
    background: #000000;
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-label {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

select.form-select option {
    background: #0a0a0a;
    color: #fff;
}

.modal-content {
    background: #0a0a0a;
    color: rgba(255,255,255,0.8);
    border: none;
}

.modal-header, .modal-footer {
    border-color: rgba(255,255,255,0.08);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
}

.loading-spinner .spinner-border {
    color: #ffffff;
}

.empty-state {
    text-align: center;
    padding: 40px 16px;
    color: rgba(255,255,255,0.3);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.card-module:nth-child(even) {
    background: rgba(255,255,255,0.015);
}

.progress-mod {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.progress-mod .progress-bar {
    background: #ffffff;
    border-radius: 3px;
    animation: progressFill 0.8s ease-out;
}

@keyframes progressFill {
    from { width: 0%; }
}

.toast-notification {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 90vw;
}

.swipe-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 12px;
    padding: 4px 0;
}

.swipe-container > * {
    scroll-snap-align: start;
    min-width: 80vw;
    flex-shrink: 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.detail-grid .detail-item {
    padding: 8px 0;
}

.detail-grid .detail-label {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

.detail-grid .detail-value {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.quick-actions .btn_one {
    width: 100%;
    font-size: 13px;
    padding: 10px 12px;
}

.inline-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.inline-form .form-control {
    flex: 1;
    min-height: 44px;
    font-size: 14px;
}

.inline-form .btn {
    min-height: 44px;
    white-space: nowrap;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 4px 0;
    margin-bottom: 12px;
    -webkit-overflow-scrolling: touch;
}

.filter-tabs .filter-btn {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 32px;
}

.filter-tabs .filter-btn.active {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}

.evidence-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.evidence-file i {
    color: #ffffff;
    font-size: 20px;
}

.evidence-file a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
}

.evidence-file a:hover {
    text-decoration: underline;
}

.costo-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.costo-bar .label {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    min-width: 100px;
}

.costo-bar .value {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

@media (max-width: 575px) {
    .quick-actions {
        grid-template-columns: 1fr 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .inline-form {
        flex-direction: column;
    }

    .inline-form .btn {
        width: 100%;
    }
}